1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
#ifndef Fireworks_Core_CmsShowCommonPopup_h
#define Fireworks_Core_CmsShowCommonPopup_h
#ifndef __CINT__
#include <memory>
#endif
#include "GuiTypes.h"
#include "TGFrame.h"
#include "Fireworks/Core/interface/FWParameterSetterEditorBase.h"
#ifndef __CINT__
#include "Fireworks/Core/interface/FWColorManager.h"
#endif
class TGHSlider;
class TGLabel;
class TGComboBox;
class TGTextButton;
class TGCheckButton;
class CmsShowCommon;
class FWColorManager;
class FWColorSelect;
class FWParameterBase;
class FWParameterSetterBase;
class CmsShowCommonPopup : public TGTransientFrame, public FWParameterSetterEditorBase {
public:
CmsShowCommonPopup(CmsShowCommon*, const TGWindow* p = nullptr, UInt_t w = 1, UInt_t h = 1);
~CmsShowCommonPopup() override;
// ---------- member functions ---------------------------
void CloseWindow() override { UnmapWindow(); }
void switchBackground();
void permuteColors();
void randomizeColors();
void changeGeomColor(Color_t);
void changeGeomTransparency2D(int);
void changeGeomTransparency3D(int);
void changeSelectionColorSet(Color_t);
void colorSetChanged();
void setPaletteGUI();
TGComboBox* getCombo() { return m_combo; }
ClassDefOverride(CmsShowCommonPopup, 0);
private:
CmsShowCommonPopup(const CmsShowCommonPopup&);
const CmsShowCommonPopup& operator=(const CmsShowCommonPopup&);
TGFrame* makeSetter(TGCompositeFrame* frame, FWParameterBase* param);
void getColorSetColors(int& hci, int& sci);
// ---------- member data --------------------------------
CmsShowCommon* m_common;
TGTextButton* m_backgroundButton;
TGHSlider* m_gammaSlider;
TGTextButton* m_gammaButton;
#ifndef __CINT__
FWColorSelect* m_colorSelectWidget[kFWGeomColorSize];
FWColorSelect* m_colorRnrCtxHighlightWidget;
FWColorSelect* m_colorRnrCtxSelectWidget;
std::vector<std::shared_ptr<FWParameterSetterBase> > m_setters;
#endif
TGComboBox* m_combo;
};
#endif
|