Commit Graph

4421 Commits

Author SHA1 Message Date
David Capello
5cb4e28293 Allow "icon" parameter for <button> widgets to create an IconButtons 2015-12-10 16:52:43 -03:00
David Capello
50a01879ac Add possibility to create popup windows and tip windows from XML widgets 2015-12-10 16:51:48 -03:00
David Capello
455153d4b9 Change ui::TipWindow public API
Arrow align and target bounds are given as parameters of the new
TipWindow::pointAt() member function. Now TipWindow() contains a
default ctor.
2015-12-10 16:50:16 -03:00
David Capello
d02efbf315 Fix TipWindow background color 2015-12-10 16:46:01 -03:00
David Capello
3066e1b301 Minor format change in ui/textbox.h 2015-12-10 16:44:48 -03:00
David Capello
13736a49f4 Merge pull request #896 from tony/gitignore-cmake
Ignore cmake build dir
2015-12-10 14:28:58 -03:00
Tony Narlock
70f249969e Ignore build dir 2015-12-09 13:31:25 -06:00
David Capello
6e35b0043f Change default shortcut for new ScrollCenter command
The "C" could be related to a possible future Canvas or Slice tool
2015-12-09 11:37:13 -03:00
David Capello
f3c171ddbe Merge branch 'master' 2015-12-09 11:29:50 -03:00
David Capello
e63dea61fd Include opacity and blend mode for each layer in JSON output 2015-12-09 11:00:57 -03:00
David Capello
850bd7ba2f Merge pull request #895 from TheKK/Fix_va_list
Correct usage of variable arguments in verbose_log()
2015-12-09 10:12:55 -03:00
David Capello
f1c1c580cc Merge pull request #893 from tony/freebsd-app_path
Support for FreeBSD get_app_path
2015-12-09 10:10:36 -03:00
Ying Ruei Liang (KK)
57db16efec Correct usage of variable arguments 2015-12-09 15:01:25 +08:00
Tony Narlock
382881ad66 Support for FreeBSD get_app_path
Fixes #889

Add support with and without procfs.

See also: https://www.libsdl.org/tmp/SDL/src/filesystem/unix/SDL_sysfilesystem.c
2015-12-09 00:43:15 -06:00
David Capello
9e1626163d Merge branch 'tony-center-canvas-newcmd' 2015-12-08 16:01:41 -03:00
David Capello
20b59bf0c4 Merge branch 'center-canvas-newcmd' of https://github.com/tony/aseprite into tony-center-canvas-newcmd 2015-12-08 15:44:44 -03:00
David Capello
d1912e7cd7 Merge branch 'TheKK-snapSymmetryHandlesToViewportEdge' 2015-12-08 15:39:15 -03:00
David Capello
6e6ee10872 Merge branch 'snapSymmetryHandlesToViewportEdge' of https://github.com/TheKK/aseprite into TheKK-snapSymmetryHandlesToViewportEdge 2015-12-08 15:27:17 -03:00
Tony Narlock
877d29cd76 Allow scrolling to center of canvas 2015-12-08 03:28:05 -06:00
David Capello
44258a8442 Check GlobalAlloc() return value in set_win32_clipboard_bitmap() 2015-12-07 17:29:22 -03:00
David Capello
562106c6f0 Add EditorDecorator::getInvalidDecoratoredRegion() needed in #873 2015-12-07 15:25:10 -03:00
Ying Ruei Liang (KK)
2537b76cda Now the handles snap to the edge of viewport 2015-12-06 21:56:53 +08:00
David Capello
df6e97d98d Merge pull request #890 from TheKK/reduceCpuUsage
Invalidate Editor only when frame changed in PlayState
2015-12-06 10:31:06 -03:00
Ying Ruei Liang (KK)
b6afb1ae2a Repaint animated sprite only when frame changed 2015-12-06 19:37:10 +08:00
David Capello
c1392909bb Show ColorSpectrum's indicator white-colored if it's in the dark side 2015-12-05 16:11:03 -03:00
David Capello
d467d71fa5 Rename PopupWindow enums 2015-12-05 15:56:32 -03:00
David Capello
f389a2ec23 Fix crash on GotoNext/PreviousFrameWithSameTagCommands when there is no tag
Some other minor changes as avoid casting int <-> frame_t because now
frame_t is a typedef (some time ago it was a class and those cast were
necessary).

Related to #887
2015-12-05 15:42:12 -03:00
David Capello
45e4c4656a Merge pull request #887 from TheKK/moveFrameInTaggedLoop
Add commands to navigate frames with same tag
2015-12-05 13:26:25 -03:00
David Capello
d1b972e27a Merge pull request #888 from tony/freebsd
Fix missing permission bitmasks on FreeBSD
2015-12-05 13:23:21 -03:00
Tony Narlock
9c30429ff9 Fix missing permission bitmasks on FreeBSD 2015-12-05 09:08:18 -06:00
Ying Ruei Liang (KK)
2fa6f1995e Add commands to navigate frames with same tag 2015-12-05 18:16:23 +08:00
David Capello
6ab858b722 Minor change in get_neighboring_pixels() 2015-12-04 17:46:50 -03:00
David Capello
5dc149d308 Add "Select > Modify" commands to expand/contract/border the selection 2015-12-04 17:46:32 -03:00
David Capello
e944ce0052 Move Bind, Connection, Signal, Slot, etc. to base namespace 2015-12-04 15:17:42 -03:00
David Capello
06be4f7fa6 Rename ui::Window::getKiller() -> closer() 2015-12-04 14:54:15 -03:00
David Capello
1aaeacc460 Refactor several "getNoun()" getters to "noun()"
This is a work-in-progress to create a consistent API and finally
separate the whole Aseprite base/gfx/ui libs into a reusable C++ library.

Classes:
app::IFileItem, app::AppMenuItem, app::skin::SkinPart,
gfx::Rect, gfx::Border, she::FileDialog,
ui::IButtonIcon, ui::Graphics, ui::Overlay, ui::Widget,
ui::ScrollableViewDelegate, and UI events
2015-12-04 14:39:04 -03:00
David Capello
98f026731e Use _DEBUG and NDEBUG instead of DEBUGMODE
DEBUGMODE macro came from Allegro 4.
2015-12-04 12:38:57 -03:00
David Capello
7125643feb Use const& instead of pointers 2015-12-03 21:51:59 -03:00
David Capello
2a3f2d6a57 Use size_t instead of unsigned int to compare with std::vector::size() 2015-12-03 21:51:44 -03:00
David Capello
cdd955441a Rename PreferredSize -> SizeHint 2015-12-03 21:50:05 -03:00
David Capello
78ba213471 Rename ui::Widget::getChildren() -> children()
Extra changes:
* Removed UI_FOREACH_WIDGET(), replaced with range-based for-loops
2015-12-03 19:46:13 -03:00
David Capello
d5e3f3d3e8 Minor format changes 2015-12-03 19:29:50 -03:00
David Capello
e30654d08a Merge branch 'move-multiple-cels' 2015-12-03 18:41:16 -03:00
David Capello
f8dbacf364 Prefer references instead of pointers (mainly for types as Point/Size/Rect) 2015-12-03 18:37:49 -03:00
David Capello
48838c743a Use size_t instead of unsigned int 2015-12-03 18:36:55 -03:00
David Capello
3f984a471c Merge branch 'multipleMoving' of https://github.com/TheKK/aseprite into move-multiple-cels 2015-12-03 15:37:42 -03:00
Ying Ruei Liang (KK)
7e09f79285 Show preview correctly when moving multiple cels
Now you can see all the selected cels move synchronously while you drag
them with moving tool.
2015-12-04 01:05:28 +08:00
David Capello
47bb79bfe7 Don't print JSON output in STDOUT when we are in UI mode
JSON output can be printed out into STDOUT only when we are in batch
mode and the --sheet attribute isn't specified.
2015-12-03 12:47:29 -03:00
David Capello
fb387cb6c2 Add options to export layers and frameTags meta JSON data from the UI 2015-12-03 12:42:33 -03:00
David Capello
2d2434daea Export AniDir field for FrameTags in JSON meta attribute 2015-12-03 12:07:46 -03:00