]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/colordlg.h
cleanup: all definitions missing from std headers should be in missing.h
[wxWidgets.git] / include / wx / msw / colordlg.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/colordlg.h
3 // Purpose: wxColourDialog class
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 01/02/97
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_COLORDLG_H_
13 #define _WX_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/dialog.h"
21 #include "wx/cmndata.h"
22
23 // ----------------------------------------------------------------------------
24 // wxColourDialog: dialog for choosing a colours
25 // ----------------------------------------------------------------------------
26
27 class WXDLLEXPORT wxColourDialog : public wxDialog
28 {
29 public:
30 wxColourDialog();
31 wxColourDialog(wxWindow *parent, wxColourData *data = NULL);
32
33 bool Create(wxWindow *parent, wxColourData *data = NULL);
34
35 wxColourData& GetColourData() { return m_colourData; }
36
37 // override some base class virtuals
38 virtual void SetTitle(const wxString& title);
39 virtual wxString GetTitle() const;
40
41 virtual int ShowModal();
42
43 virtual void DoGetPosition( int *x, int *y ) const;
44
45 protected:
46 virtual void DoGetSize(int *width, int *height) const;
47 virtual void DoGetClientSize(int *width, int *height) const;
48 virtual void DoSetSize(int x, int y,
49 int width, int height,
50 int sizeFlags = wxSIZE_AUTO);
51
52 wxColourData m_colourData;
53 wxString m_title;
54
55 wxPoint m_pos;
56
57 DECLARE_DYNAMIC_CLASS_NO_COPY(wxColourDialog)
58 };
59
60 #endif
61 // _WX_COLORDLG_H_