1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk1/colordlg.h
3 // Purpose: wxColourDialog
4 // Author: Vaclav Slavik
8 // Copyright: (c) Vaclav Slavik, 2004
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef __COLORDLG_H__
13 #define __COLORDLG_H__
16 #include "wx/gdicmn.h"
17 #include "wx/dialog.h"
20 class WXDLLIMPEXP_CORE wxColourDialog
: public wxDialog
24 wxColourDialog(wxWindow
*parent
,
25 wxColourData
*data
= NULL
);
26 virtual ~wxColourDialog() {}
28 bool Create(wxWindow
*parent
, wxColourData
*data
= NULL
);
30 wxColourData
&GetColourData() { return m_data
; }
32 virtual int ShowModal();
35 // implement some base class methods to do nothing to avoid asserts and
36 // GTK warnings, since this is not a real wxDialog.
37 virtual void DoSetSize(int WXUNUSED(x
), int WXUNUSED(y
),
38 int WXUNUSED(width
), int WXUNUSED(height
),
39 int WXUNUSED(sizeFlags
) = wxSIZE_AUTO
) {}
40 virtual void DoMoveWindow(int WXUNUSED(x
), int WXUNUSED(y
),
41 int WXUNUSED(width
), int WXUNUSED(height
)) {}
43 // copy data between the dialog and m_colourData:
44 void ColourDataToDialog();
45 void DialogToColourData();
49 DECLARE_DYNAMIC_CLASS(wxColourDialog
)