]>
Commit | Line | Data |
---|---|---|
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 | #include "wx/defs.h" | |
16 | #include "wx/dialog.h" | |
17 | #include "wx/cmndata.h" | |
18 | ||
19 | // ---------------------------------------------------------------------------- | |
20 | // wxColourDialog: dialog for choosing a colours | |
21 | // ---------------------------------------------------------------------------- | |
22 | ||
23 | class WXDLLEXPORT wxColourDialog : public wxDialog | |
24 | { | |
25 | public: | |
26 | wxColourDialog(); | |
27 | wxColourDialog(wxWindow *parent, wxColourData *data = NULL); | |
28 | ||
29 | bool Create(wxWindow *parent, wxColourData *data = NULL); | |
30 | ||
31 | wxColourData& GetColourData() { return m_colourData; } | |
32 | ||
33 | // override some base class virtuals | |
34 | virtual void SetTitle(const wxString& title); | |
35 | virtual wxString GetTitle() const; | |
36 | ||
37 | virtual int ShowModal(); | |
38 | ||
39 | protected: | |
40 | virtual void DoGetPosition( int *x, int *y ) const; | |
41 | virtual void DoGetSize(int *width, int *height) const; | |
42 | virtual void DoGetClientSize(int *width, int *height) const; | |
43 | virtual void DoSetSize(int x, int y, | |
44 | int width, int height, | |
45 | int sizeFlags = wxSIZE_AUTO); | |
46 | ||
47 | wxColourData m_colourData; | |
48 | wxString m_title; | |
49 | ||
50 | wxPoint m_pos; | |
51 | ||
52 | DECLARE_DYNAMIC_CLASS_NO_COPY(wxColourDialog) | |
53 | }; | |
54 | ||
55 | #endif | |
56 | // _WX_COLORDLG_H_ |