diff options
Diffstat (limited to 'src/gui/application/RosegardenGUIApp.cpp.orig')
-rw-r--r-- | src/gui/application/RosegardenGUIApp.cpp.orig | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/src/gui/application/RosegardenGUIApp.cpp.orig b/src/gui/application/RosegardenGUIApp.cpp.orig index 45fa853..3e479ad 100644 --- a/src/gui/application/RosegardenGUIApp.cpp.orig +++ b/src/gui/application/RosegardenGUIApp.cpp.orig @@ -745,7 +745,7 @@ void RosegardenGUIApp::setupActions() // Create the select icon // - TQString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/"); + TQString pixmapDir = TDEGlobal::dirs()->findResource("appdata", "pixmaps/"); TQCanvasPixmap pixmap(pixmapDir + "/toolbar/select.xpm"); TQIconSet icon = TQIconSet(pixmap); @@ -1691,7 +1691,7 @@ RosegardenGUIApp::openFile(TQString filePath, ImportType type) if (kapp->config()->readBoolEntry("alwaysusedefaultstudio", false)) { TQString autoloadFile = - KGlobal::dirs()->findResource("appdata", "autoload.rg"); + TDEGlobal::dirs()->findResource("appdata", "autoload.rg"); TQFileInfo autoloadFileInfo(autoloadFile); if (autoloadFileInfo.isReadable()) { @@ -1897,7 +1897,7 @@ void RosegardenGUIApp::setupFileDialogSpeedbar() config->writeEntry(TQString("IconGroup_%1").arg(n), 4); config->writeEntry(TQString("Icon_%1").arg(n), "folder"); config->writeEntry(TQString("URL_%1").arg(n), - KGlobal::dirs()->findResource("appdata", "examples/")); + TDEGlobal::dirs()->findResource("appdata", "examples/")); RG_DEBUG << "wrote url " << config->readEntry(TQString("URL_%1").arg(n)) << endl; @@ -2188,7 +2188,7 @@ void RosegardenGUIApp::slotFileOpen() // We haven't opened any files with this version of the // program before. Default to the examples directory. - TQString examplesDir = KGlobal::dirs()->findResource("appdata", "examples/"); + TQString examplesDir = TDEGlobal::dirs()->findResource("appdata", "examples/"); kapp->config()->setGroup("Recent Dirs"); TQString recentString = kapp->config()->readEntry("ROSEGARDEN", ""); kapp->config()->writeEntry @@ -3704,13 +3704,13 @@ void RosegardenGUIApp::slotImportProject() void RosegardenGUIApp::importProject(TQString filePath) { - KProcess *proc = new KProcess; + TDEProcess *proc = new TDEProcess; *proc << "rosegarden-project-package"; *proc << "--unpack"; *proc << filePath; KStartupLogo::hideIfStillThere(); - proc->start(KProcess::Block, KProcess::All); + proc->start(TDEProcess::Block, TDEProcess::All); if (!proc->normalExit() || proc->exitStatus()) { CurrentProgressDialog::freeze(); @@ -4640,16 +4640,16 @@ bool RosegardenGUIApp::launchSequencer(bool useExisting) if (useExisting) { if (m_seqManager) m_seqManager->checkSoundDriverStatus(false); - m_sequencerProcess = (KProcess*)SequencerExternal; + m_sequencerProcess = (TDEProcess*)SequencerExternal; return true; } - KProcess *proc = new KProcess; + TDEProcess *proc = new TDEProcess; *proc << "/usr/bin/killall"; *proc << "rosegardensequencer"; *proc << "lt-rosegardensequencer"; - proc->start(KProcess::Block, KProcess::All); + proc->start(TDEProcess::Block, TDEProcess::All); if (!proc->normalExit() || proc->exitStatus()) { RG_DEBUG << "couldn't kill any sequencer processes" << endl; @@ -4663,13 +4663,13 @@ bool RosegardenGUIApp::launchSequencer(bool useExisting) RG_DEBUG << "RosegardenGUIApp::launchSequencer() - " << "failed to kill existing sequencer\n"; - KProcess *proc = new KProcess; + TDEProcess *proc = new TDEProcess; *proc << "/usr/bin/killall"; *proc << "-9"; *proc << "rosegardensequencer"; *proc << "lt-rosegardensequencer"; - proc->start(KProcess::Block, KProcess::All); + proc->start(TDEProcess::Block, TDEProcess::All); if (proc->exitStatus()) { RG_DEBUG << "couldn't kill any sequencer processes" << endl; @@ -4686,7 +4686,7 @@ bool RosegardenGUIApp::launchSequencer(bool useExisting) KTmpStatusMsg msg(i18n("Starting the sequencer..."), this); if (!m_sequencerProcess) { - m_sequencerProcess = new KProcess; + m_sequencerProcess = new TDEProcess; (*m_sequencerProcess) << "rosegardensequencer"; @@ -4701,7 +4701,7 @@ bool RosegardenGUIApp::launchSequencer(bool useExisting) } } else { - RG_DEBUG << "RosegardenGUIApp::launchSequencer() - sequencer KProcess already created\n"; + RG_DEBUG << "RosegardenGUIApp::launchSequencer() - sequencer TDEProcess already created\n"; m_sequencerProcess->disconnect(); // disconnect processExit signal // it will be reconnected later on } @@ -4739,8 +4739,8 @@ bool RosegardenGUIApp::launchSequencer(bool useExisting) stateChanged("sequencer_running"); slotEnableTransport(true); - connect(m_sequencerProcess, TQT_SIGNAL(processExited(KProcess*)), - this, TQT_SLOT(slotSequencerExited(KProcess*))); + connect(m_sequencerProcess, TQT_SIGNAL(processExited(TDEProcess*)), + this, TQT_SLOT(slotSequencerExited(TDEProcess*))); } catch (Exception e) { m_sequencerProcess = 0; @@ -4788,12 +4788,12 @@ bool RosegardenGUIApp::launchJack() emit startupStatusMessage(i18n("Clearing down jackd...")); - KProcess *proc = new KProcess; // TODO: do it in a less clumsy way + TDEProcess *proc = new TDEProcess; // TODO: do it in a less clumsy way *proc << "/usr/bin/killall"; *proc << "-9"; *proc << "jackd"; - proc->start(KProcess::Block, KProcess::All); + proc->start(TDEProcess::Block, TDEProcess::All); if (proc->exitStatus()) RG_DEBUG << "couldn't kill any jackd processes" << endl; @@ -4813,7 +4813,7 @@ bool RosegardenGUIApp::launchJack() << splitCommand.size() << endl; // start jack process - m_jackProcess = new KProcess; + m_jackProcess = new TDEProcess; *m_jackProcess << splitCommand; @@ -4831,7 +4831,7 @@ void RosegardenGUIApp::slotDocumentDevicesResyncd() m_trackParameterBox->populateDeviceLists(); } -void RosegardenGUIApp::slotSequencerExited(KProcess*) +void RosegardenGUIApp::slotSequencerExited(TDEProcess*) { RG_DEBUG << "RosegardenGUIApp::slotSequencerExited Sequencer exited\n"; @@ -4877,13 +4877,13 @@ void RosegardenGUIApp::slotExportProject() return ; } - KProcess *proc = new KProcess; + TDEProcess *proc = new TDEProcess; *proc << "rosegarden-project-package"; *proc << "--pack"; *proc << rgFile; *proc << fileName; - proc->start(KProcess::Block, KProcess::All); + proc->start(TDEProcess::Block, TDEProcess::All); if (!proc->normalExit() || proc->exitStatus()) { KMessageBox::sorry(this, i18n("Failed to export to project file \"%1\"").arg(fileName)); @@ -5015,7 +5015,7 @@ void RosegardenGUIApp::slotExportLilyPond() exportLilyPondFile(fileName); } -std::map<KProcess *, KTempFile *> RosegardenGUIApp::m_lilyTempFileMap; +std::map<TDEProcess *, KTempFile *> RosegardenGUIApp::m_lilyTempFileMap; void RosegardenGUIApp::slotPrintLilyPond() @@ -5031,15 +5031,15 @@ void RosegardenGUIApp::slotPrintLilyPond() if (!exportLilyPondFile(file->name(), true)) { return ; } - KProcess *proc = new KProcess; + TDEProcess *proc = new TDEProcess; *proc << "rosegarden-lilypondview"; *proc << "--graphical"; *proc << "--print"; *proc << file->name(); - connect(proc, TQT_SIGNAL(processExited(KProcess *)), - this, TQT_SLOT(slotLilyPondViewProcessExited(KProcess *))); + connect(proc, TQT_SIGNAL(processExited(TDEProcess *)), + this, TQT_SLOT(slotLilyPondViewProcessExited(TDEProcess *))); m_lilyTempFileMap[proc] = file; - proc->start(KProcess::NotifyOnExit); + proc->start(TDEProcess::NotifyOnExit); } void RosegardenGUIApp::slotPreviewLilyPond() @@ -5055,18 +5055,18 @@ void RosegardenGUIApp::slotPreviewLilyPond() if (!exportLilyPondFile(file->name(), true)) { return ; } - KProcess *proc = new KProcess; + TDEProcess *proc = new TDEProcess; *proc << "rosegarden-lilypondview"; *proc << "--graphical"; *proc << "--pdf"; *proc << file->name(); - connect(proc, TQT_SIGNAL(processExited(KProcess *)), - this, TQT_SLOT(slotLilyPondViewProcessExited(KProcess *))); + connect(proc, TQT_SIGNAL(processExited(TDEProcess *)), + this, TQT_SLOT(slotLilyPondViewProcessExited(TDEProcess *))); m_lilyTempFileMap[proc] = file; - proc->start(KProcess::NotifyOnExit); + proc->start(TDEProcess::NotifyOnExit); } -void RosegardenGUIApp::slotLilyPondViewProcessExited(KProcess *p) +void RosegardenGUIApp::slotLilyPondViewProcessExited(TDEProcess *p) { delete m_lilyTempFileMap[p]; m_lilyTempFileMap.erase(p); @@ -7741,7 +7741,7 @@ RosegardenGUIApp::slotImportDefaultStudio() return ; TQString autoloadFile = - KGlobal::dirs()->findResource("appdata", "autoload.rg"); + TDEGlobal::dirs()->findResource("appdata", "autoload.rg"); TQFileInfo autoloadFileInfo(autoloadFile); @@ -7759,7 +7759,7 @@ RosegardenGUIApp::slotImportStudio() { RG_DEBUG << "RosegardenGUIApp::slotImportStudio()\n"; - TQString studioDir = KGlobal::dirs()->findResource("appdata", "library/"); + TQString studioDir = TDEGlobal::dirs()->findResource("appdata", "library/"); TQDir dir(studioDir); if (!dir.exists()) { studioDir = ":ROSEGARDENDEVICE"; |