]>
git.saurik.com Git - wxWidgets.git/blob - src/gtk1/filedlg.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/gtk1/filedlg.cpp
3 // Purpose: native implementation of wxFileDialog
4 // Author: Robert Roebling, Zbigniew Zagorski, Mart Raudsepp
6 // Copyright: (c) 1998 Robert Roebling, 2004 Zbigniew Zagorski, 2005 Mart Raudsepp
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 // For compilers that support precompilation, includes "wx.h".
11 #include "wx/wxprec.h"
15 #include "wx/filedlg.h"
18 //-----------------------------------------------------------------------------
20 //-----------------------------------------------------------------------------
22 IMPLEMENT_DYNAMIC_CLASS(wxFileDialog
,wxGenericFileDialog
)
24 BEGIN_EVENT_TABLE(wxFileDialog
,wxGenericFileDialog
)
25 EVT_BUTTON(wxID_OK
, wxFileDialog::OnFakeOk
)
28 wxFileDialog::wxFileDialog(wxWindow
*parent
, const wxString
& message
,
29 const wxString
& defaultDir
,
30 const wxString
& defaultFileName
,
31 const wxString
& wildCard
,
32 long style
, const wxPoint
& pos
)
33 : wxGenericFileDialog(parent
, message
, defaultDir
, defaultFileName
,
34 wildCard
, style
, pos
, true )
36 wxGenericFileDialog::Create( parent
, message
, defaultDir
, defaultFileName
, wildCard
, style
, pos
);
39 wxFileDialog::~wxFileDialog()
43 void wxFileDialog::OnFakeOk( wxCommandEvent
&event
)
45 wxGenericFileDialog::OnListOk( event
);
48 int wxFileDialog::ShowModal()
50 return wxGenericFileDialog::ShowModal();
53 bool wxFileDialog::Show( bool show
)
55 return wxGenericFileDialog::Show( show
);
58 void wxFileDialog::DoSetSize(int x
, int y
, int width
, int height
, int sizeFlags
)
63 wxGenericFileDialog::DoSetSize( x
, y
, width
, height
, sizeFlags
);
66 wxString
wxFileDialog::GetPath() const
68 return wxGenericFileDialog::GetPath();
71 void wxFileDialog::GetFilenames(wxArrayString
& files
) const
73 wxGenericFileDialog::GetFilenames( files
);
76 void wxFileDialog::GetPaths(wxArrayString
& paths
) const
78 wxGenericFileDialog::GetPaths( paths
);
81 void wxFileDialog::SetMessage(const wxString
& message
)
83 wxGenericFileDialog::SetMessage( message
);
86 void wxFileDialog::SetPath(const wxString
& path
)
88 wxGenericFileDialog::SetPath( path
);
91 void wxFileDialog::SetDirectory(const wxString
& dir
)
93 wxGenericFileDialog::SetDirectory( dir
);
96 wxString
wxFileDialog::GetDirectory() const
98 return wxGenericFileDialog::GetDirectory();
101 void wxFileDialog::SetFilename(const wxString
& name
)
104 wxGenericFileDialog::SetFilename( name
);
107 wxString
wxFileDialog::GetFilename() const
109 return wxGenericFileDialog::GetFilename();
112 void wxFileDialog::SetWildcard(const wxString
& wildCard
)
114 wxGenericFileDialog::SetWildcard( wildCard
);
117 void wxFileDialog::SetFilterIndex(int filterIndex
)
119 wxGenericFileDialog::SetFilterIndex( filterIndex
);
122 int wxFileDialog::GetFilterIndex() const
124 return wxGenericFileDialog::GetFilterIndex();
127 #endif // wxUSE_FILEDLG