| 152 | } |
| 153 | |
| 154 | void TextureControl::registerSelectorControl(SelectorControl* _control) |
| 155 | { |
| 156 | mSelectors.push_back(_control); |
| 157 | _control->setScale(mScaleValue); |
| 158 | _control->getMainWidget()->eventMouseWheel += MyGUI::newDelegate(this, &TextureControl::notifyMouseWheel); |
| 159 | _control->getMainWidget()->eventMouseButtonPressed += |
| 160 | MyGUI::newDelegate(this, &TextureControl::notifyMouseButtonPressed); |
| 161 | _control->getMainWidget()->eventMouseButtonReleased += |
| 162 | MyGUI::newDelegate(this, &TextureControl::notifyMouseButtonReleased); |
| 163 | _control->getMainWidget()->eventMouseDrag += MyGUI::newDelegate(this, &TextureControl::notifyMouseDrag); |
| 164 | _control->getMainWidget()->eventMouseMove += MyGUI::newDelegate(this, &TextureControl::notifyMouseMove); |
| 165 | } |
| 166 | |
| 167 | void TextureControl::notifyMouseButtonPressed(MyGUI::Widget* _sender, int _left, int _top, MyGUI::MouseButton _id) |
| 168 | { |
nothing calls this directly
no test coverage detected