1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk1/colordlg.h
3 // Purpose: wxColourDialog
4 // Author: Vaclav Slavik
7 // Copyright: (c) Vaclav Slavik, 2004
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __COLORDLG_H__
12 #define __COLORDLG_H__
15 #include "wx/gdicmn.h"
16 #include "wx/dialog.h"
19 class WXDLLIMPEXP_CORE wxColourDialog
: public wxDialog
23 wxColourDialog(wxWindow
*parent
,
24 wxColourData
*data
= NULL
);
25 virtual ~wxColourDialog() {}
27 bool Create(wxWindow
*parent
, wxColourData
*data
= NULL
);
29 wxColourData
&GetColourData() { return m_data
; }
31 virtual int ShowModal();
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
)) {}
42 // copy data between the dialog and m_colourData:
43 void ColourDataToDialog();
44 void DialogToColourData();
48 DECLARE_DYNAMIC_CLASS(wxColourDialog
)