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)
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 QString title()const override ;
61 void setTitle(const QString& newTitle);
63 QStringList categories()const override;
64 void setCategories(const QStringList& newCategories);
66 QStringList contributors()const override;
67 void setContributors(const QStringList& newContributors);
69 QStringList associatedNodeTypes()const override;
70 void setAssociatedNodeTypes(const QStringList& newAssociatedNodeTypes);
72 QString helpText()const override;
73 void setHelpText(const QString& newHelpText);
75 QString acknowledgementText()const override;
76 void setAcknowledgementText(const QString& newAcknowledgementText);
81 QIcon icon()const override;
82 void setIcon(const QIcon& newIcon);
84 QStringList dependencies() const override;
85 void setDependencies(const QStringList& dependencies);
87 int index() const override;
88 void setIndex(const
int index);
92 bool isHidden()const override;
93 void setHidden(
bool hidden);
97 void setup() override;
99 void registerFileDialog();
108 QScopedPointer<qSlicerScriptedLoadableModulePrivate> d_ptr;
Superclass for MRML logic classes.
qSlicerScriptedLoadableModulePrivate Pimpl