]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/colordlg.h
removing outdated code
[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
7// RCS-ID: $Id$
8// Copyright: (c) Vaclav Slavik, 2004
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
0416c418
PC
12#ifndef _WX_GTK_COLORDLG_H_
13#define _WX_GTK_COLORDLG_H_
274ad000 14
274ad000 15#include "wx/dialog.h"
274ad000 16
53a2db12 17class WXDLLIMPEXP_CORE wxColourDialog : public wxDialog
274ad000
VS
18{
19public:
20 wxColourDialog() {}
21 wxColourDialog(wxWindow *parent,
d3b9f782 22 wxColourData *data = NULL);
274ad000
VS
23 virtual ~wxColourDialog() {}
24
d3b9f782 25 bool Create(wxWindow *parent, wxColourData *data = NULL);
274ad000
VS
26
27 wxColourData &GetColourData() { return m_data; }
28
29 virtual int ShowModal();
30
31protected:
32 // implement some base class methods to do nothing to avoid asserts and
33 // GTK warnings, since this is not a real wxDialog.
3db7220e
VZ
34 virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y),
35 int WXUNUSED(width), int WXUNUSED(height),
36 int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {}
37 virtual void DoMoveWindow(int WXUNUSED(x), int WXUNUSED(y),
38 int WXUNUSED(width), int WXUNUSED(height)) {}
274ad000
VS
39
40 // copy data between the dialog and m_colourData:
41 void ColourDataToDialog();
42 void DialogToColourData();
b73e73f9 43
274ad000
VS
44 wxColourData m_data;
45
46 DECLARE_DYNAMIC_CLASS(wxColourDialog)
47};
48
49#endif