#include <settings.h>
Public Member Functions | |
Settings (QWidget *parent=0) | |
Settings contructor. 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 | getDefaultDir () |
getDefaultDir Returns the default folder path. More... | |
void | setDefaultDir (QString path) |
setDefaultDir Sets the default folder path. More... | |
void | setAlwaysAsk (bool value) |
setAlwaysAsk Sets always ask value. More... | |
bool | getAlwaysAsk () |
getAlwaysAsk Returns if the always ask is checked. More... | |
void | retranslate () |
retranslate Retranslates setttings view. | |
void | setSpanishLanguage () |
setSpanishLanguage Sets spanish language as default language | |
void | setEnglishLanguage () |
setEnglishLanguage Sets english language as default language | |
![]() | |
View (QWidget *parent) | |
View constructor. More... | |
void | show (QPoint position, QSize size) |
show Shows the view. More... | |
Private Slots | |
void | on_aboutBtn_clicked () |
on_aboutBtn_clicked This slot is executed when about button is clicked. | |
void | on_homeBtn_clicked () |
on_homeBtn_clicked This slot is executed when home button is clicked. | |
void | on_alwaysAskRadio_clicked (bool checked) |
on_alwaysAskRadio_clicked This slot is executed when always ask button is clicked. More... | |
void | on_browserBtn_clicked () |
on_browserBtn_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_browserDirInput_textEdited () |
on_browserDirInput_textEdited This slot is executed when browse folder input is edited. | |
void | on_resetValueBtn_clicked () |
on_resetValueBtn_clicked This slot is executed when reset button is clicked. | |
void | on_spanishRadio_clicked () |
on_spanishRadio_clicked This slot is executed when spanish radio button is clicked. | |
void | on_englishRadio_clicked () |
on_englishRadio_clicked This slot is executed when english radio button is clicked. | |
Private Member Functions | |
void | setValidators () |
setValidators Sets the inputs validators. | |
void | initElements () |
initElements Initalices the elements. | |
void | isFullFill () |
isFullFill Checks if all of the inputs have value. | |
void | alwaysAskOptions (bool checked) |
alwaysAskOptions Sets always ask options More... | |
void | setToolTips () |
setToolTips Sets buttons help. | |
Private Attributes | |
Ui::Settings * | 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 Settings class.
|
explicit |
|
private |
alwaysAskOptions Sets always ask options
checked | Whether always ask is checked. |
bool Settings::getAlwaysAsk | ( | ) |
getAlwaysAsk Returns if the always ask is checked.
True
if always ask is checked, false
otherwise. QString Settings::getDefaultDir | ( | ) |
getDefaultDir Returns the default folder path.
|
privateslot |
on_alwaysAskRadio_clicked This slot is executed when always ask button is clicked.
checked | Whether always ask button is checked. |
void Settings::setAlwaysAsk | ( | bool | value | ) |
setAlwaysAsk Sets always ask value.
value | Whether always ask is checked. |
void Settings::setDefaultDir | ( | QString | path | ) |
setDefaultDir Sets the default folder path.
path | Folder path. |
|
virtual |
|
virtual |
|
virtual |