1 #ifndef Fireworks_TableWidget_FWTextTreeCellRenderer_h
2 #define Fireworks_TableWidget_FWTextTreeCellRenderer_h
11 #include "TGTextEntry.h"
12 #include "TGPicture.h"
38 static TString
path = Form(
"%s/src/Fireworks/Core/icons/",gSystem->Getenv(
"CMSSW_BASE"));
39 if ( gSystem->AccessPathName(path.Data()) ){
40 assert(gSystem->Getenv(
"CMSSW_RELEASE_BASE"));
41 path = Form(
"%s/src/Fireworks/Core/icons/",gSystem->Getenv(
"CMSSW_RELEASE_BASE"));
50 static const TGPicture* s_picture_white = gClient->GetPicture(
coreIcondir()+
"arrow-white-right-blackbg.png");
51 static const TGPicture* s_picture_black = gClient->GetPicture(
coreIcondir()+
"arrow-black-right.png");
53 return isBlack ? s_picture_black : s_picture_white;
59 static const TGPicture* s_picture_white = gClient->GetPicture(
coreIcondir()+
"arrow-white-down-blackbg.png");
60 static const TGPicture* s_picture_black = gClient->GetPicture(
coreIcondir()+
"arrow-black-down.png");
62 return isBlack ? s_picture_black : s_picture_white;
88 virtual void draw(Drawable_t iID,
int iX,
int iY,
unsigned int iWidth,
unsigned int iHeight)
96 editGC.SetForeground(
m_editor->GetBackground());
134 FontMetrics_t metrics;
135 font()->GetFontMetrics(&metrics);
virtual void draw(Drawable_t iID, int iX, int iY, unsigned int iWidth, unsigned int iHeight)
static const TGPicture * closedImage(bool isBlack=true)
void setBlackIcon(bool value)
void setIsOpen(bool value)
const TGGC * highlightContext() const
static const TString & coreIcondir()
static const int s_iconOffset
static const TGGC & getDefaultGC()
const TGFont * font() const
virtual void setCellEditor(TGTextEntry *editor)
virtual UInt_t width() const
returns the minimum width of the cell to which the renderer is representing
static const TGGC & getDefaultHighlightGC()
void setIsParent(bool value)
const TGGC * graphicsContext() const
virtual void setIndentation(int indentation=0)
const std::string & data()
const TGGC * m_editContext
static const TGPicture * openedImage(bool isBlack=true)
FWTextTreeCellRenderer(const TGGC *iContext=&(getDefaultGC()), const TGGC *iHighlightContext=&(getDefaultHighlightGC()), Justify iJustify=kJustifyLeft)
volatile std::atomic< bool > shutdown_flag false
virtual UInt_t width() const
returns the minimum width of the cell to which the renderer is representing
tuple size
Write out results.
virtual void showEditor(bool value)