David Capello
6ed35b733c
FileSelector: fix combobox behavior as now ComboBox::onChange() event is generated when the combobox is open
2014-03-29 18:42:17 -03:00
David Capello
7253fa59c5
Fix combobox widget: fire Change signal when the combobox is selected with the keyboard
2014-03-29 17:17:06 -03:00
David Capello
04f3c522ba
Replace jwidget_get_text_length/height with Widget::getTextWidth/Height
...
Renamed Widget::getTextSize to Widget::getTextLength as now getTextSize
returns a gfx::Size() (not the strlen() of the text)
2014-03-21 19:45:35 -03:00
David Capello
f107dd3cbc
Fix issue 352: Context Bar Eats Hotkey Input
...
Avoid capturing keyboard focus in context bar widgets.
2014-03-08 20:31:55 -03:00
David Capello
d72a7a4dee
Fix compilations errors on gcc
2014-02-24 08:30:43 -03:00
David Capello
3cbf3e122f
Now you can press a mouse button in a ComboBoxEntry and drag the mouse to the ComboBoxListBox (issue 339)
2014-02-08 20:09:42 -03:00
David Capello
ad0b28bd63
Change Window() ctor to avoid ambiguity (DesktopWindow, WithoutTitleBar, or WithTitleBar)
...
In this way we know at the moment of the creation of the window if it
will need the close button.
Issue #280 .
https://github.com/aseprite/aseprite/pull/6
2013-11-23 17:47:57 -03:00
David Capello
dbf4d0d490
Replace JRect/jrect struct with gfx::Rect
...
- Replaced Widget::rc -> Widget::m_bounds private member.
- Added Widget::offsetWidgets() method.
- Removed View::displaceWidgets().
2013-10-26 12:50:55 -03:00
David Capello
5b252c30f5
Add support for Unicode file names on Windows
...
- Fixed issue #46 : open .png files with Unicode chars
- Fixed issue #150 : ability to uncompress program in folders w/Unicode chars
- Added base::utf8_iterator
- Added base::FileHandle
- Added base::get_app_path()
- Modified ui::KeyMessage::ascii() -> unicodeChar()
- Removed JI_NOTEXT flag
- Added app::XmlDocumentRef class and app::open_xml() function
- Added support for Unicode text exchange with Win32 clipboard
2013-10-14 19:58:11 -03:00
David Capello
cde54f3682
Change BSD license to MIT in sublibraries and fix headers
2013-08-08 21:01:20 -03:00
David Capello
c88f9b172b
Refactor: Move app files to src/app subdirectory inside app namespace
...
- Add HAVE_CONFIG_H wrapper to #include "config.h"
- Removed widgets namespace (it's in app now)
- Move some functions from src/file/file.h to src/base/cfile.h
- Move Vector2d to base library
- Rename MenuItem2 to AppMenuItem
2013-08-05 21:20:19 -03:00
David Capello
1614786408
Convert ui::Message union to a class hierarchy
...
+ Add ui::KeyScancode enum and ui::KeyModifiers flags.
+ Add ui::MouseButtons enum.
2013-07-28 21:17:07 -03:00
David Capello
e90f86727b
Remove jwidget_get_rect() and jwidget_get_child_rect() functions
...
+ Added Widget::getClientChildrenBounds()
+ Replaced all member functions in Theme::draw_x() to Theme::paintX()
+ Move code to draw tabs from Tabs::onProcessMessage() to Tabs::onPaint().
2013-05-20 20:40:18 -03:00
David Capello
01dfe4d52e
Replace kResizeMessage message with ResizeEvent and Widget::onResize()
...
- Remove jwidget_set_rect() function.
2013-05-11 17:56:27 -03:00
David Capello
3dbf6518f9
Replace all JM_ macros with ui::MessageType enum and add ui::RegisterMessage class to register new UI messages
2013-04-04 21:53:29 -03:00
David Capello
6e62bcb82f
Add ui::WidgetType enum to replace JI_WIDGET macros
2013-04-03 22:07:24 -03:00
David Capello
b45dcf7d0d
Use ui::ListItem in ui::ComboBox widget
2013-04-03 20:31:02 -03:00
David Capello
dcd8627406
Separate ui::ListBox::Item into ui::ListItem class
2013-04-02 21:34:30 -03:00
David Capello
c5a0acf7c6
Add ComboBox::onChange() member function
2013-03-29 16:16:24 -03:00
David Capello
9b8e87da10
Update copyright year to 2013
2013-01-27 12:13:13 -03:00
David Capello
c5cf588370
Rename some member_functions to memberFunctions
2013-01-11 12:43:25 -03:00
David Capello
0496f38ed3
Fix a typo in all files distributed under BSD-like and Allegro licenses
...
Thanks to Tobias Hansen.
2012-09-23 23:24:43 -03:00
David Capello
91bf74350e
Rename ui::Frame to ui::Window.
2012-07-08 23:24:42 -03:00
David Capello
55aca8567c
Move src/gui/ to src/ui/
2012-06-17 22:49:58 -03:00