| 66 | } |
| 67 | |
| 68 | void PanelControllers::notifyChangeWidth(int _width) |
| 69 | { |
| 70 | int width = mMainWidget->getClientCoord().width; |
| 71 | |
| 72 | int half_width = (width - (mButtonLeft + mButtonRight + mButtonSpace)) / 2; |
| 73 | mButtonAdd->setSize(half_width, mButtonAdd->getHeight()); |
| 74 | mButtonDelete->setCoord( |
| 75 | mButtonAdd->getRight() + mButtonSpace, |
| 76 | mButtonDelete->getTop(), |
| 77 | width - (mButtonAdd->getRight() + mButtonSpace + mButtonRight), |
| 78 | mButtonDelete->getHeight()); |
| 79 | } |
| 80 | |
| 81 | void PanelControllers::notifyAdd(MyGUI::Widget* _sender) |
| 82 | { |
nothing calls this directly
no test coverage detected