Skip to content

Technical notes on plugs (dis)connection from gui

jukea edited this page Jan 23, 2013 · 1 revision

connection created from GUI

  • SchemaGui::connect(PlugBox *plugA, PlugBox *plugB)
  • | disconnectAll(plugA); ...plugB also
  • | return _schema->connect(*plugA->plug(), *plugB->plug());
  • | | plugA.connect(&plugB);
  • | | emit connectionCreated(*this,Connection(....));
  • | | (signal caught)
  • | | SchemaGui::slotConnectionCreated(Schema,Connection)
  • | | | qpair<plugbox*,plugbox*> conn = getPairFromConnection(connection)
  • | | | conn.first->connect(conn.second);

disconnection made form load