The MenuIconOptions class. More...
#include <menuiconoptions.h>
Public Member Functions | |
MenuIconOptions (QWidget *parent=0) | |
MenuIconOptions constructor. More... | |
void | setEnabledOptions (bool hasTitle, bool isAutomatic) |
setEnabledOptions Sets the enabled options. More... | |
void | setCurrentIcon (int iconRow, int iconCol) |
setCurrentIcon Sets the number of the current icon. More... | |
void | setProgress (int progress) |
setProgress Sets the progess of the create proccess. More... | |
QString | getIconTitle () |
getIconTitle Returns the icon title. More... | |
void | clear () |
clear Clears the inputs values. | |
void | setController (MenuScreenController *controller) |
setController Replaces the menu screen controller. More... | |
int | getTopMargin () |
getTopMargin Returns the icon top margin. More... | |
int | getBottomMargin () |
getBottomMargin Returns the icon bottom margin. More... | |
int | getLeftMargin () |
getLeftMargin Returns the icon left margin. More... | |
int | getRigthMargin () |
getRigthMargin Returns the icon right margin. 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... | |
QString | getIconImage () |
getIconImage Returns the icon image path. More... | |
void | setIconInfo (QString iconPath, QString iconTitle, int top, int bottom, int left, int right) |
setIconInfo Shows the icon information. More... | |
![]() | |
View (QWidget *parent) | |
View constructor. More... | |
void | show (QPoint position, QSize size) |
show Shows the view. More... | |
Private Slots | |
void | on_browseBtn_clicked () |
on_browseBtn_clicked This slot is executed when browse button is clicked. | |
void | on_helpBtn_clicked () |
on_helpBtn_clicked This slot is executed when help button is clicked. | |
void | on_titleInput_textChanged () |
on_titleInput_textChanged This slot is executed when title input is changed. | |
void | on_continueBtn_clicked () |
on_continueBtn_clicked This slot is executed when continue button is clicked. | |
void | on_titleInput_editingFinished () |
on_titleInput_editingFinished This slot is executed when title input is changed. | |
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_topMarginInput_textEdited () |
on_topMarginInput_textEdited This slot is executed when top margin input is changed. | |
void | on_rigthMarginInput_textEdited () |
on_rigthMarginInput_textEdited This slot is executed when right margin input is changed. | |
void | on_bottomMarginInput_textEdited () |
on_bottomMarginInput_textEdited This slot is executed when bottom margin input is changed. | |
void | on_leftMarginInput_textEdited () |
on_leftMarginInput_textEdited This slot is executed when left margin input is changed. | |
void | on_plusrightBtn_clicked () |
on_plusrightBtn_clicked This slot is executed when plus right margin button is clicked. | |
void | on_lessRightBtn_clicked () |
on_lessRightBtn_clicked This slot is executed when less right margin button is clicked. | |
void | on_plusTopBtn_clicked () |
on_plusTopBtn_clicked This slot is executed when plus top margin button is clicked. | |
void | on_lessTopBtn_clicked () |
on_lessTopBtn_clicked This slot is executed when less top margin button is clicked. | |
void | on_plusLeftBtn_clicked () |
on_plusLeftBtn_clicked This slot is executed when plus left margin button is clicked. | |
void | on_lessLeftBtn_clicked () |
on_lessLeftBtn_clicked This slot is executed when less left margin button is clicked. | |
void | on_plusBottomBtn_clicked () |
on_plusBottomBtn_clicked This slot is executed when plus bottom margin button is clicked. | |
void | on_lessBottomBtn_clicked () |
on_lessBottomBtn_clicked This slot is executed when less bottom margin button is clicked. | |
void | on_hpIconBtn_clicked () |
on_hpIconBtn_clicked This slot is executed when back button is clicked. | |
Private Member Functions | |
void | setValidators () |
setValidators Sets input validators. | |
void | initElements () |
initElements Initialices the elements. | |
void | isFullFill () |
isFullFill Checks if all of the elements have a value. | |
void | setToolTips () |
setToolTips Sets the help of the screen buttons. | |
void | setIcon (QString path) |
setIcon Sets the icon image. More... | |
Private Attributes | |
Ui::MenuIconOptions * | 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 MenuIconOptions class.
|
explicit |
MenuIconOptions constructor.
parent | Menu icon option parent. |
int MenuIconOptions::getBottomMargin | ( | ) |
getBottomMargin Returns the icon bottom margin.
QString MenuIconOptions::getIconImage | ( | ) |
getIconImage Returns the icon image path.
QString MenuIconOptions::getIconTitle | ( | ) |
getIconTitle Returns the icon title.
int MenuIconOptions::getLeftMargin | ( | ) |
getLeftMargin Returns the icon left margin.
int MenuIconOptions::getRigthMargin | ( | ) |
getRigthMargin Returns the icon right margin.
int MenuIconOptions::getTopMargin | ( | ) |
getTopMargin Returns the icon top margin.
void MenuIconOptions::setController | ( | MenuScreenController * | controller | ) |
setController Replaces the menu screen controller.
controller | Menu screen controller. |
void MenuIconOptions::setCurrentIcon | ( | int | iconRow, |
int | iconCol | ||
) |
setCurrentIcon Sets the number of the current icon.
iconRow | Current icon row. |
iconCol | Current icon column. |
void MenuIconOptions::setEnabledOptions | ( | bool | hasTitle, |
bool | isAutomatic | ||
) |
setEnabledOptions Sets the enabled options.
hasTitle | Wheter the interface has icon title. |
isAutomatic | Wheter the interface has automatic position. |
|
private |
setIcon Sets the icon image.
path | Icon image path. |
void MenuIconOptions::setIconInfo | ( | QString | iconPath, |
QString | iconTitle, | ||
int | top, | ||
int | bottom, | ||
int | left, | ||
int | right | ||
) |
void MenuIconOptions::setProgress | ( | int | progress | ) |
setProgress Sets the progess of the create proccess.
progress | Progress. |
|
virtual |
|
virtual |
|
virtual |