]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/colordlg.h
Fix up NSSlider code to not use class posing and instantiate the proper type (now...
[wxWidgets.git] / include / wx / gtk1 / colordlg.h
CommitLineData
274ad000 1/////////////////////////////////////////////////////////////////////////////
8ef94bfc 2// Name: wx/gtk1/colordlg.h
274ad000
VS
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
12#ifndef __COLORDLG_H__
13#define __COLORDLG_H__
14
b73e73f9 15#include "wx/defs.h"
274ad000
VS
16#include "wx/gdicmn.h"
17#include "wx/dialog.h"
18#include "wx/cmndata.h"
19
20
21class WXDLLEXPORT wxColourDialog : public wxDialog
22{
23public:
24 wxColourDialog() {}
25 wxColourDialog(wxWindow *parent,
26 wxColourData *data = (wxColourData *)NULL);
27 virtual ~wxColourDialog() {}
28
29 bool Create(wxWindow *parent, wxColourData *data = (wxColourData *)NULL);
30
31 wxColourData &GetColourData() { return m_data; }
32
33 virtual int ShowModal();
34
35protected:
36 // implement some base class methods to do nothing to avoid asserts and
37 // GTK warnings, since this is not a real wxDialog.
3db7220e
VZ
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)) {}
274ad000
VS
43
44 // copy data between the dialog and m_colourData:
45 void ColourDataToDialog();
46 void DialogToColourData();
8ef94bfc 47
274ad000
VS
48 wxColourData m_data;
49
50 DECLARE_DYNAMIC_CLASS(wxColourDialog)
51};
52
53#endif