1 /////////////////////////////////////////////////////////////////////////////
2 // Name: ext/grid/cpp/gr_constants.cpp
3 // Purpose: constants for Wx::Grid
4 // Author: Mattia Barbon
7 // RCS-ID: $Id: gr_constants.cpp 2170 2007-08-17 22:53:11Z mbarbon $
8 // Copyright: (c) 2001-2004, 2007 Mattia Barbon
9 // Licence: This program is free software; you can redistribute it and/or
10 // modify it under the same terms as Perl itself
11 /////////////////////////////////////////////////////////////////////////////
13 #include "cpp/constants.h"
15 double grid_constant( const char* name, int arg )
18 // !parser: sub { $_[0] =~ m<^\s*r\w*\(\s*(\w+)\s*\);\s*(?://(.*))?$> }
21 if( strEQ( name, #n ) ) \
24 WX_PL_CONSTANT_INIT();
29 r( wxGRIDTABLE_REQUEST_VIEW_GET_VALUES );
30 r( wxGRIDTABLE_REQUEST_VIEW_SEND_VALUES );
31 r( wxGRIDTABLE_NOTIFY_ROWS_INSERTED );
32 r( wxGRIDTABLE_NOTIFY_ROWS_APPENDED );
33 r( wxGRIDTABLE_NOTIFY_ROWS_DELETED );
34 r( wxGRIDTABLE_NOTIFY_COLS_INSERTED );
35 r( wxGRIDTABLE_NOTIFY_COLS_APPENDED );
36 r( wxGRIDTABLE_NOTIFY_COLS_DELETED );
38 // !export: wxGridSelectCells wxGridSelectRows wxGridSelectColumns
39 if( strEQ( name, "wxGridSelectCells" ) )
40 return wxGrid::wxGridSelectCells;
41 if( strEQ( name, "wxGridSelectRows" ) )
42 return wxGrid::wxGridSelectRows;
43 if( strEQ( name, "wxGridSelectColumns" ) )
44 return wxGrid::wxGridSelectColumns;
49 WX_PL_CONSTANT_CLEANUP();
52 wxPlConstants grid_module( &grid_constant );