]>
git.saurik.com Git - wxWidgets.git/blob - src/mac/colordlg.cpp
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxColourDialog class. NOTE: you can use the generic class
4 // if you wish, instead of implementing this.
9 // Copyright: (c) AUTHOR
10 // Licence: wxWindows licence
11 /////////////////////////////////////////////////////////////////////////////
14 #pragma implementation "colordlg.h"
17 #include "wx/mac/colordlg.h"
19 IMPLEMENT_DYNAMIC_CLASS(wxColourDialog
, wxDialog
)
25 wxColourDialog::wxColourDialog()
27 m_dialogParent
= NULL
;
30 wxColourDialog::wxColourDialog(wxWindow
*parent
, wxColourData
*data
)
35 bool wxColourDialog::Create(wxWindow
*parent
, wxColourData
*data
)
37 m_dialogParent
= parent
;
44 int wxColourDialog::ShowModal()
47 RGBColor currentColor
= m_colourData
.dataColour
.GetPixel() , newColor
;
49 where
.h
= where
.v
= -1;
51 if (GetColor( where
, "\pSelect a new palette color.", ¤tColor
, &newColor
))
53 m_colourData
.dataColour
.Set( newColor
) ;