TutorialApplication::~TutorialApplication() { /* Remove ourself as a Window listener */ Ogre::WindowEventUtilities::removeWindowEventListener(mWindow, this); windowClosed(mWindow); delete mRoot; }
/**jsdoc * @typedef {object} OverlayWindow.Properties * @property {string} title * @property {string} source * @property {number} width * @property {number} height * @property {boolean} visible */ void QmlWindowClass::initQml(QVariantMap properties) { #ifndef DISABLE_QML auto offscreenUi = DependencyManager::get<OffscreenUi>(); _source = properties[SOURCE_PROPERTY].toString(); auto objectInitLambda = [&](QQmlContext* context, QObject* object) { _qmlWindow = object; context->setContextProperty(EVENT_BRIDGE_PROPERTY, this); context->engine()->setObjectOwnership(this, QQmlEngine::CppOwnership); context->engine()->setObjectOwnership(object, QQmlEngine::CppOwnership); if (properties.contains(TITLE_PROPERTY)) { object->setProperty(TITLE_PROPERTY, properties[TITLE_PROPERTY].toString()); } if (properties.contains(HEIGHT_PROPERTY) && properties.contains(WIDTH_PROPERTY)) { uvec2 requestedSize { properties[WIDTH_PROPERTY].toUInt(), properties[HEIGHT_PROPERTY].toUInt() }; requestedSize = glm::clamp(requestedSize, MIN_QML_WINDOW_SIZE, MAX_QML_WINDOW_SIZE); asQuickItem()->setSize(QSize(requestedSize.x, requestedSize.y)); } bool visible = !properties.contains(VISIBILE_PROPERTY) || properties[VISIBILE_PROPERTY].toBool(); object->setProperty(OFFSCREEN_VISIBILITY_PROPERTY, visible); object->setProperty(SOURCE_PROPERTY, _source); const QMetaObject *metaObject = _qmlWindow->metaObject(); // Forward messages received from QML on to the script connect(_qmlWindow, SIGNAL(sendToScript(QVariant)), this, SLOT(qmlToScript(const QVariant&)), Qt::QueuedConnection); connect(_qmlWindow, SIGNAL(visibleChanged()), this, SIGNAL(visibleChanged()), Qt::QueuedConnection); if (metaObject->indexOfSignal("resized") >= 0) connect(_qmlWindow, SIGNAL(resized(QSizeF)), this, SIGNAL(resized(QSizeF)), Qt::QueuedConnection); if (metaObject->indexOfSignal("moved") >= 0) connect(_qmlWindow, SIGNAL(moved(QVector2D)), this, SLOT(hasMoved(QVector2D)), Qt::QueuedConnection); connect(_qmlWindow, SIGNAL(windowClosed()), this, SLOT(hasClosed()), Qt::QueuedConnection); };
//------------------------------------------------------------------------------------- OgreBase::~OgreBase(void) { //Remove ourself as a Window listener Ogre::WindowEventUtilities::removeWindowEventListener(mWindow, this); windowClosed(mWindow); delete mRoot; }
void EGS_PegsPage::init() { #ifdef PP_DEBUG qDebug("In EGS_PegsPage::init()"); #endif config_reader = 0; connect(new_data_file,SIGNAL(toggled(bool)),this, SLOT(newDataFileChecked(bool))); connect(append_to_datafile,SIGNAL(toggled(bool)),this, SLOT(appendDataFileChecked(bool))); connect(ofile_b,SIGNAL(clicked()),this, SLOT(setOfile())); connect(go_button,SIGNAL(clicked()),this,SLOT(startPegs())); connect(cancel_button,SIGNAL(clicked()),this,SLOT(stopPegs())); new_data_file->setChecked(true); cancel_button->setEnabled(false); pegs_process = new QProcess; connect(pegs_process,SIGNAL(readyReadStandardOutput()),this,SLOT(readPegsStdout())); connect(pegs_process,SIGNAL(readyReadStandardError()),this,SLOT(readPegsStderr())); connect(pegs_process,SIGNAL(finished(int, QProcess::ExitStatus)),this,SLOT(pegsFinished())); run_output = new PEGS_RunOutput(0); connect(run_output,SIGNAL(windowClosed()),this, SLOT(outputClosed())); initializeCompositionTable(); }
toTextView::toTextView(QWidget *parent /* = 0*/, const char *name /* = 0*/) : QWidget(parent) , toEditWidget() { if (name) setObjectName(name); toEditWidget::FlagSet.Save = true; toEditWidget::FlagSet.Paste = true; toEditWidget::FlagSet.SelectAll = true; toEditWidget::FlagSet.SelectBlock = true; m_view = new QTextBrowser(this); m_view->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding); m_search = new toSearchReplace(this); m_search->SearchMode->hide(); QVBoxLayout *l = new QVBoxLayout(); l->setSpacing(0); l->setContentsMargins(0, 0, 0, 0); l->addWidget(m_view); l->addWidget(m_search); setLayout(l); connect(m_search, SIGNAL(searchNext(Search::SearchFlags)), this, SLOT(handleSearching(Search::SearchFlags))); connect(m_search, SIGNAL(windowClosed()), this, SLOT(setEditorFocus())); }
/*! \brief BPSK1000 decoder action triggered. * * This slot is called when the user activates the BPSK1000 * action. It will create an BPSK1000 decoder window and start * and start pushing data from the receiver to it. */ void MainWindow::on_actionBPSK1000_triggered() { if (dec_bpsk1000 != 0) { qDebug() << "BPSK1000 decoder already active."; dec_bpsk1000->raise(); } else { qDebug() << "Starting BPSK1000 decoder."; /* start sample sniffer */ if (rx->start_sniffer(48000, DATA_BUFFER_SIZE) == receiver::STATUS_OK) { dec_bpsk1000 = new Bpsk1000Win(this); connect(dec_bpsk1000, SIGNAL(windowClosed()), this, SLOT(bpsk1000win_closed())); dec_bpsk1000->show(); dec_timer->start(100); } else { int ret = QMessageBox::warning(this, tr("Gqrx error"), tr("Error starting sample sniffer.\n" "Close all data decoders and try again."), QMessageBox::Ok, QMessageBox::Ok); } } }
//------------------------------------------------------------------------------------- WebUIApp::~WebUIApp(void) { //Remove ourself as a Window listener Ogre::WindowEventUtilities::removeWindowEventListener(mWindow, this); windowClosed(mWindow); OGRE_DELETE mRoot; OGRE_DELETE mWebPanelFactory; }
//------------------------------------------------------------------------------------- BaseApplication::~BaseApplication(void) { if (mTrayMgr) delete mTrayMgr; //Remove ourself as a Window listener Ogre::WindowEventUtilities::removeWindowEventListener(mWindow.get(), this); windowClosed(mWindow.get()); }
//------------------------------------------------------------------------------------- //Destructor clear window and mRoot OGREBase::~OGREBase(void) { Ogre::WindowEventUtilities::removeWindowEventListener(mWindow, this); windowClosed(mWindow); if (mTrayMgr) delete mTrayMgr; if (mOverlaySystem) delete mOverlaySystem; delete mRoot; }
bool TrayApplet::init() { m_initialized = X11Support::makeSystemTray(m_panelWindow->winId()); if(!m_initialized) { // Another tray is active. return false; } connect(X11Support::instance(), SIGNAL(windowClosed(ulong)), this, SLOT(windowClosed(ulong))); connect(X11Support::instance(), SIGNAL(windowReconfigured(ulong,int,int,int,int)), this, SLOT(windowReconfigured(ulong,int,int,int,int))); connect(X11Support::instance(), SIGNAL(windowDamaged(ulong)), this, SLOT(windowDamaged(ulong))); connect(X11Support::instance(), SIGNAL(clientMessageReceived(ulong,ulong,void*)), this, SLOT(clientMessageReceived(ulong,ulong,void*))); return true; }
Game::~Game() { CloseGame(); //Remove ourself as a Window listener Ogre::WindowEventUtilities::removeWindowEventListener(mWindow, this); windowClosed(mWindow); delete mRoot; }
//------------------------------------------------------------------------------------- UndeadLand::~UndeadLand(void) { if( mGorilla ) delete mGorilla; if( mCameraMan ) delete mCameraMan; Ogre::WindowEventUtilities::removeWindowEventListener(mWindow, this); windowClosed(mWindow); delete mRoot; }
application::~application() { if (tray_mgr) delete tray_mgr; if (cameraman) delete cameraman; Ogre::WindowEventUtilities::removeWindowEventListener (wnd, this); windowClosed(wnd); delete root; }
ClientChatRoom::ClientChatRoom(ChatSocket* socket, quint32 id, QString name, quint32 userId, QList<UserInfo> userInfo) : AbstractChatRoom(id, name), _socket(socket), _userId(userId), userInfo(userInfo) { window = new ChatRoomWindow(); connect(window,SIGNAL(textEntered(QString)),this,SLOT(sendMessage(QString))); connect(window,SIGNAL(windowClosed()),this,SLOT(sendUserQuit())); window->setUserList(userInfo); window->setTitle(_name); window->show(); }
//------------------------------------------------------------------------------------- BaseApplication::~BaseApplication(void) { if (mTrayMgr) delete mTrayMgr; if (mCameraMan) delete mCameraMan; //Remove ourself as a Window listener Ogre::WindowEventUtilities::removeWindowEventListener(mWindow, this); windowClosed(mWindow); delete mRoot; }
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); image = new Image(this); connect(image, SIGNAL(windowClosed()), qApp, SLOT(quit())); }
SystemOgre::ControllerAbstract::~ControllerAbstract(void) { if (mTrayMgr) delete mTrayMgr; if (mCameraMan) delete mCameraMan; //Remove ourself as a Window listener Ogre::WindowEventUtilities::removeWindowEventListener(mWindow, this); windowClosed(mWindow); delete mRoot; }
ServerGraphics::~ServerGraphics (void) { // Destroy camera manager. if (mCameraMan) delete mCameraMan; //Remove ourself as a Window listener Ogre::WindowEventUtilities::removeWindowEventListener(mWindow, this); windowClosed(mWindow); delete mRoot; }
//--------------------------------------------------------------------------- EBase::~EBase(void) { if (mTrayMgr) delete mTrayMgr; if (mCameraMan) delete mCameraMan; if (mOverlaySystem) delete mOverlaySystem; // Remove ourself as a Window listener Ogre::WindowEventUtilities::removeWindowEventListener(mWindow, this); windowClosed(mWindow); delete mRoot; }
TutorialApplication::~TutorialApplication() { mSceneMgr->destroyQuery(mRayScnQuery); //Remove ourself as a Window listener Ogre::WindowEventUtilities::removeWindowEventListener(mWindow, this); windowClosed(mWindow); delete mRoot; }
GameFrameListener::~GameFrameListener() { m_InputManager->destroyInputObject( m_Keyboard ); m_InputManager->destroyInputObject( m_Mouse ); OIS::InputManager::destroyInputSystem( m_InputManager ); //Remove ourself as a Window listener Ogre::WindowEventUtilities::removeWindowEventListener( m_Window, this ); windowClosed( m_Window ); }
PopupWindow* PopupWindowsStack::newWindow() { qDebug() << Q_FUNC_INFO << "{"; PopupWindow* p = new PopupWindow(newCoords()); connect(p, SIGNAL(closePopupWindow()), this, SLOT(windowClosed())); connect(p, SIGNAL(mouseEntered()), this, SIGNAL(mouseEntered())); connect(p, SIGNAL(mouseLeaved()), this, SIGNAL(mouseLeaved())); existingWindows.append(p); shownWindows.append(p); qDebug() << Q_FUNC_INFO << "}"; return p; }
Application::~Application() { if (_window) { Ogre::WindowEventUtilities::removeWindowEventListener(_window, this); windowClosed(_window); } if (_root) delete _root; ::Logger::deleteInstance(); ::Algo::MD5::deleteInstance(); ::Network::Manager::Client::deleteInstance(); }
//------------------------------------------------------------------------------------- BaseApplication::~BaseApplication(void) { if (mTrayMgr) delete mTrayMgr; if (mCameraMan) delete mCameraMan; //Remove ourself as a Window listener Ogre::WindowEventUtilities::removeWindowEventListener(mWindow, this); windowClosed(mWindow); delete mRoot; #if (OGRE_PLATFORM == OGRE_PLATFORM_APPLE_IOS) || (OGRE_PLATFORM == OGRE_PLATFORM_ANDROID) m_StaticPluginLoader.unload(); #endif }
//--------------------------------------------------------------------------- BaseApplication::~BaseApplication(void) { if (mTrayMgr) delete mTrayMgr; if (mCameraMan) delete mCameraMan; if (mOverlaySystem) delete mOverlaySystem; if (mARToolkit) delete mARToolkit; if (mPhysx) delete mPhysx; // Remove ourself as a Window listener Ogre::WindowEventUtilities::removeWindowEventListener(mWindow, this); windowClosed(mWindow); delete mRoot; }
bool TrayApplet::init(QWidget* parent) { if(!(m_initialized = X11Core::makeSystemTray(winId()))) return false; // Another tray is active. connect(X11Core::instance(), SIGNAL(clientMessageReceived(WId,Atom,void*)), this , SLOT(onClientMessageReceived(WId,Atom,void*))); connect(X11Core::instance(), SIGNAL(windowClosed(WId)), this , SLOT(onWindowClosed(WId))); return true; }
/*! Destructor. */ vpAROgre::~vpAROgre(void) { // Destroy 3D scene destroyScene(); // Close OIS closeOIS(); if ( mWindow) { Ogre::WindowEventUtilities::removeWindowEventListener(mWindow, this); windowClosed(mWindow); } // Delete root if (mRoot) delete mRoot; }
void QQnxScreenEventHandler::handleCloseEvent(screen_event_t event) { screen_window_t window = 0; if (screen_get_event_property_pv(event, SCREEN_PROPERTY_WINDOW, (void**)&window) != 0) qFatal("QQnx: failed to query window property, errno=%d", errno); Q_EMIT windowClosed(window); // Map window handle to top-level QWindow QWindow *w = QQnxIntegration::window(window); if (w != 0) { QWindowSystemInterface::handleCloseEvent(w); } }
void GStreamerFullScreenVideoHandler::enterFullScreen() { if (m_videoElement->platformMedia().type != WebCore::PlatformMedia::GStreamerGWorldType) return; GStreamerGWorld* gstreamerGWorld = m_videoElement->platformMedia().media.gstreamerGWorld; if (!gstreamerGWorld->enterFullscreen()) return; m_fullScreenWidget = reinterpret_cast<FullScreenVideoWindow*>(gstreamerGWorld->platformVideoWindow()->window()); m_fullScreenWidget->setVideoElement(m_videoElement); connect(m_fullScreenWidget, SIGNAL(closed()), this, SLOT(windowClosed())); m_fullScreenWidget->showFullScreen(); }
//--------------------------------------------------------------------------- BaseApplication::~BaseApplication(void) { if (mTrayMgr) delete mTrayMgr; if (mCameraMan) delete mCameraMan; if (mOverlaySystem) delete mOverlaySystem; delete player; delete gameMap; delete mStats; delete mStopwatch; // Remove ourself as a Window listener Ogre::WindowEventUtilities::removeWindowEventListener(mWindow, this); windowClosed(mWindow); delete mRoot; }