Commit Graph

453 Commits

Author SHA1 Message Date
David Capello
47f3d540b7 Fix drawing UI text with TrueType fonts (related to #124) 2017-02-06 17:58:55 -03:00
David Capello
79f82cfbee Merge branch 'beta' into master
The next official release will be v1.2.
2017-01-30 16:02:21 -03:00
David Capello
d9ae6812d5 Update ui lib copyright 2017-01-09 12:50:28 -03:00
David Capello
8fa5d2dff1 Remove the "new_windows" var from ui::Manager impl
Fix regression bug introduced in
66e9cee3e6 where new opened windows
weren't painted.
2017-01-09 12:45:03 -03:00
David Capello
042b427f49 Merge branch 'master' into beta 2017-01-06 18:02:24 -03:00
David Capello
66e9cee3e6 Fix crash on UI tests
Generating paint messages without a she::System available.
2017-01-06 16:55:21 -03:00
David Capello
4ac63503c0 Minor change in ui/accelerator.cpp 2017-01-06 14:19:06 -03:00
David Capello
eb0f046dc7 Fix general UI delay/flickers redrawing elements
This is an old bug that makes the UI looks as "partially painted." We
have to process all logic messages first, and then generate paint
messages so we paint the latest UI state (instead of a intermediate
UI state).
2017-01-02 15:38:20 -03:00
David Capello
3d43b96517 Merge branch 'master' into beta 2016-12-29 11:24:20 -03:00
David Capello
ea71455f81 Fix ZoomEntry slider range
After f8874f4f7b, we fixed the zoom text
entry but we broke the zoom slider. We weren't able to select zoom
factors with the slider correctly (as the scale from 0 to 6400 was too
big). Now we revert the change and make the maximum text length in entry
bigger so the user can enter zoom levels like 6400 in the text entry and
use the zoom slider.
2016-12-29 10:22:39 -03:00
David Capello
0014673e41 Merge branch 'master' into beta 2016-12-22 10:46:37 -03:00
David Capello
809a90ba3b Fix crash using focus-movement keys in strange UI state
There were some crash reports in these days on the focus movement
code. It looks like we could arrive into an invalid/strange UI state
double-clicking palette buttons and showing menus two consecutive
times. After that, pressing Tab key would crash the focus-movement
logic.
2016-12-20 16:59:07 -03:00
David Capello
f8874f4f7b Fix zoom entry so we can insert numbers with 4 digits 2016-12-16 14:53:26 -03:00
David Capello
dc19c4b589 Merge branch 'master' into beta 2016-12-07 12:14:28 -03:00
David Capello
315584d819 Close toolbar popup when the document is closed 2016-12-07 11:12:19 -03:00
David Capello
fec4e27d8e Fix widget border in drawTextBox() 2016-12-06 21:29:14 -03:00
David Capello
c1e428544e Add minimal .md browser to show README/LICENSES files
Now we can see markdown files inside Aseprite. This is an initial
support (text only, separators, links only on headers and to external
URLs).

- Added a new docs/LICENSES.md file
- Removed old .txt licenses
2016-12-06 16:03:51 -03:00
David Capello
396f5fb78f Merge branch 'master' into beta 2016-12-02 19:13:08 -03:00
David Capello
42b8d04e46 Fix crash clicking on a non-ListItem widget inside a multiselect ListBox 2016-12-02 18:41:09 -03:00
David Capello
a46a087c51 Handle arrow keys/delete/backspace/etc. correctly on IntEntry (fix #1339) 2016-12-02 16:47:05 -03:00
David Capello
812e75f613 Replace "pin" icon with the regular "close" button
I was contacted several times by people that cannot close these pinned
popups window. The best solution is to do the same that a regular
window: show the close button.
2016-12-01 15:15:16 -03:00
David Capello
f57c298ad6 Merge branch 'master' into beta 2016-11-29 12:15:25 -03:00
David Capello
acdd9c3fed Don't add dead chars if the entry field is full 2016-11-29 11:08:29 -03:00
David Capello
60d89b10ed Fix crash introduced in 701170d85e 2016-11-24 19:59:34 -03:00
David Capello
74248cf33c Cmd+mnemonic on macOS now can press a button 2016-11-24 19:26:52 -03:00
David Capello
701170d85e Fix alt+mnemonic on macOS 2016-11-24 19:26:21 -03:00
David Capello
0d169fed75 Improve ui::drawTextBox() performance 2016-11-22 13:33:01 -03:00
David Capello
0ed0ad287c Fix TextBox drawing when we scroll it 2016-11-22 12:47:46 -03:00
David Capello
5828df1383 Add smooth scroll to ui::TextBox 2016-11-22 12:46:42 -03:00
David Capello
d5d71257fe Remove comment from TextBox::onSizeHint() 2016-11-22 12:46:23 -03:00
David Capello
461d311dff Fix several buffer overflows using base::string_printf() 2016-11-22 11:54:15 -03:00
David Capello
096b26fea6 Fix Space keyboard modifier to scroll the Editor 2016-11-22 10:51:03 -03:00
David Capello
a67589aa05 Fix Ctrl+A/C/V/X on RGB/HSV text fields 2016-11-22 10:34:00 -03:00
David Capello
b6076e6732 Fix "magnet enter" when we are in a ui::Entry
Pressing Enter on a ui::Entry will press "OK" buttons.
2016-11-21 12:28:42 -03:00
David Capello
d444f5b78e Minor change in Manager::processFocusMovementMessage 2016-11-21 10:37:54 -03:00
David Capello
3f1f07807b Add support to cycle RGB/HSV text fields with tab key (fix #1019)
Added a new flag in messages to know if they came from a filter or from
the original chain of recipients. To do this, we've added a new way to
process message filters: instead of pre-adding filters to the list of
message recipients, we process filters in the Manager::pumpQueue()
member function itself. (So the list of "recipients" is not modified.)
2016-11-19 00:57:58 -03:00
David Capello
f054aaa2cc Minor changes in ui::Slider 2016-11-19 00:23:54 -03:00
David Capello
d8bc90696e Rename Manager::isFocusMovementKey -> isFocusMovementMessage 2016-11-18 14:26:00 -03:00
David Capello
0703bf159c Add ui::Manager::processFocusMovementMessage() function 2016-11-18 14:22:14 -03:00
David Capello
6746049e60 Fix 1...6 keys to go to a specific frame on Windows
These keys where captured by the zoom command (gui Manager) first.
This regression was introduced in 00099390da
2016-11-18 13:47:02 -03:00
David Capello
02b9a953ef Avoid creating a System instance in she::instance()
This is necessary for tests that don't need a System but call the
instance() function anyway.
2016-11-18 12:13:10 -03:00
David Capello
5dc8f9c8a0 Move keyboard functions to she::System 2016-11-18 11:15:02 -03:00
David Capello
00099390da Fix several keyboard issues deadling with special characters/dead keys
This change adds support to write text with dead keys, and assign
keyboard shortcuts to special key combinations with Unicode characters
on macOS and Windows.

Fix #1083, close #796
2016-11-17 18:07:00 -03:00
David Capello
1b736aef85 Improve UX when opening file sequences
* Now we can select the specific files that are part of the sequence
* New checkbox do the same for all dropped files (fix #1284)
2016-11-15 18:11:47 -03:00
David Capello
7f17400178 Minor changes in ui::Alert to simplify its code 2016-11-15 18:06:27 -03:00
David Capello
64af97131d Support smooth scroll in ListBox 2016-11-15 17:31:56 -03:00
David Capello
2216db2d2c Send mouse events when a new window is displayed (fix #1221)
In this way if a new widget is displayed it will get the mouse-enter and
set-cursor messages correctly.
2016-11-14 17:23:09 -03:00
David Capello
88455ebc4b Fix compilation warnings when REPORT_EVENTS is defined 2016-11-14 17:21:37 -03:00
David Capello
4c2a283bd7 Double-click on a preset palette loads it 2016-11-14 15:55:21 -03:00
David Capello
b95326435c Remove an always-true if statement 2016-11-14 15:53:36 -03:00