GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4ScaleOptions.cpp
Go to the documentation of this file.
1 // $Id: TGo4ScaleOptions.cpp 1109 2014-01-14 11:25:05Z 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 "TGo4ScaleOptions.h"
15 
16 #include "Riostream.h"
17 #include "TGo4MdiArea.h"
18 #include "TGo4ViewPanel.h"
19 #include "TGo4SetScaleValues.h"
20 
21 #include <QLineEdit>
22 
23 TGo4ScaleOptions::TGo4ScaleOptions(QWidget *parent, const char* name)
24  : QGo4Widget(parent,name)
25 {
26  setupUi(this);
27 }
28 
30 {
31  MoveScale(1, 0, 0);
32 }
33 
35 {
36  MoveScale(2, 0, 0);
37 }
38 
40 {
41  MoveScale(0, 2, 0);
42 }
43 
45 {
46  MoveScale(0, 1, 0);
47 }
48 
50 {
51  MoveScale(0, 0, 2);
52 }
53 
55 {
56  MoveScale(0, 0, 1);
57 }
58 
60 {
61  MoveScale(3, 0, 0);
62 }
63 
65 {
66  MoveScale(0, 3, 0);
67 }
68 
70 {
71  MoveScale(0, 0, 3);
72 }
73 
75 {
76  MoveScale(4, 0, 0);
77 }
78 
80 {
81  MoveScale(0, 4, 0);
82 }
83 
85 {
86  MoveScale(0, 0, 4);
87 }
88 
90 {
91  MoveScale(0, 0, 0);
92 }
93 
95 {
96  ServiceCall("ToggleScaleValues");
97 }
98 
100 {
101  MoveScale(5, 5, 5);
102 }
103 
104 
105 void TGo4ScaleOptions::MoveScale(int xaction, int yaction, int zaction)
106 {
108  if (panel!=0) panel->MoveScale(ExpandFactor->value(), xaction, yaction, zaction);
109 }
virtual void SlotExpandY()
virtual void SlotUExpandY()
TGo4ScaleOptions(QWidget *parent=0, const char *name=0)
static TGo4MdiArea * Instance()
Definition: TGo4MdiArea.cpp:27
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:402
TGo4ViewPanel * GetActivePanel()
Definition: TGo4MdiArea.cpp:64
virtual void resizeall()
virtual void SlotUExpandZ()
virtual void SlotShiftL()
virtual void SlotShiftZD()
virtual void SlotExpandZ()
virtual void SlotShiftU()
virtual void SlotExpandX()