]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/colordlg.h
Use proper format in wxGTK clipboard selection handler.
[wxWidgets.git] / include / wx / msw / colordlg.h
CommitLineData
2bda0e17 1/////////////////////////////////////////////////////////////////////////////
f6bcfd97 2// Name: wx/msw/colordlg.h
2bda0e17
KB
3// Purpose: wxColourDialog class
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
7// RCS-ID: $Id$
bbcdf8bc 8// Copyright: (c) Julian Smart
65571936 9// Licence: wxWindows licence
2bda0e17
KB
10/////////////////////////////////////////////////////////////////////////////
11
bbcdf8bc
JS
12#ifndef _WX_COLORDLG_H_
13#define _WX_COLORDLG_H_
2bda0e17 14
2bda0e17 15#include "wx/dialog.h"
2bda0e17 16
f6bcfd97
BP
17// ----------------------------------------------------------------------------
18// wxColourDialog: dialog for choosing a colours
19// ----------------------------------------------------------------------------
2bda0e17 20
53a2db12 21class WXDLLIMPEXP_CORE wxColourDialog : public wxDialog
2bda0e17 22{
bbcdf8bc 23public:
82c63878
VZ
24 wxColourDialog() { Init(); }
25 wxColourDialog(wxWindow *parent, wxColourData *data = NULL)
26 {
27 Init();
28
29 Create(parent, data);
30 }
bbcdf8bc
JS
31
32 bool Create(wxWindow *parent, wxColourData *data = NULL);
33
f6bcfd97
BP
34 wxColourData& GetColourData() { return m_colourData; }
35
36 // override some base class virtuals
37 virtual void SetTitle(const wxString& title);
ba14d986 38 virtual wxString GetTitle() const;
f6bcfd97
BP
39
40 virtual int ShowModal();
bbcdf8bc 41
82c63878
VZ
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
bbcdf8bc 48protected:
82c63878
VZ
49 // common part of all ctors
50 void Init();
51
52#if !(defined(__SMARTPHONE__) && defined(__WXWINCE__))
6f02a879 53 virtual void DoGetPosition( int *x, int *y ) const;
f6bcfd97
BP
54 virtual void DoGetSize(int *width, int *height) const;
55 virtual void DoGetClientSize(int *width, int *height) const;
82c63878
VZ
56 virtual void DoMoveWindow(int x, int y, int width, int height);
57 virtual void DoCentre(int dir);
58#endif // !(__SMARTPHONE__ && __WXWINCE__)
f6bcfd97 59
bbcdf8bc 60 wxColourData m_colourData;
f6bcfd97
BP
61 wxString m_title;
62
82c63878
VZ
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
f63e3ebb 70
fc7a2a60 71 DECLARE_DYNAMIC_CLASS_NO_COPY(wxColourDialog)
2bda0e17
KB
72};
73
82c63878 74#endif // _WX_COLORDLG_H_