Commit Graph

5360 Commits

Author SHA1 Message Date
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
43a225afe0 Avoid focus on a hidden widget in RGB/HSB text fields 2016-11-22 12:08:55 -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
aee2b87dd6 Add kKeyMenu in win32vk_to_scancode() 2016-11-22 10:34:55 -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
b2a25954d4 Add smooth scroll w/macOS trackpad to more widgets 2016-11-22 09:25:23 -03:00
David Capello
f985e6c6c0 Some improvements to the color selection UI (#1019)
* Tab and Shift+Tab keys cycle through RGB/HSB text fields
* Sliders don't get the keyboard focus (only text fields)
* Up/Down keys increase/decrease the text field value
2016-11-21 18:03:06 -03:00
David Capello
54da860a00 Minor change in CustomizedGuiManager::onProcessMessage() 2016-11-21 17:59:09 -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
128ba90394 Add ENABLE_SCRIPTING flag 2016-11-21 10:25:27 -03:00
David Capello
0b07602573 Avoid reaching our CustomizedGuiManager when Tab is pressed (fix #1019) 2016-11-19 01:14:40 -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
31de049a68 Add missing #include to use ASSERT() 2016-11-18 12:26:43 -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
d8d9f8072c Fix compiling tests with dynamic libc on MSVC 2016-11-18 10:27:43 -03:00
David Capello
08bb51e358 Merge all she::instance() implementations
Only she::create_system() must be provided by the platform impl.
2016-11-18 09:40:35 -03:00
David Capello
2f987ac3c3 Minor: sort filenames in pixman CMakeLists.txt file 2016-11-18 09:21:46 -03:00
David Capello
f43ef44d74 Change shadow colors in ase/doc icons 2016-11-17 18:42:31 -03:00
David Capello
9ef1393184 Add missing she/win/vk.h file 2016-11-17 18:24:28 -03:00
David Capello
e5769d1666 Remove dead code that was replaced with VkToUnicode 2016-11-17 18:21:33 -03:00
David Capello
bc3e4ba3db Fix memory leaks in KeyboardShortcutsWindow 2016-11-17 18:18:50 -03:00
David Capello
b244700e4b Remove invalid forward declaration of __argc/__wargv on MSVC15 2016-11-17 18:11:32 -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
b537b5261a Fix some characters in font.png 2016-11-17 14:29:42 -03:00
David Capello
4d897e1824 Fix memory leaks on KeyboardShortcutsCommand 2016-11-17 09:56:44 -03:00
David Capello
4f279b3cc3 Complete font.png Latin-1 Supplement Unicode block 2016-11-17 09:04:10 -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
1e5ae5e9cb Add missing cmd_open_file.h file in last commit 2016-11-14 20:00:44 -03:00
David Capello
2240742816 Avoid processing the same file two times when it's used to load a sequence
E.g. If we drop three files (1.png, 2.png, and 3.png), and we load 1.png
as a sequence, we don't want to ask for the third file.
2016-11-14 19:44:29 -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
617b909e1e Fix bug closing the app when it's saving (fix #1326) 2016-11-14 17:01:41 -03:00
David Capello
c1e3054e3f Minor changes in preferences dialog labels 2016-11-14 16:13:00 -03:00
David Capello
268cfa3a46 Add support for pinch gesture on palette view 2016-11-14 16:12:11 -03:00
David Capello
a19a834c4d Enter key selects the preset palette
Also the listbox doesn't lost the focus, so we can continue navigating
preset palettes.
2016-11-14 16:04:29 -03:00
David Capello
9b1f0bf33c Add a checkbox tick to the selected preset palette (fix #1327) 2016-11-14 15:56:28 -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
David Capello
a5e860c556 Add Alt+L and Alt+F shortcuts in palette popup 2016-11-14 15:52:51 -03:00