]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/colordlg.h
removed extra wxCalendarCtrl:: which is ignored by MSVC for some reason but breaks...
[wxWidgets.git] / include / wx / gtk1 / colordlg.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk1/colordlg.h
3 // Purpose: wxColourDialog
4 // Author: Vaclav Slavik
5 // Modified by:
6 // Created: 2004/06/04
7 // RCS-ID: $Id$
8 // Copyright: (c) Vaclav Slavik, 2004
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef __COLORDLG_H__
13 #define __COLORDLG_H__
14
15 #include "wx/defs.h"
16 #include "wx/gdicmn.h"
17 #include "wx/dialog.h"
18 #include "wx/cmndata.h"
19
20
21 class WXDLLIMPEXP_CORE wxColourDialog : public wxDialog
22 {
23 public:
24 wxColourDialog() {}
25 wxColourDialog(wxWindow *parent,
26 wxColourData *data = (wxColourData *)NULL);
27 virtual ~wxColourDialog() {}
28
29 bool Create(wxWindow *parent, wxColourData *data = (wxColourData *)NULL);
30
31 wxColourData &GetColourData() { return m_data; }
32
33 virtual int ShowModal();
34
35 protected:
36 // implement some base class methods to do nothing to avoid asserts and
37 // GTK warnings, since this is not a real wxDialog.
38 virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y),
39 int WXUNUSED(width), int WXUNUSED(height),
40 int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {}
41 virtual void DoMoveWindow(int WXUNUSED(x), int WXUNUSED(y),
42 int WXUNUSED(width), int WXUNUSED(height)) {}
43
44 // copy data between the dialog and m_colourData:
45 void ColourDataToDialog();
46 void DialogToColourData();
47
48 wxColourData m_data;
49
50 DECLARE_DYNAMIC_CLASS(wxColourDialog)
51 };
52
53 #endif