Gui: [skip ci] expose Control::showModelView() to Python
This commit is contained in:
@@ -70,6 +70,7 @@ void ControlPy::init_type()
|
||||
add_varargs_method("isAllowedAlterView",&ControlPy::isAllowedAlterView,"isAllowedAlterView()");
|
||||
add_varargs_method("isAllowedAlterSelection",&ControlPy::isAllowedAlterSelection,"isAllowedAlterSelection()");
|
||||
add_varargs_method("showTaskView",&ControlPy::showTaskView,"showTaskView()");
|
||||
add_varargs_method("showModelView",&ControlPy::showModelView,"showModelView()");
|
||||
}
|
||||
|
||||
ControlPy::ControlPy()
|
||||
@@ -178,6 +179,14 @@ Py::Object ControlPy::showTaskView(const Py::Tuple& args)
|
||||
return Py::None();
|
||||
}
|
||||
|
||||
Py::Object ControlPy::showModelView(const Py::Tuple& args)
|
||||
{
|
||||
if (!PyArg_ParseTuple(args.ptr(), ""))
|
||||
throw Py::Exception();
|
||||
Gui::Control().showModelView();
|
||||
return Py::None();
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
|
||||
TaskWatcherPython::TaskWatcherPython(const Py::Object& o)
|
||||
|
||||
@@ -50,6 +50,7 @@ public:
|
||||
Py::Object isAllowedAlterView(const Py::Tuple&);
|
||||
Py::Object isAllowedAlterSelection(const Py::Tuple&);
|
||||
Py::Object showTaskView(const Py::Tuple&);
|
||||
Py::Object showModelView(const Py::Tuple&);
|
||||
|
||||
private:
|
||||
static ControlPy* instance;
|
||||
|
||||
Reference in New Issue
Block a user