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"
18 #include "wx/cmndata.h"
21 class WXDLLEXPORT wxColourDialog
: public wxDialog
25 wxColourDialog(wxWindow
*parent
,
26 wxColourData
*data
= (wxColourData
*)NULL
);
27 virtual ~wxColourDialog() {}
29 bool Create(wxWindow
*parent
, wxColourData
*data
= (wxColourData
*)NULL
);
31 wxColourData
&GetColourData() { return m_data
; }
33 virtual int ShowModal();
36 // implement some base class methods to do nothing to avoid asserts and
37 // GTK warnings, since this is not a real wxDialog.
38 virtual void DoSetSize(int WXUNUSED(x
), int WXUNUSED(y
),
39 int WXUNUSED(width
), int WXUNUSED(height
),
40 int WXUNUSED(sizeFlags
) = wxSIZE_AUTO
) {}
41 virtual void DoMoveWindow(int WXUNUSED(x
), int WXUNUSED(y
),
42 int WXUNUSED(width
), int WXUNUSED(height
)) {}
44 // copy data between the dialog and m_colourData:
45 void ColourDataToDialog();
46 void DialogToColourData();
50 DECLARE_DYNAMIC_CLASS(wxColourDialog
)