internal:*/
| 88 | |
| 89 | /*internal:*/ |
| 90 | void _initialise(MyGUI::Widget* _parent, IGraphController* _view) |
| 91 | { |
| 92 | mView = _view; |
| 93 | if (!mLayout.empty()) |
| 94 | { |
| 95 | BaseLayout::initialise(mLayout, _parent); |
| 96 | } |
| 97 | initialise(); |
| 98 | |
| 99 | MyGUI::Window* window = mMainWidget->castType<MyGUI::Window>(false); |
| 100 | if (window != nullptr) |
| 101 | { |
| 102 | window->eventWindowChangeCoord += MyGUI::newDelegate(this, &BaseGraphNode::notifyWindowChangeCoord); |
| 103 | window->eventWindowButtonPressed += MyGUI::newDelegate(this, &BaseGraphNode::notifyWindowButtonPressed); |
| 104 | } |
| 105 | |
| 106 | // перекрывающийся стиль |
| 107 | mMainWidget->setWidgetStyle(MyGUI::WidgetStyle::Overlapped); |
| 108 | } |
| 109 | |
| 110 | void _shutdown() |
| 111 | { |
no test coverage detected