]> git.saurik.com Git - wxWidgets.git/blob - src/os2/colordlg.cpp
*** empty log message ***
[wxWidgets.git] / src / os2 / colordlg.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: colordlg.cpp
3 // Purpose: wxColourDialog class. NOTE: you can use the generic class
4 // if you wish, instead of implementing this.
5 // Author: David Webster
6 // Modified by:
7 // Created: 10/13/99
8 // RCS-ID: $Id$
9 // Copyright: (c) David Webster
10 // Licence: wxWindows licence
11 /////////////////////////////////////////////////////////////////////////////
12
13 // For compilers that support precompilation, includes "wx.h".
14 #include "wx/wxprec.h"
15
16 #ifndef WX_PRECOMP
17 #include <stdio.h>
18 #include "wx/defs.h"
19 #include "wx/bitmap.h"
20 #include "wx/pen.h"
21 #include "wx/brush.h"
22 #include "wx/colour.h"
23 #include "wx/gdicmn.h"
24 #include "wx/utils.h"
25 #include "wx/frame.h"
26 #include "wx/dialog.h"
27 #include "wx/msgdlg.h"
28 #endif
29
30 #define INCL_PM
31 #include <os2.h>
32
33 #include "wx/os2/private.h"
34 #include "wx/colordlg.h"
35 #include "wx/cmndata.h"
36
37 #include <math.h>
38 #include <stdlib.h>
39 #include <string.h>
40
41 #define wxDIALOG_DEFAULT_X 300
42 #define wxDIALOG_DEFAULT_Y 300
43
44 #if !USE_SHARED_LIBRARY
45 IMPLEMENT_DYNAMIC_CLASS(wxColourDialog, wxDialog)
46 #endif
47
48 /*
49 * wxColourDialog
50 */
51
52 wxColourDialog::wxColourDialog()
53 {
54 m_dialogParent = NULL;
55 }
56
57 wxColourDialog::wxColourDialog(wxWindow *parent, wxColourData *data)
58 {
59 Create(parent, data);
60 }
61
62 bool wxColourDialog::Create(wxWindow *parent, wxColourData *data)
63 {
64 m_dialogParent = parent;
65
66 if (data)
67 m_colourData = *data;
68 return TRUE;
69 }
70
71 int wxColourDialog::ShowModal()
72 {
73 /* TODO: implement dialog
74 */
75
76 return wxID_CANCEL;
77 }
78