Class sh::ui::qt::QtManageProfilesDialog

class sh::ui::qt::QtManageProfilesDialog : public sh::ui::qt::QtDialog, public sh::ui::ManageProfilesDialog

Qt based manage saved settings dialog.

Public Functions

QtManageProfilesDialog()
~QtManageProfilesDialog()
qint64 dialogId()

Returns the dialog id.

Each instance has an id unique in the complete Shallot process lifetime.

Must be called in main thread.

bool isInited()

Returns if this dialog is initialized.

Must be called in main thread.

bool wasAccepted()

Returns if this dialog was ‘accepted’ by the user (typically by clicking some ‘OK’ button).

Must be called in main thread.

void waitClosed()

Wait until the user closed the dialog in some way.

May be called in any thread.

void close()

Closes the dialog.

Must be called in main thread.

bool wasClosed()

Returns if this dialog was closed.

Must be called in main thread.

DialogManager *manager()

Returns the DialogManager which hosts this dialog.

Private Functions

void _createProfileList()
void _createSettingsList()
void _createNodesList()

Private Members

Ui::QtManageProfilesDialog *ui
QStringListModel *_model
sh::settings::ProfileNode *_currentNode = 0
QHash<QListWidgetItem*, QString> _nodes

Private Slots

void on_comboBox_currentTextChanged(const QString &arg1)
void on_btnClose_clicked()
void on_btnDelNode_clicked()
void on_btnDelProfile_clicked()
void slot_listViewactivated(QListWidgetItem*, QListWidgetItem*)