]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/filedlg.h
Dirty hack to prevent double destruction of file dialog.
[wxWidgets.git] / include / wx / gtk / 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
16 #endif
17
18 //-------------------------------------------------------------------------
19 // wxFileDialog
20 //-------------------------------------------------------------------------
21
22 class wxFileDialog: public wxFileDialogBase
23 {
24 public:
25 wxFileDialog() { }
26
27 wxFileDialog(wxWindow *parent,
28 const wxString& message = wxFileSelectorPromptStr,
29 const wxString& defaultDir = wxEmptyString,
30 const wxString& defaultFile = wxEmptyString,
31 const wxString& wildCard = wxFileSelectorDefaultWildcardStr,
32 long style = 0,
33 const wxPoint& pos = wxDefaultPosition);
34
35 ~wxFileDialog();
36
37 virtual void GetPaths(wxArrayString& paths) const;
38 virtual void GetFilenames(wxArrayString& files) const;
39
40 virtual void SetMessage(const wxString& message);
41 virtual void SetPath(const wxString& path);
42 virtual void SetDirectory(const wxString& dir);
43 virtual void SetFilename(const wxString& name);
44 virtual void SetWildcard(const wxString& wildCard);
45 virtual void SetFilterIndex(int filterIndex);
46
47 //private:
48 bool m_destroyed_by_delete;
49
50 void UpdateFromDialog();
51 void UpdateDialog();
52
53 DECLARE_DYNAMIC_CLASS(wxFileDialog)
54 };
55
56 #endif // __GTKFILEDLGH__