GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
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
19TGo4ScaleOptions::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
41{
42 MoveScale(1, 0, 0);
43}
44
46{
47 MoveScale(2, 0, 0);
48}
49
51{
52 MoveScale(0, 2, 0);
53}
54
56{
57 MoveScale(0, 1, 0);
58}
59
61{
62 MoveScale(0, 0, 2);
63}
64
66{
67 MoveScale(0, 0, 1);
68}
69
71{
72 MoveScale(3, 0, 0);
73}
74
76{
77 MoveScale(0, 3, 0);
78}
79
81{
82 MoveScale(0, 0, 3);
83}
84
86{
87 MoveScale(4, 0, 0);
88}
89
91{
92 MoveScale(0, 4, 0);
93}
94
96{
97 MoveScale(0, 0, 4);
98}
99
101{
102 MoveScale(0, 0, 0);
103}
104
106{
107 ServiceCall("ToggleScaleValues");
108}
109
111{
112 MoveScale(5, 5, 5);
113}
114
115void TGo4ScaleOptions::MoveScale(int xaction, int yaction, int zaction)
116{
118 if (panel) panel->MoveScale(ExpandFactor->value(), xaction, yaction, zaction);
119}
QGo4Widget(QWidget *parent=nullptr, const char *name=nullptr, Qt::WindowFlags f=Qt::Widget)
void ServiceCall(const char *name, void *par=nullptr)
static TGo4MdiArea * Instance()
TGo4ViewPanel * GetActivePanel()
virtual void SetScaleValues()
virtual void AutoZoomScales()
virtual void SlotExpandX()
virtual void SlotShiftD()
virtual void SlotUExpandX()
virtual void SlotExpandY()
virtual void SlotExpandZ()
virtual void SlotShiftU()
virtual void resizeall()
TGo4ScaleOptions(QWidget *parent=nullptr, const char *name=nullptr)
void MoveScale(int xaction, int yaction, int zaction)
virtual void SlotShiftZD()
virtual void SlotShiftL()
virtual void SlotUExpandZ()
virtual void SlotShiftR()
virtual void SlotShiftZU()
virtual void SlotUExpandY()
virtual void MoveScale(int expandfactor, int xaction, int yaction, int zaction)