Cameron Cawley
da978f3a2f
WIN32: Simplify string conversion
2020-09-12 11:59:23 +02:00
aryanrawlani28
984e7fae99
BACKENDS: DIALOGS: Remove redundant code for GTK Dialogs.
...
- Dialogs take in const gchar *, so no need to convert to char* and then pass it along.
2020-08-30 14:43:41 +02:00
aryanrawlani28
d4a280ef29
BACKENDS: DIALOGS: GTK: Fix incorrect memory usage & replace unsafe code.
...
- Encoding::convert which was previously used needed to be freed by the caller.
- With the direct conversion to utf8 by .encode(), this doesn't need to happen anymore
2020-08-30 14:43:41 +02:00
aryanrawlani28
f9b05f5e5a
BACKENDS: DIALOGS: MACOS: Improve readability and remove redundant code.
2020-08-30 14:43:41 +02:00
aryanrawlani28
f95762881e
GUI: U32: Use unicode strings for native Windows dialogs
...
These make use of newly added win-wrapper UTF8ToUnicode.
2020-08-30 14:43:41 +02:00
aryanrawlani28
9bf3f73d8a
GUI: U32: Use U32Strings for native dialogs
...
- Make DialogManager showFileBrowser take in u32
- Show filebrowser with u32 in MacOS and GTK
2020-08-30 14:43:41 +02:00
aryanrawlani28
e91f968992
GUI: U32: encode and use c strings for translations in macos dialogs
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
Cameron Cawley
30f2c2f3cd
WIN32: Use malloc instead of new in string conversion functions
2020-08-21 00:02:13 +02:00
Cameron Cawley
539ae3cda7
GTK: Support building with older versions of GTK
2020-06-24 21:05:43 +01:00
SupSuper
897efb1454
POSIX: Add support for native GTK file browserOnly enabled on platforms with libgtk
2020-03-22 20:46:42 +02:00
SupSuper
a4d44e3de9
BACKENDS: Move shared DialogManager code to common
...
All backends need to flush events and window when opening a dialog
2020-03-22 20:46:42 +02:00
Cameron Cawley
e4b78f4f62
WIN32: Ensure the translated dialog strings are using the correct encoding
2019-04-04 01:06:30 +03:00
SupSuper
d0512db25c
WIN32: Move all ARRAYSIZE undefs to util.h
...
Instead of trying to undefine ARRAYSIZE everywhere we use a Windows header, let's just do it before we define our own
2018-12-17 12:28:33 +02:00
SupSuper
9aef3dd8a7
WIN32: Respect browser_lastpath setting
2018-12-16 10:48:13 +00:00
SupSuper
93695a9dcf
WIN32: Fix dialog compilation under MinGW
2018-12-16 10:48:13 +00:00
SupSuper
61070f6ce0
WIN32: Add DialogManager with system file browser support
2018-12-16 10:48:13 +00:00
SupSuper
28e4d7bb43
OSX: Integrate system file browser into DialogManager
2018-12-16 10:48:13 +00:00
SupSuper
5fce1ae464
BACKENDS: Move OSX file browser into backend
2018-12-16 10:48:13 +00:00