]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/filedlg.h
document various enumerations defined in defs.h; give a name to the anonymous enum...
[wxWidgets.git] / include / wx / msw / filedlg.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/filedlg.h
3 // Purpose: wxFileDialog class
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 01/02/97
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_FILEDLG_H_
13 #define _WX_FILEDLG_H_
14
15 //-------------------------------------------------------------------------
16 // wxFileDialog
17 //-------------------------------------------------------------------------
18
19 class WXDLLIMPEXP_CORE wxFileDialog: public wxFileDialogBase
20 {
21 public:
22 wxFileDialog(wxWindow *parent,
23 const wxString& message = wxFileSelectorPromptStr,
24 const wxString& defaultDir = wxEmptyString,
25 const wxString& defaultFile = wxEmptyString,
26 const wxString& wildCard = wxFileSelectorDefaultWildcardStr,
27 long style = wxFD_DEFAULT_STYLE,
28 const wxPoint& pos = wxDefaultPosition,
29 const wxSize& sz = wxDefaultSize,
30 const wxString& name = wxFileDialogNameStr);
31
32 virtual void SetPath(const wxString& path);
33 virtual void GetPaths(wxArrayString& paths) const;
34 virtual void GetFilenames(wxArrayString& files) const;
35 #ifndef __WXWINCE__
36 virtual bool SupportsExtraControl() const { return true; }
37 void MSWOnInitDialogHook(WXHWND hwnd);
38 #endif // __WXWINCE__
39
40 virtual int ShowModal();
41
42 // wxMSW-specific implementation from now on
43 // -----------------------------------------
44
45 // called from the hook procedure on CDN_INITDONE reception
46 virtual void MSWOnInitDone(WXHWND hDlg);
47
48 protected:
49
50 #if !(defined(__SMARTPHONE__) && defined(__WXWINCE__))
51 virtual void DoMoveWindow(int x, int y, int width, int height);
52 virtual void DoCentre(int dir);
53 virtual void DoGetSize( int *width, int *height ) const;
54 virtual void DoGetPosition( int *x, int *y ) const;
55 #endif // !(__SMARTPHONE__ && __WXWINCE__)
56
57 private:
58 wxArrayString m_fileNames;
59
60 // remember if our SetPosition() or Centre() (which requires special
61 // treatment) was called
62 bool m_bMovedWindow;
63 int m_centreDir; // nothing to do if 0
64
65 DECLARE_DYNAMIC_CLASS(wxFileDialog)
66 DECLARE_NO_COPY_CLASS(wxFileDialog)
67 };
68
69 #endif // _WX_FILEDLG_H_
70