예제 #1
0
void CGUIPythonWindowDialog::Show(bool show /* = true */)
{
  CSingleExit leaveIt(g_graphicsContext);
  ThreadMessage tMsg = {TMSG_GUI_PYTHON_DIALOG, 0, show ? 1 : 0};
  tMsg.lpVoid = this;
  g_application.getApplicationMessenger().SendMessage(tMsg, true);
}
예제 #2
0
void CGUIDialog::Show()
{
  if (!g_application.IsCurrentThread())
  {
    // make sure graphics lock is not held
    CSingleExit leaveIt(g_graphicsContext);
    CApplicationMessenger::Get().Show(this);
  }
  else
    Show_Internal();
}
예제 #3
0
void CGUIDialog::DoModal(int iWindowID /*= WINDOW_INVALID */, const CStdString &param)
{
  if (!g_application.IsCurrentThread())
  {
    // make sure graphics lock is not held
    CSingleExit leaveIt(g_graphicsContext);
    CApplicationMessenger::Get().DoModal(this, iWindowID, param);
  }
  else
    DoModal_Internal(iWindowID, param);
}