Changeset 1236 for trunk/source/interfaces/basic/include/G4UIQt.hh
- Timestamp:
- Feb 8, 2010, 5:19:32 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/interfaces/basic/include/G4UIQt.hh
r1232 r1236 41 41 #include <qmap.h> 42 42 #include <qstringlist.h> 43 #include <qtabwidget.h> 43 44 44 45 class QMainWindow; … … 55 56 class QTextEdit; 56 57 class QLabel; 57 class QTabWidget;58 58 class QResizeEvent; 59 59 class QToolBox; 60 60 class QStringList; 61 class QSplitter; 61 62 62 63 // Class description : … … 79 80 // 80 81 // Class description - end : 82 83 class G4QTabWidget : public QTabWidget { 84 public : 85 G4QTabWidget(); 86 G4QTabWidget(QSplitter*&); 87 void paintEvent ( QPaintEvent * event ); 88 inline void setTabSelected() { tabSelected = true; }; 89 inline void unselectTab() { tabSelected = false; }; 90 inline bool isTabSelected() { return tabSelected; }; 91 bool tabSelected; 92 }; 81 93 82 94 class G4UIQt : public QObject, public G4VBasicShell, public G4VInteractiveSession { … … 174 186 QWidget* fViewComponentsTBWidget; 175 187 QLineEdit* helpLine; 176 QTabWidget* fTabWidget;188 G4QTabWidget* fTabWidget; 177 189 QString fCoutText; 178 190 179 191 signals : 180 void myClicked(const QString &text);192 void refreshTab(const QString &text); 181 193 182 194 private slots : … … 193 205 void ResizeTabWidget( QResizeEvent* ); 194 206 void CoutFilterCallback(const QString&); 207 void RefreshTabCallback (const QString&); 208 195 209 }; 196 210 197 #endif 198 199 #endif 200 211 212 #endif 213 214 #endif 215
Note: See TracChangeset
for help on using the changeset viewer.