]> git.saurik.com Git - wxWidgets.git/blame - src/gtk1/filedlg.cpp
more wxFD_XXX renamings (patch 1488371)
[wxWidgets.git] / src / gtk1 / filedlg.cpp
CommitLineData
c801d85f 1/////////////////////////////////////////////////////////////////////////////
9b5f1895 2// Name: src/gtk1/filedlg.cpp
9755e73b 3// Purpose: native implementation of wxFileDialog
f8bc53eb 4// Author: Robert Roebling, Zbigniew Zagorski, Mart Raudsepp
a81258be 5// Id: $Id$
f8bc53eb 6// Copyright: (c) 1998 Robert Roebling, 2004 Zbigniew Zagorski, 2005 Mart Raudsepp
65571936 7// Licence: wxWindows licence
c801d85f
KB
8/////////////////////////////////////////////////////////////////////////////
9
14f355c2
VS
10// For compilers that support precompilation, includes "wx.h".
11#include "wx/wxprec.h"
12
4e1901b7 13#if wxUSE_FILEDLG
9755e73b 14
c801d85f 15#include "wx/filedlg.h"
4e1901b7 16
c801d85f 17
291a8f20
RR
18//-----------------------------------------------------------------------------
19// wxFileDialog
20//-----------------------------------------------------------------------------
21
4e1901b7
RR
22IMPLEMENT_DYNAMIC_CLASS(wxFileDialog,wxGenericFileDialog)
23
24BEGIN_EVENT_TABLE(wxFileDialog,wxGenericFileDialog)
f8bc53eb 25 EVT_BUTTON(wxID_OK, wxFileDialog::OnFakeOk)
4e1901b7 26END_EVENT_TABLE()
c801d85f 27
9755e73b
VS
28wxFileDialog::wxFileDialog(wxWindow *parent, const wxString& message,
29 const wxString& defaultDir,
30 const wxString& defaultFileName,
31 const wxString& wildCard,
32 long style, const wxPoint& pos)
4e1901b7
RR
33 : wxGenericFileDialog(parent, message, defaultDir, defaultFileName,
34 wildCard, style, pos, true )
c801d85f 35{
77f70672 36 wxGenericFileDialog::Create( parent, message, defaultDir, defaultFileName, wildCard, style, pos );
9755e73b 37}
0e1399b3 38
76840ed0 39wxFileDialog::~wxFileDialog()
9755e73b 40{
4e1901b7
RR
41}
42
43void wxFileDialog::OnFakeOk( wxCommandEvent &event )
44{
3cbab641 45 wxGenericFileDialog::OnListOk( event );
4e1901b7
RR
46}
47
48int wxFileDialog::ShowModal()
49{
3cbab641 50 return wxGenericFileDialog::ShowModal();
4e1901b7
RR
51}
52
53bool wxFileDialog::Show( bool show )
54{
3cbab641 55 return wxGenericFileDialog::Show( show );
9755e73b 56}
0e1399b3 57
5b2e23bf
RR
58void wxFileDialog::DoSetSize(int x, int y, int width, int height, int sizeFlags )
59{
60 if (!m_wxwindow)
61 return;
62 else
63 wxGenericFileDialog::DoSetSize( x, y, width, height, sizeFlags );
64}
65
f8bc53eb
JS
66wxString wxFileDialog::GetPath() const
67{
3cbab641 68 return wxGenericFileDialog::GetPath();
f8bc53eb
JS
69}
70
27b2dd53 71void wxFileDialog::GetFilenames(wxArrayString& files) const
9755e73b 72{
3cbab641 73 wxGenericFileDialog::GetFilenames( files );
9755e73b 74}
76840ed0 75
27b2dd53 76void wxFileDialog::GetPaths(wxArrayString& paths) const
9755e73b 77{
3cbab641 78 wxGenericFileDialog::GetPaths( paths );
9755e73b 79}
035b704a 80
9755e73b
VS
81void wxFileDialog::SetMessage(const wxString& message)
82{
3cbab641 83 wxGenericFileDialog::SetMessage( message );
9755e73b
VS
84}
85
76840ed0
RR
86void wxFileDialog::SetPath(const wxString& path)
87{
3cbab641 88 wxGenericFileDialog::SetPath( path );
76840ed0
RR
89}
90
9755e73b
VS
91void wxFileDialog::SetDirectory(const wxString& dir)
92{
3cbab641 93 wxGenericFileDialog::SetDirectory( dir );
9755e73b
VS
94}
95
f8bc53eb
JS
96wxString wxFileDialog::GetDirectory() const
97{
3cbab641 98 return wxGenericFileDialog::GetDirectory();
f8bc53eb
JS
99}
100
9755e73b
VS
101void wxFileDialog::SetFilename(const wxString& name)
102{
3cbab641
MR
103
104 wxGenericFileDialog::SetFilename( name );
9755e73b 105}
035b704a 106
f8bc53eb
JS
107wxString wxFileDialog::GetFilename() const
108{
3cbab641 109 return wxGenericFileDialog::GetFilename();
f8bc53eb
JS
110}
111
9755e73b
VS
112void wxFileDialog::SetWildcard(const wxString& wildCard)
113{
3cbab641 114 wxGenericFileDialog::SetWildcard( wildCard );
9755e73b 115}
a3622daa 116
9755e73b
VS
117void wxFileDialog::SetFilterIndex(int filterIndex)
118{
3cbab641 119 wxGenericFileDialog::SetFilterIndex( filterIndex );
4e1901b7
RR
120}
121
f8bc53eb 122int wxFileDialog::GetFilterIndex() const
4e1901b7 123{
3cbab641 124 return wxGenericFileDialog::GetFilterIndex();
9755e73b 125}
3f6638b8 126
4e1901b7 127#endif // wxUSE_FILEDLG