#include "wx/grid.h"
#include "wx/generic/gridsel.h"
+#if defined(__WXMOTIF__)
+ #define WXUNUSED_MOTIF(identifier) WXUNUSED(identifier)
+#else
+ #define WXUNUSED_MOTIF(identifier) identifier
+#endif
+
+#if defined(__WXGTK__)
+ #define WXUNUSED_GTK(identifier) WXUNUSED(identifier)
+#else
+ #define WXUNUSED_GTK(identifier) identifier
+#endif
+
// Required for wxIs... functions
#include <ctype.h>
class WXDLLEXPORT wxGridTypeRegistry
{
public:
+ wxGridTypeRegistry() {}
~wxGridTypeRegistry();
void RegisterDataType(const wxString& typeName,
event.Skip();
}
-void wxGridCellTextEditor::HandleReturn(wxKeyEvent& event)
+void wxGridCellTextEditor::HandleReturn( wxKeyEvent&
+ WXUNUSED_GTK(WXUNUSED_MOTIF(event)) )
{
#if defined(__WXMOTIF__) || defined(__WXGTK__)
// wxMotif needs a little extra help...
- long pos = Text()->GetInsertionPoint();
+ size_t pos = (size_t)( Text()->GetInsertionPoint() );
wxString s( Text()->GetValue() );
s = s.Left(pos) + "\n" + s.Mid(pos);
Text()->SetValue(s);
wxGridCellAttr& attr,
wxDC& dc,
const wxRect& rect,
- int row, int col,
+ int WXUNUSED(row), int WXUNUSED(col),
bool isSelected)
{
dc.SetBackgroundMode( wxSOLID );
// This is used to redraw all grid lines e.g. when the grid line colour
// has been changed
//
-void wxGrid::DrawAllGridLines( wxDC& dc, const wxRegion & reg )
+void wxGrid::DrawAllGridLines( wxDC& dc, const wxRegion & WXUNUSED_GTK(reg) )
{
if ( !m_gridLinesEnabled ||
!m_numRows ||
AutoSize();
}
+
+wxPen& wxGrid::GetDividerPen() const
+{
+ return wxNullPen;
+}
+
// ----------------------------------------------------------------------------
// cell value accessor functions
// ----------------------------------------------------------------------------