| 191 | } |
| 192 | |
| 193 | ui::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 | |
| 217 | ui::ScrollView *dialog::OpenScrollView( |
| 218 | Plugin *workPlugin, |