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

Method accept

UnitTests/UnitTest_GraphView/OpenSaveFileDialog.cpp:113–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111 }
112
113 void OpenSaveFileDialog::accept()
114 {
115 if (!mFolderMode)
116 {
117 mFileName = mEditFileName->getOnlyText();
118 if (!mFileName.empty())
119 eventEndDialog(this, true);
120 }
121 else
122 {
123 if (mListFiles->getIndexSelected() != MyGUI::ITEM_NONE)
124 {
125 common::FileInfo info = *mListFiles->getItemDataAt<common::FileInfo>(mListFiles->getIndexSelected());
126 if (!common::isParentDir(info.name.c_str()))
127 mCurrentFolder = common::concatenatePath(mCurrentFolder.asWStr(), info.name);
128 }
129 eventEndDialog(this, true);
130 }
131 }
132
133 void OpenSaveFileDialog::upFolder()
134 {

Callers

nothing calls this directly

Calls 6

isParentDirFunction · 0.85
concatenatePathFunction · 0.85
getOnlyTextMethod · 0.45
emptyMethod · 0.45
getIndexSelectedMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected