From acf699af8244896500e654cccdc8aae7e5b545db Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 31 Jan 2013 21:46:40 -0600 Subject: Rename KStartup for enhanced compatibility with KDE4 --- src/document/RosegardenGUIDoc.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/document/RosegardenGUIDoc.cpp') diff --git a/src/document/RosegardenGUIDoc.cpp b/src/document/RosegardenGUIDoc.cpp index 6d38f5c..028e7d3 100644 --- a/src/document/RosegardenGUIDoc.cpp +++ b/src/document/RosegardenGUIDoc.cpp @@ -71,7 +71,7 @@ #include "gui/editors/segment/TrackLabel.h" #include "gui/general/EditViewBase.h" #include "gui/general/GUIPalette.h" -#include "gui/kdeext/KStartupLogo.h" +#include "gui/kdeext/TDEStartupLogo.h" #include "gui/seqmanager/SequenceManager.h" #include "gui/studio/AudioPluginManager.h" #include "gui/studio/StudioControl.h" @@ -576,7 +576,7 @@ bool RosegardenGUIDoc::openDocument(const TQString& filename, // Check if file readable with fileInfo ? if (!fileInfo.isReadable() || fileInfo.isDir()) { - KStartupLogo::hideIfStillThere(); + TDEStartupLogo::hideIfStillThere(); TQString msg(i18n("Can't open file '%1'").arg(filename)); KMessageBox::sorry(0, msg); return false; @@ -637,7 +637,7 @@ bool RosegardenGUIDoc::openDocument(const TQString& filename, } if (!okay) { - KStartupLogo::hideIfStillThere(); + TDEStartupLogo::hideIfStillThere(); TQString msg(i18n("Error when parsing file '%1': \"%2\"") .arg(filename) .arg(errMsg)); @@ -694,7 +694,7 @@ bool RosegardenGUIDoc::openDocument(const TQString& filename, // generate any audio previews after loading the files m_audioFileManager.generatePreviews(); } catch (Exception e) { - KStartupLogo::hideIfStillThere(); + TDEStartupLogo::hideIfStillThere(); CurrentProgressDialog::freeze(); KMessageBox::error(0, strtoqstr(e.getMessage())); CurrentProgressDialog::thaw(); @@ -1601,7 +1601,7 @@ RosegardenGUIDoc::xmlParse(TQString fileContents, TQString &errMsg, if (handler.isCancelled()) { RG_DEBUG << "File load cancelled\n"; - KStartupLogo::hideIfStillThere(); + TDEStartupLogo::hideIfStillThere(); KMessageBox::information(0, i18n("File load cancelled")); cancelled = true; return true; @@ -1614,7 +1614,7 @@ RosegardenGUIDoc::xmlParse(TQString fileContents, TQString &errMsg, if (getSequenceManager() && !(getSequenceManager()->getSoundDriverStatus() & AUDIO_OK)) { - KStartupLogo::hideIfStillThere(); + TDEStartupLogo::hideIfStillThere(); CurrentProgressDialog::freeze(); if (handler.hasActiveAudio() || @@ -1659,7 +1659,7 @@ RosegardenGUIDoc::xmlParse(TQString fileContents, TQString &errMsg, if (er == 0) er = *rates.begin(); - KStartupLogo::hideIfStillThere(); + TDEStartupLogo::hideIfStillThere(); CurrentProgressDialog::freeze(); KMessageBox::information(0, i18n("

Incorrect audio sample rate

This composition contains audio files that were recorded or imported with the audio server running at a different sample rate (%1 Hz) from the current JACK server sample rate (%2 Hz).

Rosegarden will play this composition at the correct speed, but any audio files in it will probably sound awful.

Please consider re-starting the JACK server at the correct rate (%3 Hz) and re-loading this composition before you do any more work with it.

").arg(er).arg(sr).arg(er)); @@ -1669,7 +1669,7 @@ RosegardenGUIDoc::xmlParse(TQString fileContents, TQString &errMsg, } else if (sr != 0 && mixed) { - KStartupLogo::hideIfStillThere(); + TDEStartupLogo::hideIfStillThere(); CurrentProgressDialog::freeze(); KMessageBox::information(0, i18n("

Inconsistent audio sample rates

This composition contains audio files at more than one sample rate.

Rosegarden will play them at the correct speed, but any audio files that were recorded or imported at rates different from the current JACK server sample rate (%1 Hz) will probably sound awful.

Please see the audio file manager dialog for more details, and consider resampling any files that are at the wrong rate.

").arg(sr), @@ -1699,7 +1699,7 @@ RosegardenGUIDoc::xmlParse(TQString fileContents, TQString &errMsg, } msg += ""; - KStartupLogo::hideIfStillThere(); + TDEStartupLogo::hideIfStillThere(); CurrentProgressDialog::freeze(); KMessageBox::information(0, msg); CurrentProgressDialog::thaw(); @@ -1712,7 +1712,7 @@ RosegardenGUIDoc::xmlParse(TQString fileContents, TQString &errMsg, TQString msg(i18n("This file contains one or more old element types that are now deprecated.\nSupport for these elements may disappear in future versions of Rosegarden.\nWe recommend you re-save this file from this version of Rosegarden to ensure that it can still be re-loaded in future versions.")); slotDocumentModified(); // so file can be re-saved immediately - KStartupLogo::hideIfStillThere(); + TDEStartupLogo::hideIfStillThere(); CurrentProgressDialog::freeze(); KMessageBox::information(0, msg); CurrentProgressDialog::thaw(); @@ -2802,7 +2802,7 @@ RosegardenGUIDoc::finalizeAudioFile(InstrumentId iid) //!!! mtr just for now?: or better to do this once after the fact? //!!! m_audioFileManager.generatePreviews(); } catch (Exception e) { - KStartupLogo::hideIfStillThere(); + TDEStartupLogo::hideIfStillThere(); CurrentProgressDialog::freeze(); KMessageBox::error(0, strtoqstr(e.getMessage())); CurrentProgressDialog::thaw(); -- cgit v1.2.3