1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/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__
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "colordlg.h"
20 #include "wx/gdicmn.h"
21 #include "wx/dialog.h"
22 #include "wx/cmndata.h"
25 class WXDLLEXPORT wxColourDialog
: public wxDialog
29 wxColourDialog(wxWindow
*parent
,
30 wxColourData
*data
= (wxColourData
*)NULL
);
31 virtual ~wxColourDialog() {}
33 bool Create(wxWindow
*parent
, wxColourData
*data
= (wxColourData
*)NULL
);
35 wxColourData
&GetColourData() { return m_data
; }
37 virtual int ShowModal();
40 // implement some base class methods to do nothing to avoid asserts and
41 // GTK warnings, since this is not a real wxDialog.
42 virtual void DoSetSize(int x
, int y
,
43 int width
, int height
,
44 int sizeFlags
= wxSIZE_AUTO
) {}
45 virtual void DoMoveWindow(int x
, int y
, int width
, int height
) {}
47 // copy data between the dialog and m_colourData:
48 void ColourDataToDialog();
49 void DialogToColourData();
53 DECLARE_DYNAMIC_CLASS(wxColourDialog
)