Class sh::ui::StoreProfileDialog

class sh::ui::StoreProfileDialog : public sh::ui::Dialog

The ‘Save Settings’ dialog.

Subclassed by sh::ui::qt::QtStoreProfileDialog, sh::ui::web::WebStoreProfileDialog

Public Functions

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

Parameters
  • eurl: The current directory this dialog shall work on.

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

Returns the current directory this dialog shall work on.

QList<SettingEntry> checkedSettings() = 0

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

QString profileName() = 0

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

bool withSubDirectories() = 0

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

QStringList inheritsFrom() = 0

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

bool hasGlobal() = 0

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

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 Members

std::shared_ptr<const sh::filesystem::Eurl> _eurl
class SettingEntry

A storable entry in a ‘Save Settings’ dialog.

Public Functions

SettingEntry(sh::settings::Setting *setting, int onlyInFileview = -1)
sh::settings::Setting *setting()

Returns the setting to store.

int fileview()

Returns the index of the file view to store this setting for (or -1 for all).

bool isForFileview()

Returns if this setting is to be stored for a particular file view (instead of for all).

Private Members

sh::settings::Setting *_setting
int _fileview