]>
Commit | Line | Data |
---|---|---|
274ad000 | 1 | ///////////////////////////////////////////////////////////////////////////// |
8ef94bfc | 2 | // Name: wx/gtk1/colordlg.h |
274ad000 VS |
3 | // Purpose: wxColourDialog |
4 | // Author: Vaclav Slavik | |
5 | // Modified by: | |
6 | // Created: 2004/06/04 | |
274ad000 VS |
7 | // Copyright: (c) Vaclav Slavik, 2004 |
8 | // Licence: wxWindows licence | |
9 | ///////////////////////////////////////////////////////////////////////////// | |
10 | ||
11 | #ifndef __COLORDLG_H__ | |
12 | #define __COLORDLG_H__ | |
13 | ||
b73e73f9 | 14 | #include "wx/defs.h" |
274ad000 VS |
15 | #include "wx/gdicmn.h" |
16 | #include "wx/dialog.h" | |
274ad000 VS |
17 | |
18 | ||
53a2db12 | 19 | class WXDLLIMPEXP_CORE wxColourDialog : public wxDialog |
274ad000 VS |
20 | { |
21 | public: | |
22 | wxColourDialog() {} | |
23 | wxColourDialog(wxWindow *parent, | |
d3b9f782 | 24 | wxColourData *data = NULL); |
274ad000 VS |
25 | virtual ~wxColourDialog() {} |
26 | ||
d3b9f782 | 27 | bool Create(wxWindow *parent, wxColourData *data = NULL); |
274ad000 VS |
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. | |
3db7220e VZ |
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)) {} | |
274ad000 VS |
41 | |
42 | // copy data between the dialog and m_colourData: | |
43 | void ColourDataToDialog(); | |
44 | void DialogToColourData(); | |
8ef94bfc | 45 | |
274ad000 VS |
46 | wxColourData m_data; |
47 | ||
48 | DECLARE_DYNAMIC_CLASS(wxColourDialog) | |
49 | }; | |
50 | ||
51 | #endif |