]>
git.saurik.com Git - wxWidgets.git/blob - src/gtk1/filedlg.cpp
efebaebf2a3dd693737a82b6c6a535560f45495b
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"
16 #include "wx/modalhook.h"
19 //-----------------------------------------------------------------------------
21 //-----------------------------------------------------------------------------
23 IMPLEMENT_DYNAMIC_CLASS(wxFileDialog
,wxGenericFileDialog
)
25 BEGIN_EVENT_TABLE(wxFileDialog
,wxGenericFileDialog
)
26 EVT_BUTTON(wxID_OK
, wxFileDialog::OnFakeOk
)
29 wxFileDialog::wxFileDialog(wxWindow
*parent
, const wxString
& message
,
30 const wxString
& defaultDir
,
31 const wxString
& defaultFileName
,
32 const wxString
& wildCard
,
33 long style
, const wxPoint
& pos
,
36 : wxGenericFileDialog(parent
, message
, defaultDir
, defaultFileName
,
37 wildCard
, style
, pos
, sz
, name
, true )
39 wxGenericFileDialog::Create( parent
, message
, defaultDir
, defaultFileName
, wildCard
, style
, pos
, sz
, name
);
42 wxFileDialog::~wxFileDialog()
46 void wxFileDialog::OnFakeOk( wxCommandEvent
&event
)
48 wxGenericFileDialog::OnOk( event
);
51 int wxFileDialog::ShowModal()
53 WX_HOOK_MODAL_DIALOG();
55 return wxGenericFileDialog::ShowModal();
58 bool wxFileDialog::Show( bool show
)
60 return wxGenericFileDialog::Show( show
);
63 void wxFileDialog::DoSetSize(int x
, int y
, int width
, int height
, int sizeFlags
)
68 wxGenericFileDialog::DoSetSize( x
, y
, width
, height
, sizeFlags
);
71 wxString
wxFileDialog::GetPath() const
73 return wxGenericFileDialog::GetPath();
76 void wxFileDialog::GetFilenames(wxArrayString
& files
) const
78 wxGenericFileDialog::GetFilenames( files
);
81 void wxFileDialog::GetPaths(wxArrayString
& paths
) const
83 wxGenericFileDialog::GetPaths( paths
);
86 void wxFileDialog::SetMessage(const wxString
& message
)
88 wxGenericFileDialog::SetMessage( message
);
91 void wxFileDialog::SetPath(const wxString
& path
)
93 wxGenericFileDialog::SetPath( path
);
96 void wxFileDialog::SetDirectory(const wxString
& dir
)
98 wxGenericFileDialog::SetDirectory( dir
);
101 wxString
wxFileDialog::GetDirectory() const
103 return wxGenericFileDialog::GetDirectory();
106 void wxFileDialog::SetFilename(const wxString
& name
)
109 wxGenericFileDialog::SetFilename( name
);
112 wxString
wxFileDialog::GetFilename() const
114 return wxGenericFileDialog::GetFilename();
117 void wxFileDialog::SetWildcard(const wxString
& wildCard
)
119 wxGenericFileDialog::SetWildcard( wildCard
);
122 void wxFileDialog::SetFilterIndex(int filterIndex
)
124 wxGenericFileDialog::SetFilterIndex( filterIndex
);
127 int wxFileDialog::GetFilterIndex() const
129 return wxGenericFileDialog::GetFilterIndex();
132 #endif // wxUSE_FILEDLG