21 #ifndef __qSlicerScriptedLoadableModule_h 22 #define __qSlicerScriptedLoadableModule_h 25 #include <QVariantMap> 30 #include "qSlicerBaseQTGUIExport.h" 32 class qSlicerScriptedLoadableModulePrivate;
37 Q_PROPERTY(QString title READ title WRITE setTitle)
39 Q_PROPERTY(QStringList categories READ categories WRITE setCategories)
40 Q_PROPERTY(QStringList contributors READ contributors WRITE setContributors)
41 Q_PROPERTY(QStringList associatedNodeTypes READ associatedNodeTypes WRITE setAssociatedNodeTypes)
42 Q_PROPERTY(QString helpText READ helpText WRITE setHelpText)
43 Q_PROPERTY(QString acknowledgementText READ acknowledgementText WRITE setAcknowledgementText)
44 Q_PROPERTY(
QVariantMap extensions READ extensions WRITE setExtensions)
45 Q_PROPERTY(QIcon icon READ icon WRITE setIcon)
46 Q_PROPERTY(
bool hidden READ isHidden WRITE setHidden)
47 Q_PROPERTY(QStringList dependencies READ dependencies WRITE setDependencies)
48 Q_PROPERTY(
int index READ index WRITE setIndex)
53 typedef qSlicerScriptedLoadableModulePrivate
Pimpl;
57 QString pythonSource()const;
58 bool setPythonSource(const QString& newPythonSource);
60 virtual QString title()const ;
61 void setTitle(const QString& newTitle);
63 virtual QStringList categories()const;
64 void setCategories(const QStringList& newCategories);
66 virtual QStringList contributors()const;
67 void setContributors(const QStringList& newContributors);
69 virtual QStringList associatedNodeTypes()const;
70 void setAssociatedNodeTypes(const QStringList& newAssociatedNodeTypes);
72 virtual QString helpText()const;
73 void setHelpText(const QString& newHelpText);
75 virtual QString acknowledgementText()const;
76 void setAcknowledgementText(const QString& newAcknowledgementText);
81 virtual QIcon icon()const;
82 void setIcon(const QIcon& newIcon);
84 virtual QStringList dependencies() const;
85 void setDependencies(const QStringList& dependencies);
87 virtual
int index() const;
88 void setIndex(const
int index);
92 virtual
bool isHidden()const;
93 void setHidden(
bool hidden);
99 void registerFileDialog();
108 QScopedPointer<qSlicerScriptedLoadableModulePrivate> d_ptr;
111 Q_DECLARE_PRIVATE(qSlicerScriptedLoadableModule);
112 Q_DISABLE_COPY(qSlicerScriptedLoadableModule);
Superclass for MRML logic classes.
qSlicerScriptedLoadableModulePrivate Pimpl