HP Views Designer Assistant  1.0.0
TFG - Alberto Gutierrez Perez - Universidad de Valladolid
informationscreencontroller.h
1 #ifndef INFORMATIONSCREENCONTROLLER_H
2 #define INFORMATIONSCREENCONTROLLER_H
3 
4 #include <Controller/controller.h>
5 #include <View/informationscreen.h>
6 
11 {
12 public:
13 
19 
23  void checkGeneralMenuSize();
24 
28  void heightView();
29 
33  void widthView();
34 
38  void colorBackground();
39 
43  void imageBackground();
44 
48  void cardSize();
49 
53  void number_of_icons();
54 
58  void on_icon_options();
59 
64 
68  void cardTitle();
69 
73  void cardIcon();
74 
78  void addProperty();
79 
83  void removeProperty();
84 
88  void changeProperty();
89 
93  void selectProperty();
94 
98  void nextCard();
99 
103  void updateCardViewProgress();
104 
109  void setModel(Interfaz* interfaz);
110 
114  void goBack();
115 
116 
117 private:
118 
123 
128 
132  bool isBack;
133 
137  void setViewInfo();
138 
142  void finish();
143 
151  QString checkMenuSize(int icons, int rows, int cols);
152 
153 };
154 
155 #endif // INFORMATIONSCREENCONTROLLER_H
void on_icon_options()
on_icon_options Gets the screen icon option and sets it into the information model.
Definition: informationscreencontroller.cpp:96
void selectProperty()
selectProperty Gets the clicked property and shows the property values.
Definition: informationscreencontroller.cpp:185
void imageBackground()
imageBackground Gets the screen background image and sets it into the information model...
Definition: informationscreencontroller.cpp:72
void widthView()
widthView Gets the screen width and sets it into the information model.
Definition: informationscreencontroller.cpp:58
void setViewInfo()
setViewInfo Shows card information.
Definition: informationscreencontroller.cpp:246
void goBack()
goBack Goes to the previous card, if is the first card, goes to information general options...
Definition: informationscreencontroller.cpp:227
The InformationScreen class.
Definition: informationscreen.h:17
QString checkMenuSize(int icons, int rows, int cols)
checkMenuSize Checks the size of the elements in the screen.
Definition: informationscreencontroller.cpp:25
void number_of_icons()
number_of_icons Gets the screen number of icons and sets it into the information model.
Definition: informationscreencontroller.cpp:90
InformationScreenController(InformationScreen *view)
InformationScreenController constructor.
Definition: informationscreencontroller.cpp:8
void changeProperty()
changeProperty Gets the screen property and edits it into the information model.
Definition: informationscreencontroller.cpp:171
void on_continueBtn_clicked()
on_continueBtn_clicked Changes between the primary view and the secondary view.
Definition: informationscreencontroller.cpp:102
void removeProperty()
removeProperty Gets the screen property and removes it into the information model.
Definition: informationscreencontroller.cpp:157
void cardSize()
cardSize Gets the screen card rows and columns and sets it into the information model.
Definition: informationscreencontroller.cpp:80
The Controller class.
Definition: controller.h:13
void cardIcon()
cardIcon Gets the screen image path and sets it into the information model.
Definition: informationscreencontroller.cpp:134
void cardTitle()
cardTitle Gets the screen card title and sets it into the information model.
Definition: informationscreencontroller.cpp:128
void updateCardViewProgress()
updateCardViewProgress Update the progress view.
Definition: informationscreencontroller.cpp:212
The Interfaz class. Represents generic screen.
Definition: interfaz.h:10
void setModel(Interfaz *interfaz)
setModel Sets the information model.
Definition: informationscreencontroller.cpp:221
bool isBack
isBack Wheter the user has gone back.
Definition: informationscreencontroller.h:132
void checkGeneralMenuSize()
checkGeneralMenuSize Checks the number of elements and if it is correct, sets the value into the info...
Definition: informationscreencontroller.cpp:16
void addProperty()
addProperty Gets the screen property and sets it into the information model.
Definition: informationscreencontroller.cpp:141
bool isFromEdit
isFromEdit Whether the interface is made from edition.
Definition: informationscreencontroller.h:127
void colorBackground()
colorBackground Gets the screen background color and sets it into the information model...
Definition: informationscreencontroller.cpp:65
void nextCard()
nextCard Changes the current card.
Definition: informationscreencontroller.cpp:192
void heightView()
heightView Gets the screen height and sets it into the information model.
Definition: informationscreencontroller.cpp:52
Interfaz * interfaz
interfaz interface.
Definition: controller.h:81
void finish()
finish Finish the edition and shows the preview of the QML interface.
Definition: informationscreencontroller.cpp:275
int currentCard
currentCard Current card index.
Definition: informationscreencontroller.h:122
The InformationScreenController class.
Definition: informationscreencontroller.h:10