| 14 | { |
| 15 | |
| 16 | PropertiesPanelView::PropertiesPanelView(MyGUI::Widget* _parent) : |
| 17 | BaseLayout("PropertiesPanelView.layout", _parent) |
| 18 | { |
| 19 | assignBase(mPanelView, "scroll_View"); |
| 20 | |
| 21 | MyGUI::Window* window = mMainWidget->castType<MyGUI::Window>(false); |
| 22 | if (window != nullptr) |
| 23 | { |
| 24 | window->eventWindowChangeCoord += MyGUI::newDelegate(this, &PropertiesPanelView::notifyWindowChangeCoord); |
| 25 | mOldSize = window->getSize(); |
| 26 | } |
| 27 | |
| 28 | mPanelMainProperties = new PanelMainProperties(); |
| 29 | mPanelView->addItem(mPanelMainProperties); |
| 30 | |
| 31 | mPanelTemplateProperties = new PanelTemplateProperties(); |
| 32 | mPanelView->addItem(mPanelTemplateProperties); |
| 33 | |
| 34 | mPanelExtensionProperties = new PanelExtensionProperties(); |
| 35 | mPanelView->addItem(mPanelExtensionProperties); |
| 36 | |
| 37 | mPanelItems = new PanelItems(); |
| 38 | mPanelView->addItem(mPanelItems); |
| 39 | |
| 40 | mPanelUserData = new PanelUserData(); |
| 41 | mPanelView->addItem(mPanelUserData); |
| 42 | |
| 43 | mPanelControllers = new PanelControllers(); |
| 44 | mPanelView->addItem(mPanelControllers); |
| 45 | |
| 46 | WidgetSelectorManager::getInstance().eventChangeSelectedWidget += |
| 47 | MyGUI::newDelegate(this, &PropertiesPanelView::notifyChangeSelectedWidget); |
| 48 | |
| 49 | notifyChangeSelectedWidget(nullptr); |
| 50 | } |
| 51 | |
| 52 | PropertiesPanelView::~PropertiesPanelView() |
| 53 | { |
nothing calls this directly
no test coverage detected