1 #ifndef Fireworks_Core_FWColorSelect_h 2 #define Fireworks_Core_FWColorSelect_h 6 #include "TGColorSelect.h" 47 std::vector<FWColorFrame *>
fCc;
49 void DoRedraw()
override;
55 virtual void AddColor(Color_t
color);
57 void ResetColor(Int_t, Color_t);
58 void SetBackgroundToBlack(Bool_t);
61 Int_t FindColorIndex(Color_t)
const;
66 void ColorChanged(Color_t);
78 void SetColors(
const std::vector<Pixel_t>&
colors,
bool backgroundIsBlack);
95 void InitContent(
const char *
name,
const std::vector<Color_t>& colors,
bool backgroundIsBlack=
true);
96 void SetName(
const char* iName)
override;
97 void SetColors(
const std::vector<Color_t>& colors,
bool backgroundIsBlack=
true);
98 void ResetColors(
const std::vector<Color_t>& colors,
bool backgroundIsBlack=
true);
99 void SetSelection(Color_t);
100 void PlacePopup(Int_t
x, Int_t
y, UInt_t
w, UInt_t
h);
104 void PopupColorWheel();
105 void ColorWheelSelected(Pixel_t);
107 static Bool_t HasFreePalette();
108 static void EnableFreePalette();
132 void SetColorByIndex(Color_t iColor);
133 void SetColorByIndex(Color_t iColor, Bool_t iSendSignal);
136 void ColorChosen(Color_t);
ClassDefOverride(FWColorFrame, 0)
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
FWColorPopup * fFireworksPopup
void DrawBorder() override
const std::string & label() const
void ColorSelected(Color_t)
Bool_t HandleButton(Event_t *event) override
FWColorFrame(const TGWindow *p=nullptr, Color_t ci=0)
const FWColorManager * fColorManager
Bool_t fBackgroundIsBlack
Int_t GetSelectedIndex() const
void SetSelectedIndex(Int_t i)
std::vector< FWColorFrame * > fCc