@@ -62,8 +62,12 @@ namespace SCIRun
6262 ValueChangedSignal valueChanged_;
6363 };
6464
65-
66-
65+ struct TriggeredScriptInfo
66+ {
67+ explicit TriggeredScriptInfo (const std::string& name);
68+ StringVariable script;
69+ BooleanVariable enabled;
70+ };
6771
6872 class SCISHARE Preferences : boost::noncopyable
6973 {
@@ -73,8 +77,6 @@ namespace SCIRun
7377 Preferences ();
7478
7579 public:
76- // / @todo: reuse Seg3D state vars
77-
7880 TrackedVariable<BooleanVariable> showModuleErrorDialogs;
7981 BooleanVariable saveBeforeExecute;
8082 BooleanVariable showModuleErrorInlineMessages;
@@ -87,11 +89,9 @@ namespace SCIRun
8789 TrackedVariable<BooleanVariable> modulesAreDockable;
8890 StringVariable networkBackgroundColor;
8991
90- // super duper ugly.
91- StringVariable postModuleAddScript_temporarySolution;
92- BooleanVariable postModuleAddScriptEnabled_temporarySolution;
93- StringVariable onNetworkLoadScript_temporarySolution;
94- BooleanVariable onNetworkLoadScriptEnabled_temporarySolution;
92+ TriggeredScriptInfo postModuleAdd;
93+ TriggeredScriptInfo onNetworkLoad;
94+ TriggeredScriptInfo applicationStart;
9595
9696 std::string dataDirectoryPlaceholder () const ;
9797
@@ -101,13 +101,8 @@ namespace SCIRun
101101 std::vector<boost::filesystem::path> dataPath () const ;
102102 void addToDataPath (const boost::filesystem::path& path);
103103 void setDataPath (const std::string& dirs); // ;-delimited
104- // TODO: remove path entry
105-
106-
107- // void save_state();
108104
109105 private:
110- // void initialize_states();
111106 boost::filesystem::path dataDir_;
112107 std::vector<boost::filesystem::path> dataPath_;
113108 };
0 commit comments