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