 |
CTK
0.1.0
The Common Toolkit is a community effort to provide support code for medical image analysis, surgical navigation, and related projects.
|
Go to the documentation of this file.
21 #ifndef __ctkLayoutViewFactory_h
22 #define __ctkLayoutViewFactory_h
26 #include <QDomDocument>
31 #include "ctkWidgetsExport.h"
32 class ctkLayoutViewFactoryPrivate;
48 Q_PROPERTY(
bool useCachedViews READ useCachedViews WRITE setUseCachedViews);
88 virtual void setupView(QDomElement layoutElement, QWidget* view);
115 QScopedPointer<ctkLayoutViewFactoryPrivate>
d_ptr;
virtual QWidget * createViewFromXML(QDomElement layoutElement)
bool useCachedViews() const
virtual void endSetupLayout()
void setUseCachedViews(bool cache)
QDomElement layoutElement(QWidget *view) const
virtual void registerView(QDomElement layoutElement, QWidget *view)
virtual QWidget * viewFromXML(QDomElement layoutElement)
virtual ~ctkLayoutViewFactory()
Destructor.
virtual void unregisterView(QWidget *view)
QScopedPointer< ctkLayoutViewFactoryPrivate > d_ptr
virtual void beginSetupLayout()
virtual QWidget * createViewFromXML(QDomElement layoutElement)
virtual void unregisterView(QDomElement layoutElement, QWidget *view)
QList< QWidget * > registeredViews() const
virtual QList< QWidget * > viewsFromXML(QDomElement layoutElement)
QList< QWidget * > registeredViews(const QDomElement &layoutElement) const
virtual bool isElementSupported(QDomElement layoutElement) const
virtual void setupView(QDomElement layoutElement, QWidget *view)
virtual QList< QWidget * > createViewsFromXML(QDomElement layoutElement)
ctkTemplateLayoutViewFactory(QObject *parent=0)
ctkLayoutViewFactory(QObject *parent=0)
Constructor.
virtual QStringList supportedElementNames() const