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

void Rosegarden::RosegardenGUIApp::slotPrintLilyPond (  )  [slot]

Export to a temporary file and process

Definition at line 5024 of file RosegardenGUIApp.cpp.

References exportLilyPondFile().

Referenced by setupActions().

    KTmpStatusMsg msg(i18n("Printing LilyPond file..."), this);
    KTempFile *file = new KTempFile(QString::null, ".ly");
    if (!file->name()) {
        KMessageBox::sorry(this, i18n("Failed to open a temporary file for LilyPond export."));
        delete file;
    if (!exportLilyPondFile(file->name(), true)) {
        return ;
    KProcess *proc = new KProcess;
    *proc << "rosegarden-lilypondview";
    *proc << "--graphical";
    *proc << "--print";
    *proc << file->name();
    connect(proc, SIGNAL(processExited(KProcess *)),
            this, SLOT(slotLilyPondViewProcessExited(KProcess *)));
    m_lilyTempFileMap[proc] = file;

Generated by  Doxygen 1.6.0   Back to index