]>
git.saurik.com Git - wxWidgets.git/blob - src/palmos/colordlg.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/colordlg.cpp
3 // Purpose: wxColourDialog class
4 // Author: William Osborne
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // ============================================================================
14 // ============================================================================
16 // ----------------------------------------------------------------------------
18 // ----------------------------------------------------------------------------
20 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
21 #pragma implementation "colordlg.h"
24 // For compilers that support precompilation, includes "wx.h".
25 #include "wx/wxprec.h"
34 #include "wx/bitmap.h"
37 #include "wx/colour.h"
38 #include "wx/gdicmn.h"
41 #include "wx/dialog.h"
42 #include "wx/msgdlg.h"
45 #if wxUSE_COLOURDLG && !defined(__SMARTPHONE__)
47 #include "wx/palmos/private.h"
48 #include "wx/colordlg.h"
49 #include "wx/cmndata.h"
55 // ----------------------------------------------------------------------------
57 // ----------------------------------------------------------------------------
59 IMPLEMENT_DYNAMIC_CLASS(wxColourDialog
, wxDialog
)
61 // ============================================================================
63 // ============================================================================
65 // ----------------------------------------------------------------------------
67 // ----------------------------------------------------------------------------
69 wxColourDialog::wxColourDialog()
73 wxColourDialog::wxColourDialog(wxWindow
*parent
, wxColourData
*data
)
77 bool wxColourDialog::Create(wxWindow
*parent
, wxColourData
*data
)
82 int wxColourDialog::ShowModal()
87 // ----------------------------------------------------------------------------
89 // ----------------------------------------------------------------------------
91 void wxColourDialog::SetTitle(const wxString
& title
)
96 wxString
wxColourDialog::GetTitle() const
101 // ----------------------------------------------------------------------------
103 // ----------------------------------------------------------------------------
105 void wxColourDialog::DoGetPosition(int *x
, int *y
) const
113 void wxColourDialog::DoSetSize(int x
, int y
,
114 int WXUNUSED(width
), int WXUNUSED(height
),
115 int WXUNUSED(sizeFlags
))
123 // ignore the size params - we can't change the size of a standard dialog
127 // NB: of course, both of these functions are completely bogus, but it's better
129 void wxColourDialog::DoGetSize(int *width
, int *height
) const
131 // the standard dialog size
138 void wxColourDialog::DoGetClientSize(int *width
, int *height
) const
140 // the standard dialog size