GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4DividePad.cpp
Go to the documentation of this file.
1 // $Id: TGo4DividePad.cpp 1134 2014-01-22 14:53:40Z 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 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 #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 }
25 
27 {
29 
30  if (panel!=0)
31  panel->Divide(SpinBoxX->value(), SpinBoxY->value());
32 }
static TGo4MdiArea * Instance()
Definition: TGo4MdiArea.cpp:27
virtual void Divide(int numX, int numY)
virtual void DivideCanvas()
TGo4DividePad(QWidget *parent=0, const char *name=0, Qt::WindowFlags fl=0)
TGo4ViewPanel * GetActivePanel()
Definition: TGo4MdiArea.cpp:64