36 Q_PROPERTY(
bool displayHelpAndExit READ displayHelpAndExit CONSTANT)
37 Q_PROPERTY(
bool ignoreSlicerRC READ ignoreSlicerRC CONSTANT)
38 Q_PROPERTY(QString pythonScript READ pythonScript CONSTANT)
39 Q_PROPERTY(QString extraPythonScript READ extraPythonScript CONSTANT)
40 Q_PROPERTY(QString extraPythonScriptProcessedArgumentsCount READ extraPythonScriptProcessedArgumentsCount CONSTANT)
41 Q_PROPERTY(QString pythonCode READ pythonCode CONSTANT)
42 Q_PROPERTY(
bool runPythonAndExit READ runPythonAndExit WRITE setRunPythonAndExit)
43 Q_PROPERTY(
bool disableCLIModules READ disableCLIModules CONSTANT)
44 Q_PROPERTY(
bool disableLoadableModules READ disableLoadableModules CONSTANT)
45 Q_PROPERTY(
bool disableScriptedLoadableModules READ disableScriptedLoadableModules CONSTANT)
46 Q_PROPERTY(
bool disableBuiltInCLIModules READ disableBuiltInCLIModules CONSTANT)
47 Q_PROPERTY(
bool disableBuiltInLoadableModules READ disableBuiltInLoadableModules CONSTANT)
48 Q_PROPERTY(
bool disableBuiltInScriptedLoadableModules READ disableBuiltInScriptedLoadableModules CONSTANT)
49 Q_PROPERTY(
bool displayApplicationInformation READ displayApplicationInformation CONSTANT)
50 Q_PROPERTY(
bool displayVersionAndExit READ displayVersionAndExit CONSTANT)
51 Q_PROPERTY(
bool displayProgramPathAndExit READ displayProgramPathAndExit CONSTANT)
52 Q_PROPERTY(
bool displayHomePathAndExit READ displayHomePathAndExit CONSTANT)
53 Q_PROPERTY(
bool displaySettingsPathAndExit READ displaySettingsPathAndExit CONSTANT)
54 Q_PROPERTY(
bool displayTemporaryPathAndExit READ displayTemporaryPathAndExit CONSTANT)
55 Q_PROPERTY(
bool displayMessageAndExit READ displayMessageAndExit STORED false CONSTANT)
56 Q_PROPERTY(
bool verboseModuleDiscovery READ verboseModuleDiscovery CONSTANT)
57 Q_PROPERTY(
bool disableMessageHandlers READ disableMessageHandlers CONSTANT)
58 Q_PROPERTY(
bool testingEnabled READ isTestingEnabled CONSTANT)
59#ifdef Slicer_USE_PYTHONQT
60 Q_PROPERTY(
bool pythonDisabled READ isPythonDisabled CONSTANT)
62 Q_PROPERTY(QStringList additionalModulePaths READ additionalModulePaths CONSTANT)
63 Q_PROPERTY(QStringList modulesToIgnore READ modulesToIgnore CONSTANT)
70 bool parse(const QStringList& arguments);
73 bool displayHelpAndExit()const;
76 bool ignoreRest() const;
79 bool ignoreSlicerRC()const;
82 QString pythonScript()const;
85 QString extraPythonScript()const;
88 void setExtraPythonScript(const QString& newExtraPythonScript);
93 int extraPythonScriptProcessedArgumentsCount()const;
94 void setExtraPythonScriptProcessedArgumentsCount(
int argumentCount);
97 QString pythonCode()const;
100 bool runPythonAndExit()const;
103 void setRunPythonAndExit(
bool value);
106 QStringList additionalModulePaths()const;
109 QStringList modulesToIgnore()const;
112 bool disableModules()const;
115 bool disableBuiltInModules()const;
118 bool disableCLIModules()const;
121 bool disableBuiltInCLIModules()const;
124 bool disableLoadableModules()const;
127 bool disableBuiltInLoadableModules()const;
130 bool disableScriptedLoadableModules()const;
133 bool disableBuiltInScriptedLoadableModules()const;
136 bool displayVersionAndExit()const;
139 bool displayProgramPathAndExit()const;
142 bool displayHomePathAndExit()const;
145 bool displaySettingsPathAndExit()const;
148 bool displayTemporaryPathAndExit()const;
159 virtual
bool displayMessageAndExit() const;
162 bool displayApplicationInformation() const;
165 bool verboseModuleDiscovery()const;
171 bool disableMessageHandlers()const;
178 bool disableTerminalOutputs()const;
186 bool settingsDisabled() const;
192 bool keepTemporarySettings() const;
199 bool isTestingEnabled()const;
201#ifdef Slicer_USE_PYTHONQT
205 bool isPythonDisabled()
const;
219 QScopedPointer<qSlicerCoreCommandOptionsPrivate>
d_ptr;