GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4Style.h
Go to the documentation of this file.
1 // $Id: TGo4Style.h 2038 2018-01-08 16:55:38Z 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 #ifndef TGO4STYLE_H
15 #define TGO4STYLE_H
16 
17 #include <QWidget>
18 #include "ui_TGo4Style.h"
19 
20 #include "RVersion.h"
21 
26 #define GO4NAMEDPAL_MIN 51
27 
28 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,5,0)
29 #define GO4NAMEDPAL_MAX 112
30 #elif ROOT_VERSION_CODE >= ROOT_VERSION(6,4,0)
31 #define GO4NAMEDPAL_MAX 111
32 #elif ROOT_VERSION_CODE >= ROOT_VERSION(6,2,0)
33 #define GO4NAMEDPAL_MAX 56
34 #elif ROOT_VERSION_CODE >= ROOT_VERSION(6,0,0)
35 #define GO4NAMEDPAL_MAX 55
36 #elif ROOT_VERSION_CODE >= ROOT_VERSION(5,34,6)
37 #define GO4NAMEDPAL_MAX 56
38 #elif ROOT_VERSION_CODE >= ROOT_VERSION(5,34,4)
39 #define GO4NAMEDPAL_MAX 55
40 #elif ROOT_VERSION_CODE >= ROOT_VERSION(3,2,7)
41 #define GO4NAMEDPAL_MAX 51 // DeepSea even for old ROOT
42 #else
43 #define GO4NAMEDPAL_MAX 50 // no named entries for very very old ROOT
44 #endif
45 
46 
48 {
113 };
114 
115 class TGo4ViewPanel;
116 class TPad;
117 
118 class TGo4Style : public QWidget, public Ui::TGo4Style
119  {
120  Q_OBJECT
121 
122  public:
123 
124  TGo4Style( QWidget* parent = 0, const char* name = 0, Qt::WindowFlags fl = 0 );
125 
127  virtual void SetPaletteRange(int min, int def, int max);
128 
129  public slots:
130 
131  virtual void SetPadColor();
132 
133  virtual void SetPalette( int t );
134 
135  virtual void SetNamedPalette(int i);
136 
137  virtual void SetContourLevels(int nlvl);
138 
139  virtual void panelSlot( TGo4ViewPanel * panel, TPad * pad, int signalid );
140 
141 
142  protected:
144  Go4_Palette_t CodePalette(int i);
145 
147  int DecodePalette(Go4_Palette_t key);
148 
150  void RefreshPaletteText(int min, int max);
151 
153 
155 
156  };
157 
158 #endif
virtual void SetContourLevels(int nlvl)
Definition: TGo4Style.cpp:214
TGo4Style(QWidget *parent=0, const char *name=0, Qt::WindowFlags fl=0)
Definition: TGo4Style.cpp:28
virtual void SetNamedPalette(int i)
Definition: TGo4Style.cpp:171
Go4_Palette_t CodePalette(int i)
Definition: TGo4Style.cpp:195
virtual void SetPalette(int t)
Definition: TGo4Style.cpp:156
bool fbMenuLock
Definition: TGo4Style.h:152
virtual void panelSlot(TGo4ViewPanel *panel, TPad *pad, int signalid)
Definition: TGo4Style.cpp:223
virtual void SetPaletteRange(int min, int def, int max)
Definition: TGo4Style.cpp:116
virtual void SetPadColor()
Definition: TGo4Style.cpp:146
Go4_Palette_t
Definition: TGo4Style.h:47
int DecodePalette(Go4_Palette_t key)
Definition: TGo4Style.cpp:207
void RefreshPaletteText(int min, int max)
Definition: TGo4Style.cpp:128
bool fbSettingPanelData
Definition: TGo4Style.h:154