2 // Created : 31 octobre 2001
3 // Author : Francis KLOSS
11 // Acces a l'ihm de SALOME
12 // -----------------------
14 #include "QAD_Desktop.h"
17 #include "SUPERVGUI_Def.h"
18 #include "SUPERVGUI_Service.h"
19 #include "SUPERVGUI_Main.h"
20 //#include "SUPERVGUI_Information.h"
23 // Definition de la classe principale du module de supervision
24 // -----------------------------------------------------------
26 class SUPERVGUI: public QObject {
33 QAD_Desktop* getDesktop();
34 SUPERV_Engine getEngine();
35 QAD_Study* getActiveStudy()
38 SUPERVGUI_Service* getBrowser();
40 //bool information(SUPERV_CNode node, bool isReadOnly);
41 void putInfo(const char* mess);
43 void importDataflow();
44 void exportDataflow();
46 void modifyDataflow();
47 void reloadDataflow();
51 void suspendResumeDataflow();
52 void showComponents();
54 void init(QAD_Desktop* parent);
55 SUPERVGUI_Main* getMain();
56 void customPopup(QPopupMenu* popup);
57 void activeStudyChanged();
59 bool isContains(QAD_Study* theStudy, const QString theKey);
61 void registerGraph(QString theName, SUPERVGUI_Main* theGraph);
62 void unregisterGraph(SUPERVGUI_Main* theGraph);
63 QAD_StudyFrame* createGraph();
66 theIsOwner = true if Selected object belongs to Suipervision.
67 theIsDataflow = true if Selected object is Dataflow
69 void whatIsSelected(const Handle(SALOME_InteractiveObject)& theObj, bool& theIsOwner, bool& theIsDataflow);
72 void setMain(QWidget* w);
73 void displayDataflow();
74 void renameDataflow();
76 void onGraphClosed(QAD_StudyFrame* );
79 void loadEngine(SALOME_NamingService* namingService);
85 SUPERVGUI_Service* browser;
86 //SUPERVGUI_Information* info;
89 SUPERVGUI_Main* main; // active main
90 QPtrList<SUPERVGUI_Main> myGraphList;
94 // Acces a l'instance unique de la classe du module de l'interface graphique de la supervision
95 // -------------------------------------------------------------------------------------------
96 extern SUPERVGUI Supervision;