]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////////// | |
2 | // Name: wx/gtk/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 _WX_GTK_COLORDLG_H_ | |
12 | #define _WX_GTK_COLORDLG_H_ | |
13 | ||
14 | #include "wx/dialog.h" | |
15 | ||
16 | class WXDLLIMPEXP_CORE wxColourDialog : public wxDialog | |
17 | { | |
18 | public: | |
19 | wxColourDialog() {} | |
20 | wxColourDialog(wxWindow *parent, | |
21 | wxColourData *data = NULL); | |
22 | virtual ~wxColourDialog() {} | |
23 | ||
24 | bool Create(wxWindow *parent, wxColourData *data = NULL); | |
25 | ||
26 | wxColourData &GetColourData() { return m_data; } | |
27 | ||
28 | virtual int ShowModal(); | |
29 | ||
30 | protected: | |
31 | // implement some base class methods to do nothing to avoid asserts and | |
32 | // GTK warnings, since this is not a real wxDialog. | |
33 | virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y), | |
34 | int WXUNUSED(width), int WXUNUSED(height), | |
35 | int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {} | |
36 | virtual void DoMoveWindow(int WXUNUSED(x), int WXUNUSED(y), | |
37 | int WXUNUSED(width), int WXUNUSED(height)) {} | |
38 | ||
39 | // copy data between the dialog and m_colourData: | |
40 | void ColourDataToDialog(); | |
41 | void DialogToColourData(); | |
42 | ||
43 | wxColourData m_data; | |
44 | ||
45 | DECLARE_DYNAMIC_CLASS(wxColourDialog) | |
46 | }; | |
47 | ||
48 | #endif |