@ -745,7 +745,7 @@ void RosegardenGUIApp::setupActions()
// Create the select icon
//
TQString pixmapDir = K Global: : dirs ( ) - > findResource ( " appdata " , " pixmaps/ " ) ;
TQString pixmapDir = TDE Global: : 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 =
K Global: : dirs ( ) - > findResource ( " appdata " , " autoload.rg " ) ;
TDE Global: : 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 ) ,
K Global: : dirs ( ) - > findResource ( " appdata " , " examples/ " ) ) ;
TDE Global: : 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 = K Global: : dirs ( ) - > findResource ( " appdata " , " examples/ " ) ;
TQString examplesDir = TDE Global: : 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 K Process;
TDEProcess * proc = new TDE Process;
* proc < < " rosegarden-project-package " ;
* proc < < " --unpack " ;
* proc < < filePath ;
KStartupLogo : : hideIfStillThere ( ) ;
proc - > start ( KProcess: : Block , K Process: : All ) ;
proc - > start ( TDEProcess: : Block , TDE Process: : 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 = ( K Process* ) SequencerExternal ;
m_sequencerProcess = ( TDE Process* ) SequencerExternal ;
return true ;
}
KProcess * proc = new K Process;
TDEProcess * proc = new TDE Process;
* proc < < " /usr/bin/killall " ;
* proc < < " rosegardensequencer " ;
* proc < < " lt-rosegardensequencer " ;
proc - > start ( KProcess: : Block , K Process: : All ) ;
proc - > start ( TDEProcess: : Block , TDE Process: : 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 K Process;
TDEProcess * proc = new TDE Process;
* proc < < " /usr/bin/killall " ;
* proc < < " -9 " ;
* proc < < " rosegardensequencer " ;
* proc < < " lt-rosegardensequencer " ;
proc - > start ( KProcess: : Block , K Process: : All ) ;
proc - > start ( TDEProcess: : Block , TDE Process: : 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 K Process;
m_sequencerProcess = new TDE Process;
( * m_sequencerProcess ) < < " rosegardensequencer " ;
@ -4701,7 +4701,7 @@ bool RosegardenGUIApp::launchSequencer(bool useExisting)
}
} else {
RG_DEBUG < < " RosegardenGUIApp::launchSequencer() - sequencer K Process already created\n " ;
RG_DEBUG < < " RosegardenGUIApp::launchSequencer() - sequencer TDE Process 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 ( K Process* ) ) ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSequencerExited ( K Process* ) ) ) ;
connect ( m_sequencerProcess , TQT_SIGNAL ( processExited ( TDE Process* ) ) ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotSequencerExited ( TDE Process* ) ) ) ;
} catch ( Exception e ) {
m_sequencerProcess = 0 ;
@ -4788,12 +4788,12 @@ bool RosegardenGUIApp::launchJack()
emit startupStatusMessage ( i18n ( " Clearing down jackd... " ) ) ;
KProcess * proc = new K Process; // TODO: do it in a less clumsy way
TDEProcess * proc = new TDE Process; // TODO: do it in a less clumsy way
* proc < < " /usr/bin/killall " ;
* proc < < " -9 " ;
* proc < < " jackd " ;
proc - > start ( KProcess: : Block , K Process: : All ) ;
proc - > start ( TDEProcess: : Block , TDE Process: : 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 K Process;
m_jackProcess = new TDE Process;
* m_jackProcess < < splitCommand ;
@ -4831,7 +4831,7 @@ void RosegardenGUIApp::slotDocumentDevicesResyncd()
m_trackParameterBox - > populateDeviceLists ( ) ;
}
void RosegardenGUIApp : : slotSequencerExited ( K Process* )
void RosegardenGUIApp : : slotSequencerExited ( TDE Process* )
{
RG_DEBUG < < " RosegardenGUIApp::slotSequencerExited Sequencer exited \n " ;
@ -4877,13 +4877,13 @@ void RosegardenGUIApp::slotExportProject()
return ;
}
KProcess * proc = new K Process;
TDEProcess * proc = new TDE Process;
* proc < < " rosegarden-project-package " ;
* proc < < " --pack " ;
* proc < < rgFile ;
* proc < < fileName ;
proc - > start ( KProcess: : Block , K Process: : All ) ;
proc - > start ( TDEProcess: : Block , TDE Process: : 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 < K Process * , KTempFile * > RosegardenGUIApp : : m_lilyTempFileMap ;
std : : map < TDE Process * , KTempFile * > RosegardenGUIApp : : m_lilyTempFileMap ;
void RosegardenGUIApp : : slotPrintLilyPond ( )
@ -5031,15 +5031,15 @@ void RosegardenGUIApp::slotPrintLilyPond()
if ( ! exportLilyPondFile ( file - > name ( ) , true ) ) {
return ;
}
KProcess * proc = new K Process;
TDEProcess * proc = new TDE Process;
* proc < < " rosegarden-lilypondview " ;
* proc < < " --graphical " ;
* proc < < " --print " ;
* proc < < file - > name ( ) ;
connect ( proc , TQT_SIGNAL ( processExited ( K Process * ) ) ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotLilyPondViewProcessExited ( K Process * ) ) ) ;
connect ( proc , TQT_SIGNAL ( processExited ( TDE Process * ) ) ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotLilyPondViewProcessExited ( TDE Process * ) ) ) ;
m_lilyTempFileMap [ proc ] = file ;
proc - > start ( K Process: : NotifyOnExit ) ;
proc - > start ( TDE Process: : NotifyOnExit ) ;
}
void RosegardenGUIApp : : slotPreviewLilyPond ( )
@ -5055,18 +5055,18 @@ void RosegardenGUIApp::slotPreviewLilyPond()
if ( ! exportLilyPondFile ( file - > name ( ) , true ) ) {
return ;
}
KProcess * proc = new K Process;
TDEProcess * proc = new TDE Process;
* proc < < " rosegarden-lilypondview " ;
* proc < < " --graphical " ;
* proc < < " --pdf " ;
* proc < < file - > name ( ) ;
connect ( proc , TQT_SIGNAL ( processExited ( K Process * ) ) ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotLilyPondViewProcessExited ( K Process * ) ) ) ;
connect ( proc , TQT_SIGNAL ( processExited ( TDE Process * ) ) ,
TQT_TQOBJECT ( this ) , TQT_SLOT ( slotLilyPondViewProcessExited ( TDE Process * ) ) ) ;
m_lilyTempFileMap [ proc ] = file ;
proc - > start ( K Process: : NotifyOnExit ) ;
proc - > start ( TDE Process: : NotifyOnExit ) ;
}
void RosegardenGUIApp : : slotLilyPondViewProcessExited ( K Process * p )
void RosegardenGUIApp : : slotLilyPondViewProcessExited ( TDE Process * p )
{
delete m_lilyTempFileMap [ p ] ;
m_lilyTempFileMap . erase ( p ) ;
@ -7568,11 +7568,11 @@ RosegardenGUIApp::slotTutorial()
if ( ! exe . isNull ( ) )
{
KProcess * proc = new K Process;
TDEProcess * proc = new TDE Process;
* proc < < " x-www-browser " ;
* proc < < " http://rosegarden.sourceforge.net/tutorial/en/chapter-0.html " ;
proc - > start ( K Process: : DontCare ) ;
proc - > start ( TDE Process: : DontCare ) ;
proc - > detach ( ) ;
delete proc ;
}
@ -7590,11 +7590,11 @@ RosegardenGUIApp::slotBugGuidelines()
if ( ! exe . isNull ( ) )
{
KProcess * proc = new K Process;
TDEProcess * proc = new TDE Process;
* proc < < " x-www-browser " ;
* proc < < " http://rosegarden.sourceforge.net/tutorial/bug-guidelines.html " ;
proc - > start ( K Process: : DontCare ) ;
proc - > start ( TDE Process: : DontCare ) ;
proc - > detach ( ) ;
delete proc ;
}
@ -7771,7 +7771,7 @@ RosegardenGUIApp::slotImportDefaultStudio()
return ;
TQString autoloadFile =
K Global: : dirs ( ) - > findResource ( " appdata " , " autoload.rg " ) ;
TDE Global: : dirs ( ) - > findResource ( " appdata " , " autoload.rg " ) ;
TQFileInfo autoloadFileInfo ( autoloadFile ) ;
@ -7789,7 +7789,7 @@ RosegardenGUIApp::slotImportStudio()
{
RG_DEBUG < < " RosegardenGUIApp::slotImportStudio() \n " ;
TQString studioDir = K Global: : dirs ( ) - > findResource ( " appdata " , " library/ " ) ;
TQString studioDir = TDE Global: : dirs ( ) - > findResource ( " appdata " , " library/ " ) ;
TQDir dir ( studioDir ) ;
if ( ! dir . exists ( ) ) {
studioDir = " :ROSEGARDENDEVICE " ;