]>
git.saurik.com Git - wxWidgets.git/blob - src/gtk1/filedlg.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: gtk/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"
13 // Include setup.h to get wxUSE flags for compilers that do not support precompilation of headers
18 #include "wx/filedlg.h"
21 //-----------------------------------------------------------------------------
23 //-----------------------------------------------------------------------------
25 IMPLEMENT_DYNAMIC_CLASS(wxFileDialog
,wxGenericFileDialog
)
27 BEGIN_EVENT_TABLE(wxFileDialog
,wxGenericFileDialog
)
28 EVT_BUTTON(wxID_OK
, wxFileDialog::OnFakeOk
)
31 wxFileDialog::wxFileDialog(wxWindow
*parent
, const wxString
& message
,
32 const wxString
& defaultDir
,
33 const wxString
& defaultFileName
,
34 const wxString
& wildCard
,
35 long style
, const wxPoint
& pos
)
36 : wxGenericFileDialog(parent
, message
, defaultDir
, defaultFileName
,
37 wildCard
, style
, pos
, true )
39 wxGenericFileDialog::Create( parent
, message
, defaultDir
, defaultFileName
, wildCard
, style
, pos
);
42 wxFileDialog::~wxFileDialog()
46 void wxFileDialog::OnFakeOk( wxCommandEvent
&event
)
48 wxGenericFileDialog::OnListOk( event
);
51 int wxFileDialog::ShowModal()
53 return wxGenericFileDialog::ShowModal();
56 bool wxFileDialog::Show( bool show
)
58 return wxGenericFileDialog::Show( show
);
61 void wxFileDialog::DoSetSize(int x
, int y
, int width
, int height
, int sizeFlags
)
66 wxGenericFileDialog::DoSetSize( x
, y
, width
, height
, sizeFlags
);
69 wxString
wxFileDialog::GetPath() const
71 return wxGenericFileDialog::GetPath();
74 void wxFileDialog::GetFilenames(wxArrayString
& files
) const
76 wxGenericFileDialog::GetFilenames( files
);
79 void wxFileDialog::GetPaths(wxArrayString
& paths
) const
81 wxGenericFileDialog::GetPaths( paths
);
84 void wxFileDialog::SetMessage(const wxString
& message
)
86 wxGenericFileDialog::SetMessage( message
);
89 void wxFileDialog::SetPath(const wxString
& path
)
91 wxGenericFileDialog::SetPath( path
);
94 void wxFileDialog::SetDirectory(const wxString
& dir
)
96 wxGenericFileDialog::SetDirectory( dir
);
99 wxString
wxFileDialog::GetDirectory() const
101 return wxGenericFileDialog::GetDirectory();
104 void wxFileDialog::SetFilename(const wxString
& name
)
107 wxGenericFileDialog::SetFilename( name
);
110 wxString
wxFileDialog::GetFilename() const
112 return wxGenericFileDialog::GetFilename();
115 void wxFileDialog::SetWildcard(const wxString
& wildCard
)
117 wxGenericFileDialog::SetWildcard( wildCard
);
120 void wxFileDialog::SetFilterIndex(int filterIndex
)
122 wxGenericFileDialog::SetFilterIndex( filterIndex
);
125 int wxFileDialog::GetFilterIndex() const
127 return wxGenericFileDialog::GetFilterIndex();
130 #endif // wxUSE_FILEDLG