1 // File : SUPERVGUI_Service.h
2 // Created : 7 / 11 / 2001
3 // Author : Francis KLOSS
8 #ifndef SUPERVGUI_Service_H
9 #define SUPERVGUI_Service_H
12 #include "SUPERVGUI_Def.h"
13 #include <qtabwidget.h>
14 #include <qhgroupbox.h>
15 #include <qwidgetstack.h>
18 //*****************************************************
19 // Pane for Python script editing
20 //*****************************************************
21 class SUPERVGUI_PythonEditPane: public QFrame {
25 SUPERVGUI_PythonEditPane(QWidget* theParent);
26 ~SUPERVGUI_PythonEditPane() {};
28 QString getFuncName();
31 { return (myText->paragraphs() > 1); }
33 SUPERV_Strings getFunction();
34 void setFunction(SUPERV_Strings theStr);
42 //QLineEdit* myNameEdt;
43 //QLineEdit* myParamEdt;
45 //QLineEdit* myOutParamEdt;
46 QPushButton* myNextBtn;
48 QTextStream* myIStream;
53 //*****************************************************
54 // Dialog box for node creation
55 //*****************************************************
57 class SUPERVGUI_Service: public QDialog {
61 SUPERVGUI_Service(SALOME_NamingService* ns);
67 void showEvent(QShowEvent* theEvent);
73 void tabChanged(QWidget *);
74 void addComputeNode();
75 void addFactoryNode();
77 void typeNodeSelected(int theRow);
80 QListView* components;
81 SALOME_NamingService* naming;
83 QWidgetStack* myStackWidget;
87 SUPERVGUI_PythonEditPane* myScriptPane;
89 SUPERVGUI_PythonEditPane* myInitPane;
90 SUPERVGUI_PythonEditPane* myMorePane;
91 SUPERVGUI_PythonEditPane* myNextPane;
93 QTabWidget* myTabPane;
96 QComboBox* myTypeCombo;
102 class SUPERVGUI_EditPythonDlg: public QDialog {
106 SUPERVGUI_EditPythonDlg(bool isLoop = false);
107 ~SUPERVGUI_EditPythonDlg() {};
109 // Not Loop functions
110 QString getFuncName()
111 { return myEditPane->getFuncName(); }
114 { return myEditPane->isDefined(); }
116 SUPERV_Strings getFunction()
117 { return myEditPane->getFunction(); }
119 void setFunction(SUPERV_Strings theStr)
120 { myEditPane->setFunction(theStr); }
123 QString getInitFuncName()
124 { return myInitPane->getFuncName(); }
126 SUPERV_Strings getInitFunction()
127 { return myInitPane->getFunction(); }
129 void setInitFunction(SUPERV_Strings theStr)
130 { myInitPane->setFunction(theStr); }
133 QString getMoreFuncName()
134 { return myMorePane->getFuncName(); }
136 SUPERV_Strings getMoreFunction()
137 { return myMorePane->getFunction(); }
139 void setMoreFunction(SUPERV_Strings theStr)
140 { myMorePane->setFunction(theStr); }
143 QString getNextFuncName()
144 { return myNextPane->getFuncName(); }
146 SUPERV_Strings getNextFunction()
147 { return myNextPane->getFunction(); }
149 void setNextFunction(SUPERV_Strings theStr)
150 { myNextPane->setFunction(theStr); }
153 SUPERVGUI_PythonEditPane* myEditPane;
154 SUPERVGUI_PythonEditPane* myInitPane;
155 SUPERVGUI_PythonEditPane* myMorePane;
156 SUPERVGUI_PythonEditPane* myNextPane;