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