]>
git.saurik.com Git - wxWidgets.git/blob - src/common/gridcmn.cpp
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
7 // Copyright: (c) Michael Bedward (mbedward@ozemail.com.au)
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 // For compilers that support precompilation, includes "wx/wx.h".
12 #include "wx/wxprec.h"
24 #include "wx/dcclient.h"
25 #include "wx/settings.h"
27 #include "wx/textctrl.h"
28 #include "wx/checkbox.h"
29 #include "wx/combobox.h"
30 #include "wx/valtext.h"
33 #include "wx/listbox.h"
36 // ----------------------------------------------------------------------------
38 // ----------------------------------------------------------------------------
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
)
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
)
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
)
70 wxIMPLEMENT_DYNAMIC_CLASS_XTI(wxGrid
, wxScrolledWindow
, "wx/grid.h")
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()
79 wxEMPTY_HANDLERS_TABLE(wxGrid
)
81 wxCONSTRUCTOR_5( wxGrid
, wxWindow
*, Parent
, wxWindowID
, Id
, wxPoint
, Position
, \
82 wxSize
, Size
, long, WindowStyle
)
85 TODO : Expose more information of a list's layout, etc. via appropriate objects (e.g., NotebookPageInfo)