void PipelineEditor::QNodesEditor::\r
setWorkspace( TWorkspace* ws )\r
{\r
- if( this->m_Workspace == ws )\r
- return;\r
this->m_Workspace = ws;\r
this->m_Graph = TGraph::New( );\r
\r
return( NULL );\r
}\r
\r
-#include <iostream>\r
-\r
// -------------------------------------------------------------------------\r
void PipelineEditor::QNodesEditor::\r
_CreateBlock( TFilter* f, const QPointF& pnt )\r
// Add block\r
QNEBlock* b = new QNEBlock( 0, this->m_Scene );\r
b->setNamePort( f->GetName( ) );\r
- b->setTypePort( f->GetClassName( ).c_str( ) );\r
+ b->setTypePort( f->GetClassName( ) );\r
// TODO: b->setScenePos( pnt );\r
\r
// Add input ports\r
b->addOutputPort( oIt->c_str( ) );\r
\r
// Keep a trace of this visual graph\r
- this->m_Graph->InsertVertex( f->GetName( ), b );\r
+ this->m_Graph->SetVertex( f->GetName( ), b );\r
}\r
\r
// -------------------------------------------------------------------------\r