![]() |
CTK
0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
|
Example application settings panel. More...
#include <Applications/ctkCommandLineModuleExplorer/ctkCmdLineModuleExplorerDirectorySettings.h>
Public Member Functions | |
void | applySettings () |
ctkCmdLineModuleExplorerDirectorySettings (ctkCmdLineModuleDirectoryWatcher *directoryWatcher) | |
![]() | |
QStringList | changedSettings () const |
ctkSettingsPanel (QWidget *parent=0) | |
Constructor. More... | |
void | registerProperty (const QString &settingKey, QObject *object, const QString &objectProperty, const char *propertySignal, const QString &settingLabel=QString(), SettingOptions options=OptionNone, QSettings *settings=0) |
Q_INVOKABLE void | registerProperty (const QString &settingKey, QObject *object, const QString &objectProperty, const QByteArray &propertySignal, const QString &settingLabel=QString(), SettingOptions options=OptionNone, QSettings *settings=0) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More... | |
void | setSetting (const QString &key, const QVariant &newVal) |
void | setSettings (QSettings *settings) |
QString | settingLabel (const QString &settingKey) const |
Return the label associated to a setting. More... | |
SettingOptions | settingOptions (const QString &settingKey) const |
Return the options associated to a setting. More... | |
QSettings * | settings () const |
virtual | ~ctkSettingsPanel () |
Destructor. More... | |
Additional Inherited Members | |
![]() | |
enum | SettingOption { OptionNone = 0x0000 , OptionRequireRestart = 0x0001 , OptionAll_Mask = ~0 } |
typedef QWidget | Superclass |
Superclass typedef. More... | |
![]() | |
virtual void | reloadSettings () |
virtual void | resetSettings () |
virtual void | restoreDefaultSettings () |
![]() | |
void | settingChanged (const QString &key, const QVariant &value) |
Fired anytime a property is modified. More... | |
![]() | |
void | updateSetting (const QString &key) |
![]() | |
QVariant | defaultPropertyValue (const QString &key) const |
QVariant | previousPropertyValue (const QString &key) const |
QVariant | propertyValue (const QString &key) const |
![]() | |
QScopedPointer< ctkSettingsPanelPrivate > | d_ptr |
![]() | |
QSettings * | settings |
Example application settings panel.
Definition at line 35 of file ctkCmdLineModuleExplorerDirectorySettings.h.
ctkCmdLineModuleExplorerDirectorySettings::ctkCmdLineModuleExplorerDirectorySettings | ( | ctkCmdLineModuleDirectoryWatcher * | directoryWatcher | ) |
|
virtual |
Forget the old property values so next time resetSettings is called it will set the properties with the same values when applySettings() is called.
Reimplemented from ctkSettingsPanel.