]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/gtk/filedlg.h
Hopefully fixed library names generated by wx-config for OS/2's PM port.
[wxWidgets.git] / include / wx / gtk / filedlg.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: filedlg.h
3// Purpose:
4// Author: Robert Roebling
5// Id: $Id$
6// Copyright: (c) 1998 Robert Roebling
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10
11#ifndef __GTKFILEDLGH__
12#define __GTKFILEDLGH__
13
14#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
15#pragma interface "filedlggtk.h"
16#endif
17
18#include "wx/generic/filedlgg.h"
19
20//-------------------------------------------------------------------------
21// wxFileDialog
22//-------------------------------------------------------------------------
23
24class wxFileDialog: public wxGenericFileDialog
25{
26public:
27 wxFileDialog() { }
28
29 wxFileDialog(wxWindow *parent,
30 const wxString& message = wxFileSelectorPromptStr,
31 const wxString& defaultDir = wxEmptyString,
32 const wxString& defaultFile = wxEmptyString,
33 const wxString& wildCard = wxFileSelectorDefaultWildcardStr,
34 long style = 0,
35 const wxPoint& pos = wxDefaultPosition);
36
37 virtual ~wxFileDialog();
38
39 virtual wxString GetPath() const;
40 virtual void GetPaths(wxArrayString& paths) const;
41 virtual wxString GetDirectory() const;
42 virtual wxString GetFilename() const;
43 virtual void GetFilenames(wxArrayString& files) const;
44 virtual int GetFilterIndex() const;
45
46 virtual void SetMessage(const wxString& message);
47 virtual void SetPath(const wxString& path);
48 virtual void SetDirectory(const wxString& dir);
49 virtual void SetFilename(const wxString& name);
50 virtual void SetWildcard(const wxString& wildCard);
51 virtual void SetFilterIndex(int filterIndex);
52
53 virtual int ShowModal();
54 virtual bool Show( bool show = true );
55
56//private:
57 bool m_destroyed_by_delete;
58
59 // override this from wxTLW since the native
60 // form doesn't have any m_wxwindow
61 virtual void DoSetSize(int x, int y,
62 int width, int height,
63 int sizeFlags = wxSIZE_AUTO);
64
65
66private:
67 DECLARE_DYNAMIC_CLASS(wxFileDialog)
68 DECLARE_EVENT_TABLE()
69 void OnFakeOk( wxCommandEvent &event );
70};
71
72#endif // __GTKFILEDLGH__