KaliVeda
Toolkit for HIC analysis
|
Modified version of TGFileDialog file selection dialog.
This class creates a file selection dialog. It contains a combo box to select the desired directory. A listview with the different files in the current directory and a combo box with which you can select a filter (on file extensions).
When creating a file dialog one passes a pointer to a TGFileInfo object. In this object you can set the fFileTypes and fIniDir to specify the list of file types for the filter combo box and the initial directory.
When the KVFileDialog ctor returns the selected file name can be found in the TGFileInfo::fFilename field and the selected directory in TGFileInfo::fIniDir.
The fFilename and fIniDir are deleted by the TGFileInfo dtor.
Definition at line 49 of file KVFileDialog.h.
#include <KVFileDialog.h>
Private Member Functions | |
KVFileDialog (const KVFileDialog &) | |
KVFileDialog & | operator= (const KVFileDialog &) |
Private Attributes | |
TGTextButton * | fCancel |
cancel button | |
TGPictureButton * | fCdup |
top toolbar button | |
TGCheckButton * | fCheckB |
TGPictureButton * | fDetails |
top toolbar button | |
EKVFileDialogMode | fDlgMode |
TGFileContainer * | fFc |
file list view container (containing the files) | |
TGFileInfo * | fFileInfo |
file info passed to this dialog | |
TGListView * | fFv |
file list view | |
TGPictureButton * | fList |
top toolbar button | |
TGTextEntry * | fName |
file name text entry | |
TGPictureButton * | fNewf |
top toolbar button | |
TGTextButton * | fOk |
ok button | |
const TGPicture * | fPcdup |
OR set on/off multiple file selection for SaveAs dialog. | |
const TGPicture * | fPdetails |
picture for fDetails | |
const TGPicture * | fPlist |
picture for fList | |
const TGPicture * | fPnewf |
picture for fNewf | |
TGTextBuffer * | fTbfname |
text buffer of file name | |
TGFSComboBox * | fTreeLB |
file system path combo box | |
TGComboBox * | fTypes |
file type combo box | |
Additional Inherited Members | |
Public Types inherited from TGTransientFrame | |
enum | EPlacement |
Public Types inherited from TGWindow | |
enum | EEditMode |
enum | EStatusBits |
Public Types inherited from TObject | |
enum | EDeprecatedStatusBits |
enum | EStatusBits |
Static Public Member Functions inherited from TGTransientFrame | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Static Public Member Functions inherited from TGMainFrame | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Static Public Member Functions inherited from TGCompositeFrame | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Static Public Member Functions inherited from TGFrame | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
static const TGGC & | GetBckgndGC () |
static const TGGC & | GetBlackGC () |
static Pixel_t | GetBlackPixel () |
static Pixel_t | GetDefaultFrameBackground () |
static Pixel_t | GetDefaultSelectedBackground () |
static const TGGC & | GetHilightGC () |
static const TGGC & | GetShadowGC () |
static const TGGC & | GetWhiteGC () |
static Pixel_t | GetWhitePixel () |
Static Public Member Functions inherited from TGWindow | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
static Int_t | GetCounter () |
Static Public Member Functions inherited from TGObject | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Static Public Member Functions inherited from TObject | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
static Longptr_t | GetDtorOnly () |
static Bool_t | GetObjectStat () |
static void | SetDtorOnly (void *obj) |
static void | SetObjectStat (Bool_t stat) |
Static Public Member Functions inherited from TQObject | |
static Bool_t | AreAllSignalsBlocked () |
static Bool_t | BlockAllSignals (Bool_t b) |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static Bool_t | Connect (const char *sender_class, const char *signal, const char *receiver_class, void *receiver, const char *slot) |
static Bool_t | Connect (TQObject *sender, const char *signal, const char *receiver_class, void *receiver, const char *slot) |
static const char * | DeclFileName () |
static Bool_t | Disconnect (const char *class_name, const char *signal, void *receiver=nullptr, const char *slot=nullptr) |
static Bool_t | Disconnect (TQObject *sender, const char *signal=nullptr, void *receiver=nullptr, const char *slot=nullptr) |
Public Attributes inherited from TGTransientFrame | |
kBottom | |
kBottomLeft | |
kBottomRight | |
kCenter | |
kLeft | |
kRight | |
kTop | |
kTopLeft | |
kTopRight | |
Public Attributes inherited from TGWindow | |
kEditDisable | |
kEditDisableBtnEnable | |
kEditDisableEvents | |
kEditDisableGrab | |
kEditDisableHeight | |
kEditDisableKeyEnable | |
kEditDisableLayout | |
kEditDisableResize | |
kEditDisableWidth | |
kEditEnable | |
kIsHtmlView | |
Public Attributes inherited from TObject | |
kBitMask | |
kCanDelete | |
kCannotPick | |
kHasUUID | |
kInconsistent | |
kInvalidObject | |
kIsOnHeap | |
kIsReferenced | |
kMustCleanup | |
kNoContextMenu | |
kNotDeleted | |
kObjInCanvas | |
kOverwrite | |
kSingleKey | |
kWriteDelete | |
kZombie | |
Protected Member Functions inherited from TGMainFrame | |
TString | GetMWMfuncString () const |
TString | GetMWMinpString () const |
TString | GetMWMvalueString () const |
Protected Member Functions inherited from TGFrame | |
void | DoRedraw () override |
virtual void | Draw3dRectangle (UInt_t type, Int_t x, Int_t y, UInt_t w, UInt_t h) |
TString | GetOptionString () const |
const TGResourcePool * | GetResourcePool () const |
void * | GetSender () override |
virtual void | StartGuiBuilding (Bool_t on=kTRUE) |
Protected Member Functions inherited from TGWindow | |
TGWindow (const TGWindow &tgw) | |
TGWindow (Window_t id) | |
TGWindow & | operator= (const TGWindow &tgw) |
Protected Member Functions inherited from TGObject | |
TGObject & | operator= (const TGObject &tgo) |
Protected Member Functions inherited from TObject | |
virtual void | DoError (int level, const char *location, const char *fmt, va_list va) const |
void | MakeZombie () |
Protected Member Functions inherited from TQObject | |
virtual const char * | GetSenderClassName () const |
Static Protected Member Functions inherited from TGFrame | |
static Time_t | GetLastClick () |
Static Protected Member Functions inherited from TQObject | |
static Int_t | CheckConnectArgs (TQObject *sender, TClass *sender_class, const char *signal, TClass *receiver_class, const char *slot) |
static TString | CompressName (const char *method_name) |
static Bool_t | ConnectToClass (const char *sender_class, const char *signal, TClass *receiver_class, void *receiver, const char *slot) |
static Bool_t | ConnectToClass (TQObject *sender, const char *signal, TClass *receiver_class, void *receiver, const char *slot) |
Protected Attributes inherited from TGTransientFrame | |
const TGWindow * | fMain |
Protected Attributes inherited from TGMainFrame | |
TList * | fBindList |
TString | fClassName |
Atom_t * | fDNDTypeList |
TString | fIconName |
TString | fIconPixmap |
UInt_t | fMWMFuncs |
UInt_t | fMWMInput |
UInt_t | fMWMValue |
TString | fResourceName |
TString | fWindowName |
UInt_t | fWMHeight |
UInt_t | fWMHeightInc |
EInitialState | fWMInitState |
UInt_t | fWMMaxHeight |
UInt_t | fWMMaxWidth |
UInt_t | fWMMinHeight |
UInt_t | fWMMinWidth |
UInt_t | fWMWidth |
UInt_t | fWMWidthInc |
Int_t | fWMX |
Int_t | fWMY |
kDontCallClose | |
Protected Attributes inherited from TGCompositeFrame | |
Bool_t | fLayoutBroken |
TGLayoutManager * | fLayoutManager |
TList * | fList |
Bool_t | fMapSubwindows |
Int_t | fMustCleanup |
Protected Attributes inherited from TGFrame | |
Pixel_t | fBackground |
Int_t | fBorderWidth |
Int_t | fDNDState |
UInt_t | fEventMask |
TGFrameElement * | fFE |
UInt_t | fHeight |
UInt_t | fMaxHeight |
UInt_t | fMaxWidth |
UInt_t | fMinHeight |
UInt_t | fMinWidth |
UInt_t | fOptions |
UInt_t | fWidth |
Int_t | fX |
Int_t | fY |
kDeleteWindowCalled | |
Protected Attributes inherited from TGWindow | |
UInt_t | fEditDisabled |
TString | fName |
Bool_t | fNeedRedraw |
const TGWindow * | fParent |
Protected Attributes inherited from TGObject | |
TGClient * | fClient |
Handle_t | fId |
Protected Attributes inherited from TObject | |
kOnlyPrepStep | |
Protected Attributes inherited from TQObject | |
TList * | fListOfConnections |
TList * | fListOfSignals |
Bool_t | fSignalsBlocked |
Static Protected Attributes inherited from TGCompositeFrame | |
static TGLayoutHints * | fgDefaultHints |
Static Protected Attributes inherited from TGFrame | |
static const TGGC * | fgBckgndGC |
static const TGGC * | fgBlackGC |
static Pixel_t | fgBlackPixel |
static Window_t | fgDbw |
static Int_t | fgDbx |
static Int_t | fgDby |
static Pixel_t | fgDefaultFrameBackground |
static Pixel_t | fgDefaultSelectedBackground |
static const TGGC * | fgHilightGC |
static Bool_t | fgInit |
static UInt_t | fgLastButton |
static Time_t | fgLastClick |
static const TGGC * | fgShadowGC |
static UInt_t | fgUserColor |
static const TGGC * | fgWhiteGC |
static Pixel_t | fgWhitePixel |
Static Protected Attributes inherited from TGWindow | |
static Int_t | fgCounter |
Static Protected Attributes inherited from TQObject | |
static Bool_t | fgAllSignalsBlocked |
|
private |
KVFileDialog::KVFileDialog | ( | const TGWindow * | p = 0 , |
const TGWindow * | main = 0 , |
||
EKVFileDialogMode | dlg_type = kKVFDOpen , |
||
TGFileInfo * | file_info = 0 |
||
) |
Create a file selection dialog. Depending on the dlg_type it can be used for opening or saving a file or selecting a directory.
Definition at line 65 of file KVFileDialog.cpp.
|
virtual |
Delete file dialog.
Definition at line 312 of file KVFileDialog.cpp.
|
virtual |
|
private |
Process messages generated by the user input in the file dialog.
Reimplemented from TGFrame.
Definition at line 351 of file KVFileDialog.cpp.
|
private |
cancel button
Definition at line 67 of file KVFileDialog.h.
|
private |
top toolbar button
Definition at line 56 of file KVFileDialog.h.
|
private |
set on/off file overwriting for Open dialog
Definition at line 60 of file KVFileDialog.h.
|
private |
top toolbar button
Definition at line 59 of file KVFileDialog.h.
|
private |
Definition at line 71 of file KVFileDialog.h.
|
private |
file list view container (containing the files)
Definition at line 69 of file KVFileDialog.h.
|
private |
file info passed to this dialog
Definition at line 70 of file KVFileDialog.h.
|
private |
file list view
Definition at line 68 of file KVFileDialog.h.
|
private |
top toolbar button
Definition at line 58 of file KVFileDialog.h.
|
private |
file name text entry
Definition at line 53 of file KVFileDialog.h.
|
private |
top toolbar button
Definition at line 57 of file KVFileDialog.h.
|
private |
ok button
Definition at line 66 of file KVFileDialog.h.
|
private |
OR set on/off multiple file selection for SaveAs dialog.
picture for fCdup
Definition at line 62 of file KVFileDialog.h.
|
private |
picture for fDetails
Definition at line 65 of file KVFileDialog.h.
|
private |
picture for fList
Definition at line 64 of file KVFileDialog.h.
|
private |
picture for fNewf
Definition at line 63 of file KVFileDialog.h.
|
private |
text buffer of file name
Definition at line 52 of file KVFileDialog.h.
|
private |
file system path combo box
Definition at line 55 of file KVFileDialog.h.
|
private |
file type combo box
Definition at line 54 of file KVFileDialog.h.