showTaskView() in Python

This commit is contained in:
jriegel 2013-06-09 20:04:23 +02:00
parent b7523b63af
commit 6eb90b1b21
2 changed files with 8 additions and 0 deletions

View File

@ -68,6 +68,7 @@ void ControlPy::init_type()
add_varargs_method("isAllowedAlterDocument",&ControlPy::isAllowedAlterDocument,"isAllowedAlterDocument()");
add_varargs_method("isAllowedAlterView",&ControlPy::isAllowedAlterView,"isAllowedAlterView()");
add_varargs_method("isAllowedAlterSelection",&ControlPy::isAllowedAlterSelection,"isAllowedAlterSelection()");
add_varargs_method("showTaskView",&ControlPy::showTaskView,"showTaskView()");
}
ControlPy::ControlPy()
@ -149,6 +150,12 @@ Py::Object ControlPy::isAllowedAlterSelection(const Py::Tuple&)
return Py::Boolean(ok);
}
Py::Object ControlPy::showTaskView(const Py::Tuple&)
{
Gui::Control().showTaskView();
return Py::None();
}
// ------------------------------------------------------------------
TaskWatcherPython::TaskWatcherPython(const Py::Object& o)

View File

@ -49,6 +49,7 @@ public:
Py::Object isAllowedAlterDocument(const Py::Tuple&);
Py::Object isAllowedAlterView(const Py::Tuple&);
Py::Object isAllowedAlterSelection(const Py::Tuple&);
Py::Object showTaskView(const Py::Tuple&);
private:
static ControlPy* instance;