Commit Graph
266 Commits
Author SHA1 Message Date
Unknown W. Brackets deed84f997 Reassert the add equation in UIContext.
Otherwise it might use subtract or some other equation.

Fixes another case of hrydgard/ppsspp#6678.
2014-08-03 21:38:29 -07: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 d826c7f181 Have PopupMultiChoice update their strings every frame 2014-07-22 09:54:55 +02:00
Henrik Rydgard 4195da289c ChoiceWithValueDisplay: Allow translation of the value 2014-07-21 18:42:25 +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
Unknown W. Brackets ed04a0bf28 Only trigger a popup's default button if it has one. 2014-07-19 22:57:09 -07:00
The Dax 085faa87cc Add a new Choice subclass which lets the UI display a value in addition to the title, similar to other controls. 2014-07-18 18:45:26 -04: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
Sacha d1cccf2c26 Fix some compiler warnings. 2014-07-17 00:48:47 +10:00
Unknown W. Brackets 22f41720b3 Allow using a disabled pointer on a view.
Sometimes this is more convenient.  Like with PPSSPP's config settings.
2014-07-08 23:37:51 -07:00
Henrik Rydgard 8685d02e6d When disabling keyboard focus, send a lost focus message 2014-06-22 17:46:38 +02:00
Henrik Rydgard a3e23f0ac6 Propagate input even return values in more places. Handle repeats better. 2014-06-15 13:04:10 +02:00
Henrik Rydgard e7001eb701 Some input tweaks and UI utility functions 2014-05-19 23:28:11 +02:00
The Dax 104486d314 Just to be safe, initialise the Slider's step_ too. 2014-05-06 15:05:47 -04:00
The Dax e2e352622a Oops, make sure step_ is initialised, even with the constructor that doesn't specify a step. 2014-05-06 14:54:19 -04:00
The Dax b1261c5b55 Use integers instead. 2014-05-06 00:55:37 -04:00
The Dax 45f475675d Make sure the Slider can't step in increments of less than 1. 2014-05-05 23:52:10 -04: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 Rydgard 7c2ff2557d UI: Improve scoring function for directional keyboard nav 2014-03-19 16:15:33 +01:00
Henrik Rydgård d2029ed29a Minor tweak to drag behaviour of scrollviews 2014-03-10 23:13:26 +01:00
Henrik Rydgård c65734c33a Move a return statement to the correct position. 2014-03-03 16:10:14 +01:00
Henrik Rydgård 3d906a1471 Focus the contents of popup screens 2014-03-03 12:55:29 +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
Henrik Rydgård 4818a85042 Add drag capturing (useful to resolve conflicts between scrollviews and draggable controls within)
Some misc cleanup
2014-01-31 14:32:06 +01:00
Henrik Rydgård b0e318f6d1 Merge pull request #192 from unknownbrackets/keymap
Allow customizing the tab left/right keys
2014-01-25 12:01:32 -08:00
Unknown W. Brackets 1c87fb7485 Allow customizing the tab left/right keys. 2014-01-25 11:58:49 -08:00
Henrik Rydgård 52fac5d294 Remove unused code 2014-01-22 17:32:15 +01:00
Henrik Rydgård fc3bad8059 viewgroup.h: Include fix 2014-01-22 16:29:59 +01:00
Henrik Rydgård 93155b8a1e Warning fixes 2014-01-14 11:01:45 +01:00
Henrik Rydgård 432fa7e6e6 Workaround for broken key repeat on Ouya - it sends repeats with a different device ID 2014-01-05 12:49:40 +01:00
Henrik Rydgård ee34dcbfa6 Fix bug in key repeat handling, and ignore the host key repeat system.
May fix navigation issues on Ouya.
2014-01-03 14:21:24 +01:00
Henrik Rydgård 1ef531ec9c Add some infrastructure to handle screen resizes that don't lose the device 2013-12-16 16:19:40 +01:00
Henrik Rydgard b0ab77d4c2 Fix the disabled look of some views 2013-12-11 20:01:00 +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 af08e8f1de Limit progress bars to [0-1]. 2013-12-06 15:28:52 +01:00
Henrik Rydgård 59202a0dfc Add +/- buttons to integer sliders for fine adjustment 2013-12-06 15:01:34 +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 4caec3871c Add OnOK, OnCancel helpers to UIScreen 2013-12-05 14:15:39 +01:00
Henrik Rydgård 5a5911eac4 Remove unnecessary logging 2013-12-03 17:49:58 +01:00
Henrik Rydgård 1b793049d3 Key repeat simulation for UI navigation 2013-12-03 16:47:15 +01:00
Henrik Rydgård cbd4a6d758 Add support for loading JPEG files into textures automatically. 2013-12-02 16:50:23 +01:00