okular
Okular::ConfigInterface Class Reference
#include <configinterface.h>
Detailed Description
Abstract interface for configuration control.This interface defines a way to configure the Generator itself.
How to use it in a custom Generator:
class MyGenerator : public Okular::Generator, public Okular::ConfigInterface { Q_OBJECT Q_INTERFACES( Okular::ConfigInterface ) ... };
Definition at line 38 of file configinterface.h.
Public Member Functions | |
| virtual void | addPages (KConfigDialog *dialog)=0 |
| virtual bool | reparseConfig ()=0 |
| virtual | ~ConfigInterface () |
Constructor & Destructor Documentation
| virtual Okular::ConfigInterface::~ConfigInterface | ( | ) | [inline, virtual] |
Member Function Documentation
| virtual void Okular::ConfigInterface::addPages | ( | KConfigDialog * | dialog | ) | [pure virtual] |
This method allows the generator to add custom configuration pages to the config dialog of okular.
| virtual bool Okular::ConfigInterface::reparseConfig | ( | ) | [pure virtual] |
This method is called to tell the generator to re-parse its configuration.
Returns true if something has changed.
- Note:
- this method can be called also when the generator is not the active generator, or when there was not changed in the config added by the generator itself. So the suggestion is to check whether something changed, and only in that case return
true
The documentation for this class was generated from the following file:
KDE 4.2 API Reference