dirdlg.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/cocoa/dirdlg.h
  3. // Purpose: wxDirDialog class
  4. // Author: Ryan Norton
  5. // Modified by: Hiroyuki Nakamura(maloninc)
  6. // Created: 2006-01-10
  7. // Copyright: (c) Ryan Norton
  8. // Licence: wxWindows licence
  9. /////////////////////////////////////////////////////////////////////////////
  10. #ifndef _WX_COCOA_DIRDLG_H_
  11. #define _WX_COCOA_DIRDLG_H_
  12. DECLARE_WXCOCOA_OBJC_CLASS(NSSavePanel);
  13. #define wxDirDialog wxCocoaDirDialog
  14. //-------------------------------------------------------------------------
  15. // wxDirDialog
  16. //-------------------------------------------------------------------------
  17. class WXDLLIMPEXP_CORE wxDirDialog: public wxDirDialogBase
  18. {
  19. DECLARE_DYNAMIC_CLASS(wxDirDialog)
  20. wxDECLARE_NO_COPY_CLASS(wxDirDialog);
  21. public:
  22. wxDirDialog(wxWindow *parent,
  23. const wxString& message = wxDirSelectorPromptStr,
  24. const wxString& defaultPath = wxT(""),
  25. long style = wxDD_DEFAULT_STYLE,
  26. const wxPoint& pos = wxDefaultPosition,
  27. const wxSize& size = wxDefaultSize,
  28. const wxString& name = wxDirDialogNameStr);
  29. virtual ~wxDirDialog();
  30. virtual int ShowModal();
  31. inline WX_NSSavePanel GetNSSavePanel()
  32. { return (WX_NSSavePanel)m_cocoaNSWindow; }
  33. protected:
  34. wxString m_dir;
  35. wxWindow * m_parent;
  36. wxString m_fileName;
  37. private:
  38. wxArrayString m_fileNames;
  39. };
  40. #endif // _WX_DIRDLG_H_