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 QString title() const override { 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)
150 Q_PROPERTY(QString defaultDocumentationLink READ defaultDocumentationLink);
160 Q_PROPERTY(QStringList dependencies READ dependencies)
163 Q_PROPERTY(QString path READ path)
171 Q_PROPERTY(
bool isInstalled READ isInstalled)
177 Q_PROPERTY(
bool isBuiltIn READ isBuiltIn)
183 Q_PROPERTY(QStringList associatedNodeTypes READ associatedNodeTypes)
204 virtual void printAdditionalInfo();
207 QString
slicerWikiUrl()
const{
return "https://www.slicer.org/w/index.php"; }
213 QString defaultDocumentationLink()
const;
222 virtual QString name()
const;
223 virtual void setName(
const QString& name);
227 virtual QString title()
const = 0;
234 virtual QStringList categories()
const;
237 virtual int index()
const;
243 virtual bool isHidden()
const;
246 virtual QStringList contributors()
const;
250 virtual QString helpText()
const;
254 virtual QString acknowledgementText()
const;
259 bool isWidgetRepresentationCreationEnabled()
const;
260 void setWidgetRepresentationCreationEnabled(
bool value);
292 virtual QStringList dependencies()
const;
297 void setPath(
const QString& newPath);
301 bool isInstalled()
const;
302 void setInstalled(
bool value);
306 bool isBuiltIn()
const;
307 void setBuiltIn(
bool value);
310 virtual QStringList associatedNodeTypes()
const;
320 virtual void setup() = 0;
330 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
Convenience method to return slicer wiki URL.