1 #ifndef Fireworks_TableWidget_FWTextTreeCellRenderer_h
2 #define Fireworks_TableWidget_FWTextTreeCellRenderer_h
10 #include "TGTextEntry.h"
11 #include "TGPicture.h"
35 static TString
path = Form(
"%s/src/Fireworks/Core/icons/",gSystem->Getenv(
"CMSSW_BASE"));
36 if ( gSystem->AccessPathName(path.Data()) ){
37 assert(gSystem->Getenv(
"CMSSW_RELEASE_BASE"));
38 path = Form(
"%s/src/Fireworks/Core/icons/",gSystem->Getenv(
"CMSSW_RELEASE_BASE"));
47 static const TGPicture* s_picture=gClient->GetPicture(
coreIcondir()+
"arrow-black-right.png");
54 static const TGPicture* s_picture=gClient->GetPicture(
coreIcondir()+
"arrow-black-down.png");
78 virtual void draw(Drawable_t iID,
int iX,
int iY,
unsigned int iWidth,
unsigned int iHeight)
86 editGC.SetForeground(
m_editor->GetBackground());
128 FontMetrics_t metrics;
129 font()->GetFontMetrics(&metrics);
virtual void draw(Drawable_t iID, int iX, int iY, unsigned int iWidth, unsigned int iHeight)
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
static const TGPicture * closedImage()
static const TGPicture * openedImage()
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
FWTextTreeCellRenderer(const TGGC *iContext=&(getDefaultGC()), const TGGC *iHighlightContext=&(getDefaultHighlightGC()), Justify iJustify=kJustifyLeft)
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)