]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/gtk/colordlg.h
OS/2 fix
[wxWidgets.git] / include / wx / gtk / colordlg.h
... / ...
CommitLineData
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
12#ifndef __COLORDLG_H__
13#define __COLORDLG_H__
14
15#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16#pragma interface "colordlg.h"
17#endif
18
19#include "wx/setup.h"
20#include "wx/gdicmn.h"
21#include "wx/dialog.h"
22#include "wx/cmndata.h"
23
24
25class WXDLLEXPORT wxColourDialog : public wxDialog
26{
27public:
28 wxColourDialog() {}
29 wxColourDialog(wxWindow *parent,
30 wxColourData *data = (wxColourData *)NULL);
31 virtual ~wxColourDialog() {}
32
33 bool Create(wxWindow *parent, wxColourData *data = (wxColourData *)NULL);
34
35 wxColourData &GetColourData() { return m_data; }
36
37 virtual int ShowModal();
38
39protected:
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 WXUNUSED(x), int WXUNUSED(y),
43 int WXUNUSED(width), int WXUNUSED(height),
44 int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {}
45 virtual void DoMoveWindow(int WXUNUSED(x), int WXUNUSED(y),
46 int WXUNUSED(width), int WXUNUSED(height)) {}
47
48 // copy data between the dialog and m_colourData:
49 void ColourDataToDialog();
50 void DialogToColourData();
51
52 wxColourData m_data;
53
54 DECLARE_DYNAMIC_CLASS(wxColourDialog)
55};
56
57#endif