]> git.saurik.com Git - wxWidgets.git/blame - src/os2/colordlg.cpp
fix compile error - too many }
[wxWidgets.git] / src / os2 / colordlg.cpp
CommitLineData
0e320a79
DW
1/////////////////////////////////////////////////////////////////////////////
2// Name: colordlg.cpp
3// Purpose: wxColourDialog class. NOTE: you can use the generic class
4// if you wish, instead of implementing this.
37f214d5 5// Author: David Webster
0e320a79 6// Modified by:
37f214d5 7// Created: 10/13/99
0e320a79 8// RCS-ID: $Id$
37f214d5
DW
9// Copyright: (c) David Webster
10// Licence: wxWindows licence
0e320a79
DW
11/////////////////////////////////////////////////////////////////////////////
12
37f214d5
DW
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"
0e320a79
DW
28#endif
29
37f214d5
DW
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
0e320a79
DW
43
44#if !USE_SHARED_LIBRARY
45IMPLEMENT_DYNAMIC_CLASS(wxColourDialog, wxDialog)
46#endif
47
48/*
49 * wxColourDialog
50 */
51
52wxColourDialog::wxColourDialog()
53{
54 m_dialogParent = NULL;
55}
56
57wxColourDialog::wxColourDialog(wxWindow *parent, wxColourData *data)
58{
59 Create(parent, data);
60}
61
62bool wxColourDialog::Create(wxWindow *parent, wxColourData *data)
63{
64 m_dialogParent = parent;
37f214d5 65
0e320a79
DW
66 if (data)
67 m_colourData = *data;
68 return TRUE;
69}
70
71int wxColourDialog::ShowModal()
72{
73 /* TODO: implement dialog
74 */
75
76 return wxID_CANCEL;
77}
78