]>
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
,
35 : wxGenericFileDialog(parent
, message
, defaultDir
, defaultFileName
,
36 wildCard
, style
, pos
, sz
, name
, true )
38 wxGenericFileDialog::Create( parent
, message
, defaultDir
, defaultFileName
, wildCard
, style
, pos
, sz
, name
);
41 wxFileDialog::~wxFileDialog()
45 void wxFileDialog::OnFakeOk( wxCommandEvent
&event
)
47 wxGenericFileDialog::OnListOk( event
);
50 int wxFileDialog::ShowModal()
52 return wxGenericFileDialog::ShowModal();
55 bool wxFileDialog::Show( bool show
)
57 return wxGenericFileDialog::Show( show
);
60 void wxFileDialog::DoSetSize(int x
, int y
, int width
, int height
, int sizeFlags
)
65 wxGenericFileDialog::DoSetSize( x
, y
, width
, height
, sizeFlags
);
68 wxString
wxFileDialog::GetPath() const
70 return wxGenericFileDialog::GetPath();
73 void wxFileDialog::GetFilenames(wxArrayString
& files
) const
75 wxGenericFileDialog::GetFilenames( files
);
78 void wxFileDialog::GetPaths(wxArrayString
& paths
) const
80 wxGenericFileDialog::GetPaths( paths
);
83 void wxFileDialog::SetMessage(const wxString
& message
)
85 wxGenericFileDialog::SetMessage( message
);
88 void wxFileDialog::SetPath(const wxString
& path
)
90 wxGenericFileDialog::SetPath( path
);
93 void wxFileDialog::SetDirectory(const wxString
& dir
)
95 wxGenericFileDialog::SetDirectory( dir
);
98 wxString
wxFileDialog::GetDirectory() const
100 return wxGenericFileDialog::GetDirectory();
103 void wxFileDialog::SetFilename(const wxString
& name
)
106 wxGenericFileDialog::SetFilename( name
);
109 wxString
wxFileDialog::GetFilename() const
111 return wxGenericFileDialog::GetFilename();
114 void wxFileDialog::SetWildcard(const wxString
& wildCard
)
116 wxGenericFileDialog::SetWildcard( wildCard
);
119 void wxFileDialog::SetFilterIndex(int filterIndex
)
121 wxGenericFileDialog::SetFilterIndex( filterIndex
);
124 int wxFileDialog::GetFilterIndex() const
126 return wxGenericFileDialog::GetFilterIndex();
129 #endif // wxUSE_FILEDLG