GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
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 fuer 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
21class TPad;
22class TGo4ViewPanel;
23
26
27class TGo4MdiArea : public QMdiArea {
28 Q_OBJECT
29
30 public:
31
32 TGo4MdiArea(QWidget *parent = nullptr);
33 virtual ~TGo4MdiArea();
34
36
38
39 TPad *GetSelectedPad();
40 void SetSelectedPad(TPad *pad);
41
43 QMdiSubWindow* AddGo4SubWindow(QWidget *widget, Qt::WindowFlags flags = Qt::Widget);
44
45 void ResponseOnPanelEvent(int funcid, TGo4ViewPanel *panel, TPad *pad);
46
47 static TGo4MdiArea* Instance();
48
49 signals:
50 void panelSignal(TGo4ViewPanel *, TPad *, int);
51
52 protected slots:
53 void subWindowActivatedSlot(QMdiSubWindow *window);
54
55 private:
57 TPad *fxActivePad{nullptr};
58 TPad *fxSelectedPad{nullptr};
59
61};
62
63#endif
TGo4MdiArea(QWidget *parent=nullptr)
TPad * fxSelectedPad
Definition TGo4MdiArea.h:58
void panelSignal(TGo4ViewPanel *, TPad *, int)
void ResponseOnPanelEvent(int funcid, TGo4ViewPanel *panel, TPad *pad)
QMdiSubWindow * AddGo4SubWindow(QWidget *widget, Qt::WindowFlags flags=Qt::Widget)
this method allows to set general properties for all go4 subwindows JAM
virtual ~TGo4MdiArea()
void SetSelectedPad(TPad *pad)
TPad * fxActivePad
Definition TGo4MdiArea.h:57
static TGo4MdiArea * Instance()
TGo4ViewPanel * fxActivePanel
Definition TGo4MdiArea.h:56
TGo4ViewPanel * FindOtherPanel(TGo4ViewPanel *not_this)
static TGo4MdiArea * gInstance
Definition TGo4MdiArea.h:60
void subWindowActivatedSlot(QMdiSubWindow *window)
TGo4ViewPanel * GetActivePanel()
TPad * GetSelectedPad()