#include <QtGuiContext.hxx>
Static Public Member Functions | |
static QtGuiContext * | getQtCurrent () |
static void | setQtCurrent (QtGuiContext *context) |
Static Public Member Functions inherited from YACS::HMI::GuiContext | |
static GuiContext * | getCurrent () |
static void | setCurrent (GuiContext *context) |
Static Public Member Functions inherited from YACS::HMI::Subject | |
static void | erase (Subject *sub, Command *command=0, bool post=false) |
Static Public Attributes | |
static std::set< QtGuiContext * > | _setOfContext |
static counters * | _counters = 0 |
static bool | _delayCalc = false |
Static Protected Attributes | |
static QtGuiContext * | _QtCurrent = 0 |
Static Protected Attributes inherited from YACS::HMI::GuiContext | |
static GuiContext * | _current = 0 |
Definition at line 48 of file QtGuiContext.hxx.
QtGuiContext::QtGuiContext | ( | YACS::HMI::GenericGui * | gmain | ) |
Definition at line 37 of file QtGuiContext.cxx.
References _editTree, _fileName, _gmain, _guiExecutor, _isEdition, _isLoadingPresentation, _mapOfEditionItem, _mapOfSceneItem, _mapOfSchemaItem, _rootEdit, _scene, _schemaModel, _selectedSubject, _selectionModel, _setOfContext, _setOfModifiedSubjects, _stackedWidget, _studyId, _view, and _window.
|
virtual |
Definition at line 61 of file QtGuiContext.cxx.
References YACS::HMI::GuiContext::_current, YACS::HMI::GuiContext::_invoc, YACS::HMI::GuiContext::_proc, _QtCurrent, _setOfContext, YACS::HMI::GuiContext::_subjectProc, YACS::HMI::SubjectProc::clean(), DEBTRACE, and YACS::ENGINE::Proc::setEdition().
|
inline |
Definition at line 61 of file QtGuiContext.hxx.
|
inline |
Definition at line 58 of file QtGuiContext.hxx.
Referenced by YACS::HMI::GenericGui::switchContext().
|
inline |
Definition at line 65 of file QtGuiContext.hxx.
Referenced by YACS::HMI::SchemaProcItem::editionToolTip(), and YACS::HMI::SchemaProcItem::runToolTip().
|
inline |
Definition at line 55 of file QtGuiContext.hxx.
Referenced by YACS::HMI::SceneComposedNodeItem::dropEvent(), YACS::HMI::SchemaDirTypesItem::dropMimeData(), YACS::HMI::SchemaComposedNodeItem::dropMimeData(), YACS::HMI::TreeView::event(), YACS::HMI::SceneNodeItem::mouseDoubleClickEvent(), YACS::HMI::GraphicsView::mousePressEvent(), YACS::HMI::TablePortsEdition::on_pb_remove_clicked(), YACS::HMI::TablePortsEdition::oncb_insert_activated(), YACS::HMI::NodeMenu::popupMenu(), YACS::HMI::ComposedNodeMenu::popupMenu(), YACS::HMI::ProcMenu::popupMenu(), YACS::HMI::HeaderNodeMenu::popupMenu(), YACS::HMI::LinkMenu::popupMenu(), YACS::HMI::ElementaryNodeMenu::popupMenu(), YACS::HMI::InPortMenu::popupMenu(), YACS::HMI::OutPortMenu::popupMenu(), YACS::HMI::CtrlInPortMenu::popupMenu(), YACS::HMI::CtrlOutPortMenu::popupMenu(), YACS::HMI::ReferenceMenu::popupMenu(), YACS::HMI::ContainerDirMenu::popupMenu(), YACS::HMI::ComponentInstanceMenu::popupMenu(), and YACS::HMI::ContainerMenu::popupMenu().
|
inline |
Definition at line 66 of file QtGuiContext.hxx.
Referenced by YACS::HMI::GenericGui::closeContext(), YACS::HMI::EditionProc::EditionProc(), YACS::HMI::BatchJobsListDialog::get_dump_file(), YACS::HMI::EditionElementaryNode::onCommitData(), YACS::HMI::TreeView::onCommitData(), YACS::HMI::EditionProc::onLevelChange(), YACS::HMI::SchemaNodeItem::toggleState(), and YACS::HMI::EditionProc::update().
|
inlinestatic |
Definition at line 94 of file QtGuiContext.hxx.
Referenced by YACS::HMI::SchemaContainerItem::addComponentInstance(), YACS::HMI::SchemaDirContainersItem::addComponentItem(), YACS::HMI::SchemaDirContainersItem::addContainerItem(), YACS::HMI::SchemaDirLinksItem::addLinkItem(), YACS::HMI::SchemaDirTypesItem::addTypeItem(), YACS::HMI::SceneBlocItem::arrangeCanvasNodes(), YACS::HMI::SceneComposedNodeItem::arrangeNodes(), YACS::HMI::SceneComposedNodeItem::autoPosNewChild(), YACS::HMI::SceneItem::checkGeometryChange(), YACS::HMI::EditionElementaryNode::createTablePorts(), YACS::HMI::SceneInPortItem::dropEvent(), YACS::HMI::SceneCtrlInPortItem::dropEvent(), YACS::HMI::SceneComposedNodeItem::dropEvent(), YACS::HMI::SchemaDirTypesItem::dropMimeData(), YACS::HMI::SchemaComposedNodeItem::dropMimeData(), YACS::HMI::EditionForEachLoop::EditionForEachLoop(), YACS::HMI::EditionInputPort::EditionInputPort(), YACS::HMI::EditionLoop::EditionLoop(), YACS::HMI::EditionNode::EditionNode(), YACS::HMI::EditionOutputPort::EditionOutputPort(), YACS::HMI::EditionProc::EditionProc(), YACS::HMI::EditionPyFunc::EditionPyFunc(), YACS::HMI::EditionScript::EditionScript(), YACS::HMI::EditionSwitch::EditionSwitch(), YACS::HMI::SchemaProcItem::editionToolTip(), YACS::HMI::EditionWhile::EditionWhile(), YACS::HMI::TreeView::event(), FormHPContainer::FillPanel(), YACS::HMI::SchemaInPortItem::flags(), YACS::HMI::SchemaOutPortItem::flags(), YACS::HMI::SchemaNodeItem::flags(), YACS::HMI::SchemaComposedNodeItem::flags(), YACS::HMI::BatchJobsListDialog::get_dump_file(), YACS::HMI::SceneBlocItem::getNodesInfo(), YACS::HMI::SceneObserverItem::getToolTip(), YACS::HMI::ItemEdition::ItemEdition(), YACS::HMI::ItemEditionBase::ItemEditionBase(), YACS::HMI::LinkMatrix::LinkMatrix(), YACS::HMI::SceneNodeItem::mouseDoubleClickEvent(), YACS::HMI::SceneObserverItem::mousePressEvent(), YACS::HMI::SceneCtrlPortItem::mousePressEvent(), YACS::HMI::GraphicsView::mousePressEvent(), YACS::HMI::SceneNodeItem::mouseReleaseEvent(), YACS::HMI::TablePortsEdition::on_pb_insert_clicked(), YACS::HMI::TablePortsEdition::on_pb_remove_clicked(), FormHPContainer::onApply(), YACS::HMI::TablePortsEdition::oncb_insert_activated(), YACS::HMI::GraphicsView::onCenterOnNode(), YACS::HMI::EditionElementaryNode::onCommitData(), YACS::HMI::TreeView::onCommitData(), YACS::HMI::EditionProc::onLevelChange(), YACS::HMI::EditionForEachLoop::onModifyCollection(), YACS::HMI::EditionOptimizerLoop::onModifyInitFile(), YACS::HMI::GraphicsView::onViewFitAll(), YACS::HMI::GraphicsView::onZoomToBloc(), YACS::HMI::NodeMenu::popupMenu(), YACS::HMI::ComposedNodeMenu::popupMenu(), YACS::HMI::ProcMenu::popupMenu(), YACS::HMI::HeaderNodeMenu::popupMenu(), YACS::HMI::LinkMenu::popupMenu(), YACS::HMI::ElementaryNodeMenu::popupMenu(), YACS::HMI::InPortMenu::popupMenu(), YACS::HMI::OutPortMenu::popupMenu(), YACS::HMI::CtrlInPortMenu::popupMenu(), YACS::HMI::CtrlOutPortMenu::popupMenu(), YACS::HMI::ReferenceMenu::popupMenu(), YACS::HMI::ContainerDirMenu::popupMenu(), YACS::HMI::ComponentInstanceMenu::popupMenu(), YACS::HMI::ContainerMenu::popupMenu(), YACS::HMI::SchemaDirTypesItem::removeTypeItem(), YACS::HMI::SceneElementaryNodeItem::reorganize(), YACS::HMI::SceneElementaryNodeItem::reorganizeShrinkExpand(), YACS::HMI::SceneComposedNodeItem::reorganizeShrinkExpand(), YACS::HMI::TreeView::resizeColumns(), YACS::HMI::SchemaProcItem::runToolTip(), YACS::HMI::SceneHeaderNodeItem::SceneHeaderNodeItem(), YACS::HMI::SceneObserverItem::SceneObserverItem(), YACS::HMI::SchemaComposedNodeItem::SchemaComposedNodeItem(), YACS::HMI::SchemaNodeItem::SchemaNodeItem(), YACS::HMI::EditionInputPort::select(), YACS::HMI::EditionOutputPort::select(), YACS::HMI::SceneObserverItem::select(), YACS::HMI::ItemEdition::select(), YACS::HMI::SchemaNodeItem::setCaseValue(), YACS::HMI::SchemaComposedNodeItem::setCaseValue(), YACS::HMI::TablePortsEdition::setEditablePorts(), YACS::HMI::SceneHeaderNodeItem::setEdited(), YACS::HMI::ItemEdition::setEdited(), YACS::HMI::TreeView::setModel(), YACS::HMI::SchemaModel::setNewRoot(), YACS::HMI::SceneNodeItem::showOutScopeLinks(), YACS::HMI::SceneDataPortItem::shrinkExpandLink(), YACS::HMI::CatalogWidget::startDrag(), YACS::HMI::EditionProc::synchronize(), YACS::HMI::EditionSwitch::synchronize(), YACS::HMI::EditionElementaryNode::synchronize(), YACS::HMI::SchemaNodeItem::toggleState(), YACS::HMI::SchemaOutPortItem::update(), YACS::HMI::SchemaInPortItem::update(), YACS::HMI::SchemaContainerItem::update(), YACS::HMI::SchemaComponentItem::update(), YACS::HMI::SchemaReferenceItem::update(), YACS::HMI::SchemaNodeItem::update(), YACS::HMI::SchemaComposedNodeItem::update(), YACS::HMI::SceneComposedNodeItem::update(), YACS::HMI::SceneElementaryNodeItem::update(), YACS::HMI::EditionNode::update(), YACS::HMI::EditionLoop::update(), YACS::HMI::EditionProc::update(), YACS::HMI::ItemEdition::update(), YACS::HMI::SceneDataPortItem::updateChildItems(), YACS::HMI::SceneComposedNodeItem::updateControlLinks(), YACS::HMI::SceneDataPortItem::updateLinks(), YACS::HMI::SceneNodeItem::updateLinks(), YACS::HMI::TablePortsEdition::upOrDown(), YACS::HMI::VisitorSaveGuiSchema::writePresentation(), YACS::HMI::ItemEdition::~ItemEdition(), and YACS::HMI::SceneObserverItem::~SceneObserverItem().
|
inline |
Definition at line 59 of file QtGuiContext.hxx.
|
inline |
Definition at line 57 of file QtGuiContext.hxx.
Referenced by YACS::HMI::SchemaContainerItem::addComponentInstance(), YACS::HMI::SchemaDirContainersItem::addContainerItem(), YACS::HMI::SchemaDirLinksItem::addLinkItem(), YACS::HMI::SchemaDirTypesItem::addTypeItem(), YACS::HMI::EditionElementaryNode::createTablePorts(), YACS::HMI::EditionSwitch::EditionSwitch(), YACS::HMI::TablePortsEdition::on_pb_insert_clicked(), YACS::HMI::TablePortsEdition::on_pb_remove_clicked(), YACS::HMI::SchemaDirTypesItem::removeTypeItem(), YACS::HMI::SchemaComposedNodeItem::SchemaComposedNodeItem(), YACS::HMI::SchemaNodeItem::SchemaNodeItem(), YACS::HMI::SchemaNodeItem::setCaseValue(), YACS::HMI::SchemaComposedNodeItem::setCaseValue(), YACS::HMI::ItemEdition::setEdited(), YACS::HMI::EditionSwitch::synchronize(), YACS::HMI::EditionElementaryNode::synchronize(), YACS::HMI::SchemaComponentItem::update(), YACS::HMI::SchemaContainerItem::update(), YACS::HMI::SchemaInPortItem::update(), YACS::HMI::SchemaOutPortItem::update(), YACS::HMI::SchemaReferenceItem::update(), YACS::HMI::SchemaNodeItem::update(), YACS::HMI::SchemaComposedNodeItem::update(), and YACS::HMI::TablePortsEdition::upOrDown().
|
inline |
Definition at line 73 of file QtGuiContext.hxx.
Referenced by YACS::HMI::GraphicsView::onCenterOnNode(), YACS::HMI::GraphicsView::onZoomToBloc(), YACS::HMI::ComposedNodeMenu::popupMenu(), YACS::HMI::ElementaryNodeMenu::popupMenu(), YACS::HMI::InPortMenu::popupMenu(), and YACS::HMI::OutPortMenu::popupMenu().
|
inline |
Definition at line 63 of file QtGuiContext.hxx.
|
inline |
|
inline |
Definition at line 68 of file QtGuiContext.hxx.
Referenced by YACS::HMI::GenericGui::closeContext().
YACS::HMI::Subject * QtGuiContext::getSubjectToPaste | ( | bool & | isCut | ) |
Definition at line 88 of file QtGuiContext.cxx.
References YACS::HMI::ItemMimeData::getControl(), and YACS::HMI::ItemMimeData::getSubject().
|
inline |
Definition at line 60 of file QtGuiContext.hxx.
Referenced by YACS::HMI::SceneNodeItem::mouseReleaseEvent().
|
inline |
Definition at line 62 of file QtGuiContext.hxx.
|
inline |
Definition at line 67 of file QtGuiContext.hxx.
Referenced by YACS::HMI::SceneObserverItem::mousePressEvent(), YACS::HMI::SceneCtrlPortItem::mousePressEvent(), YACS::HMI::NodeMenu::popupMenu(), YACS::HMI::ComposedNodeMenu::popupMenu(), YACS::HMI::ProcMenu::popupMenu(), YACS::HMI::HeaderNodeMenu::popupMenu(), YACS::HMI::LinkMenu::popupMenu(), YACS::HMI::ElementaryNodeMenu::popupMenu(), YACS::HMI::InPortMenu::popupMenu(), YACS::HMI::OutPortMenu::popupMenu(), YACS::HMI::CtrlInPortMenu::popupMenu(), YACS::HMI::CtrlOutPortMenu::popupMenu(), YACS::HMI::ReferenceMenu::popupMenu(), YACS::HMI::ContainerDirMenu::popupMenu(), YACS::HMI::ComponentInstanceMenu::popupMenu(), YACS::HMI::ContainerMenu::popupMenu(), YACS::HMI::TreeView::setModel(), and YACS::HMI::GenericGui::switchContext().
|
inline |
Definition at line 69 of file QtGuiContext.hxx.
Referenced by YACS::HMI::SceneItem::checkGeometryChange().
|
inline |
Definition at line 85 of file QtGuiContext.hxx.
Referenced by YACS::HMI::GenericGui::createContext().
|
inline |
Definition at line 79 of file QtGuiContext.hxx.
Referenced by YACS::HMI::GenericGui::createContext().
|
inline |
Definition at line 76 of file QtGuiContext.hxx.
Referenced by YACS::HMI::GenericGui::createContext().
|
inline |
Definition at line 83 of file QtGuiContext.hxx.
Referenced by YACS::HMI::GenericGui::createContext().
|
inline |
Definition at line 84 of file QtGuiContext.hxx.
Referenced by YACS::HMI::GenericGui::createContext().
|
inline |
Definition at line 87 of file QtGuiContext.hxx.
|
virtual |
Reimplemented from YACS::HMI::GuiContext.
Definition at line 81 of file QtGuiContext.cxx.
References _mapOfSceneItem, _mapOfSchemaItem, and YACS::HMI::GuiContext::setProc().
Referenced by YACS::HMI::GenericGui::createContext().
|
inlinestatic |
Definition at line 95 of file QtGuiContext.hxx.
|
inline |
Definition at line 77 of file QtGuiContext.hxx.
Referenced by YACS::HMI::GenericGui::createContext().
|
inline |
Definition at line 75 of file QtGuiContext.hxx.
Referenced by YACS::HMI::GenericGui::createContext().
|
inline |
Definition at line 92 of file QtGuiContext.hxx.
Referenced by YACS::HMI::SceneObserverItem::select().
|
inline |
Definition at line 81 of file QtGuiContext.hxx.
Referenced by YACS::HMI::GenericGui::createContext().
|
inline |
Definition at line 82 of file QtGuiContext.hxx.
Referenced by YACS::HMI::GenericGui::createContext().
|
inline |
Definition at line 86 of file QtGuiContext.hxx.
Referenced by YACS::HMI::GenericGui::createContext().
void QtGuiContext::setSubjectToCopy | ( | YACS::HMI::Subject * | sub | ) |
Definition at line 113 of file QtGuiContext.cxx.
References YACS::HMI::ItemMimeData::setControl(), and YACS::HMI::ItemMimeData::setSubject().
void QtGuiContext::setSubjectToCut | ( | YACS::HMI::Subject * | sub | ) |
Definition at line 104 of file QtGuiContext.cxx.
References YACS::HMI::ItemMimeData::setControl(), and YACS::HMI::ItemMimeData::setSubject().
|
inline |
Definition at line 78 of file QtGuiContext.hxx.
Referenced by YACS::HMI::GenericGui::createContext().
|
inline |
Definition at line 80 of file QtGuiContext.hxx.
Referenced by YACS::HMI::GenericGui::createContext().
|
static |
Definition at line 103 of file QtGuiContext.hxx.
|
static |
Definition at line 104 of file QtGuiContext.hxx.
Referenced by YACS::HMI::SceneComposedNodeItem::arrangeNodes(), and YACS::HMI::SceneComposedNodeItem::rebuildLinks().
|
protected |
Definition at line 110 of file QtGuiContext.hxx.
Referenced by QtGuiContext().
|
protected |
Definition at line 117 of file QtGuiContext.hxx.
Referenced by QtGuiContext().
|
protected |
Definition at line 108 of file QtGuiContext.hxx.
Referenced by QtGuiContext().
|
protected |
Definition at line 118 of file QtGuiContext.hxx.
Referenced by QtGuiContext().
|
protected |
Definition at line 120 of file QtGuiContext.hxx.
Referenced by QtGuiContext().
|
protected |
Definition at line 121 of file QtGuiContext.hxx.
Referenced by QtGuiContext().
std::map<YACS::HMI::Subject*, QWidget*> YACS::HMI::QtGuiContext::_mapOfEditionItem |
Definition at line 99 of file QtGuiContext.hxx.
Referenced by YACS::HMI::ItemEdition::ItemEdition(), QtGuiContext(), YACS::HMI::EditionOutputPort::select(), YACS::HMI::EditionInputPort::select(), and YACS::HMI::ItemEdition::~ItemEdition().
std::map<YACS::HMI::Subject*, YACS::HMI::SceneItem*> YACS::HMI::QtGuiContext::_mapOfSceneItem |
Definition at line 98 of file QtGuiContext.hxx.
Referenced by YACS::HMI::SceneBlocItem::arrangeCanvasNodes(), YACS::HMI::SceneComposedNodeItem::arrangeNodes(), YACS::HMI::LinkMatrix::cellFrom(), YACS::HMI::LinkMatrix::cellTo(), YACS::HMI::SceneCtrlInPortItem::dropEvent(), YACS::HMI::SceneInPortItem::dropEvent(), YACS::HMI::LinkMatrix::getListOfCtrlLinkDef(), YACS::HMI::LinkMatrix::getListOfDataLinkDef(), YACS::HMI::SceneBlocItem::getNodesInfo(), YACS::HMI::SceneNodeItem::mouseReleaseEvent(), YACS::HMI::GraphicsView::onCenterOnNode(), YACS::HMI::GraphicsView::onViewFitAll(), YACS::HMI::GraphicsView::onZoomToBloc(), QtGuiContext(), YACS::HMI::SceneElementaryNodeItem::reorganize(), YACS::HMI::SceneElementaryNodeItem::reorganizeShrinkExpand(), YACS::HMI::SceneComposedNodeItem::reorganizeShrinkExpand(), YACS::HMI::SceneObserverItem::SceneObserverItem(), setProc(), YACS::HMI::SceneNodeItem::showOutScopeLinks(), YACS::HMI::SceneDataPortItem::shrinkExpandLink(), YACS::HMI::SceneComposedNodeItem::update(), YACS::HMI::SceneElementaryNodeItem::update(), YACS::HMI::SceneDataPortItem::updateChildItems(), YACS::HMI::SceneComposedNodeItem::updateControlLinks(), YACS::HMI::SceneDataPortItem::updateLinks(), YACS::HMI::SceneNodeItem::updateLinks(), YACS::HMI::TablePortsEdition::upOrDown(), YACS::HMI::VisitorSaveGuiSchema::writePresentation(), and YACS::HMI::SceneObserverItem::~SceneObserverItem().
std::map<YACS::HMI::Subject*, YACS::HMI::SchemaItem*> YACS::HMI::QtGuiContext::_mapOfSchemaItem |
Definition at line 95 of file QtGuiContext.hxx.
Referenced by YACS::HMI::SceneObserverItem::getToolTip(), QtGuiContext(), YACS::HMI::SchemaDirTypesItem::removeTypeItem(), YACS::HMI::TreeView::resizeColumns(), YACS::HMI::ItemEdition::setEdited(), setProc(), YACS::HMI::EditionSwitch::synchronize(), YACS::HMI::EditionElementaryNode::synchronize(), YACS::HMI::SchemaContainerItem::update(), YACS::HMI::SchemaComponentItem::update(), YACS::HMI::SchemaNodeItem::update(), and YACS::HMI::SchemaComposedNodeItem::update().
|
staticprotected |
Definition at line 107 of file QtGuiContext.hxx.
Referenced by ~QtGuiContext().
|
protected |
Definition at line 114 of file QtGuiContext.hxx.
Referenced by QtGuiContext().
|
protected |
Definition at line 112 of file QtGuiContext.hxx.
Referenced by QtGuiContext().
|
protected |
Definition at line 109 of file QtGuiContext.hxx.
Referenced by QtGuiContext().
|
protected |
Definition at line 119 of file QtGuiContext.hxx.
Referenced by QtGuiContext().
|
protected |
Definition at line 111 of file QtGuiContext.hxx.
Referenced by QtGuiContext().
|
static |
Definition at line 102 of file QtGuiContext.hxx.
Referenced by QtGuiContext(), and ~QtGuiContext().
std::set<YACS::HMI::Subject*> YACS::HMI::QtGuiContext::_setOfModifiedSubjects |
Definition at line 100 of file QtGuiContext.hxx.
Referenced by QtGuiContext(), and YACS::HMI::ItemEdition::setEdited().
|
protected |
Definition at line 116 of file QtGuiContext.hxx.
Referenced by QtGuiContext().
|
protected |
Definition at line 122 of file QtGuiContext.hxx.
Referenced by QtGuiContext().
|
protected |
Definition at line 113 of file QtGuiContext.hxx.
Referenced by QtGuiContext().
|
protected |
Definition at line 115 of file QtGuiContext.hxx.
Referenced by QtGuiContext().
|
protected |
Definition at line 123 of file QtGuiContext.hxx.