HP Views Designer Assistant: D:/Documentos/ViewDesignerAssistant/Controller/settingscontroller.h Source File

| HP Views Designer Assistant 1.0.0 TFG - Alberto Gutierrez Perez - Universidad de Valladolid |

settingscontroller.h
1 #ifndef SETTINGSCONTROLLER_H
2 #define SETTINGSCONTROLLER_H
3
4 #include <Controller/controller.h>
5 #include <View/settings.h>
6
10 class SettingsController : public Controller
11 {
12 public:
13
18 SettingsController(Settings *view);
19
23 void saveDefaultDir();
24
28 void saveAlwaysAsk();
29
33 void clearValues();
34
39 void changeLanguage(QString language);
40
41 private:
42
46 void loadSettings();
47
52 QString getSettingsLanguage();
53
58 void setLanguage(QString language);
59
60 };
61
62 #endif // SETTINGSCONTROLLER_H
SettingsController::getSettingsLanguage
QString getSettingsLanguage()
getSettingsLanguage Gets the app language.
Definition: settingscontroller.cpp:82
SettingsController
The SettingsController class.
Definition: settingscontroller.h:10
SettingsController::saveAlwaysAsk
void saveAlwaysAsk()
saveAlwaysAsk Saves the always ask value.
Definition: settingscontroller.cpp:32
SettingsController::SettingsController
SettingsController(Settings *view)
SettingsController constructor.
Definition: settingscontroller.cpp:7
SettingsController::setLanguage
void setLanguage(QString language)
setLanguage Specifies the app language.
Definition: settingscontroller.cpp:87
Settings
The Settings class.
Definition: settings.h:13
SettingsController::clearValues
void clearValues()
clearValues Clears the setttings values.
Definition: settingscontroller.cpp:38
Controller
The Controller class.
Definition: controller.h:13
SettingsController::saveDefaultDir
void saveDefaultDir()
saveDefaultDir Saves the default folder.
Definition: settingscontroller.cpp:14
SettingsController::changeLanguage
void changeLanguage(QString language)
changeLanguage Changes the app language.
Definition: settingscontroller.cpp:49
SettingsController::loadSettings
void loadSettings()
loadSettings Loads the settings values.
Definition: settingscontroller.cpp:59