The control class. More...
#include <Control.h>
Public Member Functions | |
bool | isAllowedAlterDocument (void) const |
bool | isAllowedAlterSelection (void) const |
bool | isAllowedAlterView (void) const |
dialog handling | |
Gui::TaskView::TaskDialog * | activeDialog () const |
void | closeDialog () |
void | showDialog (Gui::TaskView::TaskDialog *dlg) |
This method start an Task dialog in the TaskView. | |
task view handling | |
void | showTaskView () |
Gui::TaskView::TaskView * | taskPanel () const |
Static Public Member Functions | |
static void | destruct (void) |
static ControlSingleton & | instance (void) |
The control class.
Definition at line 52 of file Control.h.
Gui::TaskView::TaskDialog * ControlSingleton::activeDialog | ( | ) | const |
Definition at line 128 of file Control.cpp.
Referenced by Gui::TaskView::ControlPy::activeDialog(), Gui::Document::canClose(), StdCmdTextureMapping::isActive(), CmdDrawingProjectShape::isActive(), and Gui::TaskView::ControlPy::showDialog().
void ControlSingleton::closeDialog | ( | ) |
Definition at line 133 of file Control.cpp.
References _taskPanel, Gui::DockWnd::CombiView::closeDialog(), and instance().
Referenced by Gui::TaskView::ControlPy::closeDialog(), RobotGui::ViewProviderTrajectoryDressUp::unsetEdit(), and RobotGui::ViewProviderTrajectoryCompound::unsetEdit().
void ControlSingleton::destruct | ( | void | ) | [static] |
Definition at line 185 of file Control.cpp.
ControlSingleton & ControlSingleton::instance | ( | void | ) | [static] |
Definition at line 178 of file Control.cpp.
Referenced by closeDialog(), Gui::Control(), showDialog(), showTaskView(), and taskPanel().
bool ControlSingleton::isAllowedAlterDocument | ( | void | ) | const |
Definition at line 154 of file Control.cpp.
References Gui::TaskView::TaskDialog::isAllowedAlterDocument().
Referenced by Gui::TaskView::ControlPy::isAllowedAlterDocument(), and Gui::Command::testActive().
bool ControlSingleton::isAllowedAlterSelection | ( | void | ) | const |
Definition at line 169 of file Control.cpp.
References Gui::TaskView::TaskDialog::isAllowedAlterSelection().
Referenced by Gui::TaskView::ControlPy::isAllowedAlterSelection(), and Gui::Command::testActive().
bool ControlSingleton::isAllowedAlterView | ( | void | ) | const |
Definition at line 162 of file Control.cpp.
References Gui::TaskView::TaskDialog::isAllowedAlterView().
Referenced by Gui::TaskView::ControlPy::isAllowedAlterView(), and Gui::Command::testActive().
void ControlSingleton::showDialog | ( | Gui::TaskView::TaskDialog * | dlg | ) |
This method start an Task dialog in the TaskView.
Definition at line 84 of file Control.cpp.
References _taskPanel, draftlibs::fcgeo::connect(), Gui::getMainWindow(), instance(), and Gui::DockWnd::CombiView::showDialog().
Referenced by StdCmdTextureMapping::activated(), StdCmdPlacement::activated(), StdCmdTransform::activated(), Gui::Document::canClose(), RobotGui::ViewProviderEdge2TracObject::doubleClicked(), RobotGui::ViewProviderTrajectoryDressUp::setEdit(), RobotGui::ViewProviderTrajectoryCompound::setEdit(), RobotGui::ViewProviderEdge2TracObject::setEdit(), and Gui::TaskView::ControlPy::showDialog().
void ControlSingleton::showTaskView | ( | ) |
Definition at line 74 of file Control.cpp.
References _taskPanel, instance(), and Gui::DockWnd::CombiView::showTaskView().
Gui::TaskView::TaskView * ControlSingleton::taskPanel | ( | ) | const |
Definition at line 59 of file Control.cpp.
References _taskPanel, Gui::DockWnd::CombiView::getTaskPanel(), and instance().
Referenced by Gui::Workbench::addTaskWatcher(), Gui::TaskView::ControlPy::addTaskWatcher(), Gui::TaskView::ControlPy::clearTaskWatcher(), and Gui::Workbench::removeTaskWatcher().