HP Views Designer Assistant  1.0.0
TFG - Alberto Gutierrez Perez - Universidad de Valladolid
interfaz.h
1 #ifndef INTERFAZ_H
2 #define INTERFAZ_H
3 #include <QString>
4 #include <Model/icon.h>
5 #include <QColor>
6 
10 class Interfaz
11 {
12 public:
13 
17  Interfaz();
18 
23  int getHeight();
24 
29  void setHeigth(int height);
30 
35  int getWidth();
36 
41  void setWidth(int width);
42 
47  int getNumberOfElements() const ;
48 
53  void setNumberOfElements(int value);
54 
59  int getNumberOfRows()const ;
60 
65  void setNumberOfRows(int value);
66 
71  int getNumberOfCols() const ;
72 
77  void setNumberOfCols(int value);
78 
83  QString getImageBackground() const ;
84 
89  void setImageBackground(QString value);
90 
95  QColor getColorBackground() ;
96 
101  void setColorBackground( const QColor &value);
102 
107  bool getHasIcons() const ;
108 
113  void setHasIcons(bool value);
114 
119  bool getHasImageBackground() const ;
120 
125  void setHasImageBackground(bool value);
126 
127 private:
128 
133 
138 
142  int height;
143 
147  int width;
148 
153 
158 
162  bool hasIcons;
163 
168 
169 
170 protected:
171 
176 
177 };
178 
179 #endif // INTERFAZ_H
bool getHasIcons() const
getHasIcons Returns if the interface has icons.
Definition: interfaz.cpp:80
bool getHasImageBackground() const
getHasImageBackground Returns if the interface has an image background.
Definition: interfaz.cpp:90
QColor colorBackground
colorBackground Scrren background color.
Definition: interfaz.h:167
QString imageBackground
imageBackground Screen image background path.
Definition: interfaz.h:152
int getWidth()
getWidth Returns the screen width.
Definition: interfaz.cpp:20
int numberOfElements
numberOfElements Screen number of elements.
Definition: interfaz.h:175
void setHeigth(int height)
setHeigth Replaces the screen height.
Definition: interfaz.cpp:15
void setNumberOfElements(int value)
setNumberOfElements Raplaces the screen number of elements.
Definition: interfaz.cpp:35
int numberOfCols
numberOfCols Screen number of columns.
Definition: interfaz.h:132
QString getImageBackground() const
getImageBackground Returns the screen background image path.
Definition: interfaz.cpp:60
bool hasImageBackground
hasImageBackground Screen background option.
Definition: interfaz.h:157
int getNumberOfElements() const
getNumberOfElements Returns the screen number of elements.
Definition: interfaz.cpp:30
int getNumberOfRows() const
getNumberOfRows Returns the screen number of rows.
Definition: interfaz.cpp:40
int height
height Screen height
Definition: interfaz.h:142
int width
width Screen width
Definition: interfaz.h:147
void setImageBackground(QString value)
setImageBackground Replaces the screen background image path.
Definition: interfaz.cpp:65
int numberOfRows
numberOfRows Screen number of rows.
Definition: interfaz.h:137
The Interfaz class. Represents generic screen.
Definition: interfaz.h:10
void setNumberOfCols(int value)
setNumberOfCols Replaces the screen number of columns.
Definition: interfaz.cpp:55
int getNumberOfCols() const
getNumberOfCols Returns the screen number of columns.
Definition: interfaz.cpp:50
void setHasImageBackground(bool value)
setHasImageBackground Specifies if the interface has an image background.
Definition: interfaz.cpp:95
QColor getColorBackground()
getColorBackground Returns the screen background color.
Definition: interfaz.cpp:70
Interfaz()
Interfaz constructor.
Definition: interfaz.cpp:5
void setColorBackground(const QColor &value)
setColorBackground Repalces the screen background color.
Definition: interfaz.cpp:75
void setWidth(int width)
setWidth Repalces the screen width.
Definition: interfaz.cpp:25
int getHeight()
getHeigth Returns the screen height.
Definition: interfaz.cpp:10
void setHasIcons(bool value)
setHasIcons Specifies if the interfaces has icons.
Definition: interfaz.cpp:85
bool hasIcons
hasIcons Screen icon option.
Definition: interfaz.h:162
void setNumberOfRows(int value)
setNumberOfRows Raplaces the screen number of rows.
Definition: interfaz.cpp:45