21 #ifndef __qSlicerAbstractCoreModule_h 22 #define __qSlicerAbstractCoreModule_h 26 #include <QStringList> 32 #include "qSlicerBaseQTCoreExport.h" 38 class qSlicerAbstractCoreModulePrivate;
41 #define qSlicerGetTitleMacro(_TITLE) \ 42 static QString staticTitle() { return _TITLE; } \ 43 virtual QString title()const { return _TITLE; } 73 Q_PROPERTY(QString name READ name)
76 Q_PROPERTY(QString title READ title)
84 Q_PROPERTY(QStringList categories READ categories)
95 Q_PROPERTY(
int index READ index)
104 Q_PROPERTY(
bool hidden READ isHidden)
111 Q_PROPERTY(
bool widgetRepresentationCreationEnabled
116 READ isWidgetRepresentationCreationEnabled
117 WRITE setWidgetRepresentationCreationEnabled)
120 Q_PROPERTY(QString helpText READ helpText)
126 Q_PROPERTY(QString acknowledgementText READ acknowledgementText)
135 Q_PROPERTY(QStringList contributors READ contributors)
144 Q_PROPERTY(QString slicerWikiUrl READ slicerWikiUrl)
149 Q_PROPERTY(QStringList dependencies READ dependencies)
157 Q_PROPERTY(QString path READ path)
165 Q_PROPERTY(
bool isInstalled READ isInstalled)
171 Q_PROPERTY(
bool isBuiltIn READ isBuiltIn)
177 Q_PROPERTY(QStringList associatedNodeTypes READ associatedNodeTypes)
198 virtual void printAdditionalInfo();
201 QString
slicerWikiUrl()
const{
return "http://www.slicer.org/slicerWiki/index.php"; }
211 virtual QString name()
const;
212 virtual void setName(
const QString& name);
216 virtual QString title()
const = 0;
223 virtual QStringList categories()
const;
226 virtual int index()
const;
232 virtual bool isHidden()
const;
235 virtual QStringList contributors()
const;
239 virtual QString helpText()
const;
243 virtual QString acknowledgementText()
const;
248 bool isWidgetRepresentationCreationEnabled()
const;
249 void setWidgetRepresentationCreationEnabled(
bool value);
278 virtual QStringList dependencies()
const;
283 void setPath(
const QString& newPath);
287 bool isInstalled()
const;
288 void setInstalled(
bool value);
292 bool isBuiltIn()
const;
293 void setBuiltIn(
bool value);
296 virtual QStringList associatedNodeTypes()
const;
306 virtual void setup() = 0;
316 QScopedPointer<qSlicerAbstractCoreModulePrivate>
d_ptr;
Superclass for MRML logic classes.
A set of MRML Nodes that supports serialization and undo/redo.
QScopedPointer< qSlicerAbstractCoreModulePrivate > d_ptr
qSlicerAbstractCoreModule is the base class of any module in Slicer.
QString slicerWikiUrl() const
Convenient method to return slicer wiki URL.