Logo Search packages:      
Sourcecode: rosegarden version File versions

bool Rosegarden::RosegardenGUIApp::queryClose (  )  [protected, virtual]

queryClose is called by KTMainWindow on each closeEvent of a window. Against the default implementation (only returns true), this calls saveModified() on the document object to ask if the document shall be saved if Modified; on cancel the closeEvent is rejected.

See also:


Definition at line 2052 of file RosegardenGUIApp.cpp.

References m_doc, and Rosegarden::RosegardenGUIDoc::saveIfModified().

    RG_DEBUG << "RosegardenGUIApp::queryClose" << endl;

    _settingLog(QString("SETTING 1 : transport flap extended = %1").arg(getTransport()->isExpanded()));
    _settingLog(QString("SETTING 1 : show track labels = %1").arg(m_viewTrackLabels->isChecked()));

    QString errMsg;

    bool canClose = m_doc->saveIfModified();

    if (canClose && m_transport) {

        // or else the closing of the transport will toggle off the 
        // 'view transport' action, and its state will be saved as 
        // 'off'

        disconnect(m_transport, SIGNAL(closed()),
                   this, SLOT(slotCloseTransport()));

    return canClose;


Generated by  Doxygen 1.6.0   Back to index