]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/filedlg.h
don't define wxCRT_xxprintfW function if the corresponding xxprintfw() standard funct...
[wxWidgets.git] / include / wx / gtk / filedlg.h
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: filedlg.h
3// Purpose:
4// Author: Robert Roebling
58614078
RR
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
65571936 7// Licence: wxWindows licence
c801d85f
KB
8/////////////////////////////////////////////////////////////////////////////
9
c801d85f
KB
10#ifndef __GTKFILEDLGH__
11#define __GTKFILEDLGH__
12
4e1901b7 13#include "wx/generic/filedlgg.h"
0cf3e587 14#include "wx/gtk/filectrl.h" // for wxGtkFileChooser
4e1901b7 15
c801d85f 16//-------------------------------------------------------------------------
f74172ab 17// wxFileDialog
c801d85f
KB
18//-------------------------------------------------------------------------
19
20123d49 20class WXDLLIMPEXP_CORE wxFileDialog: public wxGenericFileDialog
c801d85f 21{
0e1399b3
VZ
22public:
23 wxFileDialog() { }
24
25 wxFileDialog(wxWindow *parent,
26 const wxString& message = wxFileSelectorPromptStr,
f74172ab
VZ
27 const wxString& defaultDir = wxEmptyString,
28 const wxString& defaultFile = wxEmptyString,
0e1399b3 29 const wxString& wildCard = wxFileSelectorDefaultWildcardStr,
ff3e84ff
VZ
30 long style = wxFD_DEFAULT_STYLE,
31 const wxPoint& pos = wxDefaultPosition,
32 const wxSize& sz = wxDefaultSize,
33 const wxString& name = wxFileDialogNameStr);
f8bc53eb 34
a552d120 35 virtual ~wxFileDialog() {}
f8bc53eb
JS
36
37 virtual wxString GetPath() const;
9755e73b 38 virtual void GetPaths(wxArrayString& paths) const;
f8bc53eb
JS
39 virtual wxString GetDirectory() const;
40 virtual wxString GetFilename() const;
9755e73b 41 virtual void GetFilenames(wxArrayString& files) const;
f8bc53eb
JS
42 virtual int GetFilterIndex() const;
43
9755e73b
VS
44 virtual void SetMessage(const wxString& message);
45 virtual void SetPath(const wxString& path);
46 virtual void SetDirectory(const wxString& dir);
47 virtual void SetFilename(const wxString& name);
48 virtual void SetWildcard(const wxString& wildCard);
49 virtual void SetFilterIndex(int filterIndex);
f8bc53eb 50
4e1901b7
RR
51 virtual int ShowModal();
52 virtual bool Show( bool show = true );
53
a552d120 54
4e1901b7 55
6f02a879 56protected:
5b2e23bf
RR
57 // override this from wxTLW since the native
58 // form doesn't have any m_wxwindow
59 virtual void DoSetSize(int x, int y,
60 int width, int height,
61 int sizeFlags = wxSIZE_AUTO);
62
63
f8bc53eb 64private:
20e05ffb 65 DECLARE_DYNAMIC_CLASS(wxFileDialog)
4e1901b7 66 DECLARE_EVENT_TABLE()
f8bc53eb 67 void OnFakeOk( wxCommandEvent &event );
0cf3e587
VZ
68
69 wxGtkFileChooser m_fc;
c801d85f
KB
70};
71
b600ed13 72#endif // __GTKFILEDLGH__