]> git.saurik.com Git - wxWidgets.git/blame - src/common/gridcmn.cpp
Fix wxImage test compilation for MSVC6.
[wxWidgets.git] / src / common / gridcmn.cpp
CommitLineData
cc3977bf
SC
1///////////////////////////////////////////////////////////////////////////\r
2// Name: src/common/gridcmn.cpp\r
3// Purpose: wxGrid common code\r
4// Author: Michael Bedward (based on code by Julian Smart, Robin Dunn)\r
5// Modified by: Robin Dunn, Vadim Zeitlin, Santiago Palacios\r
6// Created: 1/08/1999\r
7// RCS-ID: $Id: grid.cpp 45814 2007-05-05 10:16:40Z RR $\r
8// Copyright: (c) Michael Bedward (mbedward@ozemail.com.au)\r
9// Licence: wxWindows licence\r
10/////////////////////////////////////////////////////////////////////////////\r
11\r
12// For compilers that support precompilation, includes "wx/wx.h".\r
13#include "wx/wxprec.h"\r
14\r
15#ifdef __BORLANDC__\r
16 #pragma hdrstop\r
17#endif\r
18\r
19#if wxUSE_GRID\r
20\r
21#include "wx/grid.h"\r
22\r
23#ifndef WX_PRECOMP\r
24 #include "wx/utils.h"\r
25 #include "wx/dcclient.h"\r
26 #include "wx/settings.h"\r
27 #include "wx/log.h"\r
28 #include "wx/textctrl.h"\r
29 #include "wx/checkbox.h"\r
30 #include "wx/combobox.h"\r
31 #include "wx/valtext.h"\r
32 #include "wx/intl.h"\r
33 #include "wx/math.h"\r
34 #include "wx/listbox.h"\r
35#endif\r
36\r
37// ----------------------------------------------------------------------------\r
38// XTI\r
39// ----------------------------------------------------------------------------\r
40\r
41wxDEFINE_FLAGS( wxGridStyle )\r
42wxBEGIN_FLAGS( wxGridStyle )\r
43 // new style border flags, we put them first to\r
44 // use them for streaming out\r
45 wxFLAGS_MEMBER(wxBORDER_SIMPLE)\r
46 wxFLAGS_MEMBER(wxBORDER_SUNKEN)\r
47 wxFLAGS_MEMBER(wxBORDER_DOUBLE)\r
48 wxFLAGS_MEMBER(wxBORDER_RAISED)\r
49 wxFLAGS_MEMBER(wxBORDER_STATIC)\r
50 wxFLAGS_MEMBER(wxBORDER_NONE)\r
51\r
52 // old style border flags\r
53 wxFLAGS_MEMBER(wxSIMPLE_BORDER)\r
54 wxFLAGS_MEMBER(wxSUNKEN_BORDER)\r
55 wxFLAGS_MEMBER(wxDOUBLE_BORDER)\r
56 wxFLAGS_MEMBER(wxRAISED_BORDER)\r
57 wxFLAGS_MEMBER(wxSTATIC_BORDER)\r
58 wxFLAGS_MEMBER(wxBORDER)\r
59\r
60 // standard window styles\r
61 wxFLAGS_MEMBER(wxTAB_TRAVERSAL)\r
62 wxFLAGS_MEMBER(wxCLIP_CHILDREN)\r
63 wxFLAGS_MEMBER(wxTRANSPARENT_WINDOW)\r
64 wxFLAGS_MEMBER(wxWANTS_CHARS)\r
65 wxFLAGS_MEMBER(wxFULL_REPAINT_ON_RESIZE)\r
66 wxFLAGS_MEMBER(wxALWAYS_SHOW_SB)\r
67 wxFLAGS_MEMBER(wxVSCROLL)\r
68 wxFLAGS_MEMBER(wxHSCROLL)\r
69wxEND_FLAGS( wxGridStyle )\r
70\r
71wxIMPLEMENT_DYNAMIC_CLASS_XTI(wxGrid, wxScrolledWindow, "wx/grid.h")\r
72\r
73wxBEGIN_PROPERTIES_TABLE(wxGrid)\r
74 wxHIDE_PROPERTY( Children )\r
75 wxPROPERTY_FLAGS( WindowStyle, wxGridStyle, long, SetWindowStyleFlag, \\r
76 GetWindowStyleFlag, wxEMPTY_PARAMETER_VALUE, 0 /*flags*/, \\r
77 wxT("Helpstring"), wxT("group")) // style\r
78wxEND_PROPERTIES_TABLE()\r
79\r
80wxEMPTY_HANDLERS_TABLE(wxGrid)\r
81\r
82wxCONSTRUCTOR_5( wxGrid, wxWindow*, Parent, wxWindowID, Id, wxPoint, Position, \\r
83 wxSize, Size, long, WindowStyle )\r
84\r
85/*\r
86 TODO : Expose more information of a list's layout, etc. via appropriate objects (e.g., NotebookPageInfo)\r
87*/\r
88\r
89#endif // wxUSE_GRID\r