]> git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/classic/colordlg.h
setting focus explicitely when using showmodal
[wxWidgets.git] / include / wx / mac / classic / colordlg.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: colordlg.h
3 // Purpose: wxColourDialog class. Use generic version if no
4 // platform-specific implementation.
5 // Author: Stefan Csomor
6 // Modified by:
7 // Created: 1998-01-01
8 // RCS-ID: $Id$
9 // Copyright: (c) Stefan Csomor
10 // Licence: wxWindows licence
11 /////////////////////////////////////////////////////////////////////////////
12
13 #ifndef _WX_COLORDLG_H_
14 #define _WX_COLORDLG_H_
15
16 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
17 #pragma interface "colordlg.h"
18 #endif
19
20 #include "wx/setup.h"
21 #include "wx/dialog.h"
22 #include "wx/cmndata.h"
23
24 /*
25 * Platform-specific colour dialog implementation
26 */
27
28 class WXDLLEXPORT wxColourDialog: public wxDialog
29 {
30 DECLARE_DYNAMIC_CLASS(wxColourDialog)
31 public:
32 wxColourDialog();
33 wxColourDialog(wxWindow *parent, wxColourData *data = NULL);
34
35 bool Create(wxWindow *parent, wxColourData *data = NULL);
36
37 int ShowModal();
38 wxColourData& GetColourData() { return m_colourData; }
39
40 protected:
41 wxColourData m_colourData;
42 wxWindow* m_dialogParent;
43 };
44
45 #endif
46 // _WX_COLORDLG_H_