~brian-sidebotham/wxwidgets-cmake/wxpython-2.9.4

« back to all changes in this revision

Viewing changes to include/wx/cocoa/filedlg.h

  • Committer: Brian Sidebotham
  • Date: 2013-08-03 14:30:08 UTC
  • Revision ID: brian.sidebotham@gmail.com-20130803143008-c7806tkych1tp6fc
Initial import into Bazaar

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/////////////////////////////////////////////////////////////////////////////
 
2
// Name:        wx/cocoa/filedlg.h
 
3
// Purpose:     wxFileDialog class
 
4
// Author:      Ryan Norton
 
5
// Modified by:
 
6
// Created:     2004-10-02
 
7
// RCS-ID:      $Id: filedlg.h 61724 2009-08-21 10:41:26Z VZ $
 
8
// Copyright:   (c) Ryan Norton
 
9
// Licence:     wxWindows licence
 
10
/////////////////////////////////////////////////////////////////////////////
 
11
 
 
12
#ifndef _WX_COCOA_FILEDLG_H_
 
13
#define _WX_COCOA_FILEDLG_H_
 
14
 
 
15
DECLARE_WXCOCOA_OBJC_CLASS(NSSavePanel);
 
16
 
 
17
#define wxFileDialog wxCocoaFileDialog
 
18
//-------------------------------------------------------------------------
 
19
// wxFileDialog
 
20
//-------------------------------------------------------------------------
 
21
 
 
22
class WXDLLIMPEXP_CORE wxFileDialog: public wxFileDialogBase
 
23
{
 
24
    DECLARE_DYNAMIC_CLASS(wxFileDialog)
 
25
    wxDECLARE_NO_COPY_CLASS(wxFileDialog);
 
26
public:
 
27
    wxFileDialog(wxWindow *parent,
 
28
                 const wxString& message = wxFileSelectorPromptStr,
 
29
                 const wxString& defaultDir = wxEmptyString,
 
30
                 const wxString& defaultFile = wxEmptyString,
 
31
                 const wxString& wildCard = wxFileSelectorDefaultWildcardStr,
 
32
                 long style = wxFD_DEFAULT_STYLE,
 
33
                 const wxPoint& pos = wxDefaultPosition,
 
34
                 const wxSize& sz = wxDefaultSize,
 
35
                 const wxString& name = wxFileDialogNameStr);
 
36
    virtual ~wxFileDialog();
 
37
 
 
38
    virtual void SetPath(const wxString& path);
 
39
    virtual void GetPaths(wxArrayString& paths) const;
 
40
    virtual void GetFilenames(wxArrayString& files) const;
 
41
 
 
42
    virtual int ShowModal();
 
43
 
 
44
    inline WX_NSSavePanel GetNSSavePanel()
 
45
    {   return (WX_NSSavePanel)m_cocoaNSWindow; }
 
46
 
 
47
private:
 
48
    WX_NSMutableArray m_wildcards;
 
49
    wxArrayString m_fileNames;
 
50
};
 
51
 
 
52
#endif // _WX_FILEDLG_H_
 
53