KaliVeda  1.12/06
Heavy-Ion Analysis Toolkit
KVTextEntry.h
Go to the documentation of this file.
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 
20 class KVTextEntry : public TGTextEntry {
21 
22 public:
23  KVTextEntry(const TGWindow* p, TGTextBuffer* text, Int_t id = -1,
24  GContext_t norm = GetDefaultGC()(),
26  UInt_t option = kSunkenFrame | kDoubleBorder,
27  Pixel_t back = GetWhitePixel())
28  : TGTextEntry(p, text, id, norm, font, option, back)
29  {};
30  KVTextEntry(const TGWindow* parent = 0, const char* text = 0, Int_t id = -1)
31  : TGTextEntry(parent, text, id)
32  {};
33  KVTextEntry(const TString& contents, const TGWindow* parent, Int_t id = -1)
34  : TGTextEntry(contents, parent, id)
35  {};
36  virtual ~KVTextEntry() {};
37 
38  virtual void SetText(const char* text, Bool_t /*emit*/ = kTRUE); //*MENU*
39  virtual void SetMaxLength(Int_t maxlen); //*MENU*
40  virtual void Insert(const char*);
41 
42  ClassDef(KVTextEntry, 0) //TGTextEntry without any limit on the length of the text
43 };
44 
45 #endif
int Int_t
unsigned int UInt_t
Handle_t GContext_t
Handle_t FontStruct_t
ULong_t Pixel_t
bool Bool_t
#define ClassDef(name, id)
TGTextEntry without any limit on the length of the text.
Definition: KVTextEntry.h:20
KVTextEntry(const TGWindow *parent=0, const char *text=0, Int_t id=-1)
Definition: KVTextEntry.h:30
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:23
virtual ~KVTextEntry()
Definition: KVTextEntry.h:36
KVTextEntry(const TString &contents, const TGWindow *parent, Int_t id=-1)
Definition: KVTextEntry.h:33
static Pixel_t GetWhitePixel()
static FontStruct_t GetDefaultFontStruct()
static const TGGC & GetDefaultGC()
TText * text