//---------------------------------------------------------------------------
// OOR related typemaps and helper functions
//---------------------------------------------------------------------------
// OOR related typemaps and helper functions
wxPyBeginBlockThreads();
if (wxPyCBH_findCallback(m_myInst, "EndEdit")) {
PyObject* go = wxPyMake_wxObject(grid);
wxPyBeginBlockThreads();
if (wxPyCBH_findCallback(m_myInst, "EndEdit")) {
PyObject* go = wxPyMake_wxObject(grid);
- wxGridCellChoiceEditor(int LCOUNT = 0,
- const wxString* choices = NULL,
- bool allowOthers = FALSE);
+ wxGridCellChoiceEditor(int choices = 0,
+ const wxString* choices_array = NULL,
+ bool allowOthers = False);
void SetFont(const wxFont& font);
void SetAlignment(int hAlign, int vAlign);
void SetSize(int num_rows, int num_cols);
void SetFont(const wxFont& font);
void SetAlignment(int hAlign, int vAlign);
void SetSize(int num_rows, int num_cols);
- void GetAlignment(int *OUTPUT, int *OUTPUT) const;
- void GetSize(int *OUTPUT, int *OUTPUT) const;
+
+ DocDeclA(
+ void, GetAlignment(int *OUTPUT, int *OUTPUT) const,
+ "GetAlignment() -> (hAlign, vAlign)");
+
+ DocDeclA(
+ void, GetSize(int *OUTPUT, int *OUTPUT) const,
+ "GetSize() -> (num_rows, num_cols)");
+
bool GetOverflow() const;
wxGridCellRenderer *GetRenderer(wxGrid* grid, int row, int col) const;
wxGridCellEditor *GetEditor(wxGrid* grid, int row, int col) const;
bool GetOverflow() const;
wxGridCellRenderer *GetRenderer(wxGrid* grid, int row, int col) const;
wxGridCellEditor *GetEditor(wxGrid* grid, int row, int col) const;
}
// otherwise a 2-tuple of integers is expected
else if (PySequence_Check(source) && PyObject_Length(source) == 2) {
}
// otherwise a 2-tuple of integers is expected
else if (PySequence_Check(source) && PyObject_Length(source) == 2) {
if (wxPySwigInstance_Check(source) &&
wxPyConvertSwigPtr(source, (void **)&ptr, wxT("wxGridCellCoords")))
if (wxPySwigInstance_Check(source) &&
wxPyConvertSwigPtr(source, (void **)&ptr, wxT("wxGridCellCoords")))
- bool InsertRows( int pos = 0, int numRows = 1, bool updateLabels=TRUE );
- bool AppendRows( int numRows = 1, bool updateLabels=TRUE );
- bool DeleteRows( int pos = 0, int numRows = 1, bool updateLabels=TRUE );
- bool InsertCols( int pos = 0, int numCols = 1, bool updateLabels=TRUE );
- bool AppendCols( int numCols = 1, bool updateLabels=TRUE );
- bool DeleteCols( int pos = 0, int numCols = 1, bool updateLabels=TRUE );
+ bool InsertRows( int pos = 0, int numRows = 1, bool updateLabels=True );
+ bool AppendRows( int numRows = 1, bool updateLabels=True );
+ bool DeleteRows( int pos = 0, int numRows = 1, bool updateLabels=True );
+ bool InsertCols( int pos = 0, int numCols = 1, bool updateLabels=True );
+ bool AppendCols( int numCols = 1, bool updateLabels=True );
+ bool DeleteCols( int pos = 0, int numCols = 1, bool updateLabels=True );
- void GetTextBoxSize( wxDC& dc,
- wxArrayString& lines,
- long *OUTPUT, long *OUTPUT );
+ DocDeclA(
+ void, GetTextBoxSize( wxDC& dc, wxArrayString& lines,
+ long *OUTPUT, long *OUTPUT ),
+ "GetTextBoxSize(DC dc, list lines) -> (width, height)");
void DisableCellEditControl();
bool CanEnableCellControl() const;
bool IsCellEditControlEnabled() const;
void DisableCellEditControl();
bool CanEnableCellControl() const;
bool IsCellEditControlEnabled() const;
// check to see if a cell is either wholly visible (the default arg) or
// at least partially visible in the grid window
//
// check to see if a cell is either wholly visible (the default arg) or
// at least partially visible in the grid window
//
- bool IsVisible( int row, int col, bool wholeCellVisible = TRUE );
- // TODO: ??? bool IsVisible( const wxGridCellCoords& coords, bool wholeCellVisible = TRUE );
+ bool IsVisible( int row, int col, bool wholeCellVisible = True );
+ // TODO: ??? bool IsVisible( const wxGridCellCoords& coords, bool wholeCellVisible = True );
void MakeCellVisible( int row, int col );
// TODO: ??? void MakeCellVisible( const wxGridCellCoords& coords );
void MakeCellVisible( int row, int col );
// TODO: ??? void MakeCellVisible( const wxGridCellCoords& coords );
- void GetRowLabelAlignment( int *OUTPUT, int *OUTPUT );
- void GetColLabelAlignment( int *OUTPUT, int *OUTPUT );
+
+ DocDeclA(
+ void, GetRowLabelAlignment( int *OUTPUT, int *OUTPUT ),
+ "GetRowLabelAlignment() -> (horiz, vert)");
+
+ DocDeclA(
+ void, GetColLabelAlignment( int *OUTPUT, int *OUTPUT ),
+ "GetColLabelAlignment() -> (horiz, vert)");
+
int GetColLabelTextOrientation();
wxString GetRowLabelValue( int row );
wxString GetColLabelValue( int col );
int GetColLabelTextOrientation();
wxString GetRowLabelValue( int row );
wxString GetColLabelValue( int col );
void SetColFormatFloat(int col, int width = -1, int precision = -1);
void SetColFormatCustom(int col, const wxString& typeName);
void SetColFormatFloat(int col, int width = -1, int precision = -1);
void SetColFormatCustom(int col, const wxString& typeName);
wxColour GetCellTextColour( int row, int col );
wxFont GetDefaultCellFont();
wxFont GetCellFont( int row, int col );
wxColour GetCellTextColour( int row, int col );
wxFont GetDefaultCellFont();
wxFont GetCellFont( int row, int col );
- void GetDefaultCellAlignment( int *OUTPUT, int *OUTPUT );
- void GetCellAlignment( int row, int col, int *OUTPUT, int *OUTPUT );
+
+ DocDeclA(
+ void, GetDefaultCellAlignment( int *OUTPUT, int *OUTPUT ),
+ "GetDefaultCellAlignment() -> (horiz, vert)");
+
+ DocDeclA(
+ void, GetCellAlignment( int row, int col, int *OUTPUT, int *OUTPUT ),
+ "GetCellAlignment() -> (horiz, vert)");
+
bool GetDefaultCellOverflow();
bool GetCellOverflow( int row, int col );
bool GetDefaultCellOverflow();
bool GetCellOverflow( int row, int col );
- void SetDefaultRowSize( int height, bool resizeExistingRows = FALSE );
+ DocDeclA(
+ void, GetCellSize( int row, int col, int *OUTPUT, int *OUTPUT ),
+ "GetCellSize(int row, int col) -> (num_rows, num_cols)");
+
+ void SetDefaultRowSize( int height, bool resizeExistingRows = False );
void SetColSize( int col, int width );
// automatically size the column or row to fit to its contents, if
void SetColSize( int col, int width );
// automatically size the column or row to fit to its contents, if
- void AutoSizeColumn( int col, bool setAsMin = TRUE );
- void AutoSizeRow( int row, bool setAsMin = TRUE );
+ void AutoSizeColumn( int col, bool setAsMin = True );
+ void AutoSizeRow( int row, bool setAsMin = True );
// auto size the grid, that is make the columns/rows of the "right" size
// and also set the grid size to just fit its contents
// auto size the grid, that is make the columns/rows of the "right" size
// and also set the grid size to just fit its contents
void SetCellValue( int row, int col, const wxString& s );
// TODO: ??? void SetCellValue( const wxGridCellCoords& coords, const wxString& s )
void SetCellValue( int row, int col, const wxString& s );
// TODO: ??? void SetCellValue( const wxGridCellCoords& coords, const wxString& s )
bool IsReadOnly(int row, int col) const;
// make the cell editable/readonly
bool IsReadOnly(int row, int col) const;
// make the cell editable/readonly
- void SelectRow( int row, bool addToSelected = FALSE );
- void SelectCol( int col, bool addToSelected = FALSE );
+ void SelectRow( int row, bool addToSelected = False );
+ void SelectCol( int col, bool addToSelected = False );
void SelectBlock( int topRow, int leftCol, int bottomRow, int rightCol,
void SelectBlock( int topRow, int leftCol, int bottomRow, int rightCol,
// TODO: ??? void SelectBlock( const wxGridCellCoords& topLeft,
// TODO: ??? const wxGridCellCoords& bottomRight )
// TODO: ??? void SelectBlock( const wxGridCellCoords& topLeft,
// TODO: ??? const wxGridCellCoords& bottomRight )
{
public:
wxGridEvent(int id, wxEventType type, wxGrid* obj,
{
public:
wxGridEvent(int id, wxEventType type, wxGrid* obj,
- int row=-1, int col=-1, int x=-1, int y=-1, bool sel = TRUE,
- bool control=FALSE, bool shift=FALSE, bool alt=FALSE, bool meta=FALSE);
+ int row=-1, int col=-1, int x=-1, int y=-1, bool sel = True,
+ bool control=False, bool shift=False, bool alt=False, bool meta=False);
public:
wxGridSizeEvent(int id, wxEventType type, wxGrid* obj,
int rowOrCol=-1, int x=-1, int y=-1,
public:
wxGridSizeEvent(int id, wxEventType type, wxGrid* obj,
int rowOrCol=-1, int x=-1, int y=-1,
- bool control=FALSE, bool shift=FALSE, bool alt=FALSE, bool meta=FALSE);
+ bool control=False, bool shift=False, bool alt=False, bool meta=False);
wxGridRangeSelectEvent(int id, wxEventType type, wxGrid* obj,
const wxGridCellCoords& topLeft,
const wxGridCellCoords& bottomRight,
wxGridRangeSelectEvent(int id, wxEventType type, wxGrid* obj,
const wxGridCellCoords& topLeft,
const wxGridCellCoords& bottomRight,
- bool sel = TRUE,
- bool control=FALSE, bool shift=FALSE,
- bool alt=FALSE, bool meta=FALSE);
+ bool sel = True,
+ bool control=False, bool shift=False,
+ bool alt=False, bool meta=False);