GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
TGo4Style.h
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 #ifndef TGO4STYLE_H
15 #define TGO4STYLE_H
16 
17 #include <QWidget>
18 #include "ui_TGo4Style.h"
19 
24 #define GO4NAMEDPAL_MIN 51
25 
26 #define GO4NAMEDPAL_MAX 112
27 
29 {
94 };
95 
96 class TGo4ViewPanel;
97 class TPad;
98 
99 class TGo4Style : public QWidget, public Ui::TGo4Style
100  {
101  Q_OBJECT
102 
103  public:
104 
105  TGo4Style( QWidget *parent = nullptr, const char *name = nullptr, Qt::WindowFlags fl = Qt::Widget );
106 
108  virtual void SetPaletteRange(int min, int def, int max);
109 
110  public slots:
111 
112  virtual void SetPadColor();
113  virtual void SetPalette(int t);
114  virtual void SetNamedPalette(int i);
115  virtual void SetContourLevels(int nlvl);
116  virtual void panelSlot(TGo4ViewPanel *panel,TPad *pad, int signalid);
117 
118  protected:
120  Go4_Palette_t CodePalette(int i);
121 
123  int DecodePalette(Go4_Palette_t key);
124 
126  void RefreshPaletteText(int min, int max);
127 
128  bool fbMenuLock{false};
129  bool fbSettingPanelData{false};
130 
131  };
132 
133 #endif
virtual void SetContourLevels(int nlvl)
Definition: TGo4Style.cpp:210
virtual void SetNamedPalette(int i)
Definition: TGo4Style.cpp:169
Go4_Palette_t CodePalette(int i)
Definition: TGo4Style.cpp:191
virtual void SetPalette(int t)
Definition: TGo4Style.cpp:157
bool fbMenuLock
Definition: TGo4Style.h:128
TGo4Style(QWidget *parent=nullptr, const char *name=nullptr, Qt::WindowFlags fl=Qt::Widget)
Definition: TGo4Style.cpp:27
virtual void panelSlot(TGo4ViewPanel *panel, TPad *pad, int signalid)
Definition: TGo4Style.cpp:219
virtual void SetPaletteRange(int min, int def, int max)
Definition: TGo4Style.cpp:117
virtual void SetPadColor()
Definition: TGo4Style.cpp:147
Go4_Palette_t
Definition: TGo4Style.h:28
int DecodePalette(Go4_Palette_t key)
Definition: TGo4Style.cpp:203
void RefreshPaletteText(int min, int max)
Definition: TGo4Style.cpp:129
bool fbSettingPanelData
Definition: TGo4Style.h:129