GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4MdiArea.h
Go to the documentation of this file.
1 // $Id$
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 #ifndef TGO4MDIAREA_H
15 #define TGO4MDIAREA_H
16 
17 #include <QMdiArea>
18 
19 #include <QtCore/QEvent>
20 
21 class TPad;
22 class TGo4ViewPanel;
23 
24 
28 class TGo4MdiArea : public QMdiArea {
29  Q_OBJECT
30 
31  public:
32 
33  TGo4MdiArea(QWidget *parent = 0);
34  virtual ~TGo4MdiArea();
35 
37 
38  TPad* GetSelectedPad();
39  void SetSelectedPad(TPad* pad);
40 
42  QMdiSubWindow* AddGo4SubWindow(QWidget * widget, Qt::WindowFlags flags=0);
43 
44  void ResponseOnPanelEvent(int funcid, TGo4ViewPanel* panel, TPad* pad);
45 
46  static TGo4MdiArea* Instance();
47 
48  signals:
49  void panelSignal(TGo4ViewPanel*, TPad*, int);
50 
51  protected slots:
52  void subWindowActivatedSlot(QMdiSubWindow * window);
53 
54  private:
56  TPad* fxActivePad;
58 
60 };
61 
62 #endif
TPad * fxSelectedPad
Definition: TGo4MdiArea.h:57
TPad * GetSelectedPad()
Definition: TGo4MdiArea.cpp:52
static TGo4MdiArea * Instance()
Definition: TGo4MdiArea.cpp:27
TPad * fxActivePad
Definition: TGo4MdiArea.h:56
void ResponseOnPanelEvent(int funcid, TGo4ViewPanel *panel, TPad *pad)
Definition: TGo4MdiArea.cpp:90
static TGo4MdiArea * fInstance
Definition: TGo4MdiArea.h:59
TGo4ViewPanel * GetActivePanel()
Definition: TGo4MdiArea.cpp:64
void subWindowActivatedSlot(QMdiSubWindow *window)
Definition: TGo4MdiArea.cpp:82
virtual ~TGo4MdiArea()
Definition: TGo4MdiArea.cpp:46
TGo4ViewPanel * fxActivePanel
Definition: TGo4MdiArea.h:55
void SetSelectedPad(TPad *pad)
Definition: TGo4MdiArea.cpp:57
QMdiSubWindow * AddGo4SubWindow(QWidget *widget, Qt::WindowFlags flags=0)
Definition: TGo4MdiArea.cpp:69
TGo4MdiArea(QWidget *parent=0)
Definition: TGo4MdiArea.cpp:32
void panelSignal(TGo4ViewPanel *, TPad *, int)