322 Commits

Author SHA1 Message Date
David Capello
9302c5d1bb Move logic to import sprite sheet inside ImportSpriteSheetCommand::onExecute 2015-03-19 16:20:33 -03:00
David Capello
0350ac4bbe Initial work on Skia backend (WIP) 2015-03-16 15:05:13 -03:00
David Capello
d3f152d1a5 Fix Graphics::doUIStringAlgorithm() for word wrap with rc.w == 0 (without limit) 2015-03-11 18:06:33 -03:00
David Capello
b23194dfae Fix several warnings in MSVC, clang, and gcc 2015-03-05 15:19:00 -03:00
David Capello
7da6f3e857 Minor changes to some #include header files 2015-03-05 12:40:47 -03:00
David Capello
ad856b2a55 Use std:: when necessary, and std::numeric_limits instead of INT_MAX 2015-03-04 21:35:11 -03:00
David Capello
b7f69186bb Add Widget::removeAllChildren() member function 2015-03-04 16:38:01 -03:00
David Capello
37781c99ea Show blog posts in NewsListBox 2015-03-02 19:54:24 -03:00
David Capello
8f8291a39b Hide colorbar and toolbar when we're in Home tab 2015-03-02 14:43:44 -03:00
David Capello
6862e02805 Add list of recent files and folders in Home tab
* Add LinkLabel::onClick()
* Use Widget instead of ListItem in ListBox API
* Add TextRule::padding() and use it to calculate the preferred size
  for a skin::Style's rules
2015-03-02 11:18:33 -03:00
David Capello
bf27db12e6 Make the "new update" link more noticeable (using a special style) 2015-02-27 20:45:15 -03:00
David Capello
8eb8122bc0 Add widgets to HomeView (icon, new file, open file, and list boxes)
* Add widgets/home_view.xml
* Add possibility to specify style="..." and border="..." in XML widgets
* Add SkinStyleProperty
* Remove Label::get/setTextColor() (replaced with styles)
* Add <image> widget in WidgetLoader
* Paint labels, link labels, and views with styles
2015-02-26 09:53:19 -03:00
David Capello
f3974002d5 Fix int <-> double <-> float casts
It looks like allegro includes several implicit conversions between
float and double.
2015-02-14 22:37:56 -03:00
David Capello
2c6067f7e4 Update license of app/ module to GPLv2 2015-02-12 12:16:25 -03:00
David Capello
1d8939be8a Merge branch '1.0' 2015-01-21 02:00:48 -03:00
David Capello
9af8567a6b Make PopupWindow movable again (fix regression from 1f25579f5a9923dc844f75d8e37ede83e148889f) 2015-01-19 20:44:47 -03:00
David Capello
1b3d8650bd Remove Widget::user_data and theme_data fields 2014-11-25 22:46:50 -03:00
David Capello
ca9df1a05e Rename ui::jguiscale() to ui::guiscale()
* Change Theme::guiscale member to Theme::m_guiscale
2014-11-25 22:33:45 -03:00
David Capello
9e0990a70f Remove Manager::currentMouseButtons() 2014-11-25 22:11:44 -03:00
David Capello
752faf11f2 Remove jmouse_[xyz]() functions 2014-11-25 22:10:28 -03:00
David Capello
376fd0a23c Remove jmouse_b() function 2014-11-25 22:01:36 -03:00
David Capello
a35c32dcfe Rename jmouse_hide/show() to ui::hide/show_mouse_cursor() 2014-11-25 21:35:06 -03:00
David Capello
b74262e36e Remove jmouse_is_hidden() and jmouse_is_shown() functions 2014-11-25 21:32:22 -03:00
David Capello
d9ed3c2348 Rename jmouse_[gs]et_cursor() to ui::[gs]et_mouse_cursor() 2014-11-25 21:30:56 -03:00
David Capello
badccf0847 Generate kKeyDownMessage for Cmd key correctly 2014-11-25 05:55:22 -03:00
David Capello
17b0bee0ae Refactor: Use gfx::Point in several places instead of two x,y integers
Changes:
* Add doc::Sprite::bounds()
* Use gfx::Point to store the doc::Cel position
* Replace "int x, int y" with a "const gfx::Point&" param
* Fix Mask::intersect(const gfx::Rect&) and Mask::crop(const Image*)
2014-11-24 00:09:22 -03:00
David Capello
c0078809f7 Merge branch '1.0'
Conflicts:
	data/gui.xml
	src/config.h
	src/main/resources_win32.rc
2014-11-16 13:26:02 -03:00
David Capello
0b13e53c67 Fix several issues with keyboard shortcuts customization
Changes:
* Now default action modifiers can be removed (fix #521)
* Now action modifiers have a KeyContext (the key context depend on the
  action itself, cannot be configured by the user)
* Fix Accelerator::check() and Accelerator::operator=() when the unicode
  char and scancode are nil (i.e. we are comparing only modifiers)
* Convert Accelerators to a class to simplify code
* Remove unused variables in Accelerator::check() when REPORT_KEYS is
  defined
2014-11-15 18:31:12 -03:00
David Capello
5e2cefe212 Merge branch '1.0'
Conflicts:
	src/app/commands/cmd_sprite_size.cpp
	src/app/document_exporter.cpp
2014-11-07 19:30:39 -03:00
David Capello
ba73bcafed Add support to serialize special unicode chars in ui::Accelerator 2014-11-06 09:37:07 -03:00
David Capello
6d255dd3ab Remove unused variable 2014-11-05 11:15:08 -03:00
David Capello
d176839bf4 Merge branch '1.0'
* In this branch the Alt+mnemonic issues are solved in "she" layer when the
  she::Event is generated (see src/she/alleg4/key_poller.cpp)
* Mouse cursor issues on OS X are solved in src/she/alleg4/mouse_poller.cpp

Conflicts:
	src/app/test_context.h
	src/ui/manager.cpp
2014-11-01 20:55:57 -03:00
David Capello
ef25706ed2 Fix crash in SelectAccelerator::KeyField when a Unicode char is pressed
The problem is that Accelerator::toString() wasn't returning valid utf-8
strings for Unicode characters.
2014-11-01 15:46:13 -03:00
David Capello
22c3651c63 Fix Alt+Mnemonic on Mac OS X 2014-11-01 12:44:07 -03:00
David Capello
b9b3b02882 Fix mouse issues on OS X (fix #458)
Now we generate she::Event::MouseEnter/Leave events correctly when the
mouse leaves or enters into the window to show the native cursor again
when necessary.

Close #466
2014-11-01 11:36:51 -03:00
David Capello
39b8e034b5 Merge branch '1.0'
Conflicts:
	.gitmodules
	CMakeLists.txt
	src/CMakeLists.txt
	src/app/app.h
	src/app/app_menus.cpp
	src/app/commands/cmd_move_mask.cpp
	src/app/commands/cmd_rotate.cpp
	src/app/modules/gui.cpp
	src/doc/resize_image_tests.cpp
	src/ui/accelerator.cpp
	third_party/CMakeLists.txt
2014-10-30 01:06:27 -03:00
David Capello
8bec9be4b2 Fix comparison between ui::Accelerators 2014-10-29 23:50:48 -03:00
David Capello
f939ef5f02 Add keyboard shortcuts customization (close #253)
Changes:
* Add KeyboardShortcutsCommand and window
* Add SelectAccelerator window
* Replace modules/gui.cpp functions with app::KeyboardShortcuts and
  app::Key with the logic to load/save/handle keyboard shortcuts
* Change ui::Accelerator concept: now it represent just one keyboard
  shortcut, not a set of shortcuts
* Remove ui::Accelerator from ui::MenuItem, now the key is associated
  in app::AppMenuItem and it's a app::Key
* Add Command::onGetFriendlyName() to get a user friendly name of the
  command depending on its parameters
2014-10-29 11:58:03 -03:00
David Capello
736f08099b Merge branch '1.0' 2014-10-25 16:20:33 -03:00
David Capello
bb24d8b995 Add option to enable/disable automatic menu bar items popup (related to issue #501) 2014-10-25 11:24:29 -03:00
David Capello
66d88ffe5d Merge branch '1.0' 2014-10-24 18:51:16 -03:00
David Capello
3e18efcd8b Don't expand MenuBar items on mouseover (fix #501)
This is how menu-bars work on Windows and OS X.
2014-10-23 11:16:22 -03:00
David Capello
0defe27dc6 Move dotted_mode() from app to she module
Replaced a huge array of marching ant patterns (which was taken
from GIMP 1.3.11) with a simple formula.
2014-10-16 23:52:28 -03:00
David Capello
7095a82141 Add she::is_key_pressed() and clear_keyboard_buffer() 2014-09-21 11:40:55 -03:00
David Capello
6a10b77baf Don't use Allegro's OTHER_PATH_SEPARATOR_ constant in ui::Entry 2014-09-20 22:54:20 -03:00
David Capello
30d09c9334 Don't use allegro.h in ui::move_region() 2014-09-19 11:08:39 -03:00
David Capello
a5a5d1db81 Fix ui::set_mouse_position() from the merge of master and allegro-wrapper branches 2014-09-19 10:50:24 -03:00
David Capello
c5a568cd15 Generate mouse/key events from polling in she module instead of ui module 2014-09-19 10:12:05 -03:00
David Capello
fda9478eb4 Re-center mini-editor when its window is resized 2014-09-11 00:00:28 -03:00
David Capello
bdd64b2c34 Bring back infinite scroll in sprite editor 2014-09-09 21:51:47 -03:00