HP Views Designer Assistant  1.0.0
TFG - Alberto Gutierrez Perez - Universidad de Valladolid
ink.h
1 #ifndef INK_H
2 #define INK_H
3 
4 #include <Model/interfaz.h>
5 #include <Model/inktextoption.h>
6 #include <QVector>
7 
11 class Ink : public Interfaz
12 {
13 
14 ;
15 public:
16 
20  Ink();
21 
27  void addColor(int position, QColor color);
28 
34  QColor getColor(int position);
35 
41 
46  bool createByEdit();
47 
52  InkTextOption getTextOption() const;
53 
58  void setTextOption(const InkTextOption &value);
59 
64  bool isComplete();
65 
70  QVector<QColor> *getInkColors() const;
71 
76  void createInkColors(int number);
77 
78 private:
79 
83  InkTextOption textOption;
84 
88  QVector<QColor> *inkColors;
89 };
90 
91 #endif // INK_H
void setNumberOfElements(int numberOfElements)
setNumberOfElements Resize the number of interface elements.
Definition: ink.cpp:29
bool createByEdit()
createByEdit Returns if the interfaces has been created by edition.
InkTextOption getTextOption() const
getTextOption Returns the text option of the screen.
Definition: ink.cpp:9
QColor getColor(int position)
getColor Returns the color at the specified position.
Definition: ink.cpp:24
InkTextOption textOption
textOption Specifies the text option of the interface.
Definition: ink.h:83
bool isComplete()
isComplete Returns if the interface is complete.
Definition: ink.cpp:49
QVector< QColor > * inkColors
inkColors Interface color list.
Definition: ink.h:88
int numberOfElements
numberOfElements Screen number of elements.
Definition: interfaz.h:175
void createInkColors(int number)
createInkColors Create the interface color list.
Definition: ink.cpp:59
QVector< QColor > * getInkColors() const
getInkColors Returns the colors of the interface.
Definition: ink.cpp:54
The Interfaz class. Represents generic screen.
Definition: interfaz.h:10
Ink()
Ink constructor.
Definition: ink.cpp:4
void setTextOption(const InkTextOption &value)
setTextOption Raplaces the text option.
Definition: ink.cpp:14
The Ink class. Represents Ink screens.
Definition: ink.h:11
void addColor(int position, QColor color)
addColor Adds color at the specified position.
Definition: ink.cpp:19