27Connection::Connection( const TQString &sender, const TQString &signal,
28 const TQString &receiver, const TQString &slot)
32 m_receiver = receiver;
38ConnectionBuffer::ConnectionBuffer()
44ConnectionBuffer::fixName( const TQString & oldName, const TQString & newName)
46 for(Connection * c = first(); c; c = next())
56ConnectionBuffer::allConnectionsForWidget( const TQString &widget)
58 ConnectionBuffer *list = new ConnectionBuffer();
59 list->setAutoDelete( false);
60 for(Connection * c = first(); c; c = next())
62 if(( c->sender() == widget) || ( c->receiver() == widget))
77 if(! parentNode.namedItem( "connections").isNull())
78 connections = parentNode.namedItem( "connections").toElement();
80 connections = domDoc.createElement( "connections");
83 for(Connection * c = first(); c; c = next())
86 connection.setAttribute( "language", "C++");
87 connections.appendChild(connection);
90 connection.appendChild(sender);
95 connection.appendChild(signal);
100 connection.appendChild(receiver);
105 connection.appendChild(slot);
114 ConnectionBuffer * buff = allConnectionsForWidget(widget);
124 Connection *conn = new Connection();
125 conn->setSender( n.namedItem( "sender").toElement().text());
126 conn->setSignal( n.namedItem( "signal").toElement().text());
127 conn->setReceiver( n.namedItem( "receiver").toElement().text());
128 conn->setSlot( n.namedItem( "slot").toElement().text());
134ConnectionBuffer::removeAllConnectionsForWidget( const TQString &widget)
136 for(Connection * c = first(); c; c = next())
138 if(( c->sender() == widget) || ( c->receiver() == widget))
|