| 148 | |
| 149 | private: |
| 150 | void addConnection(BaseGraphConnection* _connection) |
| 151 | { |
| 152 | _connection->_setOwnerNode(this); |
| 153 | _connection->_getMainWidget()->eventMouseButtonPressed += |
| 154 | MyGUI::newDelegate(this, &BaseGraphNode::notifyMouseButtonPressed); |
| 155 | _connection->_getMainWidget()->eventMouseButtonReleased += |
| 156 | MyGUI::newDelegate(this, &BaseGraphNode::notifyMouseButtonReleased); |
| 157 | _connection->_getMainWidget()->eventMouseDrag += MyGUI::newDelegate(this, &BaseGraphNode::notifyMouseDrag); |
| 158 | _connection->_getMainWidget()->setUserData(_connection); |
| 159 | } |
| 160 | |
| 161 | void notifyMouseButtonPressed(MyGUI::Widget* _sender, int _left, int _top, MyGUI::MouseButton _id) |
| 162 | { |
nothing calls this directly
no test coverage detected