KaliVeda
Toolkit for HIC analysis
KVFileDialog.h
1 #ifndef ROOT_KVFileDialog
2 #define ROOT_KVFileDialog
3 
27 #ifndef ROOT_TGFrame
28 #include "TGFrame.h"
29 #endif
30 #include "TGFileDialog.h"
31 
32 enum EKVFileDialogMode {
33  kKVFDOpen,
34  kKVFDDirectory,
35  kKVFDSave
36 };
37 
38 
39 class TGTextBuffer;
40 class TGTextEntry;
41 class TGComboBox;
42 class TGPictureButton;
43 class TGTextButton;
44 class TGCheckButton;
45 class TGListView;
46 class TGFileContainer;
47 class TGFSComboBox;
48 
50 
51 protected:
62  const TGPicture* fPcdup;
63  const TGPicture* fPnewf;
64  const TGPicture* fPlist;
71  EKVFileDialogMode fDlgMode;
72 private:
73  KVFileDialog(const KVFileDialog&); // not implemented
74  KVFileDialog& operator=(const KVFileDialog&); // not implemented
75 
76 public:
77  KVFileDialog(const TGWindow* p = 0, const TGWindow* main = 0,
78  EKVFileDialogMode dlg_type = kKVFDOpen, TGFileInfo* file_info = 0);
79  virtual ~KVFileDialog();
80 
81  virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
82  virtual void CloseWindow();
83 
84  ClassDef(KVFileDialog, 0) //File or directory selection dialog
85 };
86 
87 #endif
long Long_t
bool Bool_t
#define ClassDef(name, id)
Modified version of TGFileDialog file selection dialog.
Definition: KVFileDialog.h:49
TGPictureButton * fNewf
top toolbar button
Definition: KVFileDialog.h:57
virtual ~KVFileDialog()
Delete file dialog.
TGPictureButton * fList
top toolbar button
Definition: KVFileDialog.h:58
const TGPicture * fPlist
picture for fList
Definition: KVFileDialog.h:64
TGTextBuffer * fTbfname
text buffer of file name
Definition: KVFileDialog.h:52
TGTextButton * fOk
ok button
Definition: KVFileDialog.h:66
TGPictureButton * fCdup
top toolbar button
Definition: KVFileDialog.h:56
TGCheckButton * fCheckB
Definition: KVFileDialog.h:60
KVFileDialog(const KVFileDialog &)
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Process messages generated by the user input in the file dialog.
TGTextEntry * fName
file name text entry
Definition: KVFileDialog.h:53
TGFileInfo * fFileInfo
file info passed to this dialog
Definition: KVFileDialog.h:70
EKVFileDialogMode fDlgMode
Definition: KVFileDialog.h:71
TGComboBox * fTypes
file type combo box
Definition: KVFileDialog.h:54
TGFSComboBox * fTreeLB
file system path combo box
Definition: KVFileDialog.h:55
TGListView * fFv
file list view
Definition: KVFileDialog.h:68
TGPictureButton * fDetails
top toolbar button
Definition: KVFileDialog.h:59
TGTextButton * fCancel
cancel button
Definition: KVFileDialog.h:67
const TGPicture * fPcdup
OR set on/off multiple file selection for SaveAs dialog.
Definition: KVFileDialog.h:62
TGFileContainer * fFc
file list view container (containing the files)
Definition: KVFileDialog.h:69
KVFileDialog & operator=(const KVFileDialog &)
virtual void CloseWindow()
Close file dialog.
const TGPicture * fPdetails
picture for fDetails
Definition: KVFileDialog.h:65
const TGPicture * fPnewf
picture for fNewf
Definition: KVFileDialog.h:63
int main(int argc, char **argv)