KaliVeda
Toolkit for HIC analysis
KVTextEntry.h
1 /*
2 $Id: KVTextEntry.h,v 1.1 2007/12/11 16:03:45 franklan Exp $
3 $Revision: 1.1 $
4 $Date: 2007/12/11 16:03:45 $
5 */
6 
9 
10 #ifndef __KVTEXTENTRY_H
11 #define __KVTEXTENTRY_H
12 
13 #include "TGTextEntry.h"
14 
22 class KVTextEntry : public TGTextEntry {
23 
24 public:
25  KVTextEntry(const TGWindow* p, TGTextBuffer* text, Int_t id = -1,
26  GContext_t norm = GetDefaultGC()(),
28  UInt_t option = kSunkenFrame | kDoubleBorder,
29  Pixel_t back = GetWhitePixel())
30  : TGTextEntry(p, text, id, norm, font, option, back)
31  {};
32  KVTextEntry(const TGWindow* parent = 0, const char* text = 0, Int_t id = -1)
33  : TGTextEntry(parent, text, id)
34  {};
35  KVTextEntry(const TString& contents, const TGWindow* parent, Int_t id = -1)
36  : TGTextEntry(contents, parent, id)
37  {};
38  virtual ~KVTextEntry() {};
39 
40  virtual void SetText(const char* text, Bool_t /*emit*/ = kTRUE); //*MENU*
41  virtual void SetMaxLength(Int_t maxlen); //*MENU*
42  virtual void Insert(const char*);
43 
44  ClassDef(KVTextEntry, 0) //TGTextEntry without any limit on the length of the text
45 };
46 
47 #endif
int Int_t
unsigned int UInt_t
Handle_t GContext_t
ULong_t Pixel_t
Handle_t FontStruct_t
bool Bool_t
#define ClassDef(name, id)
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t option
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize id
Option_t Option_t TPoint TPoint const char text
TGTextEntry without any limit on the length of the text.
Definition: KVTextEntry.h:22
KVTextEntry(const TGWindow *parent=0, const char *text=0, Int_t id=-1)
Definition: KVTextEntry.h:32
virtual void SetMaxLength(Int_t maxlen)
Definition: KVTextEntry.cpp:49
virtual void SetText(const char *text, Bool_t=kTRUE)
Definition: KVTextEntry.cpp:22
virtual void Insert(const char *)
Definition: KVTextEntry.cpp:68
KVTextEntry(const TGWindow *p, TGTextBuffer *text, Int_t id=-1, GContext_t norm=GetDefaultGC()(), FontStruct_t font=GetDefaultFontStruct(), UInt_t option=kSunkenFrame|kDoubleBorder, Pixel_t back=GetWhitePixel())
Definition: KVTextEntry.h:25
virtual ~KVTextEntry()
Definition: KVTextEntry.h:38
KVTextEntry(const TString &contents, const TGWindow *parent, Int_t id=-1)
Definition: KVTextEntry.h:35
static Pixel_t GetWhitePixel()
static FontStruct_t GetDefaultFontStruct()
static const TGGC & GetDefaultGC()