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

void RosegardenGUIApp::slotImportRG21 (  )  [slot]

Let the user select a Rosegarden 2.1 file for import

Definition at line 3803 of file rosegardengui.cpp.

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

Referenced by setupActions().

{
    if (m_doc && !m_doc->saveIfModified()) return;

    KURL url = KFileDialog::getOpenURL
        (":ROSEGARDEN21",
         i18n("*.rose|Rosegarden-2 files\n*|All files"), this,
         i18n("Open Rosegarden 2.1 File"));
    if (url.isEmpty()) { return; }

    QString tmpfile;
    KIO::NetAccess::download(url, tmpfile, this);
    openFile(tmpfile, ImportRG21);

    KIO::NetAccess::removeTempFile(tmpfile);
}


Generated by  Doxygen 1.6.0   Back to index