Class sh::settings::Setting

class sh::settings::Setting

Abstract base class for a Shallot setting.

Those have the greatest flexibility. They have to be stored manually by the user with many options. See Shallot documentation for details.

Use sh::settings::SettingsRegistration for registering an implementation.

Subclassed by sh::scripting::api::ApiSetting, sh::settings::common::FileDetailsPanelVisible, sh::settings::common::FileViewIconListThumbDimension, sh::settings::common::FileViewPath, sh::settings::common::FileViewViewmode, sh::settings::common::JumpbarMode, sh::settings::common::NumberOfFilePanels, sh::settings::common::ShowHiddenFiles, sh::settings::common::ShowTree, sh::settings::common::SizeFormattingMode, sh::settings::common::StickyTreeview, sh::settings::common::WindowTitle

Public Functions

Setting()

Is (for subclasses) intended to be directly constructed from everywhere or by registering a factory somewhere.

~Setting()
QString name() = 0

Gets the internal name.

QString description() = 0

Gets the description text.

SettingGroup group() = 0

Gets the group;.

bool isAdvancedSetting() = 0

Is this an advanced setting?

void setValue(sh::ui::FileView*, QString)

Called from Shallot core when the value was set (for a per-fileview setting).

void setValue(QString)

Called from Shallot core when the value was set (for a not-per-fileview setting).

bool isGlobal() = 0

Does this setting apply globally or just for a certain subtree of nodes?

bool isPerFileview() = 0

Does this setting apply for each fileview individually or for the complete main window?

QString getValue(sh::ui::FileView *filelist) = 0

Get the currently set value.

QString valueDescription(QString value)

Gets a human readable description text for a value.

Public Static Functions

QString getGroupDescription(int g)

Low-level function which gets the description text of a group.