| 21 | } |
| 22 | |
| 23 | void PropertyColourControl::OnInitialise(Control* _parent, MyGUI::Widget* _place, std::string_view /*_layoutName*/) |
| 24 | { |
| 25 | PropertyControl::OnInitialise(_parent, _place, "PropertyColourControl.layout"); |
| 26 | |
| 27 | assignWidget(mName, "Name", false); |
| 28 | assignWidget(mEdit, "Edit"); |
| 29 | assignWidget(mColour, "Colour"); |
| 30 | |
| 31 | mEdit->eventEditTextChange += MyGUI::newDelegate(this, &PropertyColourControl::notifyEditTextChange); |
| 32 | mColour->eventMouseButtonClick += MyGUI::newDelegate(this, &PropertyColourControl::notifyMouseButtonClick); |
| 33 | |
| 34 | mColourPanel = new ColourPanel(); |
| 35 | mColourPanel->Initialise(); |
| 36 | mColourPanel->setAlphaSupport(false); |
| 37 | mColourPanel->eventEndDialog.connect(this, &PropertyColourControl::notifyEndDialog); |
| 38 | mColourPanel->eventPreviewColour.connect(this, &PropertyColourControl::notifyPreviewColour); |
| 39 | } |
| 40 | |
| 41 | void PropertyColourControl::updateCaption() |
| 42 | { |
nothing calls this directly
no test coverage detected