MCPcopy Create free account
hub / github.com/cinience/RedisStudio / OnItemDBClick

Method OnItemDBClick

RedisStudio/RedisDataUI.cpp:190–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190void RedisDataUI::OnItemDBClick(TNotifyUI &msg)
191{
192 CDuiString name = msg.pSender->GetClass();
193 CTreeNodeUI treeNodeUI;
194 if (name != treeNodeUI.GetClass())
195 {
196 return;
197 }
198
199 CTreeNodeUI* pActiveNode = dynamic_cast<CTreeNodeUI*>(msg.pSender);
200 if (!pActiveNode) return;
201
202 if (m_bIsKeyRender) return;
203
204 /// 非叶子节点并未加载子节点,则加载子节点
205 if (pActiveNode->GetTag() != 0 && !pActiveNode->IsHasChild())
206 {
207 if (m_oThread.isRunning())
208 {
209 UserMessageBox(GetHWND(), 10012, NULL, MB_ICONINFORMATION);
210 return;
211 }
212 m_pAssistNode = pActiveNode;
213 m_pWork.reset(new Base::RunnableAdapter<RedisDataUI>(*this, &RedisDataUI::BackgroudWorkForRenderLevel));
214 try
215 {
216 m_oThread.start(*m_pWork);
217 }
218 catch (std::exception& ex)
219 {
220 (void)(ex);
221 }
222 return;
223 }
224}
225
226void RedisDataUI::OnItemClick( TNotifyUI &msg )
227{

Callers

nothing calls this directly

Calls 7

UserMessageBoxFunction · 0.85
GetTagMethod · 0.80
IsHasChildMethod · 0.80
isRunningMethod · 0.80
resetMethod · 0.80
startMethod · 0.80
GetClassMethod · 0.45

Tested by

no test coverage detected