]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/colordlg.h
Don't define __STRICT_ANSI__, we should build both with and without it.
[wxWidgets.git] / include / wx / gtk / colordlg.h
CommitLineData
274ad000
VS
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/gtk/colordlg.h
3// Purpose: wxColourDialog
4// Author: Vaclav Slavik
5// Modified by:
6// Created: 2004/06/04
274ad000
VS
7// Copyright: (c) Vaclav Slavik, 2004
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
0416c418
PC
11#ifndef _WX_GTK_COLORDLG_H_
12#define _WX_GTK_COLORDLG_H_
274ad000 13
274ad000 14#include "wx/dialog.h"
274ad000 15
53a2db12 16class WXDLLIMPEXP_CORE wxColourDialog : public wxDialog
274ad000
VS
17{
18public:
19 wxColourDialog() {}
20 wxColourDialog(wxWindow *parent,
d3b9f782 21 wxColourData *data = NULL);
274ad000
VS
22 virtual ~wxColourDialog() {}
23
d3b9f782 24 bool Create(wxWindow *parent, wxColourData *data = NULL);
274ad000
VS
25
26 wxColourData &GetColourData() { return m_data; }
27
28 virtual int ShowModal();
29
30protected:
31 // implement some base class methods to do nothing to avoid asserts and
32 // GTK warnings, since this is not a real wxDialog.
3db7220e
VZ
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)) {}
274ad000
VS
38
39 // copy data between the dialog and m_colourData:
40 void ColourDataToDialog();
41 void DialogToColourData();
b73e73f9 42
274ad000
VS
43 wxColourData m_data;
44
45 DECLARE_DYNAMIC_CLASS(wxColourDialog)
46};
47
48#endif