GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4DividePad.cpp
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 #include "TGo4DividePad.h"
15 
16 #include "TGo4MdiArea.h"
17 #include "TGo4ViewPanel.h"
18 
19 TGo4DividePad::TGo4DividePad( QWidget *parent, const char *name, Qt::WindowFlags fl ) :
20  QWidget( parent, fl )
21 {
22  setObjectName(name ? name : "Go4DividePad");
23  setupUi(this);
24  QObject::connect(DivideCanvas_b, &QPushButton::clicked, this, &TGo4DividePad::DivideCanvas);
25 }
26 
28 {
30 
31  if (panel)
32  panel->Divide(SpinBoxX->value(), SpinBoxY->value());
33 }
static TGo4MdiArea * Instance()
Definition: TGo4MdiArea.cpp:26
virtual void Divide(int numX, int numY)
virtual void DivideCanvas()
TGo4ViewPanel * GetActivePanel()
Definition: TGo4MdiArea.cpp:60
TGo4DividePad(QWidget *parent=nullptr, const char *name=nullptr, Qt::WindowFlags fl=Qt::Widget)