MCPcopy Create free account
hub / github.com/MyGUI/mygui / PropertiesPanelView

Method PropertiesPanelView

Tools/LayoutEditor/PropertiesPanelView.cpp:16–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 3

newDelegateFunction · 0.85
getSizeMethod · 0.45
addItemMethod · 0.45

Tested by

no test coverage detected