Commit Graph

2122 Commits

Author SHA1 Message Date
David Capello
1d4202d593 Minor change in system.h: remove unused BITMAP forward declaration 2014-09-03 10:26:52 -03:00
David Capello
9e8cf5de90 Show correct title bar in the main system window when the program starts 2014-09-03 00:39:15 -03:00
David Capello
10eddb0d9e Avoid crash if FilterWorker cannot lock the current sprite to write it (fix #478) 2014-09-03 00:34:31 -03:00
David Capello
7d89167e00 Add right-click to ui::Entry to show edit popup menu (cut/copy/paste) 2014-08-31 22:51:17 -03:00
David Capello
3704cb0ae4 Make PalettePopup hot-region a little bigger 2014-08-31 14:31:13 -03:00
David Capello
62ef5c5830 Fix #470 - Crash when copy & paste a cel at its same position in the timeline 2014-08-31 14:24:29 -03:00
David Capello
bde2ddbe83 Remove ji_screen and ji_clock global variables
- Replace JI_SCREEN_W/H with ui::display_w/h()
- Remove GfxMode class
- Move drawing code of ColorCurveEditor widget to onPaint()
- Rename ji_clock -> ui::clock()
2014-08-31 14:17:49 -03:00
David Capello
55fca6a89f PalettePopup: Show three buttons: "Load", "Set as Default", and "Open Folder"
This is to show the "Set as Default" option when there is an open
document.
2014-08-29 09:42:07 -03:00
David Capello
a2107f5bd9 Mac OS X: Avoid Cocoa error beep when a Cmd+key is used
This change should be reverted in some way when the OS X menus
are implemented (issue #135)
2014-08-28 09:50:32 -03:00
David Capello
44bedf070b Drop pixels when we change the current frame or layer 2014-08-28 09:36:34 -03:00
David Capello
3810b76eb0 Fix magic wand tool to select with one-click without moving the mouse
This is due a recent change in the behavior of isSelection() kind of
tools.
2014-08-28 09:06:23 -03:00
David Capello
e14cd4e2c1 Timeline: Now we can copy cels/frames/layers with Alt key too 2014-08-27 22:43:24 -03:00
David Capello
d84fa79bd9 Minor rename in Editor::setZoomAndCenterInMouse() 2014-08-27 22:42:58 -03:00
David Capello
38127f9d9c Fix xor B/W mode for transparent images
This is not the best solution at the moment, but's quite acceptable.
2014-08-27 10:14:19 -03:00
David Capello
1297a42933 Redraw transformation handles correctly after auto-scroll
When we're moving the selection and touch a corner, the scroll is changed.
We cannot blit/move/reuse the screen content because the handles are on
the screen, so moving the already painted handle-pixels makes it hard to
redraw those areas too.
2014-08-27 10:06:38 -03:00
David Capello
5ea5d0d92f Add special mode (xor black/white) for selection tool (fix #301)
This change includes a blend mode for the document extra cel, but it's not
used to fix the issue.
2014-08-27 09:43:42 -03:00
David Capello
877d498160 Deselect with a simple click 2014-08-27 08:42:14 -03:00
David Capello
7177814015 Fix selection tool behavior when Shift key is used
There was a conflict between Shift key as a modifier to Add selection and
to convert the selection box with square-aspect. Now tools::Controllers
can process key down/up events, so the square aspect is used only if
TwoPointsController receives a Shift key event (in the middle of the
tool loop).
2014-08-27 08:35:37 -03:00
David Capello
7ffe8de2e1 Minor change, rename MovingPixelState::m_currentEditor -> m_editor 2014-08-26 21:39:52 -03:00
David Capello
bb309fb72e Improve Editor::autoScroll() scroll
Avoid a bad user experience when he/she tries to put back the mouse
position into the editor viewport.
2014-08-25 23:30:27 -03:00
David Capello
58b3e09d86 Remove all "infinite scroll" stuff to avoid changing mouse position (fixes #350)
Changing the mouse position isn't user-friendly in desktop apps, and
has several problems in some platforms (Mac OS X). In this way we've
changed the approach to handle the mouse position when it goes outside
the ui::Editor viewport.
2014-08-25 22:49:19 -03:00
David Capello
8e44e0fbab Do not change mouse position in PreviewCommand 2014-08-25 21:49:37 -03:00
David Capello
99557a2c1a Don't change mouse position in ui::Slider 2014-08-25 21:43:55 -03:00
David Capello
d4f056100b Now we can rotate the current cel or a range of cels (related to issue #161) 2014-08-25 09:06:38 -03:00
David Capello
27cfd60d1b Now we can flip several cels at the same time 2014-08-25 08:36:00 -03:00
David Capello
8a3f7a6396 Ability to move several frames in X or Y axis, fix #431 2014-08-25 08:27:42 -03:00
David Capello
0aea78318a Now you can move the selection with arrow keys when it is visible 2014-08-25 00:55:54 -03:00
David Capello
355ecbb2af Add space bar as modifier
Now we can scroll with space bar + arrow keys
2014-08-24 23:40:33 -03:00
David Capello
35fc9836df Do not drop pixels if ScrollCommand is executed 2014-08-24 23:33:33 -03:00
David Capello
16ba5920a1 Change "outline" to "boundaries" in MoveMaskCommand 2014-08-24 23:33:13 -03:00
David Capello
3d40d9beb7 Add StyledButton 2014-08-24 21:25:59 -03:00
David Capello
da1b7097c6 Clear background layer too in "New Empty Frame" 2014-08-24 20:18:32 -03:00
David Capello
6b2c5cc386 Status bar can change opacity of several cels (related to issue #225) 2014-08-24 19:59:12 -03:00
David Capello
0b3ec08987 Fix crash trying to move the selection from a empty cel 2014-08-24 19:37:24 -03:00
David Capello
d1fc7f643a Fix undo action when the selection is completely replaced 2014-08-24 19:22:43 -03:00
David Capello
522e9a0337 Add Shift/Alt modifiers to selection tools to change Union/Subtract modes (fix #217) 2014-08-24 19:19:38 -03:00
David Capello
6c571adbd4 Add Alt+B shortcut to create new empty frames 2014-08-24 18:01:52 -03:00
David Capello
eed23803a8 Fix base::move_file() for Unix-like systems 2014-08-24 09:00:55 -03:00
David Capello
33d7b305a2 Several changes related to the location of resources
- Add ResourceFinder::includeUserDir() (used by aseprite.ini, crash dump,
  and aseprite.log). These locations depend on App::isPortable() (if the
  app is portable or installed).
- We don't need to change the current directory in
  applicationDidFinishLaunching anymore (ResourceFinder::includeDataDir()
  takes care about bundles now in a correct way).
- Migrate old ~/.asepriterc to ~/.config/aseprite/aseprite.ini
2014-08-24 09:00:35 -03:00
David Capello
b291f22c48 Add "log" parameter in ResourceFinder to disable logging if needed
There is a special case where we don't have to log: when we are searching
for the location of the log file itself.
2014-08-24 08:36:34 -03:00
David Capello
c30c7927c6 Use DISABLE_COPYING() in ResourceFinder 2014-08-24 00:20:50 -03:00
David Capello
07e51897d3 OptionsCommand: fix the crash folder location 2014-08-24 00:19:14 -03:00
David Capello
00694b7ddb Always log into aseprite.log instead of stderr 2014-08-24 00:18:01 -03:00
David Capello
035acf2670 Add tests for fs::make_directory/all_directories 2014-08-24 00:13:35 -03:00
David Capello
b3b33fbc3d Add base::move_file() function to rename/move files 2014-08-24 00:13:11 -03:00
David Capello
573a78f8a2 Fix line to mark "pool" as a unused var 2014-08-24 00:12:14 -03:00
David Capello
4921eeca9c Add she::Logger to log errors in Mac OS X console 2014-08-24 00:11:51 -03:00
David Capello
be0b7de49e Remove unused LaunchCommand functionality to open files from docs/ 2014-08-24 00:10:15 -03:00
David Capello
a9081695e5 Simplify App::isPortable() to avoid using ResourceFinder 2014-08-24 00:09:01 -03:00
David Capello
62c5bdbb8f Fix base::get_app_path() for Mac OS X 2014-08-23 23:54:27 -03:00
David Capello
622e966a8c Fix base::open_folder() for files in Mac OS X 2014-08-23 23:53:31 -03:00
David Capello
8594d7515f Remove application:openFile: declaration for AllegroAppDelegate 2014-08-23 20:40:59 -03:00
David Capello
87857f5a95 Add base::make_all_directories function 2014-08-23 20:26:59 -03:00
David Capello
fb68969ba5 Mac OS X port: fix copy & paste in entry field with Cmd+C/Cmd+V keys 2014-08-23 14:51:28 -03:00
David Capello
ab71f13073 Minor changes in qzwindow.m 2014-08-23 14:17:37 -03:00
David Capello
354d945b49 Fix initial crash on Mac OS X version when there isn't .asepriterc file and our desktop resolution is 1024x768
Now, a set_gfx_mode() (in Mac OS X) can accept almost any resolution,
the screen will be created with the NSView bounds anyway (which can be
smaller than the given size in set_gfx_mode()).
2014-08-23 14:17:13 -03:00
David Capello
3760525a61 Fix creating a sprite of 0x0 when there is nothing to export on --sheet 2014-08-22 09:49:24 -03:00
David Capello
e1a4a8b09f Fix crash when a document cannot be loaded 2014-08-22 09:46:25 -03:00
David Capello
9135461627 Fix #455 - fix command line processing when the app is in a bundle 2014-08-22 09:36:40 -03:00
David Capello
e65bbd6105 send_crash.cpp: Avoid unused var warning in clang 2014-08-22 09:29:34 -03:00
David Capello
a2718f83e4 Remove Allegro dependency from several files 2014-08-22 01:32:13 -03:00
David Capello
e8d4388061 Add base::file_size() function 2014-08-22 01:12:12 -03:00
David Capello
483878140a Remove allegro.h in app.cpp 2014-08-21 23:46:17 -03:00
David Capello
ddaacd2f7b Fix #11 - now we support all formats to load/save palettes
Also we've removed dependency with Allegro code to load/save palette files.
2014-08-21 23:39:20 -03:00
David Capello
31e6b31cd0 Remove unnecessary and overcomplicated optimization in rotate.cpp (from legacy Allegro code) 2014-08-21 22:26:43 -03:00
David Capello
817fac5e6f Remove dependency with Allegro library in algofill.cpp 2014-08-21 22:24:55 -03:00
David Capello
cab6ecbfda Minor change in ui/entry.cpp to avoid dependency with Allegro definitions 2014-08-21 22:07:41 -03:00
David Capello
08d1593481 Avoid warning for unused var in app.mm 2014-08-21 22:06:37 -03:00
David Capello
5b4ca4f061 Minor change in cmd_refresh.cpp 2014-08-20 09:22:38 -03:00
David Capello
6559eab214 Create crash dump in aseprite folder when it's running in portable mode 2014-08-20 09:16:59 -03:00
David Capello
25ee4df7fb Fix drawing issues of mini editor when the app is launched from explorer/finder when a file is double-clicked 2014-08-20 09:02:44 -03:00
David Capello
76919072e0 Fix crash copying & pasting empty layers between documents 2014-08-20 08:29:21 -03:00
David Capello
daa7adde14 Fix #344 initial black screen on Mac OS X and small initial window size on Linux when .asepriterc is not present 2014-08-20 08:27:11 -03:00
David Capello
44c6f9400e Add a notification to report the last crash 2014-08-20 00:11:19 -03:00
David Capello
154382e244 Fix issue #449: now we can delete frames/layers/cels with delete key/command 2014-08-19 22:19:55 -03:00
David Capello
3f6b4d3bac Add missing right_click_mode.h file 2014-08-19 08:31:11 -03:00
David Capello
9a15126682 Fix issue 188: Pick foreground color with right mouse button 2014-08-19 08:17:57 -03:00
David Capello
d0a7831589 Add document icon 2014-08-18 23:51:57 -03:00
David Capello
9398bbc000 Mac OS X: Add support to open files with double-click from Finder 2014-08-18 23:07:53 -03:00
David Capello
07497ec8e5 Use enum class for doc::ColorMode 2014-08-18 01:13:24 -03:00
David Capello
71d11e60a7 Complete copy-and-paste operations of frames and cels between documents 2014-08-18 00:21:03 -03:00
David Capello
5abcf7a296 Add missing virtual destructors 2014-08-17 20:42:55 -03:00
David Capello
7080d0fa83 Fix uninitialize variable warning 2014-08-17 20:42:12 -03:00
David Capello
e0a20e5385 Fix she::error_message() to avoid calling a printf-like function with a non-printf-format-like argument 2014-08-17 20:41:38 -03:00
David Capello
76a26802e0 Fix tests compilation in clang 2014-08-17 20:40:10 -03:00
David Capello
51ab478f49 Fix order of members initialization detected by clang 2014-08-17 20:38:55 -03:00
David Capello
5075c1f86f Remove unused variables/code 2014-08-17 20:37:12 -03:00
David Capello
a1912d38bd Avoid unused variable warnings when we compile in release mode 2014-08-17 20:33:32 -03:00
David Capello
78b755bd40 Fix updater: now getMacOSXVersion() is in a .mm file (ObjC++) 2014-08-15 00:59:29 -03:00
David Capello
fbda63704f Fix initialization order in PaletteEntryEditor 2014-08-15 00:27:12 -03:00
David Capello
897513264d Compile subprojects with C++11 flags 2014-08-15 00:26:27 -03:00
David Capello
9d675b6864 Use static_assert() 2014-08-15 00:24:59 -03:00
David Capello
dfc1ecd2da Use #pragma warning only in MSC compiler 2014-08-14 23:38:06 -03:00
David Capello
badc334f21 Fix include guard (detected by clang) 2014-08-14 23:37:20 -03:00
David Capello
f5b5250482 Remove use of "register" modifier (it's deprecated) 2014-08-14 23:26:52 -03:00
David Capello
6824570c4b Remove base/override.h (use override keyword directly) 2014-08-14 23:07:47 -03:00
David Capello
f62356d410 Add compiler flags for C++11 so we can start using it 2014-08-14 00:40:01 -03:00
David Capello
918368b5a4 Add support to open folders in Mac OS X 2014-08-13 00:35:34 -03:00
David Capello
a9721b63a8 Undefine major/minor macros if they are defined (as in clang) for base::Version 2014-08-13 00:31:56 -03:00
David Capello
1f900eda26 Fix compilation error detected by clang 2014-08-13 00:22:48 -03:00