]>
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
8 // Copyright: (c) Michael Bedward (mbedward@ozemail.com.au)
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // For compilers that support precompilation, includes "wx/wx.h".
13 #include "wx/wxprec.h"
25 #include "wx/dcclient.h"
26 #include "wx/settings.h"
28 #include "wx/textctrl.h"
29 #include "wx/checkbox.h"
30 #include "wx/combobox.h"
31 #include "wx/valtext.h"
34 #include "wx/listbox.h"
37 // ----------------------------------------------------------------------------
39 // ----------------------------------------------------------------------------
41 wxDEFINE_FLAGS( wxGridStyle
)
42 wxBEGIN_FLAGS( wxGridStyle
)
43 // new style border flags, we put them first to
44 // use them for streaming out
45 wxFLAGS_MEMBER(wxBORDER_SIMPLE
)
46 wxFLAGS_MEMBER(wxBORDER_SUNKEN
)
47 wxFLAGS_MEMBER(wxBORDER_DOUBLE
)
48 wxFLAGS_MEMBER(wxBORDER_RAISED
)
49 wxFLAGS_MEMBER(wxBORDER_STATIC
)
50 wxFLAGS_MEMBER(wxBORDER_NONE
)
52 // old style border flags
53 wxFLAGS_MEMBER(wxSIMPLE_BORDER
)
54 wxFLAGS_MEMBER(wxSUNKEN_BORDER
)
55 wxFLAGS_MEMBER(wxDOUBLE_BORDER
)
56 wxFLAGS_MEMBER(wxRAISED_BORDER
)
57 wxFLAGS_MEMBER(wxSTATIC_BORDER
)
58 wxFLAGS_MEMBER(wxBORDER
)
60 // standard window styles
61 wxFLAGS_MEMBER(wxTAB_TRAVERSAL
)
62 wxFLAGS_MEMBER(wxCLIP_CHILDREN
)
63 wxFLAGS_MEMBER(wxTRANSPARENT_WINDOW
)
64 wxFLAGS_MEMBER(wxWANTS_CHARS
)
65 wxFLAGS_MEMBER(wxFULL_REPAINT_ON_RESIZE
)
66 wxFLAGS_MEMBER(wxALWAYS_SHOW_SB
)
67 wxFLAGS_MEMBER(wxVSCROLL
)
68 wxFLAGS_MEMBER(wxHSCROLL
)
69 wxEND_FLAGS( wxGridStyle
)
71 wxIMPLEMENT_DYNAMIC_CLASS_XTI(wxGrid
, wxScrolledWindow
, "wx/grid.h")
73 wxBEGIN_PROPERTIES_TABLE(wxGrid
)
74 wxHIDE_PROPERTY( Children
)
75 wxPROPERTY_FLAGS( WindowStyle
, wxGridStyle
, long, SetWindowStyleFlag
, \
76 GetWindowStyleFlag
, wxEMPTY_PARAMETER_VALUE
, 0 /*flags*/, \
77 wxT("Helpstring"), wxT("group")) // style
78 wxEND_PROPERTIES_TABLE()
80 wxEMPTY_HANDLERS_TABLE(wxGrid
)
82 wxCONSTRUCTOR_5( wxGrid
, wxWindow
*, Parent
, wxWindowID
, Id
, wxPoint
, Position
, \
83 wxSize
, Size
, long, WindowStyle
)
86 TODO : Expose more information of a list's layout, etc. via appropriate objects (e.g., NotebookPageInfo)