- start_wizard: use a global enum; switch detection from bool to int

This commit is contained in:
svenhoefer
2015-05-15 03:39:24 +02:00
parent d9b3e9420a
commit af90286a30
18 changed files with 48 additions and 122 deletions

View File

@@ -39,19 +39,13 @@ class CSettingsManager : public CMenuTarget
{
private:
int width;
bool is_wizard;
int is_wizard;
int showMenu();
int showMenu_wizard();
public:
enum SETTINGSMANAGER_MODE
{
SETTINGSMANAGER_MODE_WIZARD_NO = 0,
SETTINGSMANAGER_MODE_WIZARD = 1
};
CSettingsManager(bool wizard_mode = SETTINGSMANAGER_MODE_WIZARD_NO);
CSettingsManager(int wizard_mode = SNeutrinoSettings::WIZARD_OFF);
~CSettingsManager();
int exec(CMenuTarget* parent, const std::string & actionKey = "");