Commit graph

91 commits

Author SHA1 Message Date
Henrik Rydgard
d2acef3a3b Add a bit of "overscroll" to the scrollview when keyboard-navigating. Add shadow support to TextView 2015-02-15 11:20:19 +01:00
Henrik Rydgard
c12d4242a8 Return a bool if you actually do something with a key event. 2015-02-03 00:10:38 +01:00
Henrik Rydgard
40848ae4b6 A few UI framework tweaks 2015-01-05 01:19:49 +01:00
Henrik Rydgard
33e00b5c2e UI: Get rid of "ImageFileView" which uses non-thin3d-compatible textures. 2014-12-31 11:23:50 +01:00
Henrik Rydgard
cedd5b2997 Add OnTextChanged event to TextEdit, minor other stuff 2014-11-16 16:44:07 +01:00
Unknown W. Brackets
ca16eb2857 Fix some type conversion warnings. 2014-08-30 02:05:21 -07:00
Henrik Rydgard
54b298a63e More Thin3D work (textures etc) 2014-08-22 20:54:26 +02:00
Henrik Rydgard
14141b5a9e Add some hackery to work around the problem of textedit losing focus on click 2014-07-23 21:40:12 +02:00
Henrik Rydgard
9f4f49be66 TextEdit: Add single undo, paste over the contents 2014-07-22 22:16:09 +02:00
Henrik Rydgard
78941b0871 TextEdit: Clip to rect, scroll if caret outside rect 2014-07-22 10:20:51 +02:00
Henrik Rydgard
9d8d64b321 TextEdit: Ctrl-C to copy the contents of the textbox. 2014-07-21 17:35:51 +02:00
Henrik Rydgard
6f6f6eb1fb TextEdit: Add utf-8 support, enable paste from clipboard 2014-07-21 11:59:05 +02:00
Henrik Rydgard
dcd27e134d Add flag to identify events from mouses. 2014-07-20 22:24:54 +02:00
Unknown W. Brackets
a7bb45a30b Fix a few minor warnings on Android.
Seems st_mtime is not a time_t there, just unsigned long.
2014-07-20 08:47:37 -07:00
Henrik Rydgard
31f7ad574a Add focus management to textedit. Close popups (with OnOK) on Enter. 2014-07-18 12:22:33 +02:00
Henrik Rydgard
76cb31cdd5 nativeui: Add basic TextEdit control, and popupchoice 2014-07-18 11:03:18 +02:00
Henrik Rydgard
8685d02e6d When disabling keyboard focus, send a lost focus message 2014-06-22 17:46:38 +02:00
The Dax
fbdf659723 Add the ability for Sliders and their corresponding Screens to have the ability to move in steps greater than 1.
No float support, only the integer screens are affected.
2014-05-05 23:47:22 -04:00
Henrik Rydgård
c65734c33a Move a return statement to the correct position. 2014-03-03 16:10:14 +01:00
Henrik Rydgård
af35f06390 More focus behaviour tweaking. 2014-03-03 12:33:57 +01:00
Henrik Rydgård
27bb0b01d3 Fix some focus issues, allow to set a DefaultFocusView on ViewGroups. 2014-03-03 11:39:06 +01:00
Henrik Rydgard
f73890f0b2 UIContext now keeps track of dimensions, allowing us to reduce use of display.h 2014-02-10 12:36:26 +01:00
Unknown W. Brackets
1c87fb7485 Allow customizing the tab left/right keys. 2014-01-25 11:58:49 -08:00
Henrik Rydgård
93155b8a1e Warning fixes 2014-01-14 11:01:45 +01:00
Henrik Rydgard
d680a346dc UI tweaks (image support on buttons, listview height max)
Should probably merge Choice and Button...
2013-12-11 09:32:14 +01:00
Henrik Rydgård
d7c90499c4 Item views should not override height when a different layout is specified. Fix some fallout from that change. 2013-12-06 16:44:39 +01:00
Henrik Rydgård
48debd78f8 Map backspace correctly in SDL. Minor cosmetic slider fixes 2013-12-05 15:52:39 +01:00
Henrik Rydgård
cbd4a6d758 Add support for loading JPEG files into textures automatically. 2013-12-02 16:50:23 +01:00
Henrik Rydgard
d2e70ce06f Minor UI tweaks 2013-11-26 13:57:25 +01:00
Henrik Rydgård
c4807fbfb8 Add basic support for showing an icon within choices 2013-10-31 13:33:53 +01:00
Henrik Rydgård
b2bc4ffa8e Add "auto-enabled" to ui views (set a pointer to a bool that decides whether the view is enabled or not) 2013-10-29 10:11:41 +01:00
Siddharth
4ebb62aa98 allow checkboxes to be force-toggled 2013-10-27 10:58:16 +05:30
Henrik Rydgård
fff83ed237 Fix bug causing clickables not to highlight on mousedown in SDL builds 2013-10-21 11:00:09 +02:00
Unknown W. Brackets
31690a3910 Fix some type comparison warnings. 2013-10-19 14:56:06 -07:00
Henrik Rydgard
eed7159a06 Improve event processing semantics a little. Add a safety check I'm not sure is needed. 2013-10-13 20:33:42 +02:00
Henrik Rydgard
788d512515 UI: Fix dispatching of events to multiple listeners. 2013-10-13 19:07:10 +02:00
Siddharth
0d0177dfc1 moved Highlight into Choice. corrected code style. 2013-10-08 18:04:56 +05:30
Siddharth
c747582b4c removed testing code from onFocusChanged 2013-10-07 23:16:28 +05:30
Siddharth
5d198025a5 enable items to be highlighted. Will be used to highlight save slots in use 2013-10-07 21:45:25 +05:30
Henrik Rydgard
9282fa59ca Allow centering text on choices 2013-08-30 22:42:02 +02:00
Henrik Rydgard
0931f784b6 Win32: Add a sentence-caching text drawing engine using Win32 fonts. 2013-08-30 14:44:23 +02:00
Henrik Rydgard
2bf829cdc1 Android buildfix 2013-08-23 00:53:52 +02:00
The Dax
a8b45a68b9 Remove hard-coded accept and cancel buttons. 2013-08-22 06:45:45 -04:00
Henrik Rydgard
17b4ac55c5 Temporarily (for 0.9.1) revert "Merge pull request #111 from thedax/master"
Will put it back after 0.9.1, and then later this will be mappable anyway.

This reverts commit 81da5fa32a, reversing
changes made to a242bcdd3a.
2013-08-21 19:00:40 +02:00
The Dax
ceb7f6dea6 Allow right mouse button to act as a cancel button. 2013-08-21 06:00:11 -04:00
Henrik Rydgard
d45ea84599 Revert "Merge pull request #110 from thedax/master"
This reverts commit d2bdffcc54, reversing
changes made to 8f0d82ffb7.
2013-08-20 15:04:42 +02:00
The Dax
2a02b53894 Native: Remove hard-coded accept and escape keys. 2013-08-20 08:37:39 -04:00
Henrik Rydgard
8f0d82ffb7 Click outside popups to dismiss them. Fix focus display of active tabs. 2013-08-20 13:03:42 +02:00
Henrik Rydgard
40193a7d12 Show numbers on sliders 2013-08-20 12:49:08 +02:00
Henrik Rydgard
3e65b41753 Basic inertia scrolling 2013-08-20 11:35:54 +02:00