KaliVeda  1.12/06
Heavy-Ion Analysis Toolkit
KVNameValueListGUI.h
Go to the documentation of this file.
1 
4 #ifndef __KVNAMEVALUELISTGUI_H
5 #define __KVNAMEVALUELISTGUI_H
6 
7 #include "TGFrame.h"
8 #include "RQ_OBJECT.h"
9 #include "KVNameValueList.h"
10 
11 #include <TGButton.h>
12 #include <TObjArray.h>
13 
21  RQ_OBJECT("KVNameValueListGUI")
22 private:
25 
32 
34 
35 protected:
36  virtual TObject* AddAString(Int_t i, TGHorizontalFrame* hf);
37  virtual TObject* AddABool(Int_t i, TGHorizontalFrame* hf);
38  virtual TObject* AddADouble(Int_t i, TGHorizontalFrame* hf);
39  virtual TObject* AddAInt(Int_t i, TGHorizontalFrame* hf);
40 
41  TObject* GetDataWidget(int i) const
42  {
43  return fData[i];
44  }
46  {
47  return theList;
48  }
50  {
51  return fMain;
52  }
53 
54 public:
55  KVNameValueListGUI(const TGWindow* main, KVNameValueList* params, Bool_t* cancel_pressed, Bool_t wait_for_main = kTRUE);
56 
57  virtual ~KVNameValueListGUI();
58 
59  void ReadData();
60  void RestoreData();
61  void DoClose();
62  void CloseWindow();
63 
64  ClassDef(KVNameValueListGUI, 1) //GUI for setting KVNameValueList parameters
65 };
66 
67 #endif
int Int_t
unsigned int UInt_t
#define RQ_OBJECT(sender_class)
bool Bool_t
#define ClassDef(name, id)
GUI for setting KVNameValueList parameters.
TObject * GetDataWidget(int i) const
TGTransientFrame * GetMain() const
virtual TObject * AddABool(Int_t i, TGHorizontalFrame *hf)
TGTransientFrame * fMain
virtual TObject * AddAString(Int_t i, TGHorizontalFrame *hf)
virtual TObject * AddAInt(Int_t i, TGHorizontalFrame *hf)
KVNameValueListGUI(const TGWindow *main, KVNameValueList *params, Bool_t *cancel_pressed, Bool_t wait_for_main=kTRUE)
Constructor.
virtual TObject * AddADouble(Int_t i, TGHorizontalFrame *hf)
virtual ~KVNameValueListGUI()
Destructor.
TGTextButton * fCancelBut
Cancel button.
void RestoreData()
return all values to original state
TGTextButton * fOKBut
OK button.
KVNameValueList * theList
KVNameValueList fOriginal
KVNameValueList * GetList() const
Bool_t * fOK
set to kTRUE if OK button is pressed
Handles lists of named parameters with different types, a list of KVNamedParameter objects.
int main(int argc, char **argv)