GUI: Added stub for Update frequency check widgets.

This commit is contained in:
Eugene Sandulenko 2016-03-29 10:44:46 +02:00
parent 244e143e61
commit 12b0313d92
8 changed files with 52 additions and 0 deletions

View File

@ -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;

View File

@ -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.

View File

@ -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'
/>

View File

@ -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.

View File

@ -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'
/>

View File

@ -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'
/>