GSI Object Oriented Online Offline (Go4)
GO4-6.4.0
Loading...
Searching...
No Matches
qt4
Go4GUI
TGo4ScaleOptions.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 "
TGo4ScaleOptions.h
"
15
16
#include "
TGo4MdiArea.h
"
17
#include "
TGo4ViewPanel.h
"
18
19
TGo4ScaleOptions::TGo4ScaleOptions
(QWidget *parent,
const
char
*name)
20
:
QGo4Widget
(parent,name)
21
{
22
setupUi(
this
);
23
QObject::connect(resize_b, &QPushButton::clicked,
this
, &
TGo4ScaleOptions::resizeall
);
24
QObject::connect(SetScale, &QPushButton::clicked,
this
, &
TGo4ScaleOptions::SetScaleValues
);
25
QObject::connect(AutoZoomBtn, &QPushButton::clicked,
this
, &
TGo4ScaleOptions::AutoZoomScales
);
26
QObject::connect(UExpandX, &QPushButton::clicked,
this
, &
TGo4ScaleOptions::SlotUExpandX
);
27
QObject::connect(ShiftL, &QPushButton::clicked,
this
, &
TGo4ScaleOptions::SlotShiftL
);
28
QObject::connect(ShiftR, &QPushButton::clicked,
this
, &
TGo4ScaleOptions::SlotShiftR
);
29
QObject::connect(ExpandX, &QPushButton::clicked,
this
, &
TGo4ScaleOptions::SlotExpandX
);
30
QObject::connect(ShiftUp, &QPushButton::clicked,
this
, &
TGo4ScaleOptions::SlotShiftU
);
31
QObject::connect(UExpandY, &QPushButton::clicked,
this
, &
TGo4ScaleOptions::SlotUExpandY
);
32
QObject::connect(ExpandY, &QPushButton::clicked,
this
, &
TGo4ScaleOptions::SlotExpandY
);
33
QObject::connect(ShiftDown, &QPushButton::clicked,
this
, &
TGo4ScaleOptions::SlotShiftD
);
34
QObject::connect(ShiftUpZ, &QPushButton::clicked,
this
, &
TGo4ScaleOptions::SlotShiftZU
);
35
QObject::connect(UExpandZ, &QPushButton::clicked,
this
, &
TGo4ScaleOptions::SlotUExpandZ
);
36
QObject::connect(ExpandZ, &QPushButton::clicked,
this
, &
TGo4ScaleOptions::SlotExpandZ
);
37
QObject::connect(ShiftDownZ, &QPushButton::clicked,
this
, &
TGo4ScaleOptions::SlotShiftZD
);
38
}
39
40
void
TGo4ScaleOptions::SlotShiftL
()
41
{
42
MoveScale
(1, 0, 0);
43
}
44
45
void
TGo4ScaleOptions::SlotShiftR
()
46
{
47
MoveScale
(2, 0, 0);
48
}
49
50
void
TGo4ScaleOptions::SlotShiftU
()
51
{
52
MoveScale
(0, 2, 0);
53
}
54
55
void
TGo4ScaleOptions::SlotShiftD
()
56
{
57
MoveScale
(0, 1, 0);
58
}
59
60
void
TGo4ScaleOptions::SlotShiftZU
()
61
{
62
MoveScale
(0, 0, 2);
63
}
64
65
void
TGo4ScaleOptions::SlotShiftZD
()
66
{
67
MoveScale
(0, 0, 1);
68
}
69
70
void
TGo4ScaleOptions::SlotExpandX
()
71
{
72
MoveScale
(3, 0, 0);
73
}
74
75
void
TGo4ScaleOptions::SlotExpandY
()
76
{
77
MoveScale
(0, 3, 0);
78
}
79
80
void
TGo4ScaleOptions::SlotExpandZ
()
81
{
82
MoveScale
(0, 0, 3);
83
}
84
85
void
TGo4ScaleOptions::SlotUExpandX
()
86
{
87
MoveScale
(4, 0, 0);
88
}
89
90
void
TGo4ScaleOptions::SlotUExpandY
()
91
{
92
MoveScale
(0, 4, 0);
93
}
94
95
void
TGo4ScaleOptions::SlotUExpandZ
()
96
{
97
MoveScale
(0, 0, 4);
98
}
99
100
void
TGo4ScaleOptions::resizeall
()
101
{
102
MoveScale
(0, 0, 0);
103
}
104
105
void
TGo4ScaleOptions::SetScaleValues
()
106
{
107
ServiceCall
(
"ToggleScaleValues"
);
108
}
109
110
void
TGo4ScaleOptions::AutoZoomScales
()
111
{
112
MoveScale
(5, 5, 5);
113
}
114
115
void
TGo4ScaleOptions::MoveScale
(
int
xaction,
int
yaction,
int
zaction)
116
{
117
TGo4ViewPanel
*panel =
TGo4MdiArea::Instance
()->
GetActivePanel
();
118
if
(panel) panel->
MoveScale
(ExpandFactor->value(), xaction, yaction, zaction);
119
}
TGo4MdiArea.h
TGo4ScaleOptions.h
TGo4ViewPanel.h
QGo4Widget::QGo4Widget
QGo4Widget(QWidget *parent=nullptr, const char *name=nullptr, Qt::WindowFlags f=Qt::Widget)
Definition
QGo4Widget.cpp:25
QGo4Widget::ServiceCall
void ServiceCall(const char *name, void *par=nullptr)
Definition
QGo4Widget.cpp:398
TGo4MdiArea::Instance
static TGo4MdiArea * Instance()
Definition
TGo4MdiArea.cpp:26
TGo4MdiArea::GetActivePanel
TGo4ViewPanel * GetActivePanel()
Definition
TGo4MdiArea.cpp:60
TGo4ScaleOptions::SetScaleValues
virtual void SetScaleValues()
Definition
TGo4ScaleOptions.cpp:105
TGo4ScaleOptions::AutoZoomScales
virtual void AutoZoomScales()
Definition
TGo4ScaleOptions.cpp:110
TGo4ScaleOptions::SlotExpandX
virtual void SlotExpandX()
Definition
TGo4ScaleOptions.cpp:70
TGo4ScaleOptions::SlotShiftD
virtual void SlotShiftD()
Definition
TGo4ScaleOptions.cpp:55
TGo4ScaleOptions::SlotUExpandX
virtual void SlotUExpandX()
Definition
TGo4ScaleOptions.cpp:85
TGo4ScaleOptions::SlotExpandY
virtual void SlotExpandY()
Definition
TGo4ScaleOptions.cpp:75
TGo4ScaleOptions::SlotExpandZ
virtual void SlotExpandZ()
Definition
TGo4ScaleOptions.cpp:80
TGo4ScaleOptions::SlotShiftU
virtual void SlotShiftU()
Definition
TGo4ScaleOptions.cpp:50
TGo4ScaleOptions::resizeall
virtual void resizeall()
Definition
TGo4ScaleOptions.cpp:100
TGo4ScaleOptions::TGo4ScaleOptions
TGo4ScaleOptions(QWidget *parent=nullptr, const char *name=nullptr)
Definition
TGo4ScaleOptions.cpp:19
TGo4ScaleOptions::MoveScale
void MoveScale(int xaction, int yaction, int zaction)
Definition
TGo4ScaleOptions.cpp:115
TGo4ScaleOptions::SlotShiftZD
virtual void SlotShiftZD()
Definition
TGo4ScaleOptions.cpp:65
TGo4ScaleOptions::SlotShiftL
virtual void SlotShiftL()
Definition
TGo4ScaleOptions.cpp:40
TGo4ScaleOptions::SlotUExpandZ
virtual void SlotUExpandZ()
Definition
TGo4ScaleOptions.cpp:95
TGo4ScaleOptions::SlotShiftR
virtual void SlotShiftR()
Definition
TGo4ScaleOptions.cpp:45
TGo4ScaleOptions::SlotShiftZU
virtual void SlotShiftZU()
Definition
TGo4ScaleOptions.cpp:60
TGo4ScaleOptions::SlotUExpandY
virtual void SlotUExpandY()
Definition
TGo4ScaleOptions.cpp:90
TGo4ViewPanel
Definition
TGo4ViewPanel.h:42
TGo4ViewPanel::MoveScale
virtual void MoveScale(int expandfactor, int xaction, int yaction, int zaction)
Definition
TGo4ViewPanel.cpp:4645
Generated by
1.13.2