GSI Object Oriented Online Offline (Go4)  GO4-6.1.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4Style.h
Go to the documentation of this file.
1 // $Id: TGo4Style.h 2882 2020-06-09 08:58:34Z 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 #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 #else
41 #define GO4NAMEDPAL_MAX 51 // DeepSea even for old ROOT3
42 #endif
43 
44 
46 {
111 };
112 
113 class TGo4ViewPanel;
114 class TPad;
115 
116 class TGo4Style : public QWidget, public Ui::TGo4Style
117  {
118  Q_OBJECT
119 
120  public:
121 
122  TGo4Style( QWidget* parent = 0, const char* name = 0, Qt::WindowFlags fl = Qt::Widget );
123 
125  virtual void SetPaletteRange(int min, int def, int max);
126 
127  public slots:
128 
129  virtual void SetPadColor();
130 
131  virtual void SetPalette( int t );
132 
133  virtual void SetNamedPalette(int i);
134 
135  virtual void SetContourLevels(int nlvl);
136 
137  virtual void panelSlot( TGo4ViewPanel * panel, TPad * pad, int signalid );
138 
139 
140  protected:
142  Go4_Palette_t CodePalette(int i);
143 
145  int DecodePalette(Go4_Palette_t key);
146 
148  void RefreshPaletteText(int min, int max);
149 
151 
153 
154  };
155 
156 #endif
virtual void SetContourLevels(int nlvl)
Definition: TGo4Style.cpp:217
virtual void SetNamedPalette(int i)
Definition: TGo4Style.cpp:174
Go4_Palette_t CodePalette(int i)
Definition: TGo4Style.cpp:198
virtual void SetPalette(int t)
Definition: TGo4Style.cpp:159
bool fbMenuLock
Definition: TGo4Style.h:150
virtual void panelSlot(TGo4ViewPanel *panel, TPad *pad, int signalid)
Definition: TGo4Style.cpp:226
virtual void SetPaletteRange(int min, int def, int max)
Definition: TGo4Style.cpp:119
virtual void SetPadColor()
Definition: TGo4Style.cpp:149
Go4_Palette_t
Definition: TGo4Style.h:45
int DecodePalette(Go4_Palette_t key)
Definition: TGo4Style.cpp:210
void RefreshPaletteText(int min, int max)
Definition: TGo4Style.cpp:131
TGo4Style(QWidget *parent=0, const char *name=0, Qt::WindowFlags fl=Qt::Widget)
Definition: TGo4Style.cpp:26
bool fbSettingPanelData
Definition: TGo4Style.h:152