aryanrawlani28
96912f4adb
GUI: U32: Rename some references of strings to use U32() & not helper method
2020-08-30 14:43:41 +02:00
aryanrawlani28
f800ca4ada
GUI: U32: Convert majority of code to use U32
...
This commit also includes some additional major changes.
- Return U32String from TransMan getTranslation()
- Change tooltips to be U32Strings
- Remove temporary code of convertToU32String
- U32 Support various dialogs (Browser, FileBrowser, Messages, Chooser, etc)
- U32 for music plugins
- U32 for OSD messages
- Add some helper functions to ustr.cpp
- Change default tooltips from nullptr & 0 -> ""
- Some runtime exceptions may occur when changing languages due to incorrect String::Format
2020-08-30 14:43:41 +02:00
aryanrawlani28
5f2af6b93e
GUI: U32: Add u32 support to Editables and Dialogs
...
- Editable widgets
- Lists
- SaveLoad Dialogs
- Browser Dialogs
2020-08-30 14:43:41 +02:00
aryanrawlani28
aafade4507
GUI: U32: Shift most widgets to draw with u32
...
- ButtonWidgets (Button, Radio, Checkbox, dropdown)
- StaticTextWidgets
- PopUpWidgets
- Tabs
- Add a temporary overloaded drawDDText function to make other widgets draw normally
2020-08-30 14:43:41 +02:00
aryanrawlani28
2a239efa80
GUI: Always mark editable as dirty when press home or end
...
- Before, the implementation used to fetch this value based on setCaretPos.
- That would return true only if string needed scrolling.
- Thus, the small issue arised that 2 chars would be wobbled together. This commit fixes that.
2020-07-25 00:32:34 +02:00
D G Turner
fe30434a2e
GUI: Fix Signed vs. Unsigned Compiler Warning in Tab Widget
2020-06-23 21:41:54 +01:00
aryanrawlani28
e3db189f0b
GUI: RTL: Fix small issues
...
- Remove unused variable in tab.cpp
- Remove wrong check for alignment in popups. For rtl, set align to right.
2020-06-22 00:03:02 +02:00
aryanrawlani28
1ae2de366b
GUI: RTL: Improve tab drawing for rtl
2020-06-22 00:03:02 +02:00
aryanrawlani28
5a093e4e95
GUI: RTL: Improve right align text drawing
...
- Fix last chars being eaten
- Add support for input in right-align mode editables
- Fix issue with dirtyness of editables after clicking
- Improve spacing for lists and popup
- Make numbers reversed in lists
2020-06-22 00:03:02 +02:00
aryanrawlani28
9cd2ef1271
GUI: RTL: Cleanup tab drawing to make it simpler
2020-06-22 00:03:02 +02:00
aryanrawlani28
12a4af77bd
GUI: Code cleanup
2020-06-22 00:03:02 +02:00
aryanrawlani28
6211747fd3
GUI: RTL: Fix missing backgrounds for tabs in hebrew when navbars present
2020-06-22 00:03:02 +02:00
aryanrawlani28
19aa7baba7
GUI: RTL: Wrapping a variable used for rtl
2020-06-22 00:03:02 +02:00
aryanrawlani28
48eb0d095c
GUI: RTL: Remove hardcoded padding for RTL tabs layout
2020-06-22 00:03:02 +02:00
aryanrawlani28
6ecc90edf6
GUI: RTL: Implement RTL for lists and numbers
2020-06-22 00:03:02 +02:00
aryanrawlani28
17193319b9
GUI: RTL: Fix alignment for DropDownButtonWidget
2020-06-22 00:03:02 +02:00
aryanrawlani28
c2708e350f
GUI: RTL: Change alignment of editable to right in RTL
2020-06-22 00:03:02 +02:00
aryanrawlani28
5c334d56ad
GUI: RTL: Fix tabs for smallres and when removed
2020-06-22 00:03:02 +02:00
aryanrawlani28
5d040e804f
GUI: RTL: Correctly draw popups with text and fix mouse events
2020-06-22 00:03:02 +02:00
aryanrawlani28
b8a9331138
GUI: RTL: Shift to a better way of positioning when dialogs are stacked
2020-06-22 00:03:02 +02:00
aryanrawlani28
312862b541
GUI: RTL: Correctly draw backgrounds of Tabs
2020-06-22 00:03:02 +02:00
aryanrawlani28
c83e57fc69
GUI: JANITORIAL: Code cleanup, add comments
2020-06-22 00:03:02 +02:00
aryanrawlani28
aa802df7aa
GUI: RTL: Fix lists being overdrawn when tooltip focused
2020-06-22 00:03:02 +02:00
aryanrawlani28
cef4f20eec
GUI: RTL: Support navigating in options dialog
...
GUI: RTL: Perfect drawing of tabs
2020-06-22 00:03:02 +02:00
aryanrawlani28
58704be218
GUI: RTL: Correctly draw tabs, consistent among screen sizes and different themes
...
GUI: RTL: Correctly draw theme-browser
2020-06-22 00:03:02 +02:00
aryanrawlani28
50aa421bf3
GUI: RTL: Fix display issues with some widgets
...
- Fix missing DD for disabled dropdownbutton
- Fix scrollbar drawing issue
- Fix eating last chars in popup
- Fix tooltip alignment
2020-06-22 00:03:02 +02:00
aryanrawlani28
7e27af8148
GUI: Code cleanup
2020-06-22 00:03:02 +02:00
aryanrawlani28
f3e4e3e009
GUI: Code & comment cleanup, fix review issues
2020-06-22 00:03:02 +02:00
aryanrawlani28
f55654f1bc
GUI: RTL: Popup RTL Layout and Correctly draw them
...
GUI: RTL: Correctly draw popups
2020-06-22 00:03:02 +02:00
aryanrawlani28
d968665110
GUI: Code cleanup and small issue fixes
2020-06-22 00:03:02 +02:00
aryanrawlani28
c7469a1145
GUI: RTL: Base support for tab widgets
2020-06-22 00:03:02 +02:00
aryanrawlani28
d6a340d3b4
GUI: Cleanup hacky function for internal flip and fix review issues
2020-06-22 00:03:02 +02:00
aryanrawlani28
5e39545653
GUI: RTL: Fix tooltips and scrollbars for overlay dialogs
2020-06-22 00:03:02 +02:00
aryanrawlani28
f09d15d610
GUI: RTL: Perfect drawing of popups and right align text
2020-06-22 00:03:02 +02:00
aryanrawlani28
28c70dd196
GUI: RTL: Correctly draw for stacked dialogs
2020-06-22 00:03:02 +02:00
aryanrawlani28
732e79b1cf
GUI: RTL: Add disabled code for tab drawing
2020-06-22 00:03:02 +02:00
aryanrawlani28
0420dc4f6d
GUI: Fix review issues, code cleanup
2020-06-22 00:03:02 +02:00
aryanrawlani28
e4352391c2
GUI: RTL: Fix popup open location
2020-06-22 00:03:02 +02:00
aryanrawlani28
f8ee449227
GUI: RTL: Right align main list text
2020-06-22 00:03:02 +02:00
aryanrawlani28
1bd2701597
GUI: RTL: Fix caret position
2020-06-22 00:03:02 +02:00
Cameron Cawley
cc5abf5ebb
TTS: Fix crash when TextToSpeechManager is unavailable, clean up formatting
2020-05-27 12:43:49 +02:00
Eugene Sandulenko
ac82bb8823
GUI: Sync constructors
2020-04-28 10:04:09 +02:00
Eugene Sandulenko
86712a3680
GUI: Initialize class variables in ListWidget
2020-04-27 14:46:58 +02:00
Eugene Sandulenko
9bea9fd5cf
GUI: Sort games by dictionary, ignoring English articles
2020-04-24 10:54:00 +02:00
Eugene Sandulenko
86ac3aeafc
GUI: Disable tab scroll buttons instead of making them invisible
2020-03-27 22:28:17 +01:00
aryanrawlani28
bd688cfbc1
GUI: properly display scrollbuttons at edge
2020-03-27 22:21:40 +01:00
Bastien Bouclet
6e1abf064a
GUI: Use nullptr instead of 0 or NULL where appropriate
2020-01-19 15:08:37 +01:00
Bastien Bouclet
c566d02992
GUI: Add override markers where appropriate
2020-01-19 15:08:37 +01:00
Bastien Bouclet
eb28c5a092
GUI: Use a dialog theme layout for the unknown game dialog
2020-01-04 10:56:25 +01:00
Bastien Bouclet
c0d8b6d9fc
GUI: Introduce dynamic layouts
...
Prior to this change, a GUI layout was only affected by the screen size.
Now, a layout can additionally be influenced by the GUI dialog and widgets
that uses it. This capability is leveraged to implement the following
features:
* Layout elements that are not bound to a GUI widget do not take space.
This means that dialogs where the widgets shown depend on for example
a feature being enabled at configure time no longer have blank spaces.
* Widgets can define a minimal required size for their contents not to be
cut. For now this is only used for buttons so their width is always
sufficient for their caption not to be cut. This mechanism could be
applied to other widget types in the future.
2020-01-04 10:56:25 +01:00