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

Method notifyListChangePosition

UnitTests/UnitTest_GraphView/OpenSaveFileDialog.cpp:75–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73 }
74
75 void OpenSaveFileDialog::notifyListChangePosition(MyGUI::ListBox* _sender, size_t _index)
76 {
77 if (_index == MyGUI::ITEM_NONE)
78 {
79 mEditFileName->setCaption(MyGUI::UString());
80 }
81 else
82 {
83 common::FileInfo info = *_sender->getItemDataAt<common::FileInfo>(_index);
84 if (!info.folder)
85 mEditFileName->setCaption(info.name);
86 }
87 }
88
89 void OpenSaveFileDialog::notifyListSelectAccept(MyGUI::ListBox* _sender, size_t _index)
90 {

Callers

nothing calls this directly

Calls 2

UStringFunction · 0.85
setCaptionMethod · 0.45

Tested by

no test coverage detected