MCPcopy Create free account
hub / github.com/GrapheneCt/NetStream / OpenListView

Method OpenListView

NetStream/source/dialog.cpp:193–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193ui::ListView *dialog::OpenListView(
194 Plugin *workPlugin,
195 const wchar_t *titleText)
196{
197 if (s_currentDialog != CURRENT_DIALOG_NONE)
198 return NULL;
199
200 bool isMainThread = thread::ThreadIDCache::Check();
201
202 paf::wstring title = titleText;
203
204 if (!isMainThread)
205 thread::RMutex::MainThreadMutex()->Lock();
206
207 s_currentDialog = CommonGuiDialog::Dialog::Show(workPlugin, &title, NULL, &CommonGuiDialog::Param::s_dialogXLView, CommonGuiEventHandler, NULL);
208 ui::Widget *ret = CommonGuiDialog::Dialog::GetWidget(s_currentDialog, CommonGuiDialog::REGISTER_ID_LIST_VIEW);
209 s_currentPlugin = workPlugin;
210
211 if (!isMainThread)
212 thread::RMutex::MainThreadMutex()->Unlock();
213
214 return (ui::ListView *)ret;
215}
216
217ui::ScrollView *dialog::OpenScrollView(
218 Plugin *workPlugin,

Callers

nothing calls this directly

Calls 2

LockMethod · 0.80
UnlockMethod · 0.80

Tested by

no test coverage detected