GSI Object Oriented Online Offline (Go4)  GO4-6.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4ScaleOptions.cpp
Go to the documentation of this file.
1 // $Id: TGo4ScaleOptions.cpp 3128 2021-03-30 09:36:27Z 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 "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, SIGNAL(clicked()), this, SLOT(resizeall()));
24  QObject::connect(SetScale, SIGNAL(clicked()), this, SLOT(SetScaleValues()));
25  QObject::connect(AutoZoomBtn, SIGNAL(clicked()), this, SLOT(AutoZoomScales()));
26  QObject::connect(UExpandX, SIGNAL(clicked()), this, SLOT(SlotUExpandX()));
27  QObject::connect(ShiftL, SIGNAL(clicked()), this, SLOT(SlotShiftL()));
28  QObject::connect(ShiftR, SIGNAL(clicked()), this, SLOT(SlotShiftR()));
29  QObject::connect(ExpandX, SIGNAL(clicked()), this, SLOT(SlotExpandX()));
30  QObject::connect(ShiftUp, SIGNAL(clicked()), this, SLOT(SlotShiftU()));
31  QObject::connect(UExpandY, SIGNAL(clicked()), this, SLOT(SlotUExpandY()));
32  QObject::connect(ExpandY, SIGNAL(clicked()), this, SLOT(SlotExpandY()));
33  QObject::connect(ShiftDown, SIGNAL(clicked()), this, SLOT(SlotShiftD()));
34  QObject::connect(ShiftUpZ, SIGNAL(clicked()), this, SLOT(SlotShiftZU()));
35  QObject::connect(UExpandZ, SIGNAL(clicked()), this, SLOT(SlotUExpandZ()));
36  QObject::connect(ExpandZ, SIGNAL(clicked()), this, SLOT(SlotExpandZ()));
37  QObject::connect(ShiftDownZ, SIGNAL(clicked()), this, SLOT(SlotShiftZD()));
38 
39 }
40 
42 {
43  MoveScale(1, 0, 0);
44 }
45 
47 {
48  MoveScale(2, 0, 0);
49 }
50 
52 {
53  MoveScale(0, 2, 0);
54 }
55 
57 {
58  MoveScale(0, 1, 0);
59 }
60 
62 {
63  MoveScale(0, 0, 2);
64 }
65 
67 {
68  MoveScale(0, 0, 1);
69 }
70 
72 {
73  MoveScale(3, 0, 0);
74 }
75 
77 {
78  MoveScale(0, 3, 0);
79 }
80 
82 {
83  MoveScale(0, 0, 3);
84 }
85 
87 {
88  MoveScale(4, 0, 0);
89 }
90 
92 {
93  MoveScale(0, 4, 0);
94 }
95 
97 {
98  MoveScale(0, 0, 4);
99 }
100 
102 {
103  MoveScale(0, 0, 0);
104 }
105 
107 {
108  ServiceCall("ToggleScaleValues");
109 }
110 
112 {
113  MoveScale(5, 5, 5);
114 }
115 
116 void TGo4ScaleOptions::MoveScale(int xaction, int yaction, int zaction)
117 {
119  if (panel) panel->MoveScale(ExpandFactor->value(), xaction, yaction, zaction);
120 }
virtual void SlotExpandY()
virtual void SlotUExpandY()
TGo4ScaleOptions(QWidget *parent=0, const char *name=0)
static TGo4MdiArea * Instance()
Definition: TGo4MdiArea.cpp:26
virtual void SlotShiftR()
virtual void SetScaleValues()
virtual void MoveScale(int expandfactor, int xaction, int yaction, int zaction)
virtual void SlotUExpandX()
virtual void SlotShiftD()
virtual void AutoZoomScales()
virtual void SlotShiftZU()
void MoveScale(int xaction, int yaction, int zaction)
void ServiceCall(const char *name, void *par=0)
Definition: QGo4Widget.cpp:405
TGo4ViewPanel * GetActivePanel()
Definition: TGo4MdiArea.cpp:62
virtual void resizeall()
virtual void SlotUExpandZ()
virtual void SlotShiftL()
virtual void SlotShiftZD()
virtual void SlotExpandZ()
virtual void SlotShiftU()
virtual void SlotExpandX()