jovie
#include <stringreplacerconf.h>
Public Types | |
enum | SubstitutionType { stWord, stRegExp } |
Public Member Functions | |
StringReplacerConf (QWidget *parent, const QVariantList &args=QVariantList()) | |
virtual | ~StringReplacerConf () |
virtual void | defaults () |
virtual void | load (KConfig *c, const QString &configGroup) |
virtual void | save (KConfig *c, const QString &configGroup) |
virtual bool | supportsMultiInstance () |
virtual QString | userPlugInName () |
Public Member Functions inherited from KttsFilterConf | |
KttsFilterConf (QWidget *parent, const QVariantList &) | |
virtual | ~KttsFilterConf () |
virtual bool | isSBD () |
Additional Inherited Members | |
Public Slots inherited from KttsFilterConf | |
void | configChanged () |
Signals inherited from KttsFilterConf | |
void | changed (bool) |
Static Public Member Functions inherited from KttsFilterConf | |
static QString | realFilePath (const QString &filename) |
Protected Member Functions inherited from KttsFilterConf | |
QString | getLocation (const QString &name) |
Protected Attributes inherited from KttsFilterConf | |
QStringList | m_path |
Detailed Description
Definition at line 44 of file stringreplacerconf.h.
Member Enumeration Documentation
Enumerator | |
---|---|
stWord | |
stRegExp |
Definition at line 59 of file stringreplacerconf.h.
Constructor & Destructor Documentation
|
explicit |
Constructor.
Definition at line 56 of file stringreplacerconf.cpp.
|
virtual |
Destructor.
Definition at line 103 of file stringreplacerconf.cpp.
Member Function Documentation
|
virtual |
This function is called to set the settings in the module to sensible default values.
It gets called when hitting the "Default" button. The default values should probably be the same as the ones the application uses when started without a config file. Note that defaults should be applied to the on-screen widgets; not to the config file.
Reimplemented from KttsFilterConf.
Definition at line 348 of file stringreplacerconf.cpp.
|
virtual |
This method is invoked whenever the module should read its configuration (most of the times from a config file) and update the user interface.
This happens when the user clicks the "Reset" button in the control center, to undo all of his changes and restore the currently valid settings. Note that KTTSMGR calls this when the plugin is loaded, so it not necessary to call it in your constructor. The plugin should read its configuration from the specified group in the specified config file.
- Parameters
-
c Pointer to a KConfig object. configGroup Call config->setGroup with this argument before loading your configuration.
When a plugin is first added to KTTSMGR, load will be called with a Null configGroup. In this case, the plugin will not have any instance-specific parameters to load, but it may still wish to load parameters that apply to all instances of the plugin.
Reimplemented from KttsFilterConf.
Definition at line 107 of file stringreplacerconf.cpp.
|
virtual |
This function gets called when the user wants to save the settings in the user interface, updating the config files or wherever the configuration is stored.
The method is called when the user clicks "Apply" or "Ok". The plugin should save its configuration in the specified group of the specified config file.
- Parameters
-
c Pointer to a KConfig object. configGroup Call config->setGroup with this argument before saving your configuration.
Reimplemented from KttsFilterConf.
Definition at line 240 of file stringreplacerconf.cpp.
|
virtual |
Indicates whether the plugin supports multiple instances.
Return False if only one instance of the plugin can be configured.
- Returns
- True if multiple instances are possible.
Reimplemented from KttsFilterConf.
Definition at line 362 of file stringreplacerconf.cpp.
|
virtual |
Returns the name of the plugin.
Displayed in Filters tab of KTTSMgr. If there can be more than one instance of a filter, it should return a unique name for each instance. The name should be translated for the user if possible. If the plugin is not correctly configured, return an empty string.
- Returns
- Filter instance name.
Reimplemented from KttsFilterConf.
Definition at line 364 of file stringreplacerconf.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:32:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.