![]() |
Scribus
Open source desktop publishing at your fingertips
|
#include <stylecontext.h>
Public Member Functions | |
StyleContext (const StyleContext &o) | |
StyleContext & | operator= (const StyleContext &o) |
int | version () const |
virtual bool | contextContained (const StyleContext *context) const |
virtual bool | checkConsistency () const |
virtual const Style * | resolve (const QString &name) const =0 |
void | invalidate () |
bool | connect (QObject *receiver, const char *member) const |
bool | disconnect (QObject *receiver, const char *member=0) const |
![]() | |
Observable (UpdateManager *um=NULL) | |
virtual void | update () |
![]() | |
MassObservable (UpdateManager *um=NULL) | |
void | setUpdateManager (UpdateManager *um) |
virtual void | update (StyleContext *what) |
virtual void | updateLayout (StyleContext *what) |
void | connectObserver (Observer< StyleContext * > *o) |
bool | connectObserver (QObject *o, const char *slot) |
void | disconnectObserver (Observer< StyleContext * > *o) |
bool | disconnectObserver (QObject *o, const char *slot=0) |
Protected Attributes | |
int | m_version |
int | m_cnt |
![]() | |
QSet< Observer< StyleContext * > * > | m_observers |
Private_Signal * | changedSignal |
UpdateManager * | m_um |
Additional Inherited Members | |
![]() | |
virtual void | updateNow (UpdateMemento *what) |
Style inheritance works with names. A StyleContext finds the Style to a given name. If there are changes to the Styles contained in a StyleContext, you have to call invalidate() to increase the version info. Styles using this StyleContext will then update their cached values the next time they are used.