Class sh::ui::qt::QtStoreProfileDialog

class sh::ui::qt::QtStoreProfileDialog : public sh::ui::qt::QtDialog, public sh::ui::StoreProfileDialog

Qt based save settings dialog.

Public Functions

QtStoreProfileDialog(std::shared_ptr<const sh::filesystem::Eurl> eurl)
~QtStoreProfileDialog()
QList<sh::ui::StoreProfileDialog::SettingEntry> checkedSettings() override

Returns the list of settings the user has checked to store.

QString profileName() override

Returns the profile the user has chosen to store settings for.

bool withSubDirectories() override

Returns if the user has chosen to apply the checked settings also for subdirectories.

QStringList inheritsFrom() override

Returns the list of profiles the user has chosen to inherit from.

bool hasGlobal() override

Returns if the user has chosen to apply the checked settings for each directory (instead of the current directory).

std::shared_ptr<const sh::filesystem::Eurl> eurl()

Returns the current directory this dialog shall work on.

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 _settingsLevel(int level, bool persist = true)
void _setglobal(bool v)

Private Members

QHash<sh::ui::qt::QtSettingUIFrame*, std::shared_ptr<sh::settings::Setting>> _widgets
QHash<int, QLabel*> _headerlabels
QStringList _inheritProfileNameList
bool _global = false
Ui::QtStoreProfileDialog *ui
int _level

Private Slots

void on_btnAddProf_clicked()
void on_btnGlobal_clicked()
void on_btn22_clicked()
void on_toolButton_2_clicked()
void on_toolButton_clicked()