Settings menu created which will hold all configurations and settings.
Language, theme and icon size broken out of the preferences and put into the menu, where they belong.
This commit is contained in:
@@ -82,6 +82,31 @@ public slots:
|
||||
void unloadProfile();
|
||||
|
||||
private slots:
|
||||
void setLanguage(QString langString);
|
||||
void setDefaultLanguage() {setLanguage("");};
|
||||
void setCZLanguage() {setLanguage("cs_CZ");};
|
||||
void setDELanguage() {setLanguage("de_DE");};
|
||||
void setENLanguage() {setLanguage("en");};
|
||||
void setFRLanguage() {setLanguage("fr_FR");};
|
||||
void setITLanguage() {setLanguage("it_IT");};
|
||||
void setHELanguage() {setLanguage("he_IL");};
|
||||
void setPLLanguage() {setLanguage("pl_PL");};
|
||||
void setPTLanguage() {setLanguage("pt_PT");};
|
||||
void setRULanguage() {setLanguage("ru_RU");};
|
||||
void setSELanguage() {setLanguage("sv_SE");};
|
||||
|
||||
void setTheme(int index);
|
||||
void setClassicTheme() {setTheme(0);};
|
||||
void setMonochromeTheme(){setTheme(1);};
|
||||
void setMonoWhiteTheme() {setTheme(2);};
|
||||
void setMonoBlueTheme() {setTheme(3);};
|
||||
|
||||
void setIconThemeSize(int index);
|
||||
void setSmallIconThemeSize() {setIconThemeSize(0);};
|
||||
void setNormalIconThemeSize() {setIconThemeSize(1);};
|
||||
void setBigIconThemeSize() {setIconThemeSize(2);};
|
||||
void setHugeIconThemeSize() {setIconThemeSize(3);};
|
||||
|
||||
void checkForUpdates(bool ignoreSettings, QString & fwId);
|
||||
void checkForUpdateFinished(QNetworkReply * reply);
|
||||
void displayWarnings();
|
||||
@@ -121,12 +146,11 @@ private slots:
|
||||
void preferences();
|
||||
void updateMenus();
|
||||
MdiChild *createMdiChild();
|
||||
void switchLayoutDirection();
|
||||
void setActiveSubWindow(QWidget *window);
|
||||
QMenu * createRecentFileMenu();
|
||||
QMenu * createProfilesMenu();
|
||||
void autoClose();
|
||||
|
||||
|
||||
private:
|
||||
void createActions();
|
||||
void createMenus();
|
||||
@@ -153,7 +177,6 @@ private:
|
||||
QStringList GetSendFlashCommand(const QString &filename);
|
||||
int getEpromVersion(QString fileName);
|
||||
|
||||
|
||||
bool convertEEPROM(QString backupFile, QString restoreFile, QString flashFile);
|
||||
bool isValidEEPROM(QString eepromfile);
|
||||
|
||||
@@ -183,6 +206,7 @@ private:
|
||||
|
||||
QMenu *fileMenu;
|
||||
QMenu *editMenu;
|
||||
QMenu *settingsMenu;
|
||||
QMenu *burnMenu;
|
||||
QMenu *helpMenu;
|
||||
QToolBar *fileToolBar;
|
||||
@@ -222,6 +246,25 @@ private:
|
||||
QAction *logsAct;
|
||||
QAction *recentFileActs[MAX_RECENT];
|
||||
QAction *profileActs[MAX_PROFILES];
|
||||
QAction *classicThemeAct;
|
||||
QAction *monoThemeAct;
|
||||
QAction *monoBlueThemeAct;
|
||||
QAction *monoWhiteThemeAct;
|
||||
QAction *smallIconAct;
|
||||
QAction *normalIconAct;
|
||||
QAction *bigIconAct;
|
||||
QAction *hugeIconAct;
|
||||
QAction *defaultLanguageAct;
|
||||
QAction *englishLanguageAct;
|
||||
QAction *czechLanguageAct;
|
||||
QAction *germanLanguageAct;
|
||||
QAction *frenchLanguageAct;
|
||||
QAction *italianLanguageAct;
|
||||
QAction *hebrewLanguageAct;
|
||||
QAction *polishLanguageAct;
|
||||
QAction *portugueseLanguageAct;
|
||||
QAction *swedishLanguageAct;
|
||||
QAction *russianLanguageAct;
|
||||
QString fwToUpdate;
|
||||
QToolButton * profileButton;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user