mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-25 13:42:37 +00:00
GUI: Added stub for Update frequency check widgets.
This commit is contained in:
parent
244e143e61
commit
12b0313d92
@ -36,6 +36,7 @@
|
||||
#include "common/system.h"
|
||||
#include "common/textconsole.h"
|
||||
#include "common/translation.h"
|
||||
#include "common/updates.h"
|
||||
|
||||
#include "audio/mididrv.h"
|
||||
#include "audio/musicplugin.h"
|
||||
@ -1229,6 +1230,16 @@ GlobalOptionsDialog::GlobalOptionsDialog()
|
||||
|
||||
#endif // USE_TRANSLATION
|
||||
|
||||
#ifdef USE_UPDATES
|
||||
_updatesPopUpDesc = new StaticTextWidget(tab, "GlobalOptions_Misc.UpdatesPopupDesc", _("Update check:"), _("How often to check ScummVM updates"));
|
||||
_updatesPopUp = new PopUpWidget(tab, "GlobalOptions_Misc.UpdatesPopup");
|
||||
|
||||
_updatesPopUp->appendEntry(_("Never"), Common::UpdateManager::kUpdateIntervalNotSupported);
|
||||
_updatesPopUp->appendEntry(_("Daily"), Common::UpdateManager::kUpdateIntervalOneDay);
|
||||
_updatesPopUp->appendEntry(_("Weekly"), Common::UpdateManager::kUpdateIntervalOneWeek);
|
||||
_updatesPopUp->appendEntry(_("Monthly"), Common::UpdateManager::kUpdateIntervalOneMonth);
|
||||
#endif
|
||||
|
||||
// Activate the first tab
|
||||
tab->setActiveTab(0);
|
||||
_tabWidget = tab;
|
||||
|
@ -236,6 +236,11 @@ protected:
|
||||
PopUpWidget *_autosavePeriodPopUp;
|
||||
StaticTextWidget *_guiLanguagePopUpDesc;
|
||||
PopUpWidget *_guiLanguagePopUp;
|
||||
|
||||
#ifdef USE_UPDATES
|
||||
StaticTextWidget *_updatesPopUpDesc;
|
||||
PopUpWidget *_updatesPopUp;
|
||||
#endif
|
||||
};
|
||||
|
||||
} // End of namespace GUI
|
||||
|
Binary file not shown.
@ -507,6 +507,14 @@
|
||||
type = 'PopUp'
|
||||
/>
|
||||
</layout>
|
||||
<layout type = 'horizontal' padding = '0, 0, 0, 0' spacing = '10' center = 'true'>
|
||||
<widget name = 'UpdatesPopupDesc'
|
||||
type = 'OptionsLabel'
|
||||
/>
|
||||
<widget name = 'UpdatesPopup'
|
||||
type = 'PopUp'
|
||||
/>
|
||||
</layout>
|
||||
<widget name='KeysButton'
|
||||
type='Button'
|
||||
/>
|
||||
|
@ -510,6 +510,16 @@
|
||||
type = 'PopUp'
|
||||
/>
|
||||
</layout>
|
||||
<layout type = 'horizontal' padding = '0, 0, 0, 0' spacing = '6' center = 'true'>
|
||||
<widget name = 'UpdatesPopupDesc'
|
||||
width = '80'
|
||||
height = 'Globals.Line.Height'
|
||||
textalign = 'right'
|
||||
/>
|
||||
<widget name = 'UpdatesPopup'
|
||||
type = 'PopUp'
|
||||
/>
|
||||
</layout>
|
||||
<widget name='KeysButton'
|
||||
type='Button'
|
||||
/>
|
||||
|
Binary file not shown.
@ -521,6 +521,14 @@
|
||||
type = 'PopUp'
|
||||
/>
|
||||
</layout>
|
||||
<layout type = 'horizontal' padding = '0, 0, 0, 0' spacing = '10' center = 'true'>
|
||||
<widget name = 'UpdatesPopupDesc'
|
||||
type = 'OptionsLabel'
|
||||
/>
|
||||
<widget name = 'UpdatesPopup'
|
||||
type = 'PopUp'
|
||||
/>
|
||||
</layout>
|
||||
<widget name='KeysButton'
|
||||
type='Button'
|
||||
/>
|
||||
|
@ -508,6 +508,16 @@
|
||||
type = 'PopUp'
|
||||
/>
|
||||
</layout>
|
||||
<layout type = 'horizontal' padding = '0, 0, 0, 0' spacing = '6' center = 'true'>
|
||||
<widget name = 'UpdatesPopupDesc'
|
||||
width = '80'
|
||||
height = 'Globals.Line.Height'
|
||||
textalign = 'right'
|
||||
/>
|
||||
<widget name = 'UpdatesPopup'
|
||||
type = 'PopUp'
|
||||
/>
|
||||
</layout>
|
||||
<widget name='KeysButton'
|
||||
type='Button'
|
||||
/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user