00001 //------------------------------------------------------------- 00002 // Go4 Release Package v3.04-01 (build 30401) 00003 // 28-November-2008 00004 //--------------------------------------------------------------- 00005 // The GSI Online Offline Object Oriented (Go4) Project 00006 // Experiment Data Processing at EE department, GSI 00007 //--------------------------------------------------------------- 00008 // 00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI 00010 // Planckstr. 1, 64291 Darmstadt, Germany 00011 //Contact: http://go4.gsi.de 00012 //---------------------------------------------------------------- 00013 //This software can be used under the license agreements as stated 00014 //in Go4License.txt file which is part of the distribution. 00015 //---------------------------------------------------------------- 00016 #ifndef TGO4WORKSPACE_H 00017 #define TGO4WORKSPACE_H 00018 00019 #include "qworkspace.h" 00020 00021 class TPad; 00022 class TGo4ViewPanel; 00023 00024 00029 class TGo4WorkSpace : public QWorkspace { 00030 Q_OBJECT 00031 00032 public: 00033 00034 TGo4WorkSpace(QWidget *parent); 00035 virtual ~TGo4WorkSpace(); 00036 00037 TGo4ViewPanel* GetActivePanel(); 00038 00039 TPad* GetSelectedPad(); 00040 void SetSelectedPad(TPad* pad); 00041 00042 void ResponseOnPanelEvent(int funcid, TGo4ViewPanel* panel, TPad* pad); 00043 00044 static TGo4WorkSpace* Instance(); 00045 00046 signals: 00047 void panelSignal(TGo4ViewPanel*, TPad*, int); 00048 00049 protected: 00050 virtual bool eventFilter(QObject *fx, QEvent *e); 00051 virtual void closeEvent(QCloseEvent * ce); 00052 00053 protected slots: 00054 void windowActivatedSlot(QWidget*); 00055 00056 private: 00057 TGo4ViewPanel* fxActivePanel; 00058 TPad* fxActivePad; 00059 TPad* fxSelectedPad; 00060 static TGo4WorkSpace* fInstance; 00061 }; 00062 00063 #endif //TGO4WORKSPACE_H 00064 00065 //----------------------------END OF GO4 SOURCE FILE ---------------------