1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/colordlg.h
3 // Purpose: wxColourDialog
4 // Author: Vaclav Slavik
7 // Copyright: (c) Vaclav Slavik, 2004
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_GTK_COLORDLG_H_
12 #define _WX_GTK_COLORDLG_H_
14 #include "wx/dialog.h"
16 class WXDLLIMPEXP_CORE wxColourDialog
: public wxDialog
20 wxColourDialog(wxWindow
*parent
,
21 wxColourData
*data
= NULL
);
22 virtual ~wxColourDialog() {}
24 bool Create(wxWindow
*parent
, wxColourData
*data
= NULL
);
26 wxColourData
&GetColourData() { return m_data
; }
28 virtual int ShowModal();
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
)) {}
39 // copy data between the dialog and m_colourData:
40 void ColourDataToDialog();
41 void DialogToColourData();
45 DECLARE_DYNAMIC_CLASS(wxColourDialog
)