#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 | ( | ) |
|
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::SubjectNode::getNode(), YACS::HMI::SubjectNode::putInComposedNode(), PMMLBasicsTestLauncher::ret, and YASSERT.
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::ItemMimeData::getType(), and CORBAEngineTest::i.
Referenced by YACS::HMI::SchemaDirTypesItem::dropMimeData().
void GuiEditor::arrangeNodes | ( | bool | isRecursive | ) |
Definition at line 659 of file GuiEditor.cxx.
References YACS::HMI::SceneComposedNodeItem::arrangeNodes(), DEBTRACE, and YACS::HMI::Subject::getName().
void GuiEditor::arrangeProc | ( | ) |
Definition at line 691 of file GuiEditor.cxx.
References YACS::HMI::SceneComposedNodeItem::arrangeNodes().
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 DEBTRACE, and CORBAEngineTest::i.
void GuiEditor::CopySubject | ( | ) |
Definition at line 477 of file GuiEditor.cxx.
References DEBTRACE, and YACS::HMI::Subject::getName().
void GuiEditor::CreateBloc | ( | ) |
Definition at line 219 of file GuiEditor.cxx.
References DEBTRACE.
void GuiEditor::CreateComponentInstance | ( | ) |
void GuiEditor::CreateContainer | ( | ) |
Definition at line 267 of file GuiEditor.cxx.
References YACS::HMI::SubjectProc::addContainer(), DEBTRACE, and YASSERT.
void GuiEditor::CreateForEachLoop | ( | std::string | type | ) |
Definition at line 231 of file GuiEditor.cxx.
References YACS::ENGINE::Catalog::_composednodeMap, DEBTRACE, YACS::ENGINE::Runtime::getBuiltinCatalog(), YACS::ENGINE::Proc::getProc(), YACS::ENGINE::getSALOMERuntime(), and YACS::ENGINE::Proc::typeMap.
void GuiEditor::CreateForLoop | ( | ) |
Definition at line 225 of file GuiEditor.cxx.
References DEBTRACE.
void GuiEditor::CreateHPContainer | ( | ) |
Definition at line 284 of file GuiEditor.cxx.
References YACS::HMI::SubjectProc::addHPContainer(), DEBTRACE, and YASSERT.
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, YACS::ENGINE::Node::getInputPort(), 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 DEBTRACE, YACS::ENGINE::Runtime::getBuiltinCatalog(), YACS::HMI::Subject::getName(), and YACS::ENGINE::getSALOMERuntime().
void GuiEditor::CreateNodeFromCatalog | ( | const ItemMimeData * | myData, |
SubjectComposedNode * | cnode, | ||
bool | createNewComponentInstance | ||
) |
Definition at line 83 of file GuiEditor.cxx.
References DEBTRACE, YACS::HMI::ItemMimeData::getCatalog(), YACS::HMI::ItemMimeData::getCompo(), YACS::HMI::ItemMimeData::getDataSize(), YACS::HMI::ItemMimeData::getType(), and 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 DEBTRACE.
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, 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 DEBTRACE.
void GuiEditor::CreateWhileLoop | ( | ) |
Definition at line 249 of file GuiEditor.cxx.
References DEBTRACE.
void GuiEditor::CutSubject | ( | ) |
Definition at line 463 of file GuiEditor.cxx.
References DEBTRACE, and YACS::HMI::Subject::getName().
void GuiEditor::DeleteSubject | ( | ) |
Subject destruction, command from popup menu: needs a valid selection
Definition at line 428 of file GuiEditor.cxx.
References DEBTRACE, YACS::HMI::Subject::getParent(), and YACS::HMI::SchemaItem::getSubject().
Referenced by YACS::HMI::TablePortsEdition::on_pb_remove_clicked().
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(), and YACS::HMI::Subject::getName().
void GuiEditor::PasteSubject | ( | ) |
std::string GuiEditor::PutGraphInBloc | ( | ) |
Definition at line 581 of file GuiEditor.cxx.
References YACS::HMI::SceneItem::checkGeometryChange(), YACS::ENGINE::Bloc::edGetDirectDescendants(), YACS::ENGINE::Bloc::getChildByShortName(), YACS::HMI::SceneNodeItem::getExpandedX(), YACS::HMI::SceneNodeItem::getExpandedY(), YACS::HMI::SubjectNode::getName(), YACS::ENGINE::Proc::getProc(), YACS::HMI::SubjectNode::putInComposedNode(), YACS::HMI::SubjectNode::restoreLinks(), YACS::HMI::SubjectNode::saveLinks(), YACS::HMI::SceneNodeItem::setExpandedPos(), and YASSERT.
void GuiEditor::PutGraphInNode | ( | std::string | typeNode | ) |
Definition at line 563 of file GuiEditor.cxx.
References YACS::ENGINE::Bloc::getChildByShortName(), YACS::HMI::SubjectNode::getName(), YACS::ENGINE::Proc::getProc(), and YACS::HMI::SubjectNode::putInComposedNode().
void GuiEditor::PutSubjectInBloc | ( | ) |
Definition at line 527 of file GuiEditor.cxx.
References YACS::ENGINE::ComposedNode::edGetDirectDescendants(), and YACS::ENGINE::Node::getFather().
void GuiEditor::rebuildLinks | ( | ) |
Definition at line 649 of file GuiEditor.cxx.
References DEBTRACE, and YACS::HMI::SceneComposedNodeItem::rebuildLinks().
void GuiEditor::showRedo | ( | QWidget * | parent = 0 | ) |
Definition at line 706 of file GuiEditor.cxx.
void GuiEditor::showUndo | ( | QWidget * | parent = 0 | ) |
Definition at line 699 of file GuiEditor.cxx.
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::ChildrenNodes, YACS::HMI::CurrentNode, DEBTRACE, YACS::HMI::ElementaryNodes, YACS::HMI::SceneNodeItem::reorganizeShrinkExpand(), YACS::HMI::SceneNodeItem::showOutScopeLinks(), and YACS::HMI::SceneNodeItem::updateLinks().
Referenced by YACS::HMI::SceneNodeItem::mouseDoubleClickEvent().
|
protected |
Definition at line 100 of file GuiEditor.hxx.