#include <GuiEditor.hxx>

Public Member Functions | |
| GuiEditor () | |
| virtual | ~GuiEditor () |
| void | CreateNodeFromCatalog (const ItemMimeData *myData, SubjectComposedNode *cnode, bool createNewComponentInstance) |
| void | AddTypeFromCatalog (const ItemMimeData *myData) |
| SubjectNode * | CreateNode (std::string typeNode) |
| void | CreateBloc () |
| void | CreateForLoop () |
| void | CreateForEachLoop (std::string type) |
| void | CreateWhileLoop () |
| void | CreateSwitch () |
| void | CreateOptimizerLoop () |
| void | CreateContainer () |
| void | CreateHPContainer () |
| void | CreateComponentInstance () |
| SubjectDataPort * | CreateInputPort (SubjectElementaryNode *seNode, std::string name, YACS::ENGINE::Catalog *catalog, std::string type="double", SubjectDataPort *before=0) |
| SubjectDataPort * | CreateOutputPort (SubjectElementaryNode *seNode, std::string name, YACS::ENGINE::Catalog *catalog, std::string type="double", SubjectDataPort *before=0) |
| void | DeleteSubject () |
| void | DeleteSubject (Subject *parent, Subject *toRemove) |
| void | CutSubject () |
| void | CopySubject () |
| void | PasteSubject () |
| void | PutSubjectInBloc () |
| std::string | PutGraphInBloc () |
| void | PutGraphInNode (std::string typeNode) |
| void | shrinkExpand (Qt::KeyboardModifiers kbModifiers=Qt::NoModifier) |
| void | rebuildLinks () |
| void | arrangeNodes (bool isRecursive) |
| void | arrangeProc () |
| void | showUndo (QWidget *parent=0) |
| void | showRedo (QWidget *parent=0) |
| QString | asciiFilter (const QString &name) |
Protected Member Functions | |
| SubjectNode * | _createNode (YACS::ENGINE::Catalog *catalog, SubjectComposedNode *cnode, std::string service, std::string compoName, bool createNewComponentInstance) |
Protected Attributes | |
| std::string | _table |
Definition at line 44 of file GuiEditor.hxx.
| GuiEditor::GuiEditor | ( | ) |
Definition at line 53 of file GuiEditor.cxx.
|
virtual |
Definition at line 78 of file GuiEditor.cxx.
References DEBTRACE.
|
protected |
Definition at line 121 of file GuiEditor.cxx.
References YACS::HMI::SubjectComposedNode::addNode(), YACS::HMI::SubjectBloc::addNode(), YACS::HMI::SubjectSwitch::addNode(), YACS::ENGINE::ComposedNode::edGetDirectDescendants(), YACS::HMI::SubjectSwitch::getBodyMap(), YACS::HMI::SubjectComposedNode::getChild(), YACS::HMI::GuiContext::getCurrent(), YACS::HMI::GuiContext::getNewId(), YACS::HMI::SubjectNode::getNode(), YACS::HMI::SubjectNode::putInComposedNode(), and YASSERT.
Referenced by CreateNode(), and CreateNodeFromCatalog().
| void GuiEditor::AddTypeFromCatalog | ( | const ItemMimeData * | myData | ) |
Definition at line 203 of file GuiEditor.cxx.
References YACS::HMI::SubjectProc::addDataType(), DEBTRACE, YACS::HMI::ItemMimeData::getCatalog(), YACS::HMI::ItemMimeData::getDataSize(), YACS::HMI::QtGuiContext::getQtCurrent(), YACS::HMI::GuiContext::getSubjectProc(), YACS::HMI::ItemMimeData::getType(), and yacsorb.CORBAEngineTest::i.
Referenced by YACS::HMI::SchemaDirTypesItem::dropMimeData().
| void GuiEditor::arrangeNodes | ( | bool | isRecursive | ) |
Definition at line 659 of file GuiEditor.cxx.
References YACS::HMI::QtGuiContext::_mapOfSceneItem, YACS::HMI::SceneComposedNodeItem::arrangeNodes(), DEBTRACE, YACS::HMI::Subject::getName(), YACS::HMI::QtGuiContext::getQtCurrent(), and YACS::HMI::QtGuiContext::getSelectedSubject().
Referenced by YACS::HMI::GenericGui::onArrangeLocalNodes(), YACS::HMI::GenericGui::onArrangeRecurseNodes(), YACS::HMI::GenericGui::onPutGraphInBloc(), and PutGraphInNode().
| void GuiEditor::arrangeProc | ( | ) |
Definition at line 691 of file GuiEditor.cxx.
References YACS::HMI::QtGuiContext::_mapOfSceneItem, YACS::HMI::SceneComposedNodeItem::arrangeNodes(), YACS::HMI::QtGuiContext::getQtCurrent(), and YACS::HMI::GuiContext::getSubjectProc().
Referenced by YACS::HMI::GenericGui::loadSchema().
| QString GuiEditor::asciiFilter | ( | const QString & | name | ) |
Replace accentuated characters from latin1 to US ascii equivalent without accent. I did not found anything to do that in Qt...
Definition at line 716 of file GuiEditor.cxx.
References _table, DEBTRACE, and yacsorb.CORBAEngineTest::i.
Referenced by YACS::HMI::GenericGui::getSaveFileName().
| void GuiEditor::CopySubject | ( | ) |
Definition at line 477 of file GuiEditor.cxx.
References DEBTRACE, YACS::HMI::Subject::getName(), YACS::HMI::QtGuiContext::getQtCurrent(), YACS::HMI::QtGuiContext::getSelectedSubject(), and YACS::HMI::QtGuiContext::setSubjectToCopy().
Referenced by YACS::HMI::GenericGui::onCopyItem().
| void GuiEditor::CreateBloc | ( | ) |
Definition at line 219 of file GuiEditor.cxx.
References CreateNode(), and DEBTRACE.
Referenced by YACS::HMI::GenericGui::onBlockNode().
| void GuiEditor::CreateComponentInstance | ( | ) |
Definition at line 301 of file GuiEditor.cxx.
References YACS::HMI::SubjectProc::addComponent(), DEBTRACE, YACS::ENGINE::ComponentInstance::getCompoName(), YACS::HMI::SubjectComponent::getComponent(), YACS::ENGINE::ComponentInstance::getContainer(), YACS::ENGINE::Container::getName(), YACS::HMI::QtGuiContext::getQtCurrent(), YACS::HMI::QtGuiContext::getSelectedSubject(), YACS::HMI::GuiContext::getSubjectProc(), and YASSERT.
Referenced by YACS::HMI::GenericGui::onNewSalomeComponent().
| void GuiEditor::CreateContainer | ( | ) |
Definition at line 267 of file GuiEditor.cxx.
References YACS::HMI::SubjectProc::addContainer(), DEBTRACE, YACS::HMI::GuiContext::getCurrent(), YACS::HMI::GuiContext::getNewId(), YACS::HMI::QtGuiContext::getQtCurrent(), YACS::HMI::GuiContext::getSubjectProc(), and YASSERT.
Referenced by YACS::HMI::GenericGui::onNewContainer().
| void GuiEditor::CreateForEachLoop | ( | std::string | type | ) |
Definition at line 231 of file GuiEditor.cxx.
References YACS::ENGINE::Catalog::_composednodeMap, CreateNode(), DEBTRACE, YACS::ENGINE::Runtime::getBuiltinCatalog(), YACS::HMI::GuiContext::getCurrent(), YACS::HMI::GuiContext::getProc(), YACS::ENGINE::getSALOMERuntime(), and YACS::ENGINE::Proc::typeMap.
Referenced by YACS::HMI::GenericGui::createForEachLoop().
| void GuiEditor::CreateForLoop | ( | ) |
Definition at line 225 of file GuiEditor.cxx.
References CreateNode(), and DEBTRACE.
Referenced by YACS::HMI::GenericGui::onFORNode().
| void GuiEditor::CreateHPContainer | ( | ) |
Definition at line 284 of file GuiEditor.cxx.
References YACS::HMI::SubjectProc::addHPContainer(), DEBTRACE, YACS::HMI::GuiContext::getCurrent(), YACS::HMI::GuiContext::getNewId(), YACS::HMI::QtGuiContext::getQtCurrent(), YACS::HMI::GuiContext::getSubjectProc(), and YASSERT.
Referenced by YACS::HMI::GenericGui::onNewHPContainer().
| SubjectDataPort * GuiEditor::CreateInputPort | ( | SubjectElementaryNode * | seNode, |
| std::string | name, | ||
| YACS::ENGINE::Catalog * | catalog, | ||
| std::string | type = "double", |
||
| SubjectDataPort * | before = 0 |
||
| ) |
Definition at line 319 of file GuiEditor.cxx.
References YACS::HMI::SubjectElementaryNode::addInputPort(), DEBTRACE, testCppPluginInvokation::ex, YACS::HMI::GuiContext::getCurrent(), YACS::ENGINE::Node::getInputPort(), YACS::HMI::GuiContext::getNewId(), and YACS::HMI::SubjectNode::getNode().
Referenced by YACS::HMI::TablePortsEdition::oncb_insert_activated().
| SubjectNode * GuiEditor::CreateNode | ( | std::string | typeNode | ) |
Definition at line 98 of file GuiEditor.cxx.
References _createNode(), YACS::HMI::Resource::COMPONENT_INSTANCE_NEW, DEBTRACE, YACS::ENGINE::Runtime::getBuiltinCatalog(), YACS::HMI::Subject::getName(), YACS::HMI::QtGuiContext::getQtCurrent(), YACS::ENGINE::getSALOMERuntime(), and YACS::HMI::QtGuiContext::getSelectedSubject().
Referenced by CreateBloc(), CreateForEachLoop(), CreateForLoop(), CreateOptimizerLoop(), CreateSwitch(), CreateWhileLoop(), YACS::HMI::GenericGui::onCORBAServiceNode(), YACS::HMI::GenericGui::onCppNode(), YACS::HMI::GenericGui::onInDataNode(), YACS::HMI::GenericGui::onInlineFunctionNode(), YACS::HMI::GenericGui::onInlineScriptNode(), YACS::HMI::GenericGui::onInStudyNode(), YACS::HMI::GenericGui::onOutDataNode(), YACS::HMI::GenericGui::onOutStudyNode(), YACS::HMI::GenericGui::onSalomeServiceNode(), YACS::HMI::GenericGui::onServiceInlineNode(), YACS::HMI::GenericGui::onXMLNode(), and PutGraphInNode().
| void GuiEditor::CreateNodeFromCatalog | ( | const ItemMimeData * | myData, |
| SubjectComposedNode * | cnode, | ||
| bool | createNewComponentInstance | ||
| ) |
Definition at line 83 of file GuiEditor.cxx.
References _createNode(), DEBTRACE, YACS::HMI::ItemMimeData::getCatalog(), YACS::HMI::ItemMimeData::getCompo(), YACS::HMI::ItemMimeData::getDataSize(), YACS::HMI::ItemMimeData::getType(), and yacsorb.CORBAEngineTest::i.
Referenced by YACS::HMI::SceneComposedNodeItem::dropEvent(), and YACS::HMI::SchemaComposedNodeItem::dropMimeData().
| void GuiEditor::CreateOptimizerLoop | ( | ) |
Definition at line 261 of file GuiEditor.cxx.
References CreateNode(), and DEBTRACE.
Referenced by YACS::HMI::GenericGui::onOptimizerLoop().
| SubjectDataPort * GuiEditor::CreateOutputPort | ( | SubjectElementaryNode * | seNode, |
| std::string | name, | ||
| YACS::ENGINE::Catalog * | catalog, | ||
| std::string | type = "double", |
||
| SubjectDataPort * | before = 0 |
||
| ) |
Definition at line 354 of file GuiEditor.cxx.
References YACS::HMI::SubjectElementaryNode::addOutputPort(), DEBTRACE, testCppPluginInvokation::ex, YACS::HMI::GuiContext::getCurrent(), YACS::HMI::GuiContext::getNewId(), YACS::HMI::SubjectNode::getNode(), and YACS::ENGINE::Node::getOutputPort().
Referenced by YACS::HMI::TablePortsEdition::oncb_insert_activated().
| void GuiEditor::CreateSwitch | ( | ) |
Definition at line 255 of file GuiEditor.cxx.
References CreateNode(), and DEBTRACE.
Referenced by YACS::HMI::GenericGui::onSWITCHNode().
| void GuiEditor::CreateWhileLoop | ( | ) |
Definition at line 249 of file GuiEditor.cxx.
References CreateNode(), and DEBTRACE.
Referenced by YACS::HMI::GenericGui::onWHILENode().
| void GuiEditor::CutSubject | ( | ) |
Definition at line 463 of file GuiEditor.cxx.
References DEBTRACE, YACS::HMI::Subject::getName(), YACS::HMI::QtGuiContext::getQtCurrent(), YACS::HMI::QtGuiContext::getSelectedSubject(), and YACS::HMI::QtGuiContext::setSubjectToCut().
Referenced by YACS::HMI::GenericGui::onCutItem().
| void GuiEditor::DeleteSubject | ( | ) |
Subject destruction, command from popup menu: needs a valid selection
Definition at line 428 of file GuiEditor.cxx.
References DEBTRACE, DeleteSubject(), YACS::HMI::Subject::getParent(), YACS::HMI::QtGuiContext::getQtCurrent(), YACS::HMI::QtGuiContext::getSelectionModel(), and YACS::HMI::SchemaItem::getSubject().
Referenced by DeleteSubject(), YACS::HMI::TablePortsEdition::on_pb_remove_clicked(), and YACS::HMI::GenericGui::onDeleteItem().
Subject destruction, command from button in port table view or via selection
Definition at line 451 of file GuiEditor.cxx.
References YACS::HMI::Subject::askRegisterUndoDestroy(), DEBTRACE, YACS::HMI::Subject::destroy(), YACS::HMI::Subject::getName(), YACS::HMI::QtGuiContext::getQtCurrent(), and YACS::HMI::QtGuiContext::setSubjectToCopy().
| void GuiEditor::PasteSubject | ( | ) |
Definition at line 491 of file GuiEditor.cxx.
References DEBTRACE, YACS::HMI::QtGuiContext::getQtCurrent(), YACS::HMI::QtGuiContext::getSelectedSubject(), and YACS::HMI::QtGuiContext::getSubjectToPaste().
Referenced by YACS::HMI::GenericGui::onPasteItem().
| std::string GuiEditor::PutGraphInBloc | ( | ) |
Definition at line 581 of file GuiEditor.cxx.
References YACS::HMI::QtGuiContext::_mapOfSceneItem, YACS::HMI::GuiContext::_mapOfSubjectNode, YACS::HMI::SceneItem::checkGeometryChange(), YACS::ENGINE::Bloc::edGetDirectDescendants(), YACS::ENGINE::Bloc::getChildByShortName(), YACS::HMI::GuiContext::getCurrent(), YACS::HMI::SceneNodeItem::getExpandedX(), YACS::HMI::SceneNodeItem::getExpandedY(), YACS::HMI::SubjectNode::getName(), YACS::HMI::GuiContext::getNewId(), YACS::HMI::GuiContext::getProc(), YACS::HMI::QtGuiContext::getQtCurrent(), YACS::HMI::GuiContext::getSubjectProc(), yacsorb.CORBAEngineTest::names, YACS::HMI::SubjectNode::putInComposedNode(), YACS::HMI::SubjectNode::restoreLinks(), YACS::HMI::SubjectNode::saveLinks(), YACS::HMI::SceneNodeItem::setExpandedPos(), YACS::HMI::QtGuiContext::setSelectedSubject(), and YASSERT.
Referenced by YACS::HMI::GenericGui::onPutGraphInBloc(), and PutGraphInNode().
| void GuiEditor::PutGraphInNode | ( | std::string | typeNode | ) |
Definition at line 563 of file GuiEditor.cxx.
References YACS::HMI::GuiContext::_mapOfSubjectNode, arrangeNodes(), CreateNode(), YACS::ENGINE::Bloc::getChildByShortName(), YACS::HMI::GuiContext::getCurrent(), YACS::HMI::SubjectNode::getName(), YACS::HMI::GuiContext::getProc(), YACS::HMI::QtGuiContext::getQtCurrent(), YACS::HMI::GuiContext::getSubjectProc(), PutGraphInBloc(), YACS::HMI::SubjectNode::putInComposedNode(), and YACS::HMI::QtGuiContext::setSelectedSubject().
Referenced by YACS::HMI::GenericGui::onPutGraphInForLoop(), YACS::HMI::GenericGui::onPutGraphInOptimizerLoop(), YACS::HMI::GenericGui::onPutGraphInWhileLoop(), and YACS::HMI::GenericGui::putGraphInForeachLoop().
| void GuiEditor::PutSubjectInBloc | ( | ) |
Definition at line 527 of file GuiEditor.cxx.
References YACS::ENGINE::ComposedNode::edGetDirectDescendants(), YACS::ENGINE::Node::getFather(), YACS::HMI::QtGuiContext::getQtCurrent(), YACS::HMI::QtGuiContext::getSelectedSubject(), and yacsorb.CORBAEngineTest::names.
Referenced by YACS::HMI::GenericGui::onPutInBloc().
| void GuiEditor::rebuildLinks | ( | ) |
Definition at line 649 of file GuiEditor.cxx.
References YACS::HMI::QtGuiContext::_mapOfSceneItem, DEBTRACE, YACS::HMI::QtGuiContext::getQtCurrent(), YACS::HMI::GuiContext::getSubjectProc(), and YACS::HMI::SceneComposedNodeItem::rebuildLinks().
Referenced by YACS::HMI::GenericGui::onRebuildLinks(), and YACS::HMI::GenericGui::setLoadedPresentation().
| void GuiEditor::showRedo | ( | QWidget * | parent = 0 | ) |
Definition at line 706 of file GuiEditor.cxx.
Referenced by YACS::HMI::GenericGui::onShowRedo().
| void GuiEditor::showUndo | ( | QWidget * | parent = 0 | ) |
Definition at line 699 of file GuiEditor.cxx.
Referenced by YACS::HMI::GenericGui::onShowUndo().
| void GuiEditor::shrinkExpand | ( | Qt::KeyboardModifiers | kbModifiers = Qt::NoModifier | ) |
Subject shrink or expand, command from popup menu: needs a valid selection
Definition at line 392 of file GuiEditor.cxx.
References YACS::HMI::QtGuiContext::_mapOfSceneItem, YACS::HMI::ChildrenNodes, YACS::HMI::CurrentNode, DEBTRACE, YACS::HMI::ElementaryNodes, YACS::HMI::QtGuiContext::getQtCurrent(), YACS::HMI::QtGuiContext::getSelectedSubject(), YACS::HMI::SceneNodeItem::reorganizeShrinkExpand(), YACS::HMI::SceneNodeItem::showOutScopeLinks(), and YACS::HMI::SceneNodeItem::updateLinks().
Referenced by YACS::HMI::SceneNodeItem::mouseDoubleClickEvent(), YACS::HMI::GenericGui::onShrinkExpand(), YACS::HMI::GenericGui::onShrinkExpandChildren(), and YACS::HMI::GenericGui::onShrinkExpandElementaryRecursively().
|
protected |
Definition at line 100 of file GuiEditor.hxx.
Referenced by asciiFilter(), and GuiEditor().