git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34523
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// Author: Michael Bedward
// Modified by:
// RCS-ID: $Id$
// Author: Michael Bedward
// Modified by:
// RCS-ID: $Id$
-// Copyright: (c) Michael Bedward, Julian Smart
+// Copyright: (c) Michael Bedward, Julian Smart, Vadim Zeitlin
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
void GridFrame::About( wxCommandEvent& WXUNUSED(ev) )
{
(void)wxMessageBox( _T("\n\nwxGrid demo \n\n")
void GridFrame::About( wxCommandEvent& WXUNUSED(ev) )
{
(void)wxMessageBox( _T("\n\nwxGrid demo \n\n")
- _T("Michael Bedward \n")
- _T("mbedward@ozemail.com.au \n\n"),
+ _T("Michael Bedward, Julian Small, Vadim Zeitlin"),
switch ( col )
{
case Col_Id:
switch ( col )
{
case Col_Id:
+ return wxString::Format(_T("%d"), gd.id);
+
+ return wxString::Format(_T("%d"), gd.prio);
+
- wxFAIL_MSG(_T("unexpected column"));
- break;
+ return gd.opened ? _T("1") : _T("0");
case Col_Severity:
return severities[gd.severity];
case Col_Severity:
return severities[gd.severity];
-bool BugsGridTable::CanGetValueAs( int WXUNUSED(row), int col, const wxString& typeName )
+bool
+BugsGridTable::CanGetValueAs(int WXUNUSED(row),
+ int col,
+ const wxString& typeName)
{
if ( typeName == wxGRID_VALUE_STRING )
{
{
if ( typeName == wxGRID_VALUE_STRING )
{