HP Views Designer Assistant  1.0.0
TFG - Alberto Gutierrez Perez - Universidad de Valladolid
menuscreencontroller.h
1 #ifndef MENUSCREENCONTROLLER_H
2 #define MENUSCREENCONTROLLER_H
3 
4 #include <Controller/controller.h>
5 #include <View/menuscreen.h>
6 #include <QObject>
7 
12 {
13  Q_OBJECT
14 
15 public:
16 
22 
26  void on_title_options();
27 
32 
37 
41  void number_of_icons();
42 
46  void iconTitle();
47 
51  void nextIcon();
52 
56  void topMargin();
57 
61  void rigthMargin();
62 
66  void bottomMargin();
67 
71  void leftMargin();
72 
76  void colorBackground();
77 
81  void imageBackground();
82 
86  void checkMenuSize();
87 
91  void heightView();
92 
96  void widthView();
97 
101  void iconImage();
102 
107  void setModel(Interfaz *interfaz);
108 
112  void goBack();
113 
114 private:
115 
120 
125 
129  bool isBack;
130 
131 private:
132 
137  void updateIconViewProgress(bool isBack = false);
138 
142  void calculateCurrentIcon();
143 
147  void setIconInfo();
148 
152  void finish();
153 
154 public slots:
155 
159  void backExit();
160 
161 
162 };
163 
164 #endif // MENUSCREENCONTROLLER_H
void iconTitle()
iconTitle Gets the screen icon title and sets it into the menu model.
Definition: menuscreencontroller.cpp:118
void heightView()
heightView Gets the screen height and sets it into the menu model.
Definition: menuscreencontroller.cpp:231
void bottomMargin()
bottomMargin Gets the screen icon bottom margin and sets it into the menu model.
Definition: menuscreencontroller.cpp:148
void number_of_icons()
number_of_icons Gets the screen number of icons and sets it into the menu model.
Definition: menuscreencontroller.cpp:112
int currentIcon
currentIcon Current icon index.
Definition: menuscreencontroller.h:119
void topMargin()
topMargin Gets the screen icon top margin and sets it into the menu model.
Definition: menuscreencontroller.cpp:142
MenuScreenController(MenuScreen *view)
MenuScreenController constructor.
Definition: menuscreencontroller.cpp:11
void automatic_icon_position()
automatic_icon_position Gets the screen automatic icon option and sets it into the menu model...
Definition: menuscreencontroller.cpp:107
void checkMenuSize()
checkMenuSize Checks the size of the elements in the screen.
Definition: menuscreencontroller.cpp:201
void backExit()
backExit This slot is executed when goback button is clicked.
Definition: menuscreencontroller.cpp:196
void rigthMargin()
rigthMargin Gets the screen icon right margin and sets it into the menu model.
Definition: menuscreencontroller.cpp:160
void on_title_options()
on_title_options Gets the screen icon title option and sets it into the menu model.
Definition: menuscreencontroller.cpp:77
void setModel(Interfaz *interfaz)
setModel Sets the menu model.
Definition: menuscreencontroller.cpp:251
void nextIcon()
nextIcon Changes the current icon.
Definition: menuscreencontroller.cpp:124
bool isFromEdit
isFromEdit Whether the interface is made from edition.
Definition: menuscreencontroller.h:124
The Controller class.
Definition: controller.h:13
The Interfaz class. Represents generic screen.
Definition: interfaz.h:10
The MenuScreenController class.
Definition: menuscreencontroller.h:11
void iconImage()
iconImage Gets the icon path image and sets it into the menu model.
Definition: menuscreencontroller.cpp:243
void finish()
finish Finish the edition and shows the preview of the QML interface.
Definition: menuscreencontroller.cpp:181
bool isBack
isBack Wheter the user has gone back.
Definition: menuscreencontroller.h:129
void imageBackground()
imageBackground Gets the screen background image and sets it into the menu model. ...
Definition: menuscreencontroller.cpp:173
void setIconInfo()
setIconInfo Shows the current icon information.
Definition: menuscreencontroller.cpp:55
The MenuScreen class.
Definition: menuscreen.h:18
void widthView()
widthView Gets the screen width and sets it into the menu model.
Definition: menuscreencontroller.cpp:237
void colorBackground()
colorBackground Gets the screen background color and sets it into the menu model. ...
Definition: menuscreencontroller.cpp:166
void leftMargin()
leftMargin Gets the screen icon left margin and sets it into the menu model.
Definition: menuscreencontroller.cpp:154
Interfaz * interfaz
interfaz interface.
Definition: controller.h:81
void on_continueBtn_clicked()
on_continueBtn_clicked Changes between the primary view and the secondary view.
Definition: menuscreencontroller.cpp:82
void calculateCurrentIcon()
calculateCurrentIcon Calculates the current icon.
Definition: menuscreencontroller.cpp:35
void updateIconViewProgress(bool isBack=false)
updateIconViewProgress Updates progress view.
Definition: menuscreencontroller.cpp:20
void goBack()
goBack Goes to the previous icon, if is the first icon, goes to menu general options.
Definition: menuscreencontroller.cpp:257