#include <inkscreen.h>
Public Member Functions | |
InkScreen (QWidget *parent=0) | |
InkScreen constructor. More... | |
void | showError (QString error) |
showError Shows an error message. More... | |
void | showSuccess (QString success) |
showSuccess Shows a success message. More... | |
void | showInfo (QString info) |
showInfo Shows an information message. More... | |
int | getNumberOfElements () |
getNumberOfElements Returns the number of elements. More... | |
int | getNumberOfCols () |
getNumberOfCols Returns the number of columns. More... | |
int | getNumberOfRows () |
getNumberOfRows Returns the number of rows. More... | |
int | getWidth () |
getWidth Returns screen width. More... | |
int | getHeight () |
getHeight Returns screen height. More... | |
void | addInkButtons (int numberOfElements, int rows, int cols, QVector< QColor > *colors=new QVector< QColor >) |
addInkButtons Adds ink color selector buttons into the ink screen. More... | |
void | clearElements () |
clearElements Restores default values. | |
InkTextOption | getTextOption () |
getTextOption Returns ink text option. More... | |
QColor | getInkColor (int position) |
getInkColor Returns ink color of the specified position. More... | |
void | setEditModel (Interfaz *interfaz) |
setEditModel Specifies the values of the ink screen properties. More... | |
![]() | |
View (QWidget *parent) | |
View constructor. More... | |
void | show (QPoint position, QSize size) |
show Shows the view. More... | |
Private Slots | |
void | on_positionCombo_activated (int index) |
on_positionCombo_activated More... | |
void | on_homeBtn_clicked () |
on_homeBtn_clicked This slot is executed when home button is clicked. | |
void | on_settingsBtn_clicked () |
on_settingsBtn_clicked This slot is executed when settings button is clicked. | |
void | on_helpBtn_clicked () |
on_helpBtn_clicked This slot is executed when help button is clicked. | |
void | on_plusBtn_clicked () |
on_plusBtn_clicked This slot is executed when plus button is clicked. | |
void | on_lessBtn_clicked () |
on_lessBtn_clicked This slot is executed when less button is clicked. | |
void | on_rowInput_textEdited () |
on_rowInput_textEdited This slot is executed when row input is edited. | |
void | on_colInput_textEdited () |
on_colInput_textEdited This slot is executed when column input is edited. | |
void | on_numberElementInput_textEdited () |
on_numberElementInput_textEdited This slot is executed when number of elements input is edited. | |
void | selectBtnColor () |
selectBtnColor This slot is executed when ink color selector button is clicked. | |
void | on_porcentageRadio_clicked () |
on_porcentageRadio_clicked This slot is executed when percentage radio button is clicked. | |
void | on_numberRadio_clicked () |
on_numberRadio_clicked This slot is executed when number radio button is clicked. | |
void | on_noneRadio_clicked () |
on_noneRadio_clicked This slot is executed when none radio button is clicked. | |
void | on_continueBtn_clicked () |
on_continueBtn_clicked This slot is executed when continue button is clicked. | |
void | on_heightInput_textEdited () |
on_heightInput_textEdited This slot is executed when height input is edited. | |
void | on_widthInput_textEdited () |
on_widthInput_textEdited This slot is executed when width input is edited. | |
Private Member Functions | |
void | initElements () |
initElements Initialices the elements. | |
void | setValidators () |
setValidators Sets inputs validators. | |
void | isFullFill () |
isFullFill Checks if all of the elements have a value. | |
void | setToolTips () |
setToolTips Sets buttons help. | |
void | showSizeElements () |
showSizeElements Shows size elements. | |
void | hideSizeElements () |
hideSizeElements Hide size elements. | |
void | checkNumberElements (int elements) |
checkNumberElements Checks if the number of elements is correct. More... | |
void | hideMessages () |
hideMessages Hide messages. | |
void | clearInkButtons () |
clearInkButtons Removes ink color selector buttons. | |
Private Attributes | |
Ui::InkScreen * | ui |
ui | |
Additional Inherited Members | |
![]() | |
void | setIntValidators (QLineEdit *input, int min, int max) |
setIntValidators Sets a numeric validator to an input. More... | |
QString | selectImage () |
selectImage Selects an system image. More... | |
int | checkNumberElements (int numberOfElements) |
checkNumberElements Checks if the number of elements are correct More... | |
QString | getRootHelpPath () |
getRootHelpPath Returns the root help app path. More... | |
![]() | |
QPoint | currentPosition |
currentPosition Current position of the view. | |
Controller * | controller |
controller Views controller. | |
The InkScreen class.
|
explicit |
void InkScreen::addInkButtons | ( | int | numberOfElements, |
int | rows, | ||
int | cols, | ||
QVector< QColor > * | colors = new QVector<QColor> |
||
) |
addInkButtons Adds ink color selector buttons into the ink screen.
numberOfElements | Number of elements to add. |
rows | Number of rows. |
cols | Number of columns. |
colors | Colors of the elements. |
|
private |
checkNumberElements Checks if the number of elements is correct.
elements | Number of elements |
int InkScreen::getHeight | ( | ) |
getHeight Returns screen height.
QColor InkScreen::getInkColor | ( | int | position | ) |
getInkColor Returns ink color of the specified position.
position | Position. |
int InkScreen::getNumberOfCols | ( | ) |
getNumberOfCols Returns the number of columns.
int InkScreen::getNumberOfElements | ( | ) |
getNumberOfElements Returns the number of elements.
int InkScreen::getNumberOfRows | ( | ) |
getNumberOfRows Returns the number of rows.
InkTextOption InkScreen::getTextOption | ( | ) |
getTextOption Returns ink text option.
int InkScreen::getWidth | ( | ) |
getWidth Returns screen width.
|
privateslot |
on_positionCombo_activated
index |
void InkScreen::setEditModel | ( | Interfaz * | interfaz | ) |
setEditModel Specifies the values of the ink screen properties.
interfaz | Interface model. |
|
virtual |
|
virtual |
|
virtual |