aboutsummaryrefslogtreecommitdiff
path: root/gui/options.cpp
AgeCommit message (Collapse)Author
2010-10-25GUI/LAUNCHER: follow-up to r53771Florian Kagerer
The GM and MT-32 popup widgets would be set to the first available MIDI device by default (before any selection has taken place yet). Instead, default will now be the first list entry. svn-id: r53827
2010-10-24GUI/LAUNCHER: improved MIDI device selection (also #3088438)Florian Kagerer
This fixes an issue with the <default> setting in the GM and MT-32 device tabs that has caused some complaints and discussions on -devel. It might also be what bug #3088438 is about. With a <default> setting ScummVM would just use the first available MIDI device (even if this is the not really well working MT-32 emulator). This <default> setting was also indeed set by default - making it even more annoying. Now there is a new setting for both the GM and MT-32 device tabs ("Don't use GM/MT-32 music"). This will cause MIDI device detection to be skipped and the best of the other devices (Adlib etc.) to be used. This new setting is used as default. So users who haven't specified anything will get Adlib, PC Speaker etc. (if supported by the engine) even if the engine prefers Midi. There is a new "Use first available device" setting which will have the same effect as the "<default>" setting we had before. svn-id: r53771
2010-10-12JANITORAL: Clean trailing whitespaces.Jordi Vilalta Prat
svn-id: r53160
2010-10-12I18N: Forward-port r53063 (minor lowres fixes)Jordi Vilalta Prat
svn-id: r53159
2010-10-01GUI: Fix bug #3075649 (Fonts not found with built-in theme)Thierry Crozat
When switching to a theme that do not have the fonts needed to properly display the current language, it now revert to the previously used theme and display an error message telling the user to change the language first if he wants to use the theme he selected. svn-id: r52969
2010-10-01GUI: Error message for theme incompatible with current languageThierry Crozat
Add an error message when switching to a theme that does not support the current language (i.e. it does not have fonts for the charset used by that language). svn-id: r52965
2010-09-13I18N: Unified messages by removing whitespaces.Jordi Vilalta Prat
svn-id: r52700
2010-09-12i18n: Add lowres context in a few places.Thierry Crozat
I also changed the english text for the GUI Renderer items in 1x mode as the text was tool long and cut. svn-id: r52683
2010-09-11i18n: Add lowres context in a few placesThierry Crozat
Also update the Italian and French translations. svn-id: r52677
2010-08-30I18N: Add "lowres" context for several GUI strings when in 1x mode.Thierry Crozat
This enables translators to use a different translation for these strings in 1x mode (e.g. 320x200 or 320x240) and in 2x or 3x modes. svn-id: r52461
2010-08-23I18N: Do not translate 'English' in the language selection PopUpWidget.Thierry Crozat
svn-id: r52313
2010-08-23i18n: Add support for context in translations.Thierry Crozat
This change means there can now be different translations for the same english string depending on the context. It is based on gettext msgctxt feature. There is a new macro _c(msg, ctxt) that should be used instead of _(msg) in the source code when we want to add a context to the message. For the moment I have added contexts to only one message ("None") so that I could test the changes. Context could be added also to get shorter translations when GUI is in 1x mode. I have also added back the fuzzy option to msmerge since it is useful when adding contexts to populate the translations for the new contexts. svn-id: r52308
2010-08-11Use tabs instead of spaces for indentation.Eugene Sandulenko
svn-id: r51997
2010-08-11GUI: add music devices for c64, amiga and apple II gsFlorian Kagerer
These devices are not able to create appropriate drivers. The only purpose for now is having proper gui options and flags and music types for the device detector. The corresponding GUIO flags for the new devices have been added, too. svn-id: r51995
2010-08-10GUI: fix broken MT-32 tabFlorian Kagerer
svn-id: r51953
2010-07-31i18n: use user friendly language names in GUIThierry Crozat
The GUI now uses the content of the Language field from the po file header if it is present and not empty for the language selection PopupWidget. If not present it uses the file name as before (e.g. ru_RU). Also update all the translation template and all the translation files. svn-id: r51542
2010-07-26GUI: Fix regression from r51265.Johannes Schickel
This makes the GMM's option dialog work again. The fix itself is exactly the same like I made in r50468, which also broke the GMM's option dialog. svn-id: r51330
2010-07-24GUI: Fix bug #3027772 by adding MT-32 tabEugene Sandulenko
Bug #3027772: "Can't switch between Text and Speech". The problem was in overcrowded Audio tab in any resolution with height < 480. Solved by adding new MT-32 tab and grouping all relevant widgets there. TODO: - The problem still exists for 320x200 resolution where Subtitle speed control is not accessible - Apparently nobody tested tab control scrolling after switching to new GUI, and now there are artifacts svn-id: r51265
2010-07-21GUI: Properly show external MIDI devices.Johannes Schickel
Formerly in case a game only specified GUIO_MIDIMT32, only the MT-32 Emulator was shown, since that is the only device which is of type MT_MT32. All external MIDI devices are currently only flagged with MT_GM. svn-id: r51107
2010-07-21Strip trailing whitespaces in our common code base.Johannes Schickel
svn-id: r51094
2010-07-12Consistently use "MT-32" as short name of the Roland MT-32 in our GUI and ↵Johannes Schickel
credits files. svn-id: r50821
2010-07-09Replace _s(test ? "string1" : "string2") by test ? _("string1") : ↵Thierry Crozat
_("string2") in two places. With the old code the second string was not detected as being translatable. svn-id: r50763
2010-07-05GUI/AUDIO: minor fix for the case that after enabling individual audio ↵Florian Kagerer
options for a target the gui tries to select the audio device from global options, but that particular device is unavailable due to GUIO flags settings svn-id: r50684
2010-07-04Simplify audio device settings handling by using the device handle as tag ↵Johannes Schickel
instead of newly created id. svn-id: r50651
2010-07-04Whoops, always increase midiId, not only when it's added to the GM Device popup.Johannes Schickel
svn-id: r50650
2010-07-04Prevent the MT-32 Emulator from being displayed in the "GM Device" pop up.Johannes Schickel
svn-id: r50649
2010-07-04More cleanup / readability fixes.Johannes Schickel
svn-id: r50648
2010-07-04Cleanup.Johannes Schickel
svn-id: r50647
2010-07-04GUI/AUDIO: This change will make individual game audio settings take over ↵Florian Kagerer
the audio device from the global settings if no device config key is found for that game (This should fix the problem reported by LordHoto on devel. It might make sense to implement this behaviour to other settings, like subtitle mode etc.) svn-id: r50646
2010-06-28Fix regression from r50382, which triggered an assert when clicking "OK" in ↵Johannes Schickel
the GMM's options dialog. The problem here is that our ConfigDialog uses "" as domain name, this will result in the assert in common/config-manager.cpp:323 getting triggered, when using ConfMan.removeKey. Since setting the domain to the game's domain does not seem save according to the FIXME in gui/dialogs.cpp about this domain hackery, I decided to adapt the OptionsDialog to only call ConfMan.removeKey for "music_driver" etc., when the music driver widgets are present. This is consistent with the over uses of removeKey in OptionsDialog::close too. svn-id: r50468
2010-06-27GUI: and another fix for the music device popupFlorian Kagerer
svn-id: r50384
2010-06-27GUI: fix music device popup (thanks to clone2727 for reporting)Florian Kagerer
svn-id: r50382
2010-06-26GUI: Add and improve some messages to translateJordi Vilalta Prat
svn-id: r50324
2010-06-26GUI: If no language is explicitly selected and autodetection is available, ↵Jordi Vilalta Prat
select "<default>" (which is already in use) instead of English. svn-id: r50323
2010-06-25AUDIO: some fixes in the audio device code (no sound option, new GUIO flags)Florian Kagerer
svn-id: r50281
2010-06-21Patch #1956501: "GUI/LAUNCHER: Midi device selection"Max Horn
svn-id: r50128
2010-06-20Commit slightly modified version of patch #3018727: fix subtitle options ↵Thierry Crozat
(thanks fuzzie). svn-id: r50080
2010-06-15Use USE_TRANSLATION, USE_DETECTLANG and USE_TERMCONV instead of ↵Johannes Schickel
(ENABLE_)TRANSLATION, DETECTLANG and TERMCONV. svn-id: r49885
2010-06-15GUI: Fixed warningsEugene Sandulenko
svn-id: r49804
2010-06-15GUI: Fix crashEugene Sandulenko
svn-id: r49803
2010-06-15GUI: Implemented Languages as GUI options.Eugene Sandulenko
SCUMM and AdvancedDetector support this feature. svn-id: r49786
2010-06-15GUI: Disable AdLib controls if game does not support it.Eugene Sandulenko
svn-id: r49785
2010-06-15GUI: Implement MIDI drivers as GUI options.Eugene Sandulenko
Proper version of patch #2988641: "GSoC: Select drivers in GUI based on output types". So far only SCUMM engine supports this feature. svn-id: r49783
2010-06-15GUI: Added tooltips to more widgets.Eugene Sandulenko
svn-id: r49779
2010-06-15GUI: Added tons of tooltips.Eugene Sandulenko
svn-id: r49777
2010-06-15GUI: Implement tooltips. FR #2821513.Eugene Sandulenko
FR #2821513: "GUI: add tooltips". Added tooltips for Add Game button, clear field buttons and couple other. Current problem: Only first call correctly restores text. I could not find where restore information gets lost. svn-id: r49774
2010-06-15GUI: Implement radiobuttons.Eugene Sandulenko
Implement radiobuttons in GUI. Also closes FR #2821529: "GUI: volume and subtitles speed sliders". Subtitle toggle button is replaced by three radiobuttons grouped by a single group. Updated translations and themes. svn-id: r49767
2010-06-15GUI: Added in-place hotkeys for widgets.Eugene Sandulenko
Now it is possible to specify hotkeys in place for ButtonWidget and CheckboxWidget (the only widgets with hotkeys now). Use de-facto standard with putting hotkey between tildes (~). Like '~O~pen'. The tildes gets stripped before after hotkey is extracted. This is done for giving translators possibility to specify their own hotkeys. Old hotkeys defined at widget instance creation are left for leaving possibility to specify non-printable hotkeys such as Common::ASCII_ESCAPE. Translation files were updated respectively. svn-id: r49766
2010-06-15Implement translation support for ScummVM GUI.Eugene Sandulenko
Based on patch #2903830: "Updated Translation Prototype" by alexbevi which in turn is based on patch #1739965 by jvprat. Currently it builds all translations right into ScummVM. Once the feature will be accepted more widely, i.e. more translations will pop up, it will be trivial to move translation strings to external file. Finished translation: Russian Unfinished translation: Hungarian Things which are nice to do: - Language code -> language mapping for more user friendness - Specifying fonts to be used with language - Updating of interface language without restart. It will require moving of much code to reflowLayout() methods for each dialog The .po files must be in single byte encodings. I.e. no support for Unicode. svn-id: r49759
2010-04-06GUI: Remove 'typedef Common::String String' from (Global)OptionsDialogMax Horn
svn-id: r48565