GSI Object Oriented Online Offline (Go4)
GO4-6.4.0
Loading...
Searching...
No Matches
qt4
Go4GUI
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
27
void
TGo4DividePad::DivideCanvas
()
28
{
29
TGo4ViewPanel
*panel =
TGo4MdiArea::Instance
()->
GetActivePanel
();
30
31
if
(panel)
32
panel->
Divide
(SpinBoxX->value(), SpinBoxY->value());
33
}
TGo4DividePad.h
TGo4MdiArea.h
TGo4ViewPanel.h
TGo4DividePad::DivideCanvas
virtual void DivideCanvas()
Definition
TGo4DividePad.cpp:27
TGo4DividePad::TGo4DividePad
TGo4DividePad(QWidget *parent=nullptr, const char *name=nullptr, Qt::WindowFlags fl=Qt::Widget)
Definition
TGo4DividePad.cpp:19
TGo4MdiArea::Instance
static TGo4MdiArea * Instance()
Definition
TGo4MdiArea.cpp:26
TGo4MdiArea::GetActivePanel
TGo4ViewPanel * GetActivePanel()
Definition
TGo4MdiArea.cpp:60
TGo4ViewPanel
Definition
TGo4ViewPanel.h:42
TGo4ViewPanel::Divide
virtual void Divide(int numX, int numY)
Definition
TGo4ViewPanel.cpp:2888
Generated by
1.13.2