Commit graph

552 commits

Author SHA1 Message Date
tomosu
9cb984e84d workaround for missing left button on osx (#561)
* workaround for missing left button on osx

* change Qt path

* change CMake

* transfer filter's pointer to application directly

* rebase

* add final, delete virtual, and beautificate
2016-07-14 19:09:44 +09:00
tomosu
8d9526db1b add doneCurrent in fx and raster code (#636) 2016-07-14 17:42:21 +09:00
Xelloss
6a7ff2ca42 Fix some can't translate strings on UI (#515)
* Add & to "Scan & Cleanup" menu item

Missing a ‘&’ punctuation on this menu item.

* fix can't translation strings on Cleanup Setting

* fix can't translation strings on Combo Viewer

* fix can't translation strings on Main Windows

* fix can't translation strings on Preference

* fix can't translation strings on Context Menu

* fix can't translation strings on Style Picker tool

* fix can't translation strings on Watercolor FX

* fix can't translation strings on Tape Tool

* fix can't translation strings on Rotate Tool

* fix can't translation strings on FileBroswer

* fix can't translation strings on FileBroswer

* fix can't translation strings on FileBroswer

* Add new source strings and translate in Chinese

* Add new source strings and translate in Chinese

* Add new source strings and translate in Chinese

* Add new source strings for french

* Add new source strings for german

* Add new source strings for italian

* Add new source strings for japanese

* Add new source strings for spanish

* Add new source strings for spanish

* Add new source strings for japanese

* Add new source strings for italian

* Add new source strings for german

* Add new source strings for french

* Add new source strings for spanish

* Add new source strings for japanese

* Add new source strings for italian

* Add new source strings for german

* Add new source strings for french

* include Qt translation support

* include Qt translation support

* Update stylepickertool.cpp

* Update viewtools.cpp

* remove modifications

Check failed

* remove modifications

Check failed

* Update stylepickertool.cpp

* Fix more can't translate strings on UI

* translation support for Pick Style Tool and Rotate Tool

* Add more source strings in all language TS files

* update qm files of chinese

* Remove modifications of Style Picker tool & Rotate Tool again...
2016-07-14 17:00:28 +09:00
Campbell Barton
87094dbf7a Correct delete[] use (#629) 2016-07-14 15:56:52 +09:00
Campbell Barton
ccd5052709 Cleanup: declare local functions static (#632)
Applies to toonz, toonzfarm, toonzqt.
2016-07-14 15:51:27 +09:00
Campbell Barton
a3a77b1204 CMake: initialize build type (#609)
Avoid using an empty build type.

While supported, it means some settings aren't well defined.
better to default to Release.
2016-07-14 13:44:36 +09:00
shun-iwasawa
535d3f26d8 Merge pull request #400 from turtletooth/pixels
Add pixels - Finished.
2016-07-14 12:40:30 +09:00
Michał Janiszewski
d5a8e51d74 Fix TNZ_MACHINE_CHANNEL_ORDER_MRGB check (#602) 2016-07-14 12:04:33 +09:00
Campbell Barton
b3bd842e04 Make functions static, ensure declarations match headers (#610)
This patch used -Wmissing-declarations warning
to show functions and symbols that had no declarations, and either:

- Make static
- Add to header

This helps avoid possability that declarations and functions get out of sync.
And ensures all source files reference headers correctly.

It also makes sure functions defined with extern "C",
have this defined in the header. An error found in calligraph.h while writing this patch.

This has been applied to toonzlib, to avoid making very large global changes.
If accepted, -Wmissing-declarations warning could be added to CMake.
2016-07-13 21:05:06 +09:00
Campbell Barton
ac2647b212 Avoid unnecessary vector resizing (tstring.toLower) (#614)
Directory listing compares full paths case insensitive,
this causes toLower to run a lot.

While this could be avoided entirely, at least avoid resizing the vector while lower casing strings.
2016-07-13 20:52:24 +09:00
Campbell Barton
f278fa10f0 Avoid making a copy of filepaths just to compare them (#616)
Instead compare them in-place.
2016-07-13 19:07:41 +09:00
Campbell Barton
0279c27280 Fix crash loading levels (#615)
Effects Linux, but may apply to other systems too.
2016-07-13 19:07:11 +09:00
Campbell Barton
1970953c90 Fix use-after free on render (#612) 2016-07-13 18:55:14 +09:00
Jeremy Bullock
027819831e hide fields for exportlevelpopup if pixelsonly 2016-07-13 02:28:26 -06:00
Jeremy Bullock
ae0f0a65a8 Fixed new scene having correct dpi even if default settings are set other than 53.33333 2016-07-13 01:51:33 -06:00
Jeremy Bullock
2e52c6995c reverted default units 2016-07-13 00:38:17 -06:00
Jeremy Bullock
3eeb02f307 Set cleanup camera settings 2016-07-13 00:28:41 -06:00
Jeremy Bullock
59dbbf498a Clang formatting applied 2016-07-12 21:09:46 -06:00
Jeremy Bullock
b6ada42502 Fixed TUnit error 2016-07-12 14:52:07 -06:00
turtletooth
9e7a9d2cd4 Merge pull request #581 from shun-iwasawa/turtletooth-maximize
Maximize Pane where mouse is shortcut by turtletooth (modified)
2016-07-12 14:05:10 -06:00
shun-iwasawa
b2a562cb68 Merge pull request #620 from turtletooth/shortcutwindow
Fixed remove shortcut not updating, added focus when item selected
2016-07-11 20:43:17 +09:00
Campbell Barton
9b2bfdae51 Fix uninitialized variable use (#613) 2016-07-11 15:22:56 +09:00
Jeremy Bullock
eddd8a3654 removed unnecesary code 2016-07-10 18:45:34 -06:00
Jeremy Bullock
7f493cca08 updated remove shortcut works, added focus when item selected 2016-07-10 13:49:14 -06:00
turtletooth
534c9edc88 Merge pull request #587 from shun-iwasawa/fix_crash_on_savelevelas
Fix crash on Save Level As when the current level is not selected
2016-07-09 14:10:02 -06:00
Campbell Barton
5f15dd3724 Correct define check 2016-07-09 13:56:47 +10:00
Campbell Barton
326eaa5b78 CMake: use STATUS for messages, spaces indentation 2016-07-09 10:44:05 +10:00
Campbell Barton
a9c3dad75a CMake: differentiate system includes (#604) 2016-07-09 00:47:11 +09:00
turtletooth
f8ebe3b803 Merge pull request #575 from shun-iwasawa/pencil_test_viewer
Pencil test feature
2016-07-08 09:00:24 -06:00
Campbell Barton
a0c6e1562d CMake: Test for endian instead of guessing based on the platform (#600) 2016-07-08 20:22:25 +09:00
Campbell Barton
8d53343985 CMake: Conditionally add warnings when supported (#598)
This adds utility functions to conditionally add compiler flags,

allowing warnings from newer compiler versions to be used without
causing a lot of noise for users of older compilers.
2016-07-08 16:23:32 +09:00
Campbell Barton
a9208f5aad Correct delete array usage (#599) 2016-07-08 13:43:56 +09:00
Campbell Barton
83caeb2eb5 Fix #593 inverted colors in raster level Linux 2016-07-08 11:46:31 +10:00
shun-iwasawa
e821d8a035 Merge pull request #430 from turtletooth/zerosizetoggle
Zerosizetoggle
2016-07-07 15:38:03 +09:00
Jeremy Bullock
aeafbe7ef8 moved implementation to sceneviewercontextmenu 2016-07-06 20:41:38 -06:00
Campbell Barton
a9cb664195 CMake: correct quote escaping 2016-07-07 02:03:50 +10:00
Shinya Kitaoka
7abdb2380a Merge pull request #547 from ideasman42/warn-undefined-pr
Quiet -Wundef warning
2016-07-06 20:42:14 +09:00
shun_iwasawa
21a6b6ba06 pencil test popup 2016-07-06 20:06:20 +09:00
Shinya Kitaoka
47895a0d7b Merge pull request #578 from opentoonz/warning-cleanup-pr
Quiet warnings
2016-07-06 19:24:49 +09:00
Shinya Kitaoka
c08330d1ae Merge pull request #567 from opentoonz/cmake-cleanup-defines-pr
CMake: use multi-line defines
2016-07-06 13:56:49 +09:00
Shinya Kitaoka
7a5f69a55c Merge pull request #563 from janisozaur/travis
Travis Linux job
2016-07-06 13:36:24 +09:00
Shinya Kitaoka
8240663cb9 Merge pull request #554 from janisozaur/libpng
Add support for libpng<1.5
2016-07-06 13:26:51 +09:00
shun_iwasawa
a30667c815 fix crash on save level as command 2016-07-06 12:50:25 +09:00
Shinya Kitaoka
2346da3b69 Merge pull request #557 from janisozaur/taskid
Fix argument assignment in TaskId
2016-07-06 12:01:25 +09:00
Shinya Kitaoka
af8faa4452 Merge pull request #558 from janisozaur/use-after-free
Prevent containerH being used after it was freed
2016-07-06 12:01:08 +09:00
turtletooth
c6b129f461 Merge pull request #580 from shun-iwasawa/revert_style_dblclk_behavior
Revert behavior when double clicking on styles to open the style editor (and some fixes)
2016-07-05 13:51:25 -06:00
shun_iwasawa
01efa14358 add small fix and clang format 2016-07-05 19:28:44 +09:00
shun_iwasawa
617a6d6d2f Merge branch 'maximize' of https://github.com/turtletooth/opentoonz into turtletooth-maximize 2016-07-05 17:21:24 +09:00
shun-iwasawa
7c216ea4e6 Merge pull request #566 from opentoonz/fix-delete-pr
Correct missing [] from delete
2016-07-05 17:13:31 +09:00
shun_iwasawa
fd6c3c05ac revert behavior on dblclking style, and more 2016-07-05 16:15:29 +09:00
shun_iwasawa
c7aa6fbfb0 fix brush undo crash 2016-07-05 14:24:07 +09:00
Campbell Barton
e05b0bbe1c Quiet warnings 2016-07-05 14:54:52 +10:00
Shinya Kitaoka
fd19c4eedf Support Visual Studio 2015 (#544)
* Small changes, for some reason VS 2015 can't link cprintf and they added a second function std::map::count and bind couldn't resolve the function. Substituted with a lambda-expression.

* Created all 64bit version of the 3rd party libs.

* Cleanup popup opens CleanupSettings instead of CleanupSettingsPane. Not finished, panel is wrong now (also uses CleanupSettings).

* Tried to get Twain working, failed.

* When there are more then 3 peg holes create additional holes.

* When a hole touches the boundary it should still be considered a hole.

* Do not compare dot size against fixed size. Will not work in some scan resolutions. Used the same value (PERCENT * max dot size) as later in the code in compare_dots.

* When there are more than three peg holes the code looked for the best fit and used that. The problem was, that the middle hole was used as center for auto center. For three peg holes that is correct, but does not work for more than three. Now the best fit is calculated and from there the offset of the middle of the three best fit holes is calculated and applied.

* One of the last changes broke VS2015 compatibility, it chocked on a missing include.

* fix for msvs2013

* revert autopos.cpp

* apply clang-format

* use GIT-LFS
2016-07-04 17:50:30 +09:00
Campbell Barton
18f19a087d CMake/Linux: install other binaries into bin 2016-07-04 17:22:17 +10:00
Jeremy Bullock
fdd72e63f6 set pixels as default 2016-07-03 13:48:39 -06:00
Campbell Barton
ca4a5d4003 Linux: Support Release builds 2016-07-03 19:24:25 +10:00
Campbell Barton
3158be2a42 CMake/Linux: add an install target
This allows for running opentoonz without having to manually write ini files or copy the 'stuff' directory.

By default it installs to `/opt/opentoonz`.
2016-07-03 18:34:50 +10:00
Jeremy Bullock
f44848c78d reverted stage::inch change, should be its own PR 2016-07-03 00:15:54 -06:00
Jeremy Bullock
93c27a36d0 removed debug code 2016-07-02 23:40:23 -06:00
Jeremy Bullock
3c545e0522 removed duplicate code 2016-07-02 23:35:53 -06:00
Jeremy Bullock
733ddbef67 hid gui elements if pixels selected 2016-07-02 23:30:00 -06:00
Campbell Barton
f2d492861f CMake: use multi-line defines
Easier to read and avoids merge conflicts
2016-07-02 22:23:18 +10:00
Campbell Barton
c39a8a4b75 Correct incorrect delete 2016-07-02 22:22:01 +10:00
Campbell Barton
268e1b4036 CMake: quiet warnings
- OBJCSOURCES was being used but undefined (set to empty)
- RC_FILE was being used on Linux/OSX, this is only for WIN32.
2016-07-02 09:21:15 +10:00
Shinya Kitaoka
fb022e94eb Merge pull request #555 from janisozaur/filebrowser
Fix wrong field access in filebrowser.cpp
2016-07-01 23:56:56 +09:00
Shinya Kitaoka
c89cd4d785 Merge pull request #559 from ideasman42/tcenter-line-pr
Fix checking the left-node before operating on the right
2016-07-01 23:56:34 +09:00
Shinya Kitaoka
b9016690ed Merge pull request #553 from janisozaur/isnan
isnan fixes
2016-07-01 20:53:04 +09:00
Michał Janiszewski
6dc4b98871 Transparently use lzma, if available in system
It will get picked up by libtiff, so make sure we provide it when
linking libimage
2016-07-01 12:11:51 +02:00
Michał Janiszewski
9258754773 Merge remote-tracking branch 'my_github/isnan' into travis-base 2016-07-01 12:11:21 +02:00
Jeremy Bullock
0049ac939d removed image dpi modification 2016-06-30 23:49:53 -06:00
Jeremy Bullock
20a966a908 set stage::inch to 120 2016-06-30 23:46:29 -06:00
Jeremy Bullock
b99ed3bab6 added shun-iwasawa's suggestions 2016-06-30 21:41:31 -06:00
Jeremy Bullock
5e3b5e8cc3 Merge branch 'master' into pixels 2016-06-30 20:57:15 -06:00
Campbell Barton
d89022ce19 Fix checking the left-node before operating on the right 2016-07-01 09:38:27 +10:00
Michał Janiszewski
1d0596c8d8 Prevent containerH being used after it was freed 2016-06-30 17:25:47 +02:00
Michał Janiszewski
38816b00c9 Fix argument assignment in TaskId 2016-06-30 17:20:50 +02:00
Michał Janiszewski
dfbb44814b Mark TTileSet destructor as virtual
This class gets inherited, yet the destructor is not marked as virtual.
2016-06-30 17:17:40 +02:00
Michał Janiszewski
d73986b938 Fix wrong field access in filebrowser.cpp 2016-06-30 17:13:26 +02:00
Michał Janiszewski
01e73f88e4 Add support for libpng<1.5 2016-06-30 15:21:57 +02:00
Michał Janiszewski
b86749e216 isnan fixes
isnan was used without specifying namespace
2016-06-30 13:42:20 +02:00
Campbell Barton
78b2e3a02b CMake: search for the .so file first
The pre-compiled .a file for OSX caused linking error on Linux.
2016-06-30 19:24:04 +10:00
Campbell Barton
bbd0f1b769 Search for dynamically linked superlu 2016-06-30 18:03:11 +10:00
Michał Janiszewski
c8607f3d7a Fix SDL includes in tnzbase
SDL headers are installed to /usr/include/SDL2 which was in conflict
with explicit way they were included previously.
2016-06-30 10:55:55 +02:00
Campbell Barton
2e1cb68b4e CMake: wrap lines for easier reading 2016-06-30 14:37:43 +10:00
Campbell Barton
620578b1a0 Fix missing array specifier from delete 2016-06-30 14:37:43 +10:00
turtletooth
3db6439c7a Merge pull request #510 from shun-iwasawa/add_search_to_shortcutpopup
Configure Shortcuts popup optimized
2016-06-29 21:56:39 -06:00
Campbell Barton
bb2501c991 CMake: Include liblzo2.so in FindLZO 2016-06-30 13:15:56 +10:00
Campbell Barton
d869b5f8e6 Quiet -Wundef warning
Exposes accidental typos when checking exact values of a define.
2016-06-30 12:28:26 +10:00
Campbell Barton
7aaaec233a CMake: find module formatting
Split find_path, find_library across multiple lines
makes it easier to read and diff against.
2016-06-30 11:09:11 +10:00
Campbell Barton
b130eca2da Workaround using C's abs on Linux
math.h is indirectly included, making abs return double on Linux.
2016-06-30 10:41:38 +10:00
Campbell Barton
b45a54792d CMake: write Linux output into bin/
Resolves naming collisions between directories and binaries.
2016-06-30 10:13:38 +10:00
Campbell Barton
1c6681c983 Merge pull request #525 from ideasman42/linux-opengl-pr
Changes needed to build OpenGL files with Linux
2016-06-30 08:25:57 +10:00
Campbell Barton
f493896cc0 Cleanup: typo (sensibility) 2016-06-29 20:49:17 +10:00
shun-iwasawa
55327d15ae Merge pull request #467 from ideasman42/linux-tsound-pr
Linux support for tsound (SDL2), from pr #51
2016-06-29 18:55:41 +09:00
Shinya Kitaoka
00c547d5c1 Merge pull request #521 from janisozaur/aligner-type
Rename aligner_type redefinitions
2016-06-29 18:55:30 +09:00
Shinya Kitaoka
d1f6c4e95b REFACTORING: Add final specifiers (#537)
* add final specifiers

* apply clang-format

* fix for macOS
2016-06-29 15:17:12 +09:00
Shinya Kitaoka
91695244e8 Merge pull request #532 from shun-iwasawa/fix_infoviewer_text_color
Fix File Info text color
2016-06-29 12:56:16 +09:00
Michał Janiszewski
5387bee4bd Rename aligner_type redefinitions 2016-06-27 08:33:20 +02:00
shun-iwasawa
c86c5d6189 Organizing the Tool option bar layout (#443)
* edit tool, selection tool, brush tool

* other tools

* include cmath
2016-06-27 15:22:54 +09:00
shun_iwasawa
b102ca20bb fix infoviewer text color (and some other ui color) 2016-06-27 14:21:30 +09:00