HP Views Designer Assistant: D:/Documentos/ViewDesignerAssistant/Model/menu.h Source File

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

menu.h
1 #ifndef MENU_H
2 #define MENU_H
3
4 #include <Model/interfaz.h>
5 #include <QColor>
6 #include <QVector>
7
11 class Menu : public Interfaz
12 {
13 public:
14
18 Menu();
19
23 void createIcons();
24
29 bool isAutomaticPosition() ;
30
35 void setAutomaticPosition(bool value);
36
41 bool isTitleEnabled() ;
42
47 void setHasTitle(bool value);
48
54 void setIconPath(int positionIcon, const QString path) ;
55
61 QString getIconPath(int positionIcon);
62
68 void setIconTitle(int positionIcon, QString title);
69
75 QString getIconTitle(int positionIcon);
76
81 QVector<Icon*> *getIcons() ;
82
87 void setIcons(QVector<Icon*> *value);
88
94 void setIconTopMargin(int positionIcon, int topMargin);
95
101 int getIconTopMargin(int positionIcon);
102
108 void setIconBottomMargin(int positionIcon, int bottomMargin);
109
115 int getIconBottomMargin(int positionIcon);
116
122 void setIconLeftMargin(int positionIcon, int leftMargin);
123
129 int getIconLeftMargin(int positionIcon);
130
136 void setIconRightMargin(int positionIcon, int rigthMargin);
137
143 int getIconRightMargin(int positionIcon);
144
148 void resizeNumberOfIcons();
149
154 bool getCustomPositionModified() const;
155
156 private:
157
161 QVector<Icon*> *icons;
162
166 bool automaticPosition;
167
171 bool customPositionModified;
172
176 bool hasTitle;
177
178 };
179
180 #endif // MENU_H
Interfaz
The Interfaz class. Represents generic screen.
Definition: interfaz.h:10