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
11
class
MenuScreenController
:
public
Controller
12
{
13
Q_OBJECT
14
15
public
:
16
21
MenuScreenController
(
MenuScreen
*view);
22
26
void
on_title_options
();
27
31
void
on_continueBtn_clicked
();
32
36
void
automatic_icon_position
();
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
119
int
currentIcon
;
120
124
bool
isFromEdit
;
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
MenuScreenController::iconTitle
void iconTitle()
iconTitle Gets the screen icon title and sets it into the menu model.
Definition:
menuscreencontroller.cpp:118
MenuScreenController::heightView
void heightView()
heightView Gets the screen height and sets it into the menu model.
Definition:
menuscreencontroller.cpp:231
MenuScreenController::bottomMargin
void bottomMargin()
bottomMargin Gets the screen icon bottom margin and sets it into the menu model.
Definition:
menuscreencontroller.cpp:148
MenuScreenController::number_of_icons
void number_of_icons()
number_of_icons Gets the screen number of icons and sets it into the menu model.
Definition:
menuscreencontroller.cpp:112
MenuScreenController::currentIcon
int currentIcon
currentIcon Current icon index.
Definition:
menuscreencontroller.h:119
MenuScreenController::topMargin
void topMargin()
topMargin Gets the screen icon top margin and sets it into the menu model.
Definition:
menuscreencontroller.cpp:142
MenuScreenController::MenuScreenController
MenuScreenController(MenuScreen *view)
MenuScreenController constructor.
Definition:
menuscreencontroller.cpp:11
MenuScreenController::automatic_icon_position
void automatic_icon_position()
automatic_icon_position Gets the screen automatic icon option and sets it into the menu model...
Definition:
menuscreencontroller.cpp:107
MenuScreenController::checkMenuSize
void checkMenuSize()
checkMenuSize Checks the size of the elements in the screen.
Definition:
menuscreencontroller.cpp:201
MenuScreenController::backExit
void backExit()
backExit This slot is executed when goback button is clicked.
Definition:
menuscreencontroller.cpp:196
MenuScreenController::rigthMargin
void rigthMargin()
rigthMargin Gets the screen icon right margin and sets it into the menu model.
Definition:
menuscreencontroller.cpp:160
MenuScreenController::on_title_options
void on_title_options()
on_title_options Gets the screen icon title option and sets it into the menu model.
Definition:
menuscreencontroller.cpp:77
MenuScreenController::setModel
void setModel(Interfaz *interfaz)
setModel Sets the menu model.
Definition:
menuscreencontroller.cpp:251
MenuScreenController::nextIcon
void nextIcon()
nextIcon Changes the current icon.
Definition:
menuscreencontroller.cpp:124
MenuScreenController::isFromEdit
bool isFromEdit
isFromEdit Whether the interface is made from edition.
Definition:
menuscreencontroller.h:124
Controller
The Controller class.
Definition:
controller.h:13
Interfaz
The Interfaz class. Represents generic screen.
Definition:
interfaz.h:10
MenuScreenController
The MenuScreenController class.
Definition:
menuscreencontroller.h:11
MenuScreenController::iconImage
void iconImage()
iconImage Gets the icon path image and sets it into the menu model.
Definition:
menuscreencontroller.cpp:243
MenuScreenController::finish
void finish()
finish Finish the edition and shows the preview of the QML interface.
Definition:
menuscreencontroller.cpp:181
MenuScreenController::isBack
bool isBack
isBack Wheter the user has gone back.
Definition:
menuscreencontroller.h:129
MenuScreenController::imageBackground
void imageBackground()
imageBackground Gets the screen background image and sets it into the menu model. ...
Definition:
menuscreencontroller.cpp:173
MenuScreenController::setIconInfo
void setIconInfo()
setIconInfo Shows the current icon information.
Definition:
menuscreencontroller.cpp:55
MenuScreen
The MenuScreen class.
Definition:
menuscreen.h:18
MenuScreenController::widthView
void widthView()
widthView Gets the screen width and sets it into the menu model.
Definition:
menuscreencontroller.cpp:237
MenuScreenController::colorBackground
void colorBackground()
colorBackground Gets the screen background color and sets it into the menu model. ...
Definition:
menuscreencontroller.cpp:166
MenuScreenController::leftMargin
void leftMargin()
leftMargin Gets the screen icon left margin and sets it into the menu model.
Definition:
menuscreencontroller.cpp:154
Controller::interfaz
Interfaz * interfaz
interfaz interface.
Definition:
controller.h:81
MenuScreenController::on_continueBtn_clicked
void on_continueBtn_clicked()
on_continueBtn_clicked Changes between the primary view and the secondary view.
Definition:
menuscreencontroller.cpp:82
MenuScreenController::calculateCurrentIcon
void calculateCurrentIcon()
calculateCurrentIcon Calculates the current icon.
Definition:
menuscreencontroller.cpp:35
MenuScreenController::updateIconViewProgress
void updateIconViewProgress(bool isBack=false)
updateIconViewProgress Updates progress view.
Definition:
menuscreencontroller.cpp:20
MenuScreenController::goBack
void goBack()
goBack Goes to the previous icon, if is the first icon, goes to menu general options.
Definition:
menuscreencontroller.cpp:257
Documentos
ViewDesignerAssistant
Controller
menuscreencontroller.h
Generated by
1.8.13