GSI Object Oriented Online Offline (Go4)  GO4-6.1.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4DividePad.cpp
Go to the documentation of this file.
1 // $Id: TGo4DividePad.cpp 3123 2021-03-30 08:27:38Z linev $
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, SIGNAL(clicked()), this, SLOT(DivideCanvas()));
25 }
26 
28 {
30 
31  if (panel!=0)
32  panel->Divide(SpinBoxX->value(), SpinBoxY->value());
33 }
TGo4DividePad(QWidget *parent=0, const char *name=0, Qt::WindowFlags fl=Qt::Widget)
static TGo4MdiArea * Instance()
Definition: TGo4MdiArea.cpp:26
virtual void Divide(int numX, int numY)
virtual void DivideCanvas()
TGo4ViewPanel * GetActivePanel()
Definition: TGo4MdiArea.cpp:62