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

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

icon.h
1 #ifndef ICON_H
2 #define ICON_H
3 #include <QString>
4
5
9 class Icon
10 {
11 public:
15 Icon();
16
21 QString getPath() const;
22
27 void setPath(const QString value);
28
33 QString getTitle() const;
34
39 void setTitle(const QString &value);
40
45 int getTopMargin() const;
46
51 void setTopMargin(int value);
52
57 int getBottomMargin() const;
58
63 void setBottomMargin(int value);
64
69 int getLeftMargin() const;
70
75 void setLeftMargin(int value);
76
81 int getRightMargin() const;
82
87 void setRightMargin(int value);
88
89 private:
90
94 QString path;
95
99 QString title;
100
104 int topMargin;
105
109 int bottomMargin;
110
114 int leftMargin;
115
119 int rightMargin;
120 };
121
122 #endif // ICON_H
Icon::topMargin
int topMargin
topMargin Top margin of the icon.
Definition: icon.h:104
Icon::leftMargin
int leftMargin
leftMargin Left margin of the icon.
Definition: icon.h:114
Icon::setPath
void setPath(const QString value)
setPath Replaces the path of the icon image.
Definition: icon.cpp:16
Icon::getTopMargin
int getTopMargin() const
getTopMargin Returns icon top margin.
Definition: icon.cpp:31
Icon::getRightMargin
int getRightMargin() const
getRightMargin Returns icon right margin.
Definition: icon.cpp:61
Icon::bottomMargin
int bottomMargin
bottomMargin Bottom margin of the icon.
Definition: icon.h:109
Icon::path
QString path
path Image path of the icon.
Definition: icon.h:94
Icon::setTopMargin
void setTopMargin(int value)
setTopMargin Replaces icon top margin.
Definition: icon.cpp:36
Icon::title
QString title
title Title of the icon.
Definition: icon.h:99
Icon::getBottomMargin
int getBottomMargin() const
getBottomMargin Replaces icon bottom margin.
Definition: icon.cpp:41
Icon
The icon class. Represents icon element in menu screens.
Definition: icon.h:9
Icon::getLeftMargin
int getLeftMargin() const
getLeftMargin Returns icon left margin.
Definition: icon.cpp:51
Icon::setBottomMargin
void setBottomMargin(int value)
setBottomMargin Replaces icon bottom margin.
Definition: icon.cpp:46
Icon::getPath
QString getPath() const
getPath Returns the path of the icon image.
Definition: icon.cpp:11
Icon::setLeftMargin
void setLeftMargin(int value)
setLeftMargin Replaces icon left margin.
Definition: icon.cpp:56
Icon::Icon
Icon()
Icon constructor.
Definition: icon.cpp:3
Icon::getTitle
QString getTitle() const
getTitle Returns the icon title.
Definition: icon.cpp:21
Icon::rightMargin
int rightMargin
rightMargin Right margin of the icon.
Definition: icon.h:119
Icon::setRightMargin
void setRightMargin(int value)
setRightMargin Replaces icon right margin.
Definition: icon.cpp:66
Icon::setTitle
void setTitle(const QString &value)
setTitle Replaces the icon title.
Definition: icon.cpp:26