]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/colordlg.h
No real changes, just make wxWindow::CanScroll() virtual.
[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 // Copyright: (c) Vaclav Slavik, 2004
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef __COLORDLG_H__
12 #define __COLORDLG_H__
13
14 #include "wx/defs.h"
15 #include "wx/gdicmn.h"
16 #include "wx/dialog.h"
17
18
19 class WXDLLIMPEXP_CORE wxColourDialog : public wxDialog
20 {
21 public:
22 wxColourDialog() {}
23 wxColourDialog(wxWindow *parent,
24 wxColourData *data = NULL);
25 virtual ~wxColourDialog() {}
26
27 bool Create(wxWindow *parent, wxColourData *data = NULL);
28
29 wxColourData &GetColourData() { return m_data; }
30
31 virtual int ShowModal();
32
33 protected:
34 // implement some base class methods to do nothing to avoid asserts and
35 // GTK warnings, since this is not a real wxDialog.
36 virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y),
37 int WXUNUSED(width), int WXUNUSED(height),
38 int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {}
39 virtual void DoMoveWindow(int WXUNUSED(x), int WXUNUSED(y),
40 int WXUNUSED(width), int WXUNUSED(height)) {}
41
42 // copy data between the dialog and m_colourData:
43 void ColourDataToDialog();
44 void DialogToColourData();
45
46 wxColourData m_data;
47
48 DECLARE_DYNAMIC_CLASS(wxColourDialog)
49 };
50
51 #endif