]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/colordlg.h
Add support for GTK print, modified from patch 1782055
[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
VS
15#include "wx/dialog.h"
16#include "wx/cmndata.h"
17
274ad000
VS
18class WXDLLEXPORT wxColourDialog : public wxDialog
19{
20public:
21 wxColourDialog() {}
22 wxColourDialog(wxWindow *parent,
23 wxColourData *data = (wxColourData *)NULL);
24 virtual ~wxColourDialog() {}
25
26 bool Create(wxWindow *parent, wxColourData *data = (wxColourData *)NULL);
27
28 wxColourData &GetColourData() { return m_data; }
29
30 virtual int ShowModal();
31
32protected:
33 // implement some base class methods to do nothing to avoid asserts and
34 // GTK warnings, since this is not a real wxDialog.
3db7220e
VZ
35 virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y),
36 int WXUNUSED(width), int WXUNUSED(height),
37 int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {}
38 virtual void DoMoveWindow(int WXUNUSED(x), int WXUNUSED(y),
39 int WXUNUSED(width), int WXUNUSED(height)) {}
274ad000
VS
40
41 // copy data between the dialog and m_colourData:
42 void ColourDataToDialog();
43 void DialogToColourData();
b73e73f9 44
274ad000
VS
45 wxColourData m_data;
46
47 DECLARE_DYNAMIC_CLASS(wxColourDialog)
48};
49
50#endif