]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/colordlg.h
Add wxDEPRECATED_MSG() and use it in a couple of places.
[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 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_COLORDLG_H_
12 #define _WX_COLORDLG_H_
13
14 #include "wx/dialog.h"
15
16 // ----------------------------------------------------------------------------
17 // wxColourDialog: dialog for choosing a colours
18 // ----------------------------------------------------------------------------
19
20 class WXDLLIMPEXP_CORE wxColourDialog : public wxDialog
21 {
22 public:
23 wxColourDialog() { Init(); }
24 wxColourDialog(wxWindow *parent, wxColourData *data = NULL)
25 {
26 Init();
27
28 Create(parent, data);
29 }
30
31 bool Create(wxWindow *parent, wxColourData *data = NULL);
32
33 wxColourData& GetColourData() { return m_colourData; }
34
35 // override some base class virtuals
36 virtual void SetTitle(const wxString& title);
37 virtual wxString GetTitle() const;
38
39 virtual int ShowModal();
40
41 // wxMSW-specific implementation from now on
42 // -----------------------------------------
43
44 // called from the hook procedure on WM_INITDIALOG reception
45 virtual void MSWOnInitDone(WXHWND hDlg);
46
47 protected:
48 // common part of all ctors
49 void Init();
50
51 #if !(defined(__SMARTPHONE__) && defined(__WXWINCE__))
52 virtual void DoGetPosition( int *x, int *y ) const;
53 virtual void DoGetSize(int *width, int *height) const;
54 virtual void DoGetClientSize(int *width, int *height) const;
55 virtual void DoMoveWindow(int x, int y, int width, int height);
56 virtual void DoCentre(int dir);
57 #endif // !(__SMARTPHONE__ && __WXWINCE__)
58
59 wxColourData m_colourData;
60 wxString m_title;
61
62 // indicates that the dialog should be centered in this direction if non 0
63 // (set by DoCentre(), used by MSWOnInitDone())
64 int m_centreDir;
65
66 // true if DoMoveWindow() had been called
67 bool m_movedWindow;
68
69
70 DECLARE_DYNAMIC_CLASS_NO_COPY(wxColourDialog)
71 };
72
73 #endif // _WX_COLORDLG_H_