digiKam
|
Public Member Functions | |
AbstractThemeParameter () | |
virtual QWidget * | createWidget (QWidget *parent, const QString &value) const =0 |
QString | defaultValue () const |
virtual void | init (const QByteArray &internalName, const KConfigGroup *configGroup) |
QByteArray | internalName () const |
QString | name () const |
virtual QString | valueFromWidget (QWidget *) const =0 |
virtual | ~AbstractThemeParameter () |
Represents a theme parameter. For each type of parameter, one should inherit from this class and add the necessary code in the Theme class to load the new type.
|
explicit |
|
virtual |
|
pure virtual |
This method should return a QWidget representing the parameter, initialized with value.
Implemented in DigikamGenericHtmlGalleryPlugin::StringThemeParameter, DigikamGenericHtmlGalleryPlugin::ListThemeParameter, DigikamGenericHtmlGalleryPlugin::IntThemeParameter, and DigikamGenericHtmlGalleryPlugin::ColorThemeParameter.
Referenced by DigikamGenericHtmlGalleryPlugin::HTMLParametersPage::initializePage().
QString DigikamGenericHtmlGalleryPlugin::AbstractThemeParameter::defaultValue | ( | ) | const |
|
virtual |
Reads theme parameters from configGroup. Initializes the internalName, name and defaultValue fields.
Reimplemented in DigikamGenericHtmlGalleryPlugin::ListThemeParameter, and DigikamGenericHtmlGalleryPlugin::IntThemeParameter.
References internalName().
Referenced by DigikamGenericHtmlGalleryPlugin::IntThemeParameter::init(), and DigikamGenericHtmlGalleryPlugin::ListThemeParameter::init().
QByteArray DigikamGenericHtmlGalleryPlugin::AbstractThemeParameter::internalName | ( | ) | const |
QString DigikamGenericHtmlGalleryPlugin::AbstractThemeParameter::name | ( | ) | const |
|
pure virtual |
The opposite of createWidget: given a widget previously created with createWidget, this method returns the current widget value.
Implemented in DigikamGenericHtmlGalleryPlugin::StringThemeParameter, DigikamGenericHtmlGalleryPlugin::ListThemeParameter, DigikamGenericHtmlGalleryPlugin::IntThemeParameter, and DigikamGenericHtmlGalleryPlugin::ColorThemeParameter.
Referenced by DigikamGenericHtmlGalleryPlugin::HTMLWizard::validateCurrentPage().