]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/filedlg.h
Common default datetime formats.
[wxWidgets.git] / include / wx / gtk1 / filedlg.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: filedlg.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Id: $Id$
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10
11 #ifndef __GTKFILEDLGH__
12 #define __GTKFILEDLGH__
13
14 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
15 #pragma interface "filedlggtk.h"
16 #endif
17
18 #include "wx/generic/filedlgg.h"
19
20 //-------------------------------------------------------------------------
21 // wxFileDialog
22 //-------------------------------------------------------------------------
23
24 class wxFileDialog: public wxGenericFileDialog
25 {
26 public:
27 wxFileDialog() { }
28
29 wxFileDialog(wxWindow *parent,
30 const wxString& message = wxFileSelectorPromptStr,
31 const wxString& defaultDir = wxEmptyString,
32 const wxString& defaultFile = wxEmptyString,
33 const wxString& wildCard = wxFileSelectorDefaultWildcardStr,
34 long style = 0,
35 const wxPoint& pos = wxDefaultPosition);
36
37 ~wxFileDialog();
38
39 virtual void GetPaths(wxArrayString& paths) const;
40 virtual void GetFilenames(wxArrayString& files) const;
41
42 virtual void SetMessage(const wxString& message);
43 virtual void SetPath(const wxString& path);
44 virtual void SetDirectory(const wxString& dir);
45 virtual void SetFilename(const wxString& name);
46 virtual void SetWildcard(const wxString& wildCard);
47 virtual void SetFilterIndex(int filterIndex);
48
49 virtual int ShowModal();
50 virtual bool Show( bool show = true );
51
52 void OnFakeOk( wxCommandEvent &event );
53
54 //private:
55 bool m_destroyed_by_delete;
56
57 void UpdateFromDialog();
58 void UpdateDialog();
59
60 private:
61 DECLARE_DYNAMIC_CLASS(wxFileDialog)
62 DECLARE_EVENT_TABLE()
63 };
64
65 #endif // __GTKFILEDLGH__