struct progdlg *ProgressFrame::showProgress(bool animate, bool terminate_is_stop, gboolean *stop_flag, int value) { setMaximumValue(100); ui->progressBar->setValue(value); progress_dialog_.elapsed_timer->invalidate(); emit showRequested(animate, terminate_is_stop, stop_flag); return &progress_dialog_; }
void StatusIndicatorMenuWindow::resetMenuWidget() { if (menuWidget) delete menuWidget; menuWidget = new StatusIndicatorMenu(); connect(menuWidget, SIGNAL(showRequested()), this, SLOT(makeVisible())); connect(menuWidget, SIGNAL(hideRequested()), menuWidget, SLOT(disappear())); connect(menuWidget, SIGNAL(disappeared()), this, SLOT(hideWindow())); // Initialize the status indicator menu after the first USB banner has been shown QTimer::singleShot(7000, this, SLOT(initializeMenuWidget())); }
void GstThread::run() { m_pipeline = new Pipeline(m_winId, m_videoLocation); connect(m_pipeline, SIGNAL(showRequested()), this, SLOT(show())); m_pipeline->start(); //it runs the gmainloop on win32 #ifndef WIN32 //works like the gmainloop on linux (GstEvent are handled) connect(m_pipeline, SIGNAL(stopRequested()), this, SLOT(quit())); exec(); #endif m_pipeline->unconfigure(); }
void Ut_StatusIndicatorMenuWindow::testInitialization() { QVERIFY(statusIndicatorMenuWindow->menuWidget); QVERIFY(disconnect(statusIndicatorMenuWindow, SIGNAL(displayExited()), statusIndicatorMenuWindow, SLOT(displayInActive()))); QVERIFY(disconnect(statusIndicatorMenuWindow, SIGNAL(displayEntered()), statusIndicatorMenuWindow, SLOT(displayActive()))); QVERIFY(disconnect(statusIndicatorMenuWindow->menuWidget, SIGNAL(showRequested()), statusIndicatorMenuWindow, SLOT(makeVisible()))); QVERIFY(disconnect(statusIndicatorMenuWindow->menuWidget, SIGNAL(hideRequested()), statusIndicatorMenuWindow->menuWidget, SLOT(disappear()))); QVERIFY(disconnect(statusIndicatorMenuWindow->menuWidget, SIGNAL(disappeared()), statusIndicatorMenuWindow, SLOT(hideWindow()))); QVERIFY(gSceneWindowStateMap.contains(statusIndicatorMenuWindow->menuWidget)); QCOMPARE(gSceneWindowStateMap[statusIndicatorMenuWindow->menuWidget], MSceneWindow::Disappeared); }
void GstThread::show() { emit showRequested(); }
void Pipeline::show() { emit showRequested(); }
progdlg *ProgressFrame::showBusy(bool animate, bool terminate_is_stop, gboolean *stop_flag) { setMaximumValue(0); emit showRequested(animate, terminate_is_stop, stop_flag); return &progress_dialog_; }
void ExternalPlugin::show(const std::string& key) { LOG(Trace, "show, key = " << key); emit showRequested(key); }