]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/gtk1/colordlg.h
Forbid setting hints for multi-line text controls.
[wxWidgets.git] / include / wx / gtk1 / colordlg.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/gtk1/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#include "wx/defs.h"
16#include "wx/gdicmn.h"
17#include "wx/dialog.h"
18
19
20class WXDLLIMPEXP_CORE wxColourDialog : public wxDialog
21{
22public:
23 wxColourDialog() {}
24 wxColourDialog(wxWindow *parent,
25 wxColourData *data = NULL);
26 virtual ~wxColourDialog() {}
27
28 bool Create(wxWindow *parent, wxColourData *data = NULL);
29
30 wxColourData &GetColourData() { return m_data; }
31
32 virtual int ShowModal();
33
34protected:
35 // implement some base class methods to do nothing to avoid asserts and
36 // GTK warnings, since this is not a real wxDialog.
37 virtual void DoSetSize(int WXUNUSED(x), int WXUNUSED(y),
38 int WXUNUSED(width), int WXUNUSED(height),
39 int WXUNUSED(sizeFlags) = wxSIZE_AUTO) {}
40 virtual void DoMoveWindow(int WXUNUSED(x), int WXUNUSED(y),
41 int WXUNUSED(width), int WXUNUSED(height)) {}
42
43 // copy data between the dialog and m_colourData:
44 void ColourDataToDialog();
45 void DialogToColourData();
46
47 wxColourData m_data;
48
49 DECLARE_DYNAMIC_CLASS(wxColourDialog)
50};
51
52#endif