// Name: filectrl.h
// Purpose: interface of wxFileCtrl
// Author: wxWidgets team
-// RCS-ID: $Id$
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
+enum
+{
+ wxFC_OPEN = 0x0001,
+ wxFC_SAVE = 0x0002,
+ wxFC_MULTIPLE = 0x0004,
+ wxFC_NOSHOWHIDDEN = 0x0008
+};
+
+#define wxFC_DEFAULT_STYLE wxFC_OPEN
+
/**
@class wxFileCtrl
@library{wxcore}
@category{ctrl}
- @appearance{filectrl.png}
+ @appearance{filectrl}
@nativeimpl{wxgtk}
const wxString& name = wxFileCtrlNameStr);
/**
- Returns the current directory of the file control (i.e. the directory shown by it).
+ Returns the current directory of the file control (i.e.\ the directory shown by it).
*/
virtual wxString GetDirectory() const;
*/
virtual bool SetFilename(const wxString& filename);
+ /**
+ Changes to a certain directory and selects a certain file.
+
+ In case the filename specified isn't found/couldn't be shown with
+ currently selected filter, false is returned.
+
+ @return Returns @true on success, @false otherwise
+ */
+ virtual bool SetPath(const wxString& path);
+
/**
Sets the current filter index, starting from zero.
*/
};
+wxEventType wxEVT_FILECTRL_SELECTIONCHANGED;
+wxEventType wxEVT_FILECTRL_FILEACTIVATED;
+wxEventType wxEVT_FILECTRL_FOLDERCHANGED;
+wxEventType wxEVT_FILECTRL_FILTERCHANGED;
+
/**
@class wxFileCtrlEvent
The current file filter of the file control has been changed
@endEventTable
- @library{wxbase}
+ @library{wxcore}
@category{events}
*/
class wxFileCtrlEvent : public wxCommandEvent