![]() |
![]() |
#include <FWColorSelect.h>
Public Member Functions | |
ClassDefOverride (FWColorPopup, 0) | |
void | ColorSelected (Color_t) |
void | ColorWheelSelected (Pixel_t) |
FWColorPopup (const TGWindow *p=nullptr, Color_t color=0) | |
Bool_t | HandleButton (Event_t *event) override |
void | InitContent (const char *name, const std::vector< Color_t > &colors, bool backgroundIsBlack=true) |
void | PlacePopup (Int_t x, Int_t y, UInt_t w, UInt_t h) |
void | PopupColorWheel () |
void | ResetColors (const std::vector< Color_t > &colors, bool backgroundIsBlack=true) |
void | SetColors (const std::vector< Color_t > &colors, bool backgroundIsBlack=true) |
void | SetName (const char *iName) override |
void | SetSelection (Color_t) |
~FWColorPopup () override | |
Static Public Member Functions | |
static void | EnableFreePalette () |
static Bool_t | HasFreePalette () |
Protected Attributes | |
FWColorRow * | fFirstRow |
TGLabel * | fLabel |
Int_t | fNumColors |
FWColorRow * | fSecondRow |
Color_t | fSelectedColor |
Bool_t | fShowWheel |
Static Protected Attributes | |
static Bool_t | fgFreePalette = kFALSE |
Private Member Functions | |
void | SetColors (const std::vector< Pixel_t > &colors, bool backgroundIsBlack) |
Definition at line 75 of file FWColorSelect.h.
FWColorPopup::FWColorPopup | ( | const TGWindow * | p = nullptr , |
Color_t | color = 0 |
||
) |
Definition at line 153 of file FWColorSelect.cc.
References create_public_lumi_plots::color, fFirstRow, fLabel, fNumColors, fSecondRow, and fSelectedColor.
|
override |
Definition at line 173 of file FWColorSelect.cc.
FWColorPopup::ClassDefOverride | ( | FWColorPopup | , |
0 | |||
) |
void FWColorPopup::ColorSelected | ( | Color_t | ci | ) |
Definition at line 322 of file FWColorSelect.cc.
References fSelectedColor.
Referenced by ColorWheelSelected().
void FWColorPopup::ColorWheelSelected | ( | Pixel_t | pix | ) |
|
static |
|
override |
|
static |
Definition at line 150 of file FWColorSelect.cc.
void FWColorPopup::InitContent | ( | const char * | name, |
const std::vector< Color_t > & | colors, | ||
bool | backgroundIsBlack = true |
||
) |
Definition at line 198 of file FWColorSelect.cc.
References b, fFirstRow, fgFreePalette, fLabel, fSecondRow, kCROffsetX, kCROffsetY, kCRPadAbove, kCRPadBelow, and SetColors().
Referenced by FWGeometryTableViewBase::cellClicked(), FWModelContextMenuHandler::createColorPopup(), FWCollectionSummaryWidget::createColorPopup(), and FWColorSelect::FWColorSelect().
void FWColorPopup::PlacePopup | ( | Int_t | x, |
Int_t | y, | ||
UInt_t | w, | ||
UInt_t | h | ||
) |
Definition at line 268 of file FWColorSelect.cc.
References hippyaddtobaddatafiles::cd(), hcaldqm::fClient, fSelectedColor, fShowWheel, WDecay::kNone, digitizers_cfi::pixel, corrVsCorr::rx, and corrVsCorr::ry.
Referenced by FWGeometryTableViewBase::cellClicked(), FWModelContextMenuHandler::chosenItem(), FWCollectionSummaryWidget::colorClicked(), FWColorSelect::HandleButton(), and FWCollectionSummaryWidget::itemColorClicked().
void FWColorPopup::PopupColorWheel | ( | ) |
void FWColorPopup::ResetColors | ( | const std::vector< Color_t > & | colors, |
bool | backgroundIsBlack = true |
||
) |
Definition at line 252 of file FWColorSelect.cc.
References fFirstRow, fNumColors, fSecondRow, mps_fire::i, FWColorRow::ResetColor(), and FWColorRow::SetBackgroundToBlack().
Referenced by FWGeometryTableViewBase::cellClicked(), FWModelContextMenuHandler::chosenItem(), FWCollectionSummaryWidget::colorClicked(), FWColorSelect::HandleButton(), and FWCollectionSummaryWidget::itemColorClicked().
|
private |
Referenced by InitContent().
void FWColorPopup::SetColors | ( | const std::vector< Color_t > & | colors, |
bool | backgroundIsBlack = true |
||
) |
Definition at line 237 of file FWColorSelect.cc.
References FWColorRow::AddColor(), fFirstRow, fNumColors, fSecondRow, mps_fire::i, and FWColorRow::SetBackgroundToBlack().
|
override |
Definition at line 311 of file FWColorSelect.cc.
References fLabel.
Referenced by FWGeometryTableViewBase::cellClicked(), FWModelContextMenuHandler::chosenItem(), FWCollectionSummaryWidget::colorClicked(), and FWCollectionSummaryWidget::itemColorClicked().
void FWColorPopup::SetSelection | ( | Color_t | iColor | ) |
Definition at line 316 of file FWColorSelect.cc.
References fFirstRow, FWColorRow::FindColorIndex(), fSecondRow, and FWColorRow::SetSelectedIndex().
Referenced by FWModelContextMenuHandler::chosenItem(), FWCollectionSummaryWidget::colorClicked(), FWColorSelect::HandleButton(), and FWCollectionSummaryWidget::itemColorClicked().
|
protected |
Definition at line 82 of file FWColorSelect.h.
Referenced by FWColorPopup(), InitContent(), ResetColors(), SetColors(), and SetSelection().
|
staticprotected |
Definition at line 87 of file FWColorSelect.h.
Referenced by FWColorRow::ColorChanged(), and InitContent().
|
protected |
Definition at line 83 of file FWColorSelect.h.
Referenced by FWColorPopup(), InitContent(), and SetName().
|
protected |
Definition at line 84 of file FWColorSelect.h.
Referenced by FWColorPopup(), ResetColors(), and SetColors().
|
protected |
Definition at line 82 of file FWColorSelect.h.
Referenced by FWColorPopup(), InitContent(), ResetColors(), SetColors(), and SetSelection().
|
protected |
Definition at line 81 of file FWColorSelect.h.
Referenced by ColorSelected(), FWColorPopup(), and PlacePopup().
|
protected |
Definition at line 85 of file FWColorSelect.h.
Referenced by PlacePopup(), and PopupColorWheel().