20 #ifndef _GUIOBSERVERS_HXX_
21 #define _GUIOBSERVERS_HXX_
54 class SalomePythonNode;
67 class InputDataStreamPort;
68 class OutputDataStreamPort;
70 class ComponentInstance;
72 class HomogeneousPoolContainer;
115 class SubjectReference;
124 virtual void select(
bool isSelected);
126 virtual std::string getName();
127 virtual bool setName(std::string name);
128 virtual bool setProperties(std::map<std::string, std::string> properties);
129 virtual std::map<std::string, std::string> getProperties();
130 virtual std::vector<std::string> knownProperties();
132 virtual void setParent(
Subject* son);
133 virtual bool destroy(
Subject *son);
134 virtual void loadChildren();
135 virtual void loadLinks();
136 virtual void addSubjectReference(
Subject *
ref);
137 virtual void clean(
Command *command=0);
138 void localclean(
Command *command=0);
139 void registerUndoDestroy();
142 static void erase(
Subject* sub,
Command *command=0,
bool post=
false);
144 virtual void setProgress( std::string newProgress );
147 std::set<GuiObserver *> _setObs;
159 virtual void select(
bool isSelected);
161 virtual void incrementSubjects(
Subject *subject);
162 virtual void decrementSubjects(
Subject *subject);
165 static std::string eventName(
GuiEvent event);
166 static void setEventMap();
178 virtual void select(
bool isSelected);
207 virtual std::string getName();
208 virtual bool setName(std::string name);
211 virtual void clean(
Command *command=0);
212 void localclean(
Command *command=0);
216 virtual bool setValue(std::string value);
217 void setExecValue(std::string value);
218 std::string getExecValue();
219 void registerUndoDestroy();
233 virtual bool setValue(std::string value);
246 virtual bool setValue(std::string value);
257 virtual bool setProperties(std::map<std::string, std::string> properties);
273 virtual bool setProperties(std::map<std::string, std::string> properties);
293 virtual bool setProperties(std::map<std::string, std::string> properties);
294 virtual std::map<std::string, std::string> getProperties();
295 virtual bool reparent(
Subject* parent);
296 virtual bool copy(
Subject* parent);
297 virtual std::string getName();
298 virtual bool setName(std::string name);
300 virtual void clean(
Command *command=0);
301 void registerUndoDestroy();
310 void localclean(
Command *command=0);
313 virtual void removeExternalLinks();
314 virtual void removeExternalControlLinks();
315 virtual void saveLinks();
316 virtual void restoreLinks();
317 virtual bool putInComposedNode(std::string name,std::string type,
bool toSaveRestoreLinks=
true);
318 virtual int isValid();
319 void setExecState(
int execState);
324 std::string name =
"");
326 std::string name =
"");
328 std::string name =
"");
330 std::string name =
"");
343 std::vector< std::pair<YACS::ENGINE::OutPort *, YACS::ENGINE::InPort *> >
dataLinks;
344 std::vector< std::pair<YACS::ENGINE::OutPort *, YACS::ENGINE::InPort *> >
dataflowLinks;
362 std::string name =
"",
364 std::string compo =
"",
365 std::string type =
"");
421 virtual std::string getName();
422 virtual std::string getLabelForHuman()
const = 0;
423 virtual bool setName(std::string name);
425 virtual std::map<std::string, std::string> getProperties();
426 virtual bool setProperties(std::map<std::string, std::string> properties);
431 virtual void notifyComponentsChange(
GuiEvent event,
int type,
Subject* son);
432 virtual void clean(
Command *command=0);
433 void localclean(
Command *command=0);
434 bool isUsed() {
return !_subComponentSet.empty(); }
446 void registerUndoDestroy();
454 void registerUndoDestroy();
456 std::string
getLabelForHuman()
const {
return std::string(
"Salome Homogeneous Pool Container"); }
459 class SubjectServiceNode;
466 virtual std::string getName();
467 virtual void setContainer();
473 virtual bool setProperties(std::map<std::string, std::string> properties);
474 virtual std::map<std::string, std::string> getProperties();
475 virtual void notifyServicesChange(
GuiEvent event,
int type,
Subject* son);
476 virtual std::pair<std::string, int> getKey();
477 virtual void clean(
Command *command=0);
479 void localclean(
Command *command=0);
596 bool replace =
false);
599 std::map<int, SubjectNode*> getBodyMap();
600 virtual void completeChildrenSubjectList(
SubjectNode *son);
602 virtual bool setSelect(std::string select);
603 virtual bool setCase(std::string caseId,
SubjectNode* snode);
604 virtual bool hasValue();
605 virtual std::string getValue();
606 virtual void houseKeepingAfterCutPaste(
bool isCut,
SubjectNode *son);
607 virtual void clean(
Command *command=0);
608 void localclean(
Command *command=0);
665 virtual bool setAlgorithm(
const std::string& alglib,
const std::string& symbol);
696 virtual bool setScript(std::string script);
740 std::string service);
904 virtual bool setProperties(std::map<std::string, std::string> properties);