]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/colordlg.h
fixed gcc warnings about not calling base class ctor explicitly in copy ctors (patch...
[wxWidgets.git] / include / wx / gtk1 / 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
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 x, int y,
43 int width, int height,
44 int sizeFlags = wxSIZE_AUTO) {}
45 virtual void DoMoveWindow(int x, int y, int width, int height) {}
46
47 // copy data between the dialog and m_colourData:
48 void ColourDataToDialog();
49 void DialogToColourData();
50
51 wxColourData m_data;
52
53 DECLARE_DYNAMIC_CLASS(wxColourDialog)
54};
55
56#endif