Some last minute little tweaks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1474,6 +1474,7 @@ public:
|
||||
bool CreateGrid( int numRows, int numCols,
|
||||
WXGRIDSELECTIONMODES selmode = wxGrid::wxGridSelectCells );
|
||||
void SetSelectionMode(WXGRIDSELECTIONMODES selmode);
|
||||
WXGRIDSELECTIONMODES GetSelectionMode();
|
||||
|
||||
|
||||
// ------ grid dimensions
|
||||
@@ -1529,7 +1530,7 @@ public:
|
||||
void EndBatch();
|
||||
int GetBatchCount();
|
||||
void ForceRefresh();
|
||||
void Refresh(bool eraseb=TRUE, wxRect* rect= NULL);
|
||||
void Refresh(bool eraseb=TRUE, const wxRect* rect= NULL);
|
||||
|
||||
|
||||
// ------ edit control functions
|
||||
@@ -1762,6 +1763,13 @@ public:
|
||||
bool IsInSelection( int row, int col );
|
||||
// TODO: ??? bool IsInSelection( const wxGridCellCoords& coords )
|
||||
|
||||
// TODO: These need typemaps
|
||||
// wxGridCellCoordsArray GetSelectedCells() const;
|
||||
// wxGridCellCoordsArray GetSelectionBlockTopLeft() const;
|
||||
// wxGridCellCoordsArray GetSelectionBlockBottomRight() const;
|
||||
// wxArrayInt GetSelectedRows() const;
|
||||
// wxArrayInt GetSelectedCols() const;
|
||||
|
||||
|
||||
// This function returns the rectangle that encloses the block of cells
|
||||
// limited by TopLeft and BottomRight cell in device coords and clipped
|
||||
|
@@ -7458,6 +7458,34 @@ static PyObject *_wrap_wxGrid_SetSelectionMode(PyObject *self, PyObject *args, P
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxGrid_GetSelectionMode(_swigobj) (_swigobj->GetSelectionMode())
|
||||
static PyObject *_wrap_wxGrid_GetSelectionMode(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
WXGRIDSELECTIONMODES _result;
|
||||
wxGrid * _arg0;
|
||||
PyObject * _argo0 = 0;
|
||||
char *_kwnames[] = { "self", NULL };
|
||||
|
||||
self = self;
|
||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGrid_GetSelectionMode",_kwnames,&_argo0))
|
||||
return NULL;
|
||||
if (_argo0) {
|
||||
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGrid_p")) {
|
||||
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGrid_GetSelectionMode. Expected _wxGrid_p.");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||
_result = (WXGRIDSELECTIONMODES )wxGrid_GetSelectionMode(_arg0);
|
||||
|
||||
wxPyEndAllowThreads(__tstate);
|
||||
if (PyErr_Occurred()) return NULL;
|
||||
} _resultobj = Py_BuildValue("i",_result);
|
||||
return _resultobj;
|
||||
}
|
||||
|
||||
#define wxGrid_GetNumberRows(_swigobj) (_swigobj->GetNumberRows())
|
||||
static PyObject *_wrap_wxGrid_GetNumberRows(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject * _resultobj;
|
||||
@@ -14427,6 +14455,7 @@ static PyMethodDef gridcMethods[] = {
|
||||
{ "wxGrid_ProcessTableMessage", (PyCFunction) _wrap_wxGrid_ProcessTableMessage, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxGrid_GetNumberCols", (PyCFunction) _wrap_wxGrid_GetNumberCols, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxGrid_GetNumberRows", (PyCFunction) _wrap_wxGrid_GetNumberRows, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxGrid_GetSelectionMode", (PyCFunction) _wrap_wxGrid_GetSelectionMode, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxGrid_SetSelectionMode", (PyCFunction) _wrap_wxGrid_SetSelectionMode, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "wxGrid_CreateGrid", (PyCFunction) _wrap_wxGrid_CreateGrid, METH_VARARGS | METH_KEYWORDS },
|
||||
{ "new_wxGrid", (PyCFunction) _wrap_new_wxGrid, METH_VARARGS | METH_KEYWORDS },
|
||||
|
@@ -955,6 +955,9 @@ class wxGridPtr(wxScrolledWindowPtr):
|
||||
def SetSelectionMode(self, *_args, **_kwargs):
|
||||
val = apply(gridc.wxGrid_SetSelectionMode,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetSelectionMode(self, *_args, **_kwargs):
|
||||
val = apply(gridc.wxGrid_GetSelectionMode,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetNumberRows(self, *_args, **_kwargs):
|
||||
val = apply(gridc.wxGrid_GetNumberRows,(self,) + _args, _kwargs)
|
||||
return val
|
||||
|
Reference in New Issue
Block a user