Logo Search packages:      
Sourcecode: rosegarden version File versions  Download package

void RosegardenGUIApp::slotFileNew (  )  [slot]

clears the document in the actual view to reuse it as the new document

Definition at line 2039 of file rosegardengui.cpp.

References RosegardenGUIDoc::isModified(), m_doc, RosegardenGUIDoc::saveIfModified(), and setDocument().

Referenced by fileNew(), and setupActions().

    RG_DEBUG << "RosegardenGUIApp::slotFileNew()\n";

    KTmpStatusMsg msg(i18n("Creating new document..."), this);

    bool makeNew = false;
    if (!m_doc->isModified()) {
        makeNew = true;
        // m_doc->closeDocument();
    } else if (m_doc->saveIfModified()) {
        makeNew = true;

    if (makeNew) {

        setDocument(new RosegardenGUIDoc(this, m_pluginManager));

Generated by  Doxygen 1.6.0   Back to index