12 #ifndef ROOT_TGListBox 13 #define ROOT_TGListBox 41 #ifndef ROOT_TGScrollBar 113 static const TGGC &GetDefaultGC();
214 virtual void SetPicture(
const TGPicture *pic = 0);
246 virtual void OnAutoScroll();
278 virtual void SetVsbPosition(
Int_t newPos);
312 virtual void InitListBox();
324 virtual void AddEntrySort(
const char *s,
Int_t id);
327 virtual void InsertEntry(
const char *s ,
Int_t id,
Int_t afterID);
329 virtual void NewEntry(
const char *s =
"Entry");
330 virtual void RemoveEntry(
Int_t id = -1);
331 virtual void RemoveAll();
332 virtual void RemoveEntries(
Int_t from_ID,
Int_t to_ID);
334 virtual void SetTopEntry(
Int_t id = -1);
342 virtual TGLBEntry *FindEntry(
const char *s)
const;
361 {
return fLbc->
Select(
id, sel); }
362 virtual Int_t GetSelected()
const;
365 virtual void GetSelectedEntries(
TList *selected);
370 virtual void Selected(
Int_t widgetId,
Int_t id);
372 virtual void Selected(
const char *txt) {
Emit(
"Selected(char*)", txt); }
373 virtual void DoubleClicked(
Int_t widgetId,
Int_t id);
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
virtual Bool_t ProcessMessage(Long_t, Long_t, Long_t)
virtual TGViewPort * GetViewPort() const
virtual void MoveResize(Int_t x, Int_t y, UInt_t w=0, UInt_t h=0)
Move and/or resize the frame.
static TGGC * fgDefaultGC
virtual void Update(TGLBEntry *e)
virtual void SelectionChanged()
virtual TGFrame * GetContainer() const
virtual void DoubleClicked(const char *txt)
UInt_t GetItemVsize() const
const TGPicture * GetPicture() const
const TGPicture * fPicture
virtual Int_t GetLineWidth() const
static Pixel_t GetWhitePixel()
Get white pixel value.
virtual void Update(TGLBEntry *)
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
TGLBEntry * GetSelectedEntry() const
virtual void Associate(const TGWindow *w)
virtual const char * GetTitle() const
Returns title of object.
virtual void DrawBorder()
Draw frame border.
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
virtual void SetLayoutManager(TGLayoutManager *)
Set the layout manager for the composite frame.
virtual void SetMultipleSelections(Bool_t multi=kTRUE)
TGListBox * GetListBox() const
GContext_t GetNormGC() const
virtual void DoRedraw()
Redraw the frame.
virtual void Activate(Bool_t a)
Toggle active state of listbox entry.
virtual TGLBEntry * Select(Int_t id, Bool_t sel)
Select / deselect the entry with the specified id.
virtual void Toggle()
Toggle active state of listbox entry.
virtual void RemoveEntries(Int_t from_ID, Int_t to_ID)
Remove a range of entries defined by from_ID and to_ID.
virtual TGVScrollBar * GetVScrollbar() const
virtual void ChangeBackground(Pixel_t back)
Change frame background color.
virtual void InsertEntry(TGString *s, Int_t id, Int_t afterID)
Insert entry with specified string and id behind the entry with afterID.
virtual void SetTitle(const char *text)
#define ClassDef(name, id)
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
virtual Bool_t GetMultipleSelections() const
FontStruct_t GetFontStruct() const
void SetContainer(TGFrame *f)
virtual void SetBackgroundColor(Pixel_t back)
Set background color (override from TGWindow base class).
virtual TList * GetList() const
virtual void Resize(TGDimension size)
Resize the frame.
TGFrame * GetContainer() const
void Emit(const char *signal)
Acitvate signal without args.
virtual TGLBEntry * Select(Int_t id, Bool_t sel=kTRUE)
TGLBEntry(const TGWindow *p=0, Int_t id=-1, UInt_t options=kHorizontalFrame, Pixel_t back=GetWhitePixel())
Base class entry constructor.
virtual TGLBEntry * GetSelectedEntry() const
virtual void RemoveAll()
Remove all entries.
virtual void SetListBox(TGListBox *lb)
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a frame widget as a C++ statement(s) on output stream out.
virtual Bool_t HandleMotion(Event_t *)
virtual Bool_t GetSelection(Int_t id)
Returns kTrue if entry id is selected.
virtual void GetSelectedEntries(TList *selected)
Adds all selected entries (TGLBEntry) of the list box into the list selected.
void SetContainer(TGFrame *f)
Add container frame to the viewport.
leg AddEntry(h1,"Histogram filled with random numbers","f")
virtual void AddEntrySort(TGString *s, Int_t id)
Add entry with specified string and id to listbox sorted by increasing id.
virtual Int_t GetNumberOfEntries() const
virtual void DrawCopy(Handle_t, Int_t, Int_t)
virtual Bool_t GetSelection(Int_t id)
const TGString * GetText() const
virtual void Selected(Int_t id)
virtual Bool_t HandleButton(Event_t *)
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
static const TGFont * fgDefaultFont
TGVScrollBar * fVScrollbar
virtual TGScrollBar * GetScrollBar() const
virtual Bool_t HandleDoubleClick(Event_t *)
virtual UInt_t GetDefaultWidth() const
virtual void SetBackgroundColor(Pixel_t col)
Set background color (override from TGWindow base class).
virtual void SetMultipleSelections(Bool_t multi)
Enables and disables multiple selections of entries.
virtual Int_t GetSelected() const
Return id of selected listbox item.
TGFrame & operator=(const TGFrame &)
virtual void DoubleClicked(Int_t id)
virtual Bool_t GetMultipleSelections() const
virtual void IntegralHeight(Bool_t mode)
virtual void Selected(const char *txt)
virtual Int_t GetSize() const
Style_t GetLineStyle() const
double norm(double *x, double *p)
virtual void RemoveEntry(Int_t id=-1)
remove entry with id.
const char * Data() const