digiKam
DigikamGenericHtmlGalleryPlugin::AbstractThemeParameter Class Referenceabstract
+ Inheritance diagram for DigikamGenericHtmlGalleryPlugin::AbstractThemeParameter:

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 ()
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ AbstractThemeParameter()

DigikamGenericHtmlGalleryPlugin::AbstractThemeParameter::AbstractThemeParameter ( )
explicit

◆ ~AbstractThemeParameter()

DigikamGenericHtmlGalleryPlugin::AbstractThemeParameter::~AbstractThemeParameter ( )
virtual

Member Function Documentation

◆ createWidget()

virtual QWidget* DigikamGenericHtmlGalleryPlugin::AbstractThemeParameter::createWidget ( QWidget *  parent,
const QString &  value 
) const
pure virtual

◆ defaultValue()

QString DigikamGenericHtmlGalleryPlugin::AbstractThemeParameter::defaultValue ( ) const

◆ init()

void DigikamGenericHtmlGalleryPlugin::AbstractThemeParameter::init ( const QByteArray &  internalName,
const KConfigGroup *  configGroup 
)
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().

◆ internalName()

◆ name()

QString DigikamGenericHtmlGalleryPlugin::AbstractThemeParameter::name ( ) const

◆ valueFromWidget()

virtual QString DigikamGenericHtmlGalleryPlugin::AbstractThemeParameter::valueFromWidget ( QWidget *  ) const
pure virtual

The documentation for this class was generated from the following files: