The InformationScreen class. More...
#include <informationscreen.h>
Public Member Functions | |
InformationScreen (QWidget *parent=0) | |
InformationScreen constructor. More... | |
InformationScreen (Controller *controller, QWidget *parent=0) | |
InformationScreen constructor. More... | |
int | getNumberOfRows () |
getNumberOfRows Returns the number of rows. More... | |
bool | getHasIcons () |
getHasIcons Returns if the screen has icons. More... | |
int | getNumberOfCols () |
getNumberOfCols Returns the number of columns. More... | |
int | getNumberOfIcons () |
getNumberOfIcons Return the number of icons. More... | |
int | getWidthView () |
getWidthView Return the screen width. More... | |
int | getHeightView () |
getHeightView Returns the screen height. More... | |
QColor | getBackgroundColor () |
getBackgroundColor Returns screen background color. More... | |
QString | getBackgroundImage () |
getBackgroundImage Returns screen background image. More... | |
void | showError (QString error) |
showError Shows error message. More... | |
void | showInfo (QString info) |
showInfo Shows information message. More... | |
void | showSuccess (QString success) |
showSuccess Shows success message. More... | |
void | setEditModel (Interfaz *interfaz) |
setEditModel Specifies the values of the information screen properties. More... | |
void | changePositionCombo (int pos, int row, int col) |
changePositionCombo Changes the index of the position combo. More... | |
int | getCardRows () |
getCardRows Returns the number of card rows. More... | |
int | getCardCols () |
getCardCols Returns the number of card columns. More... | |
![]() | |
View (QWidget *parent) | |
View constructor. More... | |
void | show (QPoint position, QSize size) |
show Shows the view. More... | |
Private Slots | |
void | on_helpBtn_clicked () |
on_helpBtn_clicked This slot is executed when the help button is clicked. | |
void | on_homeBtn_clicked () |
on_homeBtn_clicked This slot is executed when the home button is clicked. | |
void | on_settingsBtn_clicked () |
on_settingsBtn_clicked This slot is executed when the settings button is clicked. | |
void | on_continueBtn_clicked () |
on_continueBtn_clicked This slot is executed when the continue button is clicked. | |
void | on_imageBackgroundBtn_clicked (bool checked) |
on_imageBackgroundBtn_clicked This slot is executed when the image button is clicked. More... | |
void | on_colorBackgroundBtn_clicked (bool checked) |
on_colorBackgroundBtn_clicked This slot is executed when the color button is clicked. More... | |
void | on_plusBtn_clicked () |
on_plusBtn_clicked This slot is executed when the plus button is clicked. | |
void | on_lessBtn_clicked () |
on_lessBtn_clicked This slot is executed when the less button is clicked. | |
void | on_rowInput_textEdited () |
on_rowInput_textEdited This slot is executed when the number of rows is edited. | |
void | on_colInput_textEdited () |
on_colInput_textEdited This slot is executed when the number of columns is edited. | |
void | on_iconPositiveOption_clicked () |
on_iconPositiveOption_clicked This slot is executed when the positive icon button is clicked. | |
void | on_iconNegativeOption_clicked () |
on_iconNegativeOption_clicked This slot is executed when the negative icon button is clicked. | |
void | on_positionCombo_2_currentIndexChanged (int index) |
on_positionCombo_2_currentIndexChanged This slot is executed when the index of the combo is edited. More... | |
void | on_rowInput_2_textEdited (const QString &arg1) |
on_rowInput_2_textEdited This slot is executed when the number of card rows are edited. More... | |
void | on_colInput_2_textEdited (const QString &arg1) |
on_colInput_2_textEdited This slot is executed when the number of card columns are edited. More... | |
void | on_heightInput_textEdited (const QString &arg1) |
on_heightInput_textEdited This slot is executed when the height is edited. More... | |
void | on_widthInput_textEdited (const QString &arg1) |
on_widthInput_textEdited This slot is executed when the width is edited. More... | |
void | on_numberIconsBox_textEdited (const QString &arg1) |
on_numberIconsBox_textEdited This slot is executed when the number of icons are edited. More... | |
void | on_positionCombo_activated (int index) |
on_positionCombo_activated This slot is executed when the index of combo is edited. More... | |
Private Member Functions | |
void | hideSizeElements () |
hideSizeElements Hides size elements. | |
void | showSizeElements () |
showSizeElements Shows size elements. | |
void | isFullFill () |
isFullFill Checks if all of the elements have a value. | |
void | initElements () |
initElements Inits the elements. | |
void | setDefaultIcons () |
setDefaultIcons Set default icons. | |
void | setDefaultIcon (QPushButton *button, QString iconPathOn, QString iconPathOff) |
setDefaultIcon Set default icon. More... | |
void | setValidators () |
setValidators Sets the validators of the screen inputs. | |
void | checkNumberOfElements (int elements) |
checkNumberOfElements Checks if the number of elements are correct. More... | |
void | setToolTips () |
setToolTips Sets the help of the screen buttons. | |
void | showCardSizeElements () |
showCardSizeElements Shows card size elements. | |
void | hideCardSizeElements () |
hideCardSizeElements Hides card size elements. | |
Private Attributes | |
Ui::InformationScreen * | 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 InformationScreen class.
|
explicit |
InformationScreen constructor.
parent | Information screen parent widget. |
InformationScreen::InformationScreen | ( | Controller * | controller, |
QWidget * | parent = 0 |
||
) |
InformationScreen constructor.
controller | Information screen controller. |
parent | Information screen parent widget. |
void InformationScreen::changePositionCombo | ( | int | pos, |
int | row, | ||
int | col | ||
) |
changePositionCombo Changes the index of the position combo.
pos | Index to change. |
row | Number of rows. |
col | Number of columns. |
|
private |
checkNumberOfElements Checks if the number of elements are correct.
elements | Number of elements. |
QColor InformationScreen::getBackgroundColor | ( | ) |
getBackgroundColor Returns screen background color.
QString InformationScreen::getBackgroundImage | ( | ) |
getBackgroundImage Returns screen background image.
int InformationScreen::getCardCols | ( | ) |
getCardCols Returns the number of card columns.
int InformationScreen::getCardRows | ( | ) |
getCardRows Returns the number of card rows.
bool InformationScreen::getHasIcons | ( | ) |
getHasIcons Returns if the screen has icons.
True
if the screen has icons, false
otherwise. int InformationScreen::getHeightView | ( | ) |
getHeightView Returns the screen height.
int InformationScreen::getNumberOfCols | ( | ) |
getNumberOfCols Returns the number of columns.
int InformationScreen::getNumberOfIcons | ( | ) |
getNumberOfIcons Return the number of icons.
int InformationScreen::getNumberOfRows | ( | ) |
getNumberOfRows Returns the number of rows.
int InformationScreen::getWidthView | ( | ) |
getWidthView Return the screen width.
|
privateslot |
on_colInput_2_textEdited This slot is executed when the number of card columns are edited.
arg1 |
|
privateslot |
on_colorBackgroundBtn_clicked This slot is executed when the color button is clicked.
checked | Whether the button is checked. |
|
privateslot |
on_heightInput_textEdited This slot is executed when the height is edited.
arg1 |
|
privateslot |
on_imageBackgroundBtn_clicked This slot is executed when the image button is clicked.
checked | Whether the button is checked. |
|
privateslot |
on_numberIconsBox_textEdited This slot is executed when the number of icons are edited.
arg1 |
|
privateslot |
on_positionCombo_2_currentIndexChanged This slot is executed when the index of the combo is edited.
index |
|
privateslot |
on_positionCombo_activated This slot is executed when the index of combo is edited.
index |
|
privateslot |
on_rowInput_2_textEdited This slot is executed when the number of card rows are edited.
arg1 |
|
privateslot |
on_widthInput_textEdited This slot is executed when the width is edited.
arg1 |
|
private |
setDefaultIcon Set default icon.
button | Button to set the icon. |
iconPathOn | Path of the button on image. |
iconPathOff | Path of the button off image. |
void InformationScreen::setEditModel | ( | Interfaz * | interfaz | ) |
setEditModel Specifies the values of the information screen properties.
interfaz | Interface model. |
|
virtual |
|
virtual |
|
virtual |