summaryrefslogtreecommitdiffstats
path: root/src/gui/application
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/application')
-rw-r--r--src/gui/application/LircClient.cpp10
-rw-r--r--src/gui/application/LircClient.h6
-rw-r--r--src/gui/application/LircCommander.cpp58
-rw-r--r--src/gui/application/LircCommander.h2
-rw-r--r--src/gui/application/RosegardenApplication.cpp28
-rw-r--r--src/gui/application/RosegardenApplication.h14
-rw-r--r--src/gui/application/RosegardenGUIApp.cpp1558
-rw-r--r--src/gui/application/RosegardenGUIApp.cpp.orig1554
-rw-r--r--src/gui/application/RosegardenGUIApp.h132
-rw-r--r--src/gui/application/RosegardenGUIView.cpp450
-rw-r--r--src/gui/application/RosegardenGUIView.h38
-rw-r--r--src/gui/application/RosegardenIface.cpp16
-rw-r--r--src/gui/application/RosegardenIface.h30
-rw-r--r--src/gui/application/SetWaitCursor.cpp8
-rw-r--r--src/gui/application/SetWaitCursor.h6
-rw-r--r--src/gui/application/StartupTester.cpp70
-rw-r--r--src/gui/application/StartupTester.h40
-rw-r--r--src/gui/application/main.cpp82
18 files changed, 2051 insertions, 2051 deletions
diff --git a/src/gui/application/LircClient.cpp b/src/gui/application/LircClient.cpp
index ae731d7..7664b9e 100644
--- a/src/gui/application/LircClient.cpp
+++ b/src/gui/application/LircClient.cpp
@@ -32,8 +32,8 @@
#include "misc/Debug.h"
#include "base/Exception.h"
-#include <qobject.h>
-#include <qsocketnotifier.h>
+#include <tqobject.h>
+#include <tqsocketnotifier.h>
#include <fcntl.h>
#include <cstdlib>
@@ -41,7 +41,7 @@ namespace Rosegarden
{
LircClient::LircClient(void)
- : QObject()
+ : TQObject()
{
int socketFlags;
@@ -61,8 +61,8 @@ LircClient::LircClient(void)
fcntl(socketFlags, F_SETFL, socketFlags | O_NONBLOCK);
}
- m_socketNotifier = new QSocketNotifier(m_socket, QSocketNotifier::Read, 0);
- connect(m_socketNotifier, SIGNAL(activated(int)), this, SLOT(readButton()) );
+ m_socketNotifier = new TQSocketNotifier(m_socket, TQSocketNotifier::Read, 0);
+ connect(m_socketNotifier, TQT_SIGNAL(activated(int)), this, TQT_SLOT(readButton()) );
RG_DEBUG << "LircClient::LircClient: connected to socket: " << m_socket << endl;
}
diff --git a/src/gui/application/LircClient.h b/src/gui/application/LircClient.h
index b80d3d7..3f69ce1 100644
--- a/src/gui/application/LircClient.h
+++ b/src/gui/application/LircClient.h
@@ -31,10 +31,10 @@
#ifdef HAVE_LIRC
-#include <qobject.h>
+#include <tqobject.h>
#include <lirc/lirc_client.h>
-class QSocketNotifier;
+class TQSocketNotifier;
namespace Rosegarden
@@ -57,7 +57,7 @@ signals:
private:
int m_socket;
- QSocketNotifier *m_socketNotifier;
+ TQSocketNotifier *m_socketNotifier;
struct lirc_config *m_config;
char *m_command;
};
diff --git a/src/gui/application/LircCommander.cpp b/src/gui/application/LircCommander.cpp
index 53562ca..e323539 100644
--- a/src/gui/application/LircCommander.cpp
+++ b/src/gui/application/LircCommander.cpp
@@ -36,44 +36,44 @@
#include "RosegardenGUIApp.h"
#include "RosegardenGUIView.h"
-#include <qobject.h>
+#include <tqobject.h>
namespace Rosegarden
{
LircCommander::LircCommander(LircClient *lirc, RosegardenGUIApp *rgGUIApp)
- : QObject()
+ : TQObject()
{
m_lirc = lirc;
m_rgGUIApp = rgGUIApp;
- connect(m_lirc, SIGNAL(buttonPressed(char *)),
- this, SLOT(slotExecute(char *)) );
-
- connect(this, SIGNAL(play()),
- m_rgGUIApp, SLOT(slotPlay()) );
- connect(this, SIGNAL(stop()),
- m_rgGUIApp, SLOT(slotStop()) );
- connect(this, SIGNAL(record()),
- m_rgGUIApp, SLOT(slotRecord()) );
- connect(this, SIGNAL(rewind()),
- m_rgGUIApp, SLOT(slotRewind()) );
- connect(this, SIGNAL(rewindToBeginning()),
- m_rgGUIApp, SLOT(slotRewindToBeginning()) );
- connect(this, SIGNAL(fastForward()),
- m_rgGUIApp, SLOT(slotFastforward()) );
- connect(this, SIGNAL(fastForwardToEnd()),
- m_rgGUIApp, SLOT(slotFastForwardToEnd()) );
- connect(this, SIGNAL(toggleRecord()),
- m_rgGUIApp, SLOT(slotToggleRecord()) );
- connect(this, SIGNAL(trackDown()),
- m_rgGUIApp, SLOT(slotTrackDown()) );
- connect(this, SIGNAL(trackUp()),
- m_rgGUIApp, SLOT(slotTrackUp()) );
- connect(this, SIGNAL(trackMute()),
- m_rgGUIApp, SLOT(slotToggleMutedCurrentTrack()) );
- connect(this, SIGNAL(trackRecord()),
- m_rgGUIApp, SLOT(slotToggleRecordCurrentTrack()) );
+ connect(m_lirc, TQT_SIGNAL(buttonPressed(char *)),
+ this, TQT_SLOT(slotExecute(char *)) );
+
+ connect(this, TQT_SIGNAL(play()),
+ m_rgGUIApp, TQT_SLOT(slotPlay()) );
+ connect(this, TQT_SIGNAL(stop()),
+ m_rgGUIApp, TQT_SLOT(slotStop()) );
+ connect(this, TQT_SIGNAL(record()),
+ m_rgGUIApp, TQT_SLOT(slotRecord()) );
+ connect(this, TQT_SIGNAL(rewind()),
+ m_rgGUIApp, TQT_SLOT(slotRewind()) );
+ connect(this, TQT_SIGNAL(rewindToBeginning()),
+ m_rgGUIApp, TQT_SLOT(slotRewindToBeginning()) );
+ connect(this, TQT_SIGNAL(fastForward()),
+ m_rgGUIApp, TQT_SLOT(slotFastforward()) );
+ connect(this, TQT_SIGNAL(fastForwardToEnd()),
+ m_rgGUIApp, TQT_SLOT(slotFastForwardToEnd()) );
+ connect(this, TQT_SIGNAL(toggleRecord()),
+ m_rgGUIApp, TQT_SLOT(slotToggleRecord()) );
+ connect(this, TQT_SIGNAL(trackDown()),
+ m_rgGUIApp, TQT_SLOT(slotTrackDown()) );
+ connect(this, TQT_SIGNAL(trackUp()),
+ m_rgGUIApp, TQT_SLOT(slotTrackUp()) );
+ connect(this, TQT_SIGNAL(trackMute()),
+ m_rgGUIApp, TQT_SLOT(slotToggleMutedCurrentTrack()) );
+ connect(this, TQT_SIGNAL(trackRecord()),
+ m_rgGUIApp, TQT_SLOT(slotToggleRecordCurrentTrack()) );
}
LircCommander::command LircCommander::commands[] =
diff --git a/src/gui/application/LircCommander.h b/src/gui/application/LircCommander.h
index 84a857e..60d356f 100644
--- a/src/gui/application/LircCommander.h
+++ b/src/gui/application/LircCommander.h
@@ -30,7 +30,7 @@
#ifdef HAVE_LIRC
-#include <qobject.h>
+#include <tqobject.h>
#include "base/Track.h"
diff --git a/src/gui/application/RosegardenApplication.cpp b/src/gui/application/RosegardenApplication.cpp
index 6e85aab..b6282c3 100644
--- a/src/gui/application/RosegardenApplication.cpp
+++ b/src/gui/application/RosegardenApplication.cpp
@@ -37,10 +37,10 @@
#include <kmessagebox.h>
#include <kprocess.h>
#include <kuniqueapplication.h>
-#include <qcstring.h>
-#include <qeventloop.h>
-#include <qsessionmanager.h>
-#include <qstring.h>
+#include <tqcstring.h>
+#include <tqeventloop.h>
+#include <tqsessionmanager.h>
+#include <tqstring.h>
#include <dcopclient.h>
#include <kconfig.h>
#include <kstatusbar.h>
@@ -72,7 +72,7 @@ bool RosegardenApplication::isSequencerRegistered()
return dcopClient()->isApplicationRegistered(ROSEGARDEN_SEQUENCER_APP_NAME);
}
-bool RosegardenApplication::sequencerSend(QCString dcopCall, QByteArray params)
+bool RosegardenApplication::sequencerSend(TQCString dcopCall, TQByteArray params)
{
if (noSequencerMode())
return false;
@@ -82,8 +82,8 @@ bool RosegardenApplication::sequencerSend(QCString dcopCall, QByteArray params)
dcopCall, params);
}
-bool RosegardenApplication::sequencerCall(QCString dcopCall, QCString& replyType, QByteArray& replyData,
- QByteArray params, bool useEventLoop)
+bool RosegardenApplication::sequencerCall(TQCString dcopCall, TQCString& replyType, TQByteArray& replyData,
+ TQByteArray params, bool useEventLoop)
{
if (noSequencerMode())
return false;
@@ -95,9 +95,9 @@ bool RosegardenApplication::sequencerCall(QCString dcopCall, QCString& replyType
void RosegardenApplication::sfxLoadExited(KProcess *proc)
{
if (!proc->normalExit()) {
- QString configGroup = config()->group();
+ TQString configGroup = config()->group();
config()->setGroup(SequencerOptionsConfigGroup);
- QString soundFontPath = config()->readEntry("soundfontpath", "");
+ TQString soundFontPath = config()->readEntry("soundfontpath", "");
config()->setGroup(configGroup);
KMessageBox::error(mainWidget(),
@@ -108,13 +108,13 @@ void RosegardenApplication::sfxLoadExited(KProcess *proc)
}
-void RosegardenApplication::slotSetStatusMessage(QString msg)
+void RosegardenApplication::slotSetStatusMessage(TQString msg)
{
KMainWindow* mainWindow = dynamic_cast<KMainWindow*>(mainWidget());
if (mainWindow) {
if (msg.isEmpty())
msg = KTmpStatusMsg::getDefaultMsg();
- mainWindow->statusBar()->changeItem(QString(" %1").arg(msg), KTmpStatusMsg::getDefaultId());
+ mainWindow->statusBar()->changeItem(TQString(" %1").arg(msg), KTmpStatusMsg::getDefaultId());
}
}
@@ -122,8 +122,8 @@ void RosegardenApplication::slotSetStatusMessage(QString msg)
void
RosegardenApplication::refreshGUI(int maxTime)
{
- eventLoop()->processEvents(QEventLoop::ExcludeUserInput |
- QEventLoop::ExcludeSocketNotifiers,
+ eventLoop()->processEvents(TQEventLoop::ExcludeUserInput |
+ TQEventLoop::ExcludeSocketNotifiers,
maxTime);
}
@@ -138,7 +138,7 @@ RosegardenApplication* RosegardenApplication::rgApp()
return dynamic_cast<RosegardenApplication*>(kApplication());
}
-QByteArray RosegardenApplication::Empty;
+TQByteArray RosegardenApplication::Empty;
}
diff --git a/src/gui/application/RosegardenApplication.h b/src/gui/application/RosegardenApplication.h
index 4541308..ff3b2ba 100644
--- a/src/gui/application/RosegardenApplication.h
+++ b/src/gui/application/RosegardenApplication.h
@@ -27,8 +27,8 @@
#define _RG_ROSEGARDENAPPLICATION_H_
#include <kuniqueapplication.h>
-#include <qcstring.h>
-#include <qstring.h>
+#include <tqcstring.h>
+#include <tqstring.h>
class QSessionManager;
@@ -62,13 +62,13 @@ public:
void refreshGUI(int maxTime);
bool isSequencerRegistered();
- bool sequencerSend(QCString dcopCall, QByteArray params = Empty);
- bool sequencerCall(QCString dcopCall, QCString& replyType,
- QByteArray& replyData, QByteArray params = Empty, bool useEventLoop = false);
+ bool sequencerSend(TQCString dcopCall, TQByteArray params = Empty);
+ bool sequencerCall(TQCString dcopCall, TQCString& replyType,
+ TQByteArray& replyData, TQByteArray params = Empty, bool useEventLoop = false);
static RosegardenApplication* rgApp();
- static QByteArray Empty;
+ static TQByteArray Empty;
void setNoSequencerMode(bool m=true) { m_noSequencerMode = m; }
bool noSequencerMode() { return m_noSequencerMode; }
@@ -81,7 +81,7 @@ signals:
public slots:
void sfxLoadExited(KProcess *proc);
- void slotSetStatusMessage(QString txt);
+ void slotSetStatusMessage(TQString txt);
protected:
//--------------- Data members ---------------------------------
diff --git a/src/gui/application/RosegardenGUIApp.cpp b/src/gui/application/RosegardenGUIApp.cpp
index 608ad58..2d0e23a 100644
--- a/src/gui/application/RosegardenGUIApp.cpp
+++ b/src/gui/application/RosegardenGUIApp.cpp
@@ -199,31 +199,31 @@
#include <ktoolbar.h>
#include <kurl.h>
#include <kxmlguiclient.h>
-#include <qaccel.h>
-#include <qcanvas.h>
-#include <qcstring.h>
-#include <qcursor.h>
-#include <qdatastream.h>
-#include <qdialog.h>
-#include <qdir.h>
-#include <qfile.h>
-#include <qfileinfo.h>
-#include <qiconset.h>
-#include <qinputdialog.h>
-#include <qlabel.h>
-#include <qobject.h>
-#include <qobjectlist.h>
-#include <qpixmap.h>
-#include <qpopupmenu.h>
-#include <qpushbutton.h>
-#include <qregexp.h>
-#include <qslider.h>
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qtextcodec.h>
-#include <qtimer.h>
-#include <qvaluevector.h>
-#include <qwidget.h>
+#include <tqaccel.h>
+#include <tqcanvas.h>
+#include <tqcstring.h>
+#include <tqcursor.h>
+#include <tqdatastream.h>
+#include <tqdialog.h>
+#include <tqdir.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
+#include <tqiconset.h>
+#include <tqinputdialog.h>
+#include <tqlabel.h>
+#include <tqobject.h>
+#include <tqobjectlist.h>
+#include <tqpixmap.h>
+#include <tqpopupmenu.h>
+#include <tqpushbutton.h>
+#include <tqregexp.h>
+#include <tqslider.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqtextcodec.h>
+#include <tqtimer.h>
+#include <tqvaluevector.h>
+#include <tqwidget.h>
#ifdef HAVE_LIBJACK
#include <jack/jack.h>
@@ -235,7 +235,7 @@ namespace Rosegarden
RosegardenGUIApp::RosegardenGUIApp(bool useSequencer,
bool useExistingSequencer,
- QObject *startupStatusMessageReceiver)
+ TQObject *startupStatusMessageReceiver)
: DCOPObject("RosegardenIface"), RosegardenIface(this), KDockMainWindow(0),
m_actionsSetup(false),
m_fileRecent(0),
@@ -258,7 +258,7 @@ RosegardenGUIApp::RosegardenGUIApp(bool useSequencer,
m_storedLoopEnd(0),
m_useSequencer(useSequencer),
m_dockVisible(true),
- m_autoSaveTimer(new QTimer(this)),
+ m_autoSaveTimer(new TQTimer(this)),
m_clipboard(new Clipboard),
m_playList(0),
m_deviceManager(0),
@@ -272,8 +272,8 @@ RosegardenGUIApp::RosegardenGUIApp(bool useSequencer,
#ifdef HAVE_LIBLO
m_pluginGUIManager(new AudioPluginOSCGUIManager(this)),
#endif
- m_playTimer(new QTimer(this)),
- m_stopTimer(new QTimer(this)),
+ m_playTimer(new TQTimer(this)),
+ m_stopTimer(new TQTimer(this)),
m_startupTester(0),
#ifdef HAVE_LIRC
m_lircClient(0),
@@ -287,9 +287,9 @@ RosegardenGUIApp::RosegardenGUIApp(bool useSequencer,
if (startupStatusMessageReceiver) {
- QObject::connect(this, SIGNAL(startupStatusMessage(QString)),
+ TQObject::connect(this, TQT_SIGNAL(startupStatusMessage(TQString)),
startupStatusMessageReceiver,
- SLOT(slotShowStatusMessage(QString)));
+ TQT_SLOT(slotShowStatusMessage(TQString)));
}
// Try to start the sequencer
@@ -341,7 +341,7 @@ RosegardenGUIApp::RosegardenGUIApp(bool useSequencer,
iFaceDelayedInit(this);
initZoomToolbar();
- QPixmap dummyPixmap; // any icon will do
+ TQPixmap dummyPixmap; // any icon will do
m_mainDockWidget = createDockWidget("Rosegarden MainDockWidget", dummyPixmap, 0L, "main_dock_widget");
// allow others to dock to the left and right sides only
m_mainDockWidget->setDockSite(KDockWidget::DockLeft | KDockWidget::DockRight);
@@ -356,14 +356,14 @@ RosegardenGUIApp::RosegardenGUIApp(bool useSequencer,
KDockWidget::DockLeft, // dock site
20); // relation target/this (in percent)
- connect(m_dockLeft, SIGNAL(iMBeingClosed()),
- this, SLOT(slotParametersClosed()));
- connect(m_dockLeft, SIGNAL(hasUndocked()),
- this, SLOT(slotParametersClosed()));
+ connect(m_dockLeft, TQT_SIGNAL(iMBeingClosed()),
+ this, TQT_SLOT(slotParametersClosed()));
+ connect(m_dockLeft, TQT_SIGNAL(hasUndocked()),
+ this, TQT_SLOT(slotParametersClosed()));
// Apparently, hasUndocked() is emitted when the dock widget's
// 'close' button on the dock handle is clicked.
- connect(m_mainDockWidget, SIGNAL(docking(KDockWidget*, KDockWidget::DockPosition)),
- this, SLOT(slotParametersDockedBack(KDockWidget*, KDockWidget::DockPosition)));
+ connect(m_mainDockWidget, TQT_SIGNAL(docking(KDockWidget*, KDockWidget::DockPosition)),
+ this, TQT_SLOT(slotParametersDockedBack(KDockWidget*, KDockWidget::DockPosition)));
stateChanged("parametersbox_closed", KXMLGUIClient::StateReverse);
@@ -393,35 +393,35 @@ RosegardenGUIApp::RosegardenGUIApp(bool useSequencer,
m_dockLeft->update();
connect(m_instrumentParameterBox,
- SIGNAL(selectPlugin(QWidget *, InstrumentId, int)),
+ TQT_SIGNAL(selectPlugin(TQWidget *, InstrumentId, int)),
this,
- SLOT(slotShowPluginDialog(QWidget *, InstrumentId, int)));
+ TQT_SLOT(slotShowPluginDialog(TQWidget *, InstrumentId, int)));
connect(m_instrumentParameterBox,
- SIGNAL(showPluginGUI(InstrumentId, int)),
+ TQT_SIGNAL(showPluginGUI(InstrumentId, int)),
this,
- SLOT(slotShowPluginGUI(InstrumentId, int)));
+ TQT_SLOT(slotShowPluginGUI(InstrumentId, int)));
// relay this through our own signal so that others can use it too
connect(m_instrumentParameterBox,
- SIGNAL(instrumentParametersChanged(InstrumentId)),
+ TQT_SIGNAL(instrumentParametersChanged(InstrumentId)),
this,
- SIGNAL(instrumentParametersChanged(InstrumentId)));
+ TQT_SIGNAL(instrumentParametersChanged(InstrumentId)));
connect(this,
- SIGNAL(instrumentParametersChanged(InstrumentId)),
+ TQT_SIGNAL(instrumentParametersChanged(InstrumentId)),
m_instrumentParameterBox,
- SLOT(slotInstrumentParametersChanged(InstrumentId)));
+ TQT_SLOT(slotInstrumentParametersChanged(InstrumentId)));
connect(this,
- SIGNAL(pluginSelected(InstrumentId, int, int)),
+ TQT_SIGNAL(pluginSelected(InstrumentId, int, int)),
m_instrumentParameterBox,
- SLOT(slotPluginSelected(InstrumentId, int, int)));
+ TQT_SLOT(slotPluginSelected(InstrumentId, int, int)));
connect(this,
- SIGNAL(pluginBypassed(InstrumentId, int, bool)),
+ TQT_SIGNAL(pluginBypassed(InstrumentId, int, bool)),
m_instrumentParameterBox,
- SLOT(slotPluginBypassed(InstrumentId, int, bool)));
+ TQT_SLOT(slotPluginBypassed(InstrumentId, int, bool)));
// Load the initial document (this includes doc's own autoload)
//
@@ -441,8 +441,8 @@ RosegardenGUIApp::RosegardenGUIApp(bool useSequencer,
}
if (m_view) {
- connect(m_seqManager, SIGNAL(controllerDeviceEventReceived(MappedEvent *)),
- m_view, SLOT(slotControllerDeviceEventReceived(MappedEvent *)));
+ connect(m_seqManager, TQT_SIGNAL(controllerDeviceEventReceived(MappedEvent *)),
+ m_view, TQT_SLOT(slotControllerDeviceEventReceived(MappedEvent *)));
}
if (m_seqManager->getSoundDriverStatus() & AUDIO_OK) {
@@ -496,7 +496,7 @@ RosegardenGUIApp::RosegardenGUIApp(bool useSequencer,
stateChanged("have_project_packager", KXMLGUIClient::StateReverse);
stateChanged("have_lilypondview", KXMLGUIClient::StateReverse);
- QTimer::singleShot(1000, this, SLOT(slotTestStartupTester()));
+ TQTimer::singleShot(1000, this, TQT_SLOT(slotTestStartupTester()));
}
RosegardenGUIApp::~RosegardenGUIApp()
@@ -541,101 +541,101 @@ void RosegardenGUIApp::setupActions()
{
// setup File menu
// New Window ?
- KStdAction::openNew (this, SLOT(slotFileNew()), actionCollection());
- KStdAction::open (this, SLOT(slotFileOpen()), actionCollection());
+ KStdAction::openNew (this, TQT_SLOT(slotFileNew()), actionCollection());
+ KStdAction::open (this, TQT_SLOT(slotFileOpen()), actionCollection());
m_fileRecent = KStdAction::openRecent(this,
- SLOT(slotFileOpenRecent(const KURL&)),
+ TQT_SLOT(slotFileOpenRecent(const KURL&)),
actionCollection());
- KStdAction::save (this, SLOT(slotFileSave()), actionCollection());
- KStdAction::saveAs(this, SLOT(slotFileSaveAs()), actionCollection());
- KStdAction::revert(this, SLOT(slotRevertToSaved()), actionCollection());
- KStdAction::close (this, SLOT(slotFileClose()), actionCollection());
- KStdAction::print (this, SLOT(slotFilePrint()), actionCollection());
- KStdAction::printPreview (this, SLOT(slotFilePrintPreview()), actionCollection());
+ KStdAction::save (this, TQT_SLOT(slotFileSave()), actionCollection());
+ KStdAction::saveAs(this, TQT_SLOT(slotFileSaveAs()), actionCollection());
+ KStdAction::revert(this, TQT_SLOT(slotRevertToSaved()), actionCollection());
+ KStdAction::close (this, TQT_SLOT(slotFileClose()), actionCollection());
+ KStdAction::print (this, TQT_SLOT(slotFilePrint()), actionCollection());
+ KStdAction::printPreview (this, TQT_SLOT(slotFilePrintPreview()), actionCollection());
new KAction(i18n("Import Rosegarden &Project file..."), 0, 0, this,
- SLOT(slotImportProject()), actionCollection(),
+ TQT_SLOT(slotImportProject()), actionCollection(),
"file_import_project");
new KAction(i18n("Import &MIDI file..."), 0, 0, this,
- SLOT(slotImportMIDI()), actionCollection(),
+ TQT_SLOT(slotImportMIDI()), actionCollection(),
"file_import_midi");
new KAction(i18n("Import &Rosegarden 2.1 file..."), 0, 0, this,
- SLOT(slotImportRG21()), actionCollection(),
+ TQT_SLOT(slotImportRG21()), actionCollection(),
"file_import_rg21");
new KAction(i18n("Import &Hydrogen file..."), 0, 0, this,
- SLOT(slotImportHydrogen()), actionCollection(),
+ TQT_SLOT(slotImportHydrogen()), actionCollection(),
"file_import_hydrogen");
new KAction(i18n("Merge &File..."), 0, 0, this,
- SLOT(slotMerge()), actionCollection(),
+ TQT_SLOT(slotMerge()), actionCollection(),
"file_merge");
new KAction(i18n("Merge &MIDI file..."), 0, 0, this,
- SLOT(slotMergeMIDI()), actionCollection(),
+ TQT_SLOT(slotMergeMIDI()), actionCollection(),
"file_merge_midi");
new KAction(i18n("Merge &Rosegarden 2.1 file..."), 0, 0, this,
- SLOT(slotMergeRG21()), actionCollection(),
+ TQT_SLOT(slotMergeRG21()), actionCollection(),
"file_merge_rg21");
new KAction(i18n("Merge &Hydrogen file..."), 0, 0, this,
- SLOT(slotMergeHydrogen()), actionCollection(),
+ TQT_SLOT(slotMergeHydrogen()), actionCollection(),
"file_merge_hydrogen");
new KAction(i18n("Export Rosegarden &Project file..."), 0, 0, this,
- SLOT(slotExportProject()), actionCollection(),
+ TQT_SLOT(slotExportProject()), actionCollection(),
"file_export_project");
new KAction(i18n("Export &MIDI file..."), 0, 0, this,
- SLOT(slotExportMIDI()), actionCollection(),
+ TQT_SLOT(slotExportMIDI()), actionCollection(),
"file_export_midi");
new KAction(i18n("Export &LilyPond file..."), 0, 0, this,
- SLOT(slotExportLilyPond()), actionCollection(),
+ TQT_SLOT(slotExportLilyPond()), actionCollection(),
"file_export_lilypond");
new KAction(i18n("Export Music&XML file..."), 0, 0, this,
- SLOT(slotExportMusicXml()), actionCollection(),
+ TQT_SLOT(slotExportMusicXml()), actionCollection(),
"file_export_musicxml");
new KAction(i18n("Export &Csound score file..."), 0, 0, this,
- SLOT(slotExportCsound()), actionCollection(),
+ TQT_SLOT(slotExportCsound()), actionCollection(),
"file_export_csound");
new KAction(i18n("Export M&up file..."), 0, 0, this,
- SLOT(slotExportMup()), actionCollection(),
+ TQT_SLOT(slotExportMup()), actionCollection(),
"file_export_mup");
new KAction(i18n("Print &with LilyPond..."), 0, 0, this,
- SLOT(slotPrintLilyPond()), actionCollection(),
+ TQT_SLOT(slotPrintLilyPond()), actionCollection(),
"file_print_lilypond");
new KAction(i18n("Preview with Lil&yPond..."), 0, 0, this,
- SLOT(slotPreviewLilyPond()), actionCollection(),
+ TQT_SLOT(slotPreviewLilyPond()), actionCollection(),
"file_preview_lilypond");
new KAction(i18n("Play&list"), 0, 0, this,
- SLOT(slotPlayList()), actionCollection(),
+ TQT_SLOT(slotPlayList()), actionCollection(),
"file_show_playlist");
- KStdAction::quit (this, SLOT(slotQuit()), actionCollection());
+ KStdAction::quit (this, TQT_SLOT(slotQuit()), actionCollection());
// help menu
new KAction(i18n("Rosegarden &Tutorial"), 0, 0, this,
- SLOT(slotTutorial()), actionCollection(),
+ TQT_SLOT(slotTutorial()), actionCollection(),
"tutorial");
new KAction(i18n("&Bug Reporting Guidelines"), 0, 0, this,
- SLOT(slotBugGuidelines()), actionCollection(),
+ TQT_SLOT(slotBugGuidelines()), actionCollection(),
"guidelines");
// setup edit menu
- KStdAction::cut (this, SLOT(slotEditCut()), actionCollection());
- KStdAction::copy (this, SLOT(slotEditCopy()), actionCollection());
- KStdAction::paste (this, SLOT(slotEditPaste()), actionCollection());
+ KStdAction::cut (this, TQT_SLOT(slotEditCut()), actionCollection());
+ KStdAction::copy (this, TQT_SLOT(slotEditCopy()), actionCollection());
+ KStdAction::paste (this, TQT_SLOT(slotEditPaste()), actionCollection());
//
// undo/redo actions are special in that they are connected to
@@ -659,202 +659,202 @@ void RosegardenGUIApp::setupActions()
// setup Settings menu
//
- m_viewToolBar = KStdAction::showToolbar (this, SLOT(slotToggleToolBar()), actionCollection(),
+ m_viewToolBar = KStdAction::showToolbar (this, TQT_SLOT(slotToggleToolBar()), actionCollection(),
"show_stock_toolbar");
m_viewToolsToolBar = new KToggleAction(i18n("Show T&ools Toolbar"), 0, this,
- SLOT(slotToggleToolsToolBar()), actionCollection(),
+ TQT_SLOT(slotToggleToolsToolBar()), actionCollection(),
"show_tools_toolbar");
m_viewTracksToolBar = new KToggleAction(i18n("Show Trac&ks Toolbar"), 0, this,
- SLOT(slotToggleTracksToolBar()), actionCollection(),
+ TQT_SLOT(slotToggleTracksToolBar()), actionCollection(),
"show_tracks_toolbar");
m_viewEditorsToolBar = new KToggleAction(i18n("Show &Editors Toolbar"), 0, this,
- SLOT(slotToggleEditorsToolBar()), actionCollection(),
+ TQT_SLOT(slotToggleEditorsToolBar()), actionCollection(),
"show_editors_toolbar");
m_viewTransportToolBar = new KToggleAction(i18n("Show Trans&port Toolbar"), 0, this,
- SLOT(slotToggleTransportToolBar()), actionCollection(),
+ TQT_SLOT(slotToggleTransportToolBar()), actionCollection(),
"show_transport_toolbar");
m_viewZoomToolBar = new KToggleAction(i18n("Show &Zoom Toolbar"), 0, this,
- SLOT(slotToggleZoomToolBar()), actionCollection(),
+ TQT_SLOT(slotToggleZoomToolBar()), actionCollection(),
"show_zoom_toolbar");
- m_viewStatusBar = KStdAction::showStatusbar(this, SLOT(slotToggleStatusBar()),
+ m_viewStatusBar = KStdAction::showStatusbar(this, TQT_SLOT(slotToggleStatusBar()),
actionCollection(), "show_status_bar");
m_viewTransport = new KToggleAction(i18n("Show Tra&nsport"), Key_T, this,
- SLOT(slotToggleTransport()),
+ TQT_SLOT(slotToggleTransport()),
actionCollection(),
"show_transport");
m_viewTrackLabels = new KToggleAction(i18n("Show Track &Labels"), 0, this,
- SLOT(slotToggleTrackLabels()),
+ TQT_SLOT(slotToggleTrackLabels()),
actionCollection(),
"show_tracklabels");
m_viewRulers = new KToggleAction(i18n("Show Playback Position R&uler"), 0, this,
- SLOT(slotToggleRulers()),
+ TQT_SLOT(slotToggleRulers()),
actionCollection(),
"show_rulers");
m_viewTempoRuler = new KToggleAction(i18n("Show Te&mpo Ruler"), 0, this,
- SLOT(slotToggleTempoRuler()),
+ TQT_SLOT(slotToggleTempoRuler()),
actionCollection(),
"show_tempo_ruler");
m_viewChordNameRuler = new KToggleAction(i18n("Show Cho&rd Name Ruler"), 0, this,
- SLOT(slotToggleChordNameRuler()),
+ TQT_SLOT(slotToggleChordNameRuler()),
actionCollection(),
"show_chord_name_ruler");
m_viewPreviews = new KToggleAction(i18n("Show Segment Pre&views"), 0, this,
- SLOT(slotTogglePreviews()),
+ TQT_SLOT(slotTogglePreviews()),
actionCollection(),
"show_previews");
new KAction(i18n("Show Special &Parameters"), Key_P, this,
- SLOT(slotDockParametersBack()),
+ TQT_SLOT(slotDockParametersBack()),
actionCollection(),
"show_inst_segment_parameters");
- KStdAction::tipOfDay( this, SLOT( slotShowTip() ), actionCollection() );
+ KStdAction::tipOfDay( this, TQT_SLOT( slotShowTip() ), actionCollection() );
// Standard Actions
//
KStdAction::saveOptions(this,
- SLOT(slotSaveOptions()),
+ TQT_SLOT(slotSaveOptions()),
actionCollection());
KStdAction::preferences(this,
- SLOT(slotConfigure()),
+ TQT_SLOT(slotConfigure()),
actionCollection());
KStdAction::keyBindings(this,
- SLOT(slotEditKeys()),
+ TQT_SLOT(slotEditKeys()),
actionCollection());
KStdAction::configureToolbars(this,
- SLOT(slotEditToolbars()),
+ TQT_SLOT(slotEditToolbars()),
actionCollection());
KRadioAction *action = 0;
// Create the select icon
//
- QString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/");
- QCanvasPixmap pixmap(pixmapDir + "/toolbar/select.xpm");
- QIconSet icon = QIconSet(pixmap);
+ TQString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/");
+ TQCanvasPixmap pixmap(pixmapDir + "/toolbar/select.xpm");
+ TQIconSet icon = TQIconSet(pixmap);
// TODO : add some shortcuts here
action = new KRadioAction(i18n("&Select and Edit"), icon, Key_F2,
- this, SLOT(slotPointerSelected()),
+ this, TQT_SLOT(slotPointerSelected()),
actionCollection(), "select");
action->setExclusiveGroup("segmenttools");
action = new KRadioAction(i18n("&Draw"), "pencil", Key_F3,
- this, SLOT(slotDrawSelected()),
+ this, TQT_SLOT(slotDrawSelected()),
actionCollection(), "draw");
action->setExclusiveGroup("segmenttools");
action = new KRadioAction(i18n("&Erase"), "eraser", Key_F4,
- this, SLOT(slotEraseSelected()),
+ this, TQT_SLOT(slotEraseSelected()),
actionCollection(), "erase");
action->setExclusiveGroup("segmenttools");
action = new KRadioAction(i18n("&Move"), "move", Key_F5,
- this, SLOT(slotMoveSelected()),
+ this, TQT_SLOT(slotMoveSelected()),
actionCollection(), "move");
action->setExclusiveGroup("segmenttools");
pixmap.load(pixmapDir + "/toolbar/resize.xpm");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
action = new KRadioAction(i18n("&Resize"), icon, Key_F6,
- this, SLOT(slotResizeSelected()),
+ this, TQT_SLOT(slotResizeSelected()),
actionCollection(), "resize");
action->setExclusiveGroup("segmenttools");
pixmap.load(pixmapDir + "/toolbar/split.xpm");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
action = new KRadioAction(i18n("&Split"), icon, Key_F7,
- this, SLOT(slotSplitSelected()),
+ this, TQT_SLOT(slotSplitSelected()),
actionCollection(), "split");
action->setExclusiveGroup("segmenttools");
pixmap.load(pixmapDir + "/toolbar/join.xpm");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
action = new KRadioAction(i18n("&Join"), icon, 0,
- this, SLOT(slotJoinSelected()),
+ this, TQT_SLOT(slotJoinSelected()),
actionCollection(), "join");
action->setExclusiveGroup("segmenttools");
new KAction(i18n("&Harmonize"), 0, this,
- SLOT(slotHarmonizeSelection()), actionCollection(),
+ TQT_SLOT(slotHarmonizeSelection()), actionCollection(),
"harmonize_selection");
pixmap.load(pixmapDir + "/toolbar/event-insert-timesig.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(AddTimeSignatureCommand::getGlobalName(),
icon, 0,
- this, SLOT(slotEditTimeSignature()),
+ this, TQT_SLOT(slotEditTimeSignature()),
actionCollection(), "add_time_signature");
new KAction(i18n("Open Tempo and Time Signature Editor"), 0, this,
- SLOT(slotEditTempos()), actionCollection(), "edit_tempos");
+ TQT_SLOT(slotEditTempos()), actionCollection(), "edit_tempos");
//
// Edit menu
//
new KAction(i18n("Cut Range"), Key_X + CTRL + SHIFT, this,
- SLOT(slotCutRange()), actionCollection(),
+ TQT_SLOT(slotCutRange()), actionCollection(),
"cut_range");
new KAction(i18n("Copy Range"), Key_C + CTRL + SHIFT, this,
- SLOT(slotCopyRange()), actionCollection(),
+ TQT_SLOT(slotCopyRange()), actionCollection(),
"copy_range");
new KAction(i18n("Paste Range"), Key_V + CTRL + SHIFT, this,
- SLOT(slotPasteRange()), actionCollection(),
+ TQT_SLOT(slotPasteRange()), actionCollection(),
"paste_range");
/*
new KAction(i18n("Delete Range"), Key_Delete + SHIFT, this,
- SLOT(slotDeleteRange()), actionCollection(),
+ TQT_SLOT(slotDeleteRange()), actionCollection(),
"delete_range");
*/
new KAction(i18n("Insert Range..."), Key_Insert + SHIFT, this,
- SLOT(slotInsertRange()), actionCollection(),
+ TQT_SLOT(slotInsertRange()), actionCollection(),
"insert_range");
new KAction(i18n("De&lete"), Key_Delete, this,
- SLOT(slotDeleteSelectedSegments()), actionCollection(),
+ TQT_SLOT(slotDeleteSelectedSegments()), actionCollection(),
"delete");
new KAction(i18n("Select &All Segments"), Key_A + CTRL, this,
- SLOT(slotSelectAll()), actionCollection(),
+ TQT_SLOT(slotSelectAll()), actionCollection(),
"select_all");
pixmap.load(pixmapDir + "/toolbar/event-insert-tempo.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(AddTempoChangeCommand::getGlobalName(),
icon, 0,
- this, SLOT(slotEditTempo()),
+ this, TQT_SLOT(slotEditTempo()),
actionCollection(), "add_tempo");
new KAction(ChangeCompositionLengthCommand::getGlobalName(),
0,
- this, SLOT(slotChangeCompositionLength()),
+ this, TQT_SLOT(slotChangeCompositionLength()),
actionCollection(), "change_composition_length");
new KAction(i18n("Edit Mar&kers..."), Key_K + CTRL, this,
- SLOT(slotEditMarkers()),
+ TQT_SLOT(slotEditMarkers()),
actionCollection(), "edit_markers");
new KAction(i18n("Edit Document P&roperties..."), 0, this,
- SLOT(slotEditDocumentProperties()),
+ TQT_SLOT(slotEditDocumentProperties()),
actionCollection(), "edit_doc_properties");
@@ -862,267 +862,267 @@ void RosegardenGUIApp::setupActions()
// Segments menu
//
new KAction(i18n("Open in &Default Editor"), Key_Return, this,
- SLOT(slotEdit()), actionCollection(),
+ TQT_SLOT(slotEdit()), actionCollection(),
"edit_default");
pixmap.load(pixmapDir + "/toolbar/matrix.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(i18n("Open in Matri&x Editor"), icon, Key_M, this,
- SLOT(slotEditInMatrix()), actionCollection(),
+ TQT_SLOT(slotEditInMatrix()), actionCollection(),
"edit_matrix");
pixmap.load(pixmapDir + "/toolbar/matrix-percussion.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(i18n("Open in &Percussion Matrix Editor"), icon, Key_D, this,
- SLOT(slotEditInPercussionMatrix()), actionCollection(),
+ TQT_SLOT(slotEditInPercussionMatrix()), actionCollection(),
"edit_percussion_matrix");
pixmap.load(pixmapDir + "/toolbar/notation.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(i18n("Open in &Notation Editor"), icon, Key_N, this,
- SLOT(slotEditAsNotation()), actionCollection(),
+ TQT_SLOT(slotEditAsNotation()), actionCollection(),
"edit_notation");
pixmap.load(pixmapDir + "/toolbar/eventlist.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(i18n("Open in &Event List Editor"), icon, Key_E, this,
- SLOT(slotEditInEventList()), actionCollection(),
+ TQT_SLOT(slotEditInEventList()), actionCollection(),
"edit_event_list");
pixmap.load(pixmapDir + "/toolbar/quantize.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(i18n("&Quantize..."), icon, Key_Equal, this,
- SLOT(slotQuantizeSelection()), actionCollection(),
+ TQT_SLOT(slotQuantizeSelection()), actionCollection(),
"quantize_selection");
new KAction(SegmentLabelCommand::getGlobalName(),
0,
- this, SLOT(slotRelabelSegments()),
+ this, TQT_SLOT(slotRelabelSegments()),
actionCollection(), "relabel_segment");
new KAction(SegmentTransposeCommand::getGlobalName(),
0,
- this, SLOT(slotTransposeSegments()),
+ this, TQT_SLOT(slotTransposeSegments()),
actionCollection(), "transpose");
new KAction(i18n("Repeat Last Quantize"), Key_Plus, this,
- SLOT(slotRepeatQuantizeSelection()), actionCollection(),
+ TQT_SLOT(slotRepeatQuantizeSelection()), actionCollection(),
"repeat_quantize");
new KAction(SegmentRescaleCommand::getGlobalName(), 0, this,
- SLOT(slotRescaleSelection()), actionCollection(),
+ TQT_SLOT(slotRescaleSelection()), actionCollection(),
"rescale");
new KAction(SegmentAutoSplitCommand::getGlobalName(), 0, this,
- SLOT(slotAutoSplitSelection()), actionCollection(),
+ TQT_SLOT(slotAutoSplitSelection()), actionCollection(),
"auto_split");
new KAction(SegmentSplitByPitchCommand::getGlobalName(), 0, this,
- SLOT(slotSplitSelectionByPitch()), actionCollection(),
+ TQT_SLOT(slotSplitSelectionByPitch()), actionCollection(),
"split_by_pitch");
new KAction(SegmentSplitByRecordingSrcCommand::getGlobalName(), 0, this,
- SLOT(slotSplitSelectionByRecordedSrc()), actionCollection(),
+ TQT_SLOT(slotSplitSelectionByRecordedSrc()), actionCollection(),
"split_by_recording");
new KAction(i18n("Split at Time..."), 0, this,
- SLOT(slotSplitSelectionAtTime()), actionCollection(),
+ TQT_SLOT(slotSplitSelectionAtTime()), actionCollection(),
"split_at_time");
new KAction(i18n("Jog &Left"), Key_Left + ALT, this,
- SLOT(slotJogLeft()), actionCollection(),
+ TQT_SLOT(slotJogLeft()), actionCollection(),
"jog_left");
new KAction(i18n("Jog &Right"), Key_Right + ALT, this,
- SLOT(slotJogRight()), actionCollection(),
+ TQT_SLOT(slotJogRight()), actionCollection(),
"jog_right");
new KAction(i18n("Set Start Time..."), 0, this,
- SLOT(slotSetSegmentStartTimes()), actionCollection(),
+ TQT_SLOT(slotSetSegmentStartTimes()), actionCollection(),
"set_segment_start");
new KAction(i18n("Set Duration..."), 0, this,
- SLOT(slotSetSegmentDurations()), actionCollection(),
+ TQT_SLOT(slotSetSegmentDurations()), actionCollection(),
"set_segment_duration");
new KAction(SegmentJoinCommand::getGlobalName(),
Key_J + CTRL,
- this, SLOT(slotJoinSegments()),
+ this, TQT_SLOT(slotJoinSegments()),
actionCollection(), "join_segments");
new KAction(i18n("Turn Re&peats into Copies"),
0,
- this, SLOT(slotRepeatingSegments()),
+ this, TQT_SLOT(slotRepeatingSegments()),
actionCollection(), "repeats_to_real_copies");
new KAction(i18n("Manage Tri&ggered Segments"), 0,
- this, SLOT(slotManageTriggerSegments()),
+ this, TQT_SLOT(slotManageTriggerSegments()),
actionCollection(), "manage_trigger_segments");
new KAction(i18n("Set Tempos from &Beat Segment"), 0, this,
- SLOT(slotGrooveQuantize()), actionCollection(),
+ TQT_SLOT(slotGrooveQuantize()), actionCollection(),
"groove_quantize");
new KAction(i18n("Set &Tempo to Audio Segment Duration"), 0, this,
- SLOT(slotTempoToSegmentLength()), actionCollection(),
+ TQT_SLOT(slotTempoToSegmentLength()), actionCollection(),
"set_tempo_to_segment_length");
pixmap.load(pixmapDir + "/toolbar/manage-audio-segments.xpm");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(i18n("Manage A&udio Files"), icon,
Key_U + CTRL,
- this, SLOT(slotAudioManager()),
+ this, TQT_SLOT(slotAudioManager()),
actionCollection(), "audio_manager");
m_viewSegmentLabels = new KToggleAction(i18n("Show Segment Labels"), 0, this,
- SLOT(slotToggleSegmentLabels()), actionCollection(),
+ TQT_SLOT(slotToggleSegmentLabels()), actionCollection(),
"show_segment_labels");
//
// Tracks menu
//
pixmap.load(pixmapDir + "/toolbar/add_tracks.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(i18n("Add &Track"), icon, CTRL + Key_T,
- this, SLOT(slotAddTrack()),
+ this, TQT_SLOT(slotAddTrack()),
actionCollection(), "add_track");
new KAction(i18n("&Add Tracks..."), 0,
- this, SLOT(slotAddTracks()),
+ this, TQT_SLOT(slotAddTracks()),
actionCollection(), "add_tracks");
pixmap.load(pixmapDir + "/toolbar/delete_track.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(i18n("D&elete Track"), icon, CTRL + Key_D,
- this, SLOT(slotDeleteTrack()),
+ this, TQT_SLOT(slotDeleteTrack()),
actionCollection(), "delete_track");
pixmap.load(pixmapDir + "/toolbar/move_track_down.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(i18n("Move Track &Down"), icon, SHIFT + Key_Down,
- this, SLOT(slotMoveTrackDown()),
+ this, TQT_SLOT(slotMoveTrackDown()),
actionCollection(), "move_track_down");
pixmap.load(pixmapDir + "/toolbar/move_track_up.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(i18n("Move Track &Up"), icon, SHIFT + Key_Up,
- this, SLOT(slotMoveTrackUp()),
+ this, TQT_SLOT(slotMoveTrackUp()),
actionCollection(), "move_track_up");
new KAction(i18n("Select &Next Track"),
Key_Down,
- this, SLOT(slotTrackDown()),
+ this, TQT_SLOT(slotTrackDown()),
actionCollection(), "select_next_track");
new KAction(i18n("Select &Previous Track"),
Key_Up,
- this, SLOT(slotTrackUp()),
+ this, TQT_SLOT(slotTrackUp()),
actionCollection(), "select_previous_track");
new KAction(i18n("Mute or Unmute Track"),
Key_U,
- this, SLOT(slotToggleMutedCurrentTrack()),
+ this, TQT_SLOT(slotToggleMutedCurrentTrack()),
actionCollection(), "toggle_mute_track");
new KAction(i18n("Arm or Un-arm Track for Record"),
Key_R,
- this, SLOT(slotToggleRecordCurrentTrack()),
+ this, TQT_SLOT(slotToggleRecordCurrentTrack()),
actionCollection(), "toggle_arm_track");
pixmap.load(pixmapDir + "/toolbar/mute-all.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(i18n("&Mute all Tracks"), icon, 0,
- this, SLOT(slotMuteAllTracks()),
+ this, TQT_SLOT(slotMuteAllTracks()),
actionCollection(), "mute_all_tracks");
pixmap.load(pixmapDir + "/toolbar/un-mute-all.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(i18n("&Unmute all Tracks"), icon, 0,
- this, SLOT(slotUnmuteAllTracks()),
+ this, TQT_SLOT(slotUnmuteAllTracks()),
actionCollection(), "unmute_all_tracks");
new KAction(i18n("&Remap Instruments..."), 0, this,
- SLOT(slotRemapInstruments()),
+ TQT_SLOT(slotRemapInstruments()),
actionCollection(), "remap_instruments");
//
// Studio menu
//
pixmap.load(pixmapDir + "/toolbar/mixer.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(i18n("&Audio Mixer"), icon, 0, this,
- SLOT(slotOpenAudioMixer()),
+ TQT_SLOT(slotOpenAudioMixer()),
actionCollection(), "audio_mixer");
pixmap.load(pixmapDir + "/toolbar/midimixer.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(i18n("Midi Mi&xer"), icon, 0, this,
- SLOT(slotOpenMidiMixer()),
+ TQT_SLOT(slotOpenMidiMixer()),
actionCollection(), "midi_mixer");
pixmap.load(pixmapDir + "/toolbar/manage-midi-devices.xpm");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(i18n("Manage MIDI &Devices"), icon, 0, this,
- SLOT(slotManageMIDIDevices()),
+ TQT_SLOT(slotManageMIDIDevices()),
actionCollection(), "manage_devices");
pixmap.load(pixmapDir + "/toolbar/manage-synth-plugins.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(i18n("Manage S&ynth Plugins"), icon, 0, this,
- SLOT(slotManageSynths()),
+ TQT_SLOT(slotManageSynths()),
actionCollection(), "manage_synths");
new KAction(i18n("Modify MIDI &Filters"), "filter", 0, this,
- SLOT(slotModifyMIDIFilters()),
+ TQT_SLOT(slotModifyMIDIFilters()),
actionCollection(), "modify_midi_filters");
m_enableMIDIrouting = new KToggleAction(i18n("MIDI Thru Routing"), 0, this,
- SLOT(slotEnableMIDIThruRouting()),
+ TQT_SLOT(slotEnableMIDIThruRouting()),
actionCollection(), "enable_midi_routing");
pixmap.load(pixmapDir + "/toolbar/time-musical.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(i18n("Manage &Metronome"), 0, this,
- SLOT(slotManageMetronome()),
+ TQT_SLOT(slotManageMetronome()),
actionCollection(), "manage_metronome");
new KAction(i18n("&Save Current Document as Default Studio"), 0, this,
- SLOT(slotSaveDefaultStudio()),
+ TQT_SLOT(slotSaveDefaultStudio()),
actionCollection(), "save_default_studio");
new KAction(i18n("&Import Default Studio"), 0, this,
- SLOT(slotImportDefaultStudio()),
+ TQT_SLOT(slotImportDefaultStudio()),
actionCollection(), "load_default_studio");
new KAction(i18n("Im&port Studio from File..."), 0, this,
- SLOT(slotImportStudio()),
+ TQT_SLOT(slotImportStudio()),
actionCollection(), "load_studio");
new KAction(i18n("&Reset MIDI Network"), 0, this,
- SLOT(slotResetMidiNetwork()),
+ TQT_SLOT(slotResetMidiNetwork()),
actionCollection(), "reset_midi_network");
m_setQuickMarkerAction = new KAction(i18n("Set Quick Marker at Playback Position"), 0, CTRL + Key_1, this,
- SLOT(slotSetQuickMarker()), actionCollection(),
+ TQT_SLOT(slotSetQuickMarker()), actionCollection(),
"set_quick_marker");
m_jumpToQuickMarkerAction = new KAction(i18n("Jump to Quick Marker"), 0, Key_1, this,
- SLOT(slotJumpToQuickMarker()), actionCollection(),
+ TQT_SLOT(slotJumpToQuickMarker()), actionCollection(),
"jump_to_quick_marker");
//
// Marker Ruler popup menu
//
// new KAction(i18n("Insert Marker"), 0, 0, this,
-// SLOT(slotInsertMarkerHere()), actionCollection(),
+// TQT_SLOT(slotInsertMarkerHere()), actionCollection(),
// "insert_marker_here");
//
// new KAction(i18n("Insert Marker at Playback Position"), 0, 0, this,
-// SLOT(slotInsertMarkerAtPointer()), actionCollection(),
+// TQT_SLOT(slotInsertMarkerAtPointer()), actionCollection(),
// "insert_marker_at_pointer");
//
// new KAction(i18n("Delete Marker"), 0, 0, this,
-// SLOT(slotDeleteMarker()), actionCollection(),
+// TQT_SLOT(slotDeleteMarker()), actionCollection(),
// "delete_marker");
@@ -1138,9 +1138,9 @@ void RosegardenGUIApp::setupActions()
// 0 (insert) and keypad Enter for Play and Stop
//
pixmap.load(pixmapDir + "/toolbar/transport-play.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
m_playTransport = new KAction(i18n("&Play"), icon, Key_Enter, this,
- SLOT(slotPlay()), actionCollection(),
+ TQT_SLOT(slotPlay()), actionCollection(),
"play");
// Alternative shortcut for Play
KShortcut playShortcut = m_playTransport->shortcut();
@@ -1149,69 +1149,69 @@ void RosegardenGUIApp::setupActions()
m_playTransport->setGroup(TransportDialogConfigGroup);
pixmap.load(pixmapDir + "/toolbar/transport-stop.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
m_stopTransport = new KAction(i18n("&Stop"), icon, Key_Insert, this,
- SLOT(slotStop()), actionCollection(),
+ TQT_SLOT(slotStop()), actionCollection(),
"stop");
m_stopTransport->setGroup(TransportDialogConfigGroup);
pixmap.load(pixmapDir + "/toolbar/transport-ffwd.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
m_ffwdTransport = new KAction(i18n("&Fast Forward"), icon, Key_PageDown,
this,
- SLOT(slotFastforward()), actionCollection(),
+ TQT_SLOT(slotFastforward()), actionCollection(),
"fast_forward");
m_ffwdTransport->setGroup(TransportDialogConfigGroup);
pixmap.load(pixmapDir + "/toolbar/transport-rewind.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
m_rewindTransport = new KAction(i18n("Re&wind"), icon, Key_End, this,
- SLOT(slotRewind()), actionCollection(),
+ TQT_SLOT(slotRewind()), actionCollection(),
"rewind");
m_rewindTransport->setGroup(TransportDialogConfigGroup);
pixmap.load(pixmapDir + "/toolbar/transport-record.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
m_recordTransport = new KAction(i18n("P&unch in Record"), icon, Key_Space, this,
- SLOT(slotToggleRecord()), actionCollection(),
+ TQT_SLOT(slotToggleRecord()), actionCollection(),
"recordtoggle");
m_recordTransport->setGroup(TransportDialogConfigGroup);
pixmap.load(pixmapDir + "/toolbar/transport-record.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
m_recordTransport = new KAction(i18n("&Record"), icon, 0, this,
- SLOT(slotRecord()), actionCollection(),
+ TQT_SLOT(slotRecord()), actionCollection(),
"record");
m_recordTransport->setGroup(TransportDialogConfigGroup);
pixmap.load(pixmapDir + "/toolbar/transport-rewind-end.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
m_rewindEndTransport = new KAction(i18n("Rewind to &Beginning"), icon, 0, this,
- SLOT(slotRewindToBeginning()), actionCollection(),
+ TQT_SLOT(slotRewindToBeginning()), actionCollection(),
"rewindtobeginning");
m_rewindEndTransport->setGroup(TransportDialogConfigGroup);
pixmap.load(pixmapDir + "/toolbar/transport-ffwd-end.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
m_ffwdEndTransport = new KAction(i18n("Fast Forward to &End"), icon, 0, this,
- SLOT(slotFastForwardToEnd()), actionCollection(),
+ TQT_SLOT(slotFastForwardToEnd()), actionCollection(),
"fastforwardtoend");
m_ffwdEndTransport->setGroup(TransportDialogConfigGroup);
pixmap.load(pixmapDir + "/toolbar/transport-tracking.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
(new KToggleAction(i18n("Scro&ll to Follow Playback"), icon, Key_Pause, this,
- SLOT(slotToggleTracking()), actionCollection(),
+ TQT_SLOT(slotToggleTracking()), actionCollection(),
"toggle_tracking"))->setChecked(true);
pixmap.load(pixmapDir + "/toolbar/transport-panic.png");
- icon = QIconSet(pixmap);
- new KAction( i18n("Panic"), icon, Key_P + CTRL + ALT, this, SLOT(slotPanic()),
+ icon = TQIconSet(pixmap);
+ new KAction( i18n("Panic"), icon, Key_P + CTRL + ALT, this, TQT_SLOT(slotPanic()),
actionCollection(), "panic");
// DEBUG FACILITY
new KAction(i18n("Segment Debug Dump "), 0, this,
- SLOT(slotDebugDump()), actionCollection(),
+ TQT_SLOT(slotDebugDump()), actionCollection(),
"debug_dump_segments");
// create main gui
@@ -1224,11 +1224,11 @@ void RosegardenGUIApp::setupActions()
//
//toolBar("Transport Toolbar")->hide();
- QPopupMenu* setTrackInstrumentMenu = dynamic_cast<QPopupMenu*>(factory()->container("set_track_instrument", this));
+ TQPopupMenu* setTrackInstrumentMenu = dynamic_cast<TQPopupMenu*>(factory()->container("set_track_instrument", this));
if (setTrackInstrumentMenu) {
- connect(setTrackInstrumentMenu, SIGNAL(aboutToShow()),
- this, SLOT(slotPopulateTrackInstrumentPopup()));
+ connect(setTrackInstrumentMenu, TQT_SIGNAL(aboutToShow()),
+ this, TQT_SLOT(slotPopulateTrackInstrumentPopup()));
} else {
RG_DEBUG << "RosegardenGUIApp::setupActions() : couldn't find set_track_instrument menu - check rosegardenui.rcn\n";
}
@@ -1238,21 +1238,21 @@ void RosegardenGUIApp::setupActions()
void RosegardenGUIApp::setRewFFwdToAutoRepeat()
{
- QWidget* transportToolbar = factory()->container("Transport Toolbar", this);
+ TQWidget* transportToolbar = factory()->container("Transport Toolbar", this);
if (transportToolbar) {
- QObjectList *l = transportToolbar->queryList();
- QObjectListIt it(*l); // iterate over the buttons
- QObject *obj;
+ TQObjectList *l = transportToolbar->queryList();
+ TQObjectListIt it(*l); // iterate over the buttons
+ TQObject *obj;
while ( (obj = it.current()) != 0 ) {
// for each found object...
++it;
// RG_DEBUG << "obj name : " << obj->name() << endl;
- QString objName = obj->name();
+ TQString objName = obj->name();
if (objName.endsWith("rewind") || objName.endsWith("fast_forward")) {
- QButton* btn = dynamic_cast<QButton*>(obj);
+ TQButton* btn = dynamic_cast<TQButton*>(obj);
if (!btn) {
RG_DEBUG << "Very strange - found widgets in transport_toolbar which aren't buttons\n";
@@ -1280,7 +1280,7 @@ void RosegardenGUIApp::initZoomToolbar()
return ;
}
- new QLabel(i18n(" Zoom: "), zoomToolbar, "kde toolbar widget");
+ new TQLabel(i18n(" Zoom: "), zoomToolbar, "kde toolbar widget");
std::vector<double> zoomSizes; // in units-per-pixel
double defaultBarWidth44 = 100.0;
@@ -1293,18 +1293,18 @@ void RosegardenGUIApp::initZoomToolbar()
}
// zoom labels
- QString minZoom = QString("%1%").arg(factors[0] * 100.0);
- QString maxZoom = QString("%1%").arg(factors[(sizeof(factors) / sizeof(factors[0])) - 1] * 100.0);
+ TQString minZoom = TQString("%1%").arg(factors[0] * 100.0);
+ TQString maxZoom = TQString("%1%").arg(factors[(sizeof(factors) / sizeof(factors[0])) - 1] * 100.0);
m_zoomSlider = new ZoomSlider<double>
- (zoomSizes, -1, QSlider::Horizontal, zoomToolbar, "kde toolbar widget");
+ (zoomSizes, -1, TQSlider::Horizontal, zoomToolbar, "kde toolbar widget");
m_zoomSlider->setTracking(true);
- m_zoomSlider->setFocusPolicy(QWidget::NoFocus);
- m_zoomLabel = new QLabel(minZoom, zoomToolbar, "kde toolbar widget");
+ m_zoomSlider->setFocusPolicy(TQWidget::NoFocus);
+ m_zoomLabel = new TQLabel(minZoom, zoomToolbar, "kde toolbar widget");
m_zoomLabel->setIndent(10);
- connect(m_zoomSlider, SIGNAL(valueChanged(int)),
- this, SLOT(slotChangeZoom(int)));
+ connect(m_zoomSlider, TQT_SIGNAL(valueChanged(int)),
+ this, TQT_SLOT(slotChangeZoom(int)));
// set initial zoom - we might want to make this a config option
// m_zoomSlider->setToDefault();
@@ -1353,18 +1353,18 @@ void RosegardenGUIApp::initView()
// Connect up this signal so that we can force tool mode
// changes from the view
- connect(m_swapView, SIGNAL(activateTool(QString)),
- this, SLOT(slotActivateTool(QString)));
+ connect(m_swapView, TQT_SIGNAL(activateTool(TQString)),
+ this, TQT_SLOT(slotActivateTool(TQString)));
connect(m_swapView,
- SIGNAL(segmentsSelected(const SegmentSelection &)),
- SIGNAL(segmentsSelected(const SegmentSelection &)));
+ TQT_SIGNAL(segmentsSelected(const SegmentSelection &)),
+ TQT_SIGNAL(segmentsSelected(const SegmentSelection &)));
connect(m_swapView,
- SIGNAL(addAudioFile(AudioFileId)),
- SLOT(slotAddAudioFile(AudioFileId)));
+ TQT_SIGNAL(addAudioFile(AudioFileId)),
+ TQT_SLOT(slotAddAudioFile(AudioFileId)));
- connect(m_swapView, SIGNAL(toggleSolo(bool)), SLOT(slotToggleSolo(bool)));
+ connect(m_swapView, TQT_SIGNAL(toggleSolo(bool)), TQT_SLOT(slotToggleSolo(bool)));
m_doc->attachView(m_swapView);
@@ -1414,11 +1414,11 @@ void RosegardenGUIApp::initView()
RosegardenGUIView *oldView = m_view;
m_view = m_swapView;
- connect(m_view, SIGNAL(stateChange(QString, bool)),
- this, SLOT (slotStateChanged(QString, bool)));
+ connect(m_view, TQT_SIGNAL(stateChange(TQString, bool)),
+ this, TQT_SLOT (slotStateChanged(TQString, bool)));
- connect(m_view, SIGNAL(instrumentParametersChanged(InstrumentId)),
- this, SIGNAL(instrumentParametersChanged(InstrumentId)));
+ connect(m_view, TQT_SIGNAL(instrumentParametersChanged(InstrumentId)),
+ this, TQT_SIGNAL(instrumentParametersChanged(InstrumentId)));
// We only check for the SequenceManager to make sure
// we're not on the first pass though - we don't want
@@ -1440,15 +1440,15 @@ void RosegardenGUIApp::initView()
if (isUsingSequencer())
m_seqManager->setLoop(0, 0);
stateChanged("have_range", KXMLGUIClient::StateReverse);
- } catch (QString s) {
+ } catch (TQString s) {
KStartupLogo::hideIfStillThere();
CurrentProgressDialog::freeze();
KMessageBox::error(this, s);
CurrentProgressDialog::thaw();
}
- connect(m_seqManager, SIGNAL(controllerDeviceEventReceived(MappedEvent *)),
- m_view, SLOT(slotControllerDeviceEventReceived(MappedEvent *)));
+ connect(m_seqManager, TQT_SIGNAL(controllerDeviceEventReceived(MappedEvent *)),
+ m_view, TQT_SLOT(slotControllerDeviceEventReceived(MappedEvent *)));
}
// delete m_playList;
@@ -1490,9 +1490,9 @@ void RosegardenGUIApp::initView()
m_view->show();
connect(m_view->getTrackEditor()->getSegmentCanvas(),
- SIGNAL(showContextHelp(const QString &)),
+ TQT_SIGNAL(showContextHelp(const TQString &)),
this,
- SLOT(slotShowToolHelp(const QString &)));
+ TQT_SLOT(slotShowToolHelp(const TQString &)));
// We have to do this to make sure that the 2nd call ("select")
// actually has any effect. Activating the same radio action
@@ -1542,7 +1542,7 @@ void RosegardenGUIApp::setDocument(RosegardenGUIDoc* newDocument)
// Caption
//
- QString caption = kapp->caption();
+ TQString caption = kapp->caption();
setCaption(caption + ": " + newDocument->getTitle());
// // reset AudioManagerDialog
@@ -1590,45 +1590,45 @@ void RosegardenGUIApp::setDocument(RosegardenGUIDoc* newDocument)
// connect needed signals
//
- connect(m_segmentParameterBox, SIGNAL(documentModified()),
- m_doc, SLOT(slotDocumentModified()));
+ connect(m_segmentParameterBox, TQT_SIGNAL(documentModified()),
+ m_doc, TQT_SLOT(slotDocumentModified()));
- connect(m_doc, SIGNAL(pointerPositionChanged(timeT)),
- this, SLOT(slotSetPointerPosition(timeT)));
+ connect(m_doc, TQT_SIGNAL(pointerPositionChanged(timeT)),
+ this, TQT_SLOT(slotSetPointerPosition(timeT)));
- connect(m_doc, SIGNAL(documentModified(bool)),
- this, SLOT(slotDocumentModified(bool)));
+ connect(m_doc, TQT_SIGNAL(documentModified(bool)),
+ this, TQT_SLOT(slotDocumentModified(bool)));
- connect(m_doc, SIGNAL(loopChanged(timeT, timeT)),
- this, SLOT(slotSetLoop(timeT, timeT)));
+ connect(m_doc, TQT_SIGNAL(loopChanged(timeT, timeT)),
+ this, TQT_SLOT(slotSetLoop(timeT, timeT)));
m_doc->getCommandHistory()->attachView(actionCollection());
- connect(m_doc->getCommandHistory(), SIGNAL(commandExecuted()),
- SLOT(update()));
- connect(m_doc->getCommandHistory(), SIGNAL(commandExecuted()),
- SLOT(slotTestClipboard()));
+ connect(m_doc->getCommandHistory(), TQT_SIGNAL(commandExecuted()),
+ TQT_SLOT(update()));
+ connect(m_doc->getCommandHistory(), TQT_SIGNAL(commandExecuted()),
+ TQT_SLOT(slotTestClipboard()));
// connect and start the autosave timer
- connect(m_autoSaveTimer, SIGNAL(timeout()), this, SLOT(slotAutoSave()));
+ connect(m_autoSaveTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotAutoSave()));
m_autoSaveTimer->start(m_doc->getAutoSavePeriod() * 1000);
// Connect the playback timer
//
- connect(m_playTimer, SIGNAL(timeout()), this, SLOT(slotUpdatePlaybackPosition()));
- connect(m_stopTimer, SIGNAL(timeout()), this, SLOT(slotUpdateMonitoring()));
+ connect(m_playTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotUpdatePlaybackPosition()));
+ connect(m_stopTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotUpdateMonitoring()));
// finally recreate the main view
//
initView();
if (getView() && getView()->getTrackEditor()) {
- connect(m_doc, SIGNAL(makeTrackVisible(int)),
- getView()->getTrackEditor(), SLOT(slotScrollToTrack(int)));
+ connect(m_doc, TQT_SIGNAL(makeTrackVisible(int)),
+ getView()->getTrackEditor(), TQT_SLOT(slotScrollToTrack(int)));
}
- connect(m_doc, SIGNAL(devicesResyncd()),
- this, SLOT(slotDocumentDevicesResyncd()));
+ connect(m_doc, TQT_SIGNAL(devicesResyncd()),
+ this, TQT_SLOT(slotDocumentDevicesResyncd()));
m_doc->syncDevices();
m_doc->clearModifiedStatus();
@@ -1670,7 +1670,7 @@ void RosegardenGUIApp::setDocument(RosegardenGUIDoc* newDocument)
}
void
-RosegardenGUIApp::openFile(QString filePath, ImportType type)
+RosegardenGUIApp::openFile(TQString filePath, ImportType type)
{
RG_DEBUG << "RosegardenGUIApp::openFile " << filePath << endl;
@@ -1690,10 +1690,10 @@ RosegardenGUIApp::openFile(QString filePath, ImportType type)
kapp->config()->setGroup(GeneralOptionsConfigGroup);
if (kapp->config()->readBoolEntry("alwaysusedefaultstudio", false)) {
- QString autoloadFile =
+ TQString autoloadFile =
KGlobal::dirs()->findResource("appdata", "autoload.rg");
- QFileInfo autoloadFileInfo(autoloadFile);
+ TQFileInfo autoloadFileInfo(autoloadFile);
if (autoloadFileInfo.isReadable()) {
RG_DEBUG << "Importing default studio from " << autoloadFile << endl;
@@ -1702,15 +1702,15 @@ RosegardenGUIApp::openFile(QString filePath, ImportType type)
}
}
- QFileInfo fInfo(filePath);
+ TQFileInfo fInfo(filePath);
m_fileRecent->addURL(fInfo.absFilePath());
}
}
RosegardenGUIDoc*
-RosegardenGUIApp::createDocument(QString filePath, ImportType importType)
+RosegardenGUIApp::createDocument(TQString filePath, ImportType importType)
{
- QFileInfo info(filePath);
+ TQFileInfo info(filePath);
RosegardenGUIDoc *doc = 0;
if (!info.exists()) {
@@ -1726,11 +1726,11 @@ RosegardenGUIApp::createDocument(QString filePath, ImportType importType)
return 0;
}
- QFile file(filePath);
+ TQFile file(filePath);
if (!file.open(IO_ReadOnly)) {
KStartupLogo::hideIfStillThere();
- QString errStr =
+ TQString errStr =
i18n("You do not have read permission for \"%1\"").arg(filePath);
KMessageBox::sorry(this, errStr);
@@ -1777,16 +1777,16 @@ RosegardenGUIApp::createDocument(QString filePath, ImportType importType)
}
RosegardenGUIDoc*
-RosegardenGUIApp::createDocumentFromRGFile(QString filePath)
+RosegardenGUIApp::createDocumentFromRGFile(TQString filePath)
{
// Check for an autosaved file to recover
- QString effectiveFilePath = filePath;
+ TQString effectiveFilePath = filePath;
bool canRecover = false;
- QString autoSaveFileName = kapp->checkRecoverFile(filePath, canRecover);
+ TQString autoSaveFileName = kapp->checkRecoverFile(filePath, canRecover);
if (canRecover) {
// First check if the auto-save file is more recent than the doc
- QFileInfo docFileInfo(filePath), autoSaveFileInfo(autoSaveFileName);
+ TQFileInfo docFileInfo(filePath), autoSaveFileInfo(autoSaveFileName);
if (docFileInfo.lastModified() < autoSaveFileInfo.lastModified()) {
@@ -1808,7 +1808,7 @@ RosegardenGUIApp::createDocumentFromRGFile(QString filePath)
// user doesn't want the autosave, so delete it
// so it won't bother us again if we reload
canRecover = false;
- QFile::remove
+ TQFile::remove
(autoSaveFileName);
}
@@ -1830,7 +1830,7 @@ RosegardenGUIApp::createDocumentFromRGFile(QString filePath)
// the autosaved doc)
//
newDoc->slotDocumentModified();
- QFileInfo info(filePath);
+ TQFileInfo info(filePath);
newDoc->setAbsFilePath(info.absFilePath());
newDoc->setTitle(info.fileName());
} else {
@@ -1850,8 +1850,8 @@ void RosegardenGUIApp::slotSaveOptions()
#ifdef SETTING_LOG_DEBUG
- _settingLog(QString("SETTING 2 : transport flap extended = %1").arg(getTransport()->isExpanded()));
- _settingLog(QString("SETTING 2 : show track labels = %1").arg(m_viewTrackLabels->isChecked()));
+ _settingLog(TQString("SETTING 2 : transport flap extended = %1").arg(getTransport()->isExpanded()));
+ _settingLog(TQString("SETTING 2 : show track labels = %1").arg(m_viewTrackLabels->isChecked()));
#endif
kapp->config()->setGroup(GeneralOptionsConfigGroup);
@@ -1893,13 +1893,13 @@ void RosegardenGUIApp::setupFileDialogSpeedbar()
unsigned int n = config->readUnsignedNumEntry("Number of Entries", 0);
- config->writeEntry(QString("Description_%1").arg(n), i18n("Example Files"));
- config->writeEntry(QString("IconGroup_%1").arg(n), 4);
- config->writeEntry(QString("Icon_%1").arg(n), "folder");
- config->writeEntry(QString("URL_%1").arg(n),
+ config->writeEntry(TQString("Description_%1").arg(n), i18n("Example Files"));
+ 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/"));
- RG_DEBUG << "wrote url " << config->readEntry(QString("URL_%1").arg(n)) << endl;
+ RG_DEBUG << "wrote url " << config->readEntry(TQString("URL_%1").arg(n)) << endl;
config->writeEntry("Examples Set", true);
config->writeEntry("Number of Entries", n + 1);
@@ -1936,7 +1936,7 @@ void RosegardenGUIApp::readOptions()
#ifdef SETTING_LOG_DEBUG
- _settingLog(QString("SETTING 3 : transport flap extended = %1").arg(opt));
+ _settingLog(TQString("SETTING 3 : transport flap extended = %1").arg(opt));
#endif
if (opt)
@@ -1948,7 +1948,7 @@ void RosegardenGUIApp::readOptions()
#ifdef SETTING_LOG_DEBUG
- _settingLog(QString("SETTING 3 : show track labels = %1").arg(opt));
+ _settingLog(TQString("SETTING 3 : show track labels = %1").arg(opt));
#endif
m_viewTrackLabels->setChecked(opt);
@@ -2000,19 +2000,19 @@ void RosegardenGUIApp::saveGlobalProperties(KConfig *cfg)
if (m_doc->getTitle() != i18n("Untitled") && !m_doc->isModified()) {
// saving to tempfile not necessary
} else {
- QString filename = m_doc->getAbsFilePath();
+ TQString filename = m_doc->getAbsFilePath();
cfg->writeEntry("filename", filename);
cfg->writeEntry("modified", m_doc->isModified());
- QString tempname = kapp->tempSaveName(filename);
- QString errMsg;
+ TQString tempname = kapp->tempSaveName(filename);
+ TQString errMsg;
bool res = m_doc->saveDocument(tempname, errMsg);
if (!res) {
if (errMsg)
- KMessageBox::error(this, i18n(QString("Could not save document at %1\nError was : %2")
+ KMessageBox::error(this, i18n(TQString("Could not save document at %1\nError was : %2")
.arg(tempname).arg(errMsg)));
else
- KMessageBox::error(this, i18n(QString("Could not save document at %1")
+ KMessageBox::error(this, i18n(TQString("Could not save document at %1")
.arg(tempname)));
}
}
@@ -2020,19 +2020,19 @@ void RosegardenGUIApp::saveGlobalProperties(KConfig *cfg)
void RosegardenGUIApp::readGlobalProperties(KConfig* _cfg)
{
- QString filename = _cfg->readEntry("filename", "");
+ TQString filename = _cfg->readEntry("filename", "");
bool modified = _cfg->readBoolEntry("modified", false);
if (modified) {
bool canRecover;
- QString tempname = kapp->checkRecoverFile(filename, canRecover);
+ TQString tempname = kapp->checkRecoverFile(filename, canRecover);
if (canRecover) {
slotEnableTransport(false);
m_doc->openDocument(tempname);
slotEnableTransport(true);
m_doc->slotDocumentModified();
- QFileInfo info(filename);
+ TQFileInfo info(filename);
m_doc->setAbsFilePath(info.absFilePath());
m_doc->setTitle(info.fileName());
}
@@ -2044,11 +2044,11 @@ void RosegardenGUIApp::readGlobalProperties(KConfig* _cfg)
}
}
- QString caption = kapp->caption();
+ TQString caption = kapp->caption();
setCaption(caption + ": " + m_doc->getTitle());
}
-void RosegardenGUIApp::showEvent(QShowEvent* e)
+void RosegardenGUIApp::showEvent(TQShowEvent* e)
{
RG_DEBUG << "RosegardenGUIApp::showEvent()\n";
@@ -2061,11 +2061,11 @@ bool RosegardenGUIApp::queryClose()
RG_DEBUG << "RosegardenGUIApp::queryClose" << endl;
#ifdef SETTING_LOG_DEBUG
- _settingLog(QString("SETTING 1 : transport flap extended = %1").arg(getTransport()->isExpanded()));
- _settingLog(QString("SETTING 1 : show track labels = %1").arg(m_viewTrackLabels->isChecked()));
+ _settingLog(TQString("SETTING 1 : transport flap extended = %1").arg(getTransport()->isExpanded()));
+ _settingLog(TQString("SETTING 1 : show track labels = %1").arg(m_viewTrackLabels->isChecked()));
#endif
- QString errMsg;
+ TQString errMsg;
bool canClose = m_doc->saveIfModified();
@@ -2077,8 +2077,8 @@ bool RosegardenGUIApp::queryClose()
// 'off'
//
- disconnect(m_transport, SIGNAL(closed()),
- this, SLOT(slotCloseTransport()));
+ disconnect(m_transport, TQT_SIGNAL(closed()),
+ this, TQT_SLOT(slotCloseTransport()));
}
*/
@@ -2124,7 +2124,7 @@ void RosegardenGUIApp::slotFileNew()
}
}
-void RosegardenGUIApp::slotOpenDroppedURL(QString url)
+void RosegardenGUIApp::slotOpenDroppedURL(TQString url)
{
ProgressDialog::processEvents(); // or else we get a crash because the
// track editor is erased too soon - it is the originator of the signal
@@ -2136,9 +2136,9 @@ void RosegardenGUIApp::slotOpenDroppedURL(QString url)
openURL(KURL(url));
}
-void RosegardenGUIApp::openURL(QString url)
+void RosegardenGUIApp::openURL(TQString url)
{
- RG_DEBUG << "RosegardenGUIApp::openURL: QString " << url << endl;
+ RG_DEBUG << "RosegardenGUIApp::openURL: TQString " << url << endl;
openURL(KURL(url));
}
@@ -2146,18 +2146,18 @@ void RosegardenGUIApp::openURL(const KURL& url)
{
SetWaitCursor waitCursor;
- QString netFile = url.prettyURL();
+ TQString netFile = url.prettyURL();
RG_DEBUG << "RosegardenGUIApp::openURL: KURL " << netFile << endl;
if (!url.isValid()) {
- QString string;
+ TQString string;
string = i18n( "Malformed URL\n%1").arg(netFile);
KMessageBox::sorry(this, string);
return ;
}
- QString target, caption(url.path());
+ TQString target, caption(url.path());
if (KIO::NetAccess::download(url, target, this) == false) {
KMessageBox::error(this, i18n("Cannot download file %1").arg(url.prettyURL()));
@@ -2180,7 +2180,7 @@ void RosegardenGUIApp::slotFileOpen()
kapp->config()->setGroup(GeneralOptionsConfigGroup);
- QString lastOpenedVersion =
+ TQString lastOpenedVersion =
kapp->config()->readEntry("Last File Opened Version", "none");
if (lastOpenedVersion != VERSION) {
@@ -2188,11 +2188,11 @@ void RosegardenGUIApp::slotFileOpen()
// We haven't opened any files with this version of the
// program before. Default to the examples directory.
- QString examplesDir = KGlobal::dirs()->findResource("appdata", "examples/");
+ TQString examplesDir = KGlobal::dirs()->findResource("appdata", "examples/");
kapp->config()->setGroup("Recent Dirs");
- QString recentString = kapp->config()->readEntry("ROSEGARDEN", "");
+ TQString recentString = kapp->config()->readEntry("ROSEGARDEN", "");
kapp->config()->writeEntry
- ("ROSEGARDEN", QString("file:%1,%2").arg(examplesDir).arg(recentString));
+ ("ROSEGARDEN", TQString("file:%1,%2").arg(examplesDir).arg(recentString));
}
KURL url = KFileDialog::getOpenURL
@@ -2223,7 +2223,7 @@ void RosegardenGUIApp::slotMerge()
}
- QString target;
+ TQString target;
if (KIO::NetAccess::download(url, target, this) == false) {
KMessageBox::error(this, i18n("Cannot download file %1").arg(url.prettyURL()));
@@ -2267,28 +2267,28 @@ void RosegardenGUIApp::slotFileSave()
} else {
SetWaitCursor waitCursor;
- QString errMsg, docFilePath = m_doc->getAbsFilePath();
+ TQString errMsg, docFilePath = m_doc->getAbsFilePath();
bool res = m_doc->saveDocument(docFilePath, errMsg);
if (!res) {
if (errMsg)
- KMessageBox::error(this, i18n(QString("Could not save document at %1\nError was : %2")
+ KMessageBox::error(this, i18n(TQString("Could not save document at %1\nError was : %2")
.arg(docFilePath).arg(errMsg)));
else
- KMessageBox::error(this, i18n(QString("Could not save document at %1")
+ KMessageBox::error(this, i18n(TQString("Could not save document at %1")
.arg(docFilePath)));
}
}
}
QString
-RosegardenGUIApp::getValidWriteFile(QString descriptiveExtension,
- QString label)
+RosegardenGUIApp::getValidWriteFile(TQString descriptiveExtension,
+ TQString label)
{
// extract first extension listed in descriptiveExtension, for instance,
// ".rg" from "*.rg|Rosegarden files", or ".mid" from "*.mid *.midi|MIDI Files"
//
- QString extension = descriptiveExtension.left(descriptiveExtension.find('|')).mid(1).section(' ', 0, 0);
+ TQString extension = descriptiveExtension.left(descriptiveExtension.find('|')).mid(1).section(' ', 0, 0);
RG_DEBUG << "RosegardenGUIApp::getValidWriteFile() : extension = " << extension << endl;
@@ -2297,7 +2297,7 @@ RosegardenGUIApp::getValidWriteFile(QString descriptiveExtension,
KFileDialog saveFileDialog(":ROSEGARDEN", descriptiveExtension, this, label, true);
saveFileDialog.setOperationMode(KFileDialog::Saving);
if (m_doc) {
- QString saveFileName = m_doc->getAbsFilePath();
+ TQString saveFileName = m_doc->getAbsFilePath();
// Show filename without the old extension
int dotLoc = saveFileName.findRev('.');
if (dotLoc >= int(saveFileName.length() - 4)) {
@@ -2306,7 +2306,7 @@ RosegardenGUIApp::getValidWriteFile(QString descriptiveExtension,
saveFileDialog.setSelection(saveFileName);
}
saveFileDialog.exec();
- QString name = saveFileDialog.selectedFile();
+ TQString name = saveFileDialog.selectedFile();
// RG_DEBUG << "RosegardenGUIApp::getValidWriteFile() : KFileDialog::getSaveFileName returned "
// << name << endl;
@@ -2318,7 +2318,7 @@ RosegardenGUIApp::getValidWriteFile(QString descriptiveExtension,
// Append extension if we don't have one
//
if (!extension.isEmpty()) {
- static QRegExp rgFile("\\..{1,4}$");
+ static TQRegExp rgFile("\\..{1,4}$");
if (rgFile.match(name) == -1) {
name += extension;
}
@@ -2336,7 +2336,7 @@ RosegardenGUIApp::getValidWriteFile(QString descriptiveExtension,
return "";
}
- QFileInfo info(name);
+ TQFileInfo info(name);
if (info.isDir()) {
KMessageBox::sorry(this, i18n("You have specified a directory"));
@@ -2361,31 +2361,31 @@ bool RosegardenGUIApp::slotFileSaveAs()
KTmpStatusMsg msg(i18n("Saving file with a new filename..."), this);
- QString newName = getValidWriteFile("*.rg|" + i18n("Rosegarden files") +
+ TQString newName = getValidWriteFile("*.rg|" + i18n("Rosegarden files") +
"\n*|" + i18n("All files"),
i18n("Save as..."));
if (newName.isEmpty())
return false;
SetWaitCursor waitCursor;
- QFileInfo saveAsInfo(newName);
+ TQFileInfo saveAsInfo(newName);
m_doc->setTitle(saveAsInfo.fileName());
m_doc->setAbsFilePath(saveAsInfo.absFilePath());
- QString errMsg;
+ TQString errMsg;
bool res = m_doc->saveDocument(newName, errMsg);
if (!res) {
if (errMsg)
- KMessageBox::error(this, i18n(QString("Could not save document at %1\nError was : %2")
+ KMessageBox::error(this, i18n(TQString("Could not save document at %1\nError was : %2")
.arg(newName).arg(errMsg)));
else
- KMessageBox::error(this, i18n(QString("Could not save document at %1")
+ KMessageBox::error(this, i18n(TQString("Could not save document at %1")
.arg(newName)));
} else {
m_fileRecent->addURL(newName);
- QString caption = kapp->caption();
+ TQString caption = kapp->caption();
setCaption(caption + ": " + m_doc->getTitle());
// update the edit view's captions too
emit compositionStateUpdate();
@@ -2555,7 +2555,7 @@ void RosegardenGUIApp::slotInsertRange()
std::pair<timeT, timeT> r = m_doc->getComposition().getBarRangeForTime(t0);
TimeDialog dialog(m_view, i18n("Duration of empty range to insert"),
&m_doc->getComposition(), t0, r.second - r.first, false);
- if (dialog.exec() == QDialog::Accepted) {
+ if (dialog.exec() == TQDialog::Accepted) {
m_doc->getCommandHistory()->addCommand
(new InsertRangeCommand(&m_doc->getComposition(), t0, dialog.getTime()));
m_doc->setLoop(0, 0);
@@ -2580,7 +2580,7 @@ void RosegardenGUIApp::slotQuantizeSelection()
//!!! this should all be in rosegardenguiview
QuantizeDialog dialog(m_view);
- if (dialog.exec() != QDialog::Accepted)
+ if (dialog.exec() != TQDialog::Accepted)
return ;
SegmentSelection selection = m_view->getSelection();
@@ -2684,7 +2684,7 @@ void RosegardenGUIApp::slotRescaleSelection()
RescaleDialog dialog(m_view, &m_doc->getComposition(),
startTime, endTime - startTime,
false, false);
- if (dialog.exec() != QDialog::Accepted)
+ if (dialog.exec() != TQDialog::Accepted)
return ;
std::vector<AudioSegmentRescaleCommand *> asrcs;
@@ -2739,10 +2739,10 @@ void RosegardenGUIApp::slotRescaleSelection()
asrcs[i]->disconnectProgressDialog(progressDlg);
}
- connect(&m_doc->getAudioFileManager(), SIGNAL(setProgress(int)),
- progressDlg->progressBar(), SLOT(setValue(int)));
- connect(progressDlg, SIGNAL(cancelClicked()),
- &m_doc->getAudioFileManager(), SLOT(slotStopPreview()));
+ connect(&m_doc->getAudioFileManager(), TQT_SIGNAL(setProgress(int)),
+ progressDlg->progressBar(), TQT_SLOT(setValue(int)));
+ connect(progressDlg, TQT_SIGNAL(cancelClicked()),
+ &m_doc->getAudioFileManager(), TQT_SLOT(slotStopPreview()));
for (size_t i = 0; i < asrcs.size(); ++i) {
int fid = asrcs[i]->getNewAudioFileId();
@@ -2757,7 +2757,7 @@ void RosegardenGUIApp::slotRescaleSelection()
}
bool
-RosegardenGUIApp::testAudioPath(QString op)
+RosegardenGUIApp::testAudioPath(TQString op)
{
try {
m_doc->getAudioFileManager().testAudioPath();
@@ -2793,7 +2793,7 @@ void RosegardenGUIApp::slotAutoSplitSelection()
if ((*i)->getType() == Segment::Audio) {
AudioSplitDialog aSD(this, (*i), m_doc);
- if (aSD.exec() == QDialog::Accepted) {
+ if (aSD.exec() == TQDialog::Accepted) {
// split to threshold
//
command->addCommand(
@@ -2856,33 +2856,33 @@ void RosegardenGUIApp::createAndSetupTransport()
m_transport->getAccelerators()->connectItem
(m_transport->getAccelerators()->insertItem(Key_T),
this,
- SLOT(slotHideTransport()));
+ TQT_SLOT(slotHideTransport()));
// Ensure that the checkbox is unchecked if the dialog
// is closed
- connect(m_transport, SIGNAL(closed()),
- SLOT(slotCloseTransport()));
+ connect(m_transport, TQT_SIGNAL(closed()),
+ TQT_SLOT(slotCloseTransport()));
// Handle loop setting and unsetting from the transport loop button
//
- connect(m_transport, SIGNAL(setLoop()), SLOT(slotSetLoop()));
- connect(m_transport, SIGNAL(unsetLoop()), SLOT(slotUnsetLoop()));
- connect(m_transport, SIGNAL(panic()), SLOT(slotPanic()));
+ connect(m_transport, TQT_SIGNAL(setLoop()), TQT_SLOT(slotSetLoop()));
+ connect(m_transport, TQT_SIGNAL(unsetLoop()), TQT_SLOT(slotUnsetLoop()));
+ connect(m_transport, TQT_SIGNAL(panic()), TQT_SLOT(slotPanic()));
- connect(m_transport, SIGNAL(editTempo(QWidget*)),
- SLOT(slotEditTempo(QWidget*)));
+ connect(m_transport, TQT_SIGNAL(editTempo(TQWidget*)),
+ TQT_SLOT(slotEditTempo(TQWidget*)));
- connect(m_transport, SIGNAL(editTimeSignature(QWidget*)),
- SLOT(slotEditTimeSignature(QWidget*)));
+ connect(m_transport, TQT_SIGNAL(editTimeSignature(TQWidget*)),
+ TQT_SLOT(slotEditTimeSignature(TQWidget*)));
- connect(m_transport, SIGNAL(editTransportTime(QWidget*)),
- SLOT(slotEditTransportTime(QWidget*)));
+ connect(m_transport, TQT_SIGNAL(editTransportTime(TQWidget*)),
+ TQT_SLOT(slotEditTransportTime(TQWidget*)));
// Handle set loop start/stop time buttons.
//
- connect(m_transport, SIGNAL(setLoopStartTime()), SLOT(slotSetLoopStart()));
- connect(m_transport, SIGNAL(setLoopStopTime()), SLOT(slotSetLoopStop()));
+ connect(m_transport, TQT_SIGNAL(setLoopStartTime()), TQT_SLOT(slotSetLoopStart()));
+ connect(m_transport, TQT_SIGNAL(setLoopStopTime()), TQT_SLOT(slotSetLoopStop()));
if (m_seqManager != 0)
m_seqManager->setTransport(m_transport);
@@ -2895,7 +2895,7 @@ void RosegardenGUIApp::slotSplitSelectionByPitch()
return ;
SplitByPitchDialog dialog(m_view);
- if (dialog.exec() != QDialog::Accepted)
+ if (dialog.exec() != TQDialog::Accepted)
return ;
SegmentSelection selection = m_view->getSelection();
@@ -2935,7 +2935,7 @@ RosegardenGUIApp::slotSplitSelectionByRecordedSrc()
return ;
SplitByRecordingSrcDialog dialog(m_view, m_doc);
- if (dialog.exec() != QDialog::Accepted)
+ if (dialog.exec() != TQDialog::Accepted)
return ;
SegmentSelection selection = m_view->getSelection();
@@ -2974,7 +2974,7 @@ RosegardenGUIApp::slotSplitSelectionAtTime()
timeT now = m_doc->getComposition().getPosition();
- QString title = i18n("Split Segment at Time",
+ TQString title = i18n("Split Segment at Time",
"Split %n Segments at Time",
selection.size());
@@ -2984,7 +2984,7 @@ RosegardenGUIApp::slotSplitSelectionAtTime()
KMacroCommand *command = new KMacroCommand( title );
- if (dialog.exec() == QDialog::Accepted) {
+ if (dialog.exec() == TQDialog::Accepted) {
for (SegmentSelection::iterator i = selection.begin();
i != selection.end(); ++i) {
@@ -3014,7 +3014,7 @@ RosegardenGUIApp::slotSetSegmentStartTimes()
&m_doc->getComposition(),
someTime, false);
- if (dialog.exec() == QDialog::Accepted) {
+ if (dialog.exec() == TQDialog::Accepted) {
bool plural = (selection.size() > 1);
@@ -3059,7 +3059,7 @@ RosegardenGUIApp::slotSetSegmentDurations()
someDuration,
false);
- if (dialog.exec() == QDialog::Accepted) {
+ if (dialog.exec() == TQDialog::Accepted) {
bool plural = (selection.size() > 1);
@@ -3105,7 +3105,7 @@ void RosegardenGUIApp::slotTempoToSegmentLength()
slotTempoToSegmentLength(this);
}
-void RosegardenGUIApp::slotTempoToSegmentLength(QWidget* parent)
+void RosegardenGUIApp::slotTempoToSegmentLength(TQWidget* parent)
{
RG_DEBUG << "RosegardenGUIApp::slotTempoToSegmentLength" << endl;
@@ -3136,7 +3136,7 @@ void RosegardenGUIApp::slotTempoToSegmentLength(QWidget* parent)
// Get user to tell us how many beats or bars the segment contains
BeatsBarsDialog dialog(parent);
- if (dialog.exec() == QDialog::Accepted) {
+ if (dialog.exec() == TQDialog::Accepted) {
beats = dialog.getQuantity(); // beats (or bars)
if (dialog.getMode() == 1) // bars (multiply by time sig)
beats *= timeSig.getBeatsPerBar();
@@ -3382,7 +3382,7 @@ void RosegardenGUIApp::slotToggleStatusBar()
statusBar()->show();
}
-void RosegardenGUIApp::slotStatusMsg(QString text)
+void RosegardenGUIApp::slotStatusMsg(TQString text)
{
///////////////////////////////////////////////////////////////////
// change status message permanently
@@ -3390,7 +3390,7 @@ void RosegardenGUIApp::slotStatusMsg(QString text)
statusBar()->changeItem(text, EditViewBase::ID_STATUS_MSG);
}
-void RosegardenGUIApp::slotStatusHelpMsg(QString text)
+void RosegardenGUIApp::slotStatusHelpMsg(TQString text)
{
///////////////////////////////////////////////////////////////////
// change status message of whole statusbar temporary (text, msec)
@@ -3529,7 +3529,7 @@ void RosegardenGUIApp::slotAddTracks()
AddTracksDialog dialog(this, pos);
- if (dialog.exec() == QDialog::Accepted) {
+ if (dialog.exec() == TQDialog::Accepted) {
m_view->slotAddTracks(dialog.getTracks(), id,
dialog.getInsertPosition());
}
@@ -3694,7 +3694,7 @@ void RosegardenGUIApp::slotImportProject()
return ;
}
- QString tmpfile;
+ TQString tmpfile;
KIO::NetAccess::download(url, tmpfile, this);
importProject(tmpfile);
@@ -3702,7 +3702,7 @@ void RosegardenGUIApp::slotImportProject()
KIO::NetAccess::removeTempFile(tmpfile);
}
-void RosegardenGUIApp::importProject(QString filePath)
+void RosegardenGUIApp::importProject(TQString filePath)
{
KProcess *proc = new KProcess;
*proc << "rosegarden-project-package";
@@ -3722,9 +3722,9 @@ void RosegardenGUIApp::importProject(QString filePath)
delete proc;
- QString rgFile = filePath;
- rgFile.replace(QRegExp(".rg.rgp$"), ".rg");
- rgFile.replace(QRegExp(".rgp$"), ".rg");
+ TQString rgFile = filePath;
+ rgFile.replace(TQRegExp(".rg.rgp$"), ".rg");
+ rgFile.replace(TQRegExp(".rgp$"), ".rg");
openURL(rgFile);
}
@@ -3741,7 +3741,7 @@ void RosegardenGUIApp::slotImportMIDI()
return ;
}
- QString tmpfile;
+ TQString tmpfile;
KIO::NetAccess::download(url, tmpfile, this);
openFile(tmpfile, ImportMIDI); // does everything including setting the document
@@ -3758,17 +3758,17 @@ void RosegardenGUIApp::slotMergeMIDI()
return ;
}
- QString tmpfile;
+ TQString tmpfile;
KIO::NetAccess::download(url, tmpfile, this);
mergeFile(tmpfile, ImportMIDI);
KIO::NetAccess::removeTempFile( tmpfile );
}
-QTextCodec *
+TQTextCodec *
RosegardenGUIApp::guessTextCodec(std::string text)
{
- QTextCodec *codec = 0;
+ TQTextCodec *codec = 0;
for (int c = 0; c < text.length(); ++c) {
if (text[c] & 0x80) {
@@ -3784,7 +3784,7 @@ RosegardenGUIApp::guessTextCodec(std::string text)
CurrentProgressDialog::thaw();
if (codecName != "") {
- codec = QTextCodec::codecForName(codecName.c_str());
+ codec = TQTextCodec::codecForName(codecName.c_str());
}
break;
}
@@ -3797,7 +3797,7 @@ void
RosegardenGUIApp::fixTextEncodings(Composition *c)
{
- QTextCodec *codec = 0;
+ TQTextCodec *codec = 0;
for (Composition::iterator i = c->begin();
i != c->end(); ++i) {
@@ -3849,7 +3849,7 @@ RosegardenGUIApp::fixTextEncodings(Composition *c)
}
RosegardenGUIDoc*
-RosegardenGUIApp::createDocumentFromMIDIFile(QString file)
+RosegardenGUIApp::createDocumentFromMIDIFile(TQString file)
{
//if (!merge && !m_doc->saveIfModified()) return;
@@ -3857,7 +3857,7 @@ RosegardenGUIApp::createDocumentFromMIDIFile(QString file)
//
RosegardenGUIDoc *newDoc = new RosegardenGUIDoc(this, m_pluginManager);
- std::string fname(QFile::encodeName(file));
+ std::string fname(TQFile::encodeName(file));
MidiFile midiFile(fname,
&newDoc->getStudio());
@@ -3870,11 +3870,11 @@ RosegardenGUIApp::createDocumentFromMIDIFile(QString file)
CurrentProgressDialog::set
(&progressDlg);
- connect(&midiFile, SIGNAL(setProgress(int)),
- progressDlg.progressBar(), SLOT(setValue(int)));
+ connect(&midiFile, TQT_SIGNAL(setProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(setValue(int)));
- connect(&midiFile, SIGNAL(incrementProgress(int)),
- progressDlg.progressBar(), SLOT(advance(int)));
+ connect(&midiFile, TQT_SIGNAL(incrementProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(advance(int)));
if (!midiFile.open()) {
CurrentProgressDialog::freeze();
@@ -3894,8 +3894,8 @@ RosegardenGUIApp::createDocumentFromMIDIFile(QString file)
// Set the caption
//
- newDoc->setTitle(QFileInfo(file).fileName());
- newDoc->setAbsFilePath(QFileInfo(file).absFilePath());
+ newDoc->setTitle(TQFileInfo(file).fileName());
+ newDoc->setAbsFilePath(TQFileInfo(file).absFilePath());
// Clean up for notation purposes (after reinitialise, because that
// sets the composition's end marker time which is needed here)
@@ -3962,8 +3962,8 @@ RosegardenGUIApp::createDocumentFromMIDIFile(QString file)
(segment, startTime, endTime, "Notation Options", true);
subCommand->setProgressTotal(progressPer + 1);
- QObject::connect(subCommand, SIGNAL(incrementProgress(int)),
- progressDlg.progressBar(), SLOT(advance(int)));
+ TQObject::connect(subCommand, TQT_SIGNAL(incrementProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(advance(int)));
command->addCommand(subCommand);
}
@@ -3994,7 +3994,7 @@ void RosegardenGUIApp::slotImportRG21()
return ;
}
- QString tmpfile;
+ TQString tmpfile;
KIO::NetAccess::download(url, tmpfile, this);
openFile(tmpfile, ImportRG21);
@@ -4011,7 +4011,7 @@ void RosegardenGUIApp::slotMergeRG21()
return ;
}
- QString tmpfile;
+ TQString tmpfile;
KIO::NetAccess::download(url, tmpfile, this);
mergeFile(tmpfile, ImportRG21);
@@ -4019,7 +4019,7 @@ void RosegardenGUIApp::slotMergeRG21()
}
RosegardenGUIDoc*
-RosegardenGUIApp::createDocumentFromRG21File(QString file)
+RosegardenGUIApp::createDocumentFromRG21File(TQString file)
{
KStartupLogo::hideIfStillThere();
ProgressDialog progressDlg(
@@ -4036,11 +4036,11 @@ RosegardenGUIApp::createDocumentFromRG21File(QString file)
// TODO: make RG21Loader to actually emit these signals
//
- connect(&rg21Loader, SIGNAL(setProgress(int)),
- progressDlg.progressBar(), SLOT(setValue(int)));
+ connect(&rg21Loader, TQT_SIGNAL(setProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(setValue(int)));
- connect(&rg21Loader, SIGNAL(incrementProgress(int)),
- progressDlg.progressBar(), SLOT(advance(int)));
+ connect(&rg21Loader, TQT_SIGNAL(incrementProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(advance(int)));
// "your starter for 40%" - helps the "freeze" work
//
@@ -4060,8 +4060,8 @@ RosegardenGUIApp::createDocumentFromRG21File(QString file)
// Set the caption and add recent
//
- newDoc->setTitle(QFileInfo(file).fileName());
- newDoc->setAbsFilePath(QFileInfo(file).absFilePath());
+ newDoc->setTitle(TQFileInfo(file).fileName());
+ newDoc->setAbsFilePath(TQFileInfo(file).absFilePath());
return newDoc;
@@ -4081,7 +4081,7 @@ RosegardenGUIApp::slotImportHydrogen()
return ;
}
- QString tmpfile;
+ TQString tmpfile;
KIO::NetAccess::download(url, tmpfile, this);
openFile(tmpfile, ImportHydrogen);
@@ -4098,7 +4098,7 @@ void RosegardenGUIApp::slotMergeHydrogen()
return ;
}
- QString tmpfile;
+ TQString tmpfile;
KIO::NetAccess::download(url, tmpfile, this);
mergeFile(tmpfile, ImportHydrogen);
@@ -4106,7 +4106,7 @@ void RosegardenGUIApp::slotMergeHydrogen()
}
RosegardenGUIDoc*
-RosegardenGUIApp::createDocumentFromHydrogenFile(QString file)
+RosegardenGUIApp::createDocumentFromHydrogenFile(TQString file)
{
KStartupLogo::hideIfStillThere();
ProgressDialog progressDlg(
@@ -4123,11 +4123,11 @@ RosegardenGUIApp::createDocumentFromHydrogenFile(QString file)
// TODO: make RG21Loader to actually emit these signals
//
- connect(&hydrogenLoader, SIGNAL(setProgress(int)),
- progressDlg.progressBar(), SLOT(setValue(int)));
+ connect(&hydrogenLoader, TQT_SIGNAL(setProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(setValue(int)));
- connect(&hydrogenLoader, SIGNAL(incrementProgress(int)),
- progressDlg.progressBar(), SLOT(advance(int)));
+ connect(&hydrogenLoader, TQT_SIGNAL(incrementProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(advance(int)));
// "your starter for 40%" - helps the "freeze" work
//
@@ -4147,15 +4147,15 @@ RosegardenGUIApp::createDocumentFromHydrogenFile(QString file)
// Set the caption and add recent
//
- newDoc->setTitle(QFileInfo(file).fileName());
- newDoc->setAbsFilePath(QFileInfo(file).absFilePath());
+ newDoc->setTitle(TQFileInfo(file).fileName());
+ newDoc->setAbsFilePath(TQFileInfo(file).absFilePath());
return newDoc;
}
void
-RosegardenGUIApp::mergeFile(QString filePath, ImportType type)
+RosegardenGUIApp::mergeFile(TQString filePath, ImportType type)
{
RosegardenGUIDoc *doc = createDocument(filePath, type);
@@ -4197,7 +4197,7 @@ RosegardenGUIApp::mergeFile(QString filePath, ImportType type)
}
FileMergeDialog dialog(this, filePath, timingsDiffer);
- if (dialog.exec() == QDialog::Accepted) {
+ if (dialog.exec() == TQDialog::Accepted) {
m_doc->mergeDocument(doc, dialog.getMergeOptions());
}
@@ -4385,7 +4385,7 @@ void RosegardenGUIApp::slotSetPointerPosition(timeT t)
if (!m_originatingJump) {
m_seqManager->sendSequencerJump(comp.getElapsedRealTime(t));
}
- } catch (QString s) {
+ } catch (TQString s) {
KMessageBox::error(this, s);
}
}
@@ -4501,22 +4501,22 @@ void RosegardenGUIApp::slotTestStartupTester()
if (!m_startupTester) {
m_startupTester = new StartupTester();
- connect(m_startupTester, SIGNAL(newerVersionAvailable(QString)),
- this, SLOT(slotNewerVersionAvailable(QString)));
+ connect(m_startupTester, TQT_SIGNAL(newerVersionAvailable(TQString)),
+ this, TQT_SLOT(slotNewerVersionAvailable(TQString)));
m_startupTester->start();
- QTimer::singleShot(100, this, SLOT(slotTestStartupTester()));
+ TQTimer::singleShot(100, this, TQT_SLOT(slotTestStartupTester()));
return ;
}
if (!m_startupTester->isReady()) {
- QTimer::singleShot(100, this, SLOT(slotTestStartupTester()));
+ TQTimer::singleShot(100, this, TQT_SLOT(slotTestStartupTester()));
return ;
}
- QStringList missingFeatures;
- QStringList allMissing;
+ TQStringList missingFeatures;
+ TQStringList allMissing;
- QStringList missing;
+ TQStringList missing;
bool have = m_startupTester->haveProjectPackager(&missing);
stateChanged("have_project_packager",
@@ -4582,7 +4582,7 @@ void RosegardenGUIApp::slotTestStartupTester()
#endif
if (missingFeatures.count() > 0) {
- QString message = i18n("<h3>Helper programs not found</h3><p>Rosegarden could not find one or more helper programs which it needs to provide some features. The following features will not be available:</p>");
+ TQString message = i18n("<h3>Helper programs not found</h3><p>Rosegarden could not find one or more helper programs which it needs to provide some features. The following features will not be available:</p>");
message += i18n("<ul>");
for (int i = 0; i < missingFeatures.count(); ++i) {
message += i18n("<li>%1</li>").arg(missingFeatures[i]);
@@ -4634,7 +4634,7 @@ bool RosegardenGUIApp::launchSequencer(bool useExisting)
// User mode should clear down sequencer processes.
//
if (kapp->dcopClient()->isApplicationRegistered(
- QCString(ROSEGARDEN_SEQUENCER_APP_NAME))) {
+ TQCString(ROSEGARDEN_SEQUENCER_APP_NAME))) {
RG_DEBUG << "RosegardenGUIApp::launchSequencer() - "
<< "existing DCOP registered sequencer found\n";
@@ -4659,7 +4659,7 @@ bool RosegardenGUIApp::launchSequencer(bool useExisting)
sleep(1);
if (kapp->dcopClient()->isApplicationRegistered(
- QCString(ROSEGARDEN_SEQUENCER_APP_NAME))) {
+ TQCString(ROSEGARDEN_SEQUENCER_APP_NAME))) {
RG_DEBUG << "RosegardenGUIApp::launchSequencer() - "
<< "failed to kill existing sequencer\n";
@@ -4694,7 +4694,7 @@ bool RosegardenGUIApp::launchSequencer(bool useExisting)
//
KConfig *config = kapp->config();
config->setGroup(SequencerOptionsConfigGroup);
- QString options = config->readEntry("commandlineoptions");
+ TQString options = config->readEntry("commandlineoptions");
if (!options.isEmpty()) {
(*m_sequencerProcess) << options;
RG_DEBUG << "sequencer options \"" << options << "\"" << endl;
@@ -4739,8 +4739,8 @@ bool RosegardenGUIApp::launchSequencer(bool useExisting)
stateChanged("sequencer_running");
slotEnableTransport(true);
- connect(m_sequencerProcess, SIGNAL(processExited(KProcess*)),
- this, SLOT(slotSequencerExited(KProcess*)));
+ connect(m_sequencerProcess, TQT_SIGNAL(processExited(KProcess*)),
+ this, TQT_SLOT(slotSequencerExited(KProcess*)));
} catch (Exception e) {
m_sequencerProcess = 0;
@@ -4784,7 +4784,7 @@ bool RosegardenGUIApp::launchJack()
if (!startJack)
return true; // we don't do anything
- QString jackPath = config->readEntry("jackcommand", "");
+ TQString jackPath = config->readEntry("jackcommand", "");
emit startupStatusMessage(i18n("Clearing down jackd..."));
@@ -4806,8 +4806,8 @@ bool RosegardenGUIApp::launchJack()
RG_DEBUG << "starting jack \"" << jackPath << "\"" << endl;
- QStringList splitCommand;
- splitCommand = QStringList::split(" ", jackPath);
+ TQStringList splitCommand;
+ splitCommand = TQStringList::split(" ", jackPath);
RG_DEBUG << "RosegardenGUIApp::launchJack() : splitCommand length : "
<< splitCommand.size() << endl;
@@ -4855,7 +4855,7 @@ void RosegardenGUIApp::slotExportProject()
{
KTmpStatusMsg msg(i18n("Exporting Rosegarden Project file..."), this);
- QString fileName = getValidWriteFile
+ TQString fileName = getValidWriteFile
("*.rgp|" + i18n("Rosegarden Project files\n") +
"\n*|" + i18n("All files"),
i18n("Export as..."));
@@ -4863,13 +4863,13 @@ void RosegardenGUIApp::slotExportProject()
if (fileName.isEmpty())
return ;
- QString rgFile = fileName;
- rgFile.replace(QRegExp(".rg.rgp$"), ".rg");
- rgFile.replace(QRegExp(".rgp$"), ".rg");
+ TQString rgFile = fileName;
+ rgFile.replace(TQRegExp(".rg.rgp$"), ".rg");
+ rgFile.replace(TQRegExp(".rgp$"), ".rg");
CurrentProgressDialog::freeze();
- QString errMsg;
+ TQString errMsg;
if (!m_doc->saveDocument(rgFile, errMsg,
true)) { // pretend it's autosave
KMessageBox::sorry(this, i18n("Saving Rosegarden file to package failed: %1").arg(errMsg));
@@ -4899,7 +4899,7 @@ void RosegardenGUIApp::slotExportMIDI()
{
KTmpStatusMsg msg(i18n("Exporting MIDI file..."), this);
- QString fileName = getValidWriteFile
+ TQString fileName = getValidWriteFile
("*.mid *.midi|" + i18n("Standard MIDI files\n") +
"\n*|" + i18n("All files"),
i18n("Export as..."));
@@ -4910,22 +4910,22 @@ void RosegardenGUIApp::slotExportMIDI()
exportMIDIFile(fileName);
}
-void RosegardenGUIApp::exportMIDIFile(QString file)
+void RosegardenGUIApp::exportMIDIFile(TQString file)
{
ProgressDialog progressDlg(i18n("Exporting MIDI file..."),
100,
this);
- std::string fname(QFile::encodeName(file));
+ std::string fname(TQFile::encodeName(file));
MidiFile midiFile(fname,
&m_doc->getStudio());
- connect(&midiFile, SIGNAL(setProgress(int)),
- progressDlg.progressBar(), SLOT(setValue(int)));
+ connect(&midiFile, TQT_SIGNAL(setProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(setValue(int)));
- connect(&midiFile, SIGNAL(incrementProgress(int)),
- progressDlg.progressBar(), SLOT(advance(int)));
+ connect(&midiFile, TQT_SIGNAL(incrementProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(advance(int)));
midiFile.convertToMidi(m_doc->getComposition());
@@ -4939,7 +4939,7 @@ void RosegardenGUIApp::slotExportCsound()
{
KTmpStatusMsg msg(i18n("Exporting Csound score file..."), this);
- QString fileName = getValidWriteFile(QString("*|") + i18n("All files"),
+ TQString fileName = getValidWriteFile(TQString("*|") + i18n("All files"),
i18n("Export as..."));
if (fileName.isEmpty())
return ;
@@ -4947,19 +4947,19 @@ void RosegardenGUIApp::slotExportCsound()
exportCsoundFile(fileName);
}
-void RosegardenGUIApp::exportCsoundFile(QString file)
+void RosegardenGUIApp::exportCsoundFile(TQString file)
{
ProgressDialog progressDlg(i18n("Exporting Csound score file..."),
100,
this);
- CsoundExporter e(this, &m_doc->getComposition(), std::string(QFile::encodeName(file)));
+ CsoundExporter e(this, &m_doc->getComposition(), std::string(TQFile::encodeName(file)));
- connect(&e, SIGNAL(setProgress(int)),
- progressDlg.progressBar(), SLOT(setValue(int)));
+ connect(&e, TQT_SIGNAL(setProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(setValue(int)));
- connect(&e, SIGNAL(incrementProgress(int)),
- progressDlg.progressBar(), SLOT(advance(int)));
+ connect(&e, TQT_SIGNAL(incrementProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(advance(int)));
if (!e.write()) {
CurrentProgressDialog::freeze();
@@ -4971,7 +4971,7 @@ void RosegardenGUIApp::slotExportMup()
{
KTmpStatusMsg msg(i18n("Exporting Mup file..."), this);
- QString fileName = getValidWriteFile
+ TQString fileName = getValidWriteFile
("*.mup|" + i18n("Mup files\n") + "\n*|" + i18n("All files"),
i18n("Export as..."));
if (fileName.isEmpty())
@@ -4980,19 +4980,19 @@ void RosegardenGUIApp::slotExportMup()
exportMupFile(fileName);
}
-void RosegardenGUIApp::exportMupFile(QString file)
+void RosegardenGUIApp::exportMupFile(TQString file)
{
ProgressDialog progressDlg(i18n("Exporting Mup file..."),
100,
this);
- MupExporter e(this, &m_doc->getComposition(), std::string(QFile::encodeName(file)));
+ MupExporter e(this, &m_doc->getComposition(), std::string(TQFile::encodeName(file)));
- connect(&e, SIGNAL(setProgress(int)),
- progressDlg.progressBar(), SLOT(setValue(int)));
+ connect(&e, TQT_SIGNAL(setProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(setValue(int)));
- connect(&e, SIGNAL(incrementProgress(int)),
- progressDlg.progressBar(), SLOT(advance(int)));
+ connect(&e, TQT_SIGNAL(incrementProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(advance(int)));
if (!e.write()) {
CurrentProgressDialog::freeze();
@@ -5004,8 +5004,8 @@ void RosegardenGUIApp::slotExportLilyPond()
{
KTmpStatusMsg msg(i18n("Exporting LilyPond file..."), this);
- QString fileName = getValidWriteFile
- (QString("*.ly|") + i18n("LilyPond files") +
+ TQString fileName = getValidWriteFile
+ (TQString("*.ly|") + i18n("LilyPond files") +
"\n*|" + i18n("All files"),
i18n("Export as..."));
@@ -5021,7 +5021,7 @@ std::map<KProcess *, KTempFile *> RosegardenGUIApp::m_lilyTempFileMap;
void RosegardenGUIApp::slotPrintLilyPond()
{
KTmpStatusMsg msg(i18n("Printing LilyPond file..."), this);
- KTempFile *file = new KTempFile(QString::null, ".ly");
+ KTempFile *file = new KTempFile(TQString::null, ".ly");
file->setAutoDelete(true);
if (!file->name()) {
CurrentProgressDialog::freeze();
@@ -5036,8 +5036,8 @@ void RosegardenGUIApp::slotPrintLilyPond()
*proc << "--graphical";
*proc << "--print";
*proc << file->name();
- connect(proc, SIGNAL(processExited(KProcess *)),
- this, SLOT(slotLilyPondViewProcessExited(KProcess *)));
+ connect(proc, TQT_SIGNAL(processExited(KProcess *)),
+ this, TQT_SLOT(slotLilyPondViewProcessExited(KProcess *)));
m_lilyTempFileMap[proc] = file;
proc->start(KProcess::NotifyOnExit);
}
@@ -5045,7 +5045,7 @@ void RosegardenGUIApp::slotPrintLilyPond()
void RosegardenGUIApp::slotPreviewLilyPond()
{
KTmpStatusMsg msg(i18n("Previewing LilyPond file..."), this);
- KTempFile *file = new KTempFile(QString::null, ".ly");
+ KTempFile *file = new KTempFile(TQString::null, ".ly");
file->setAutoDelete(true);
if (!file->name()) {
CurrentProgressDialog::freeze();
@@ -5060,8 +5060,8 @@ void RosegardenGUIApp::slotPreviewLilyPond()
*proc << "--graphical";
*proc << "--pdf";
*proc << file->name();
- connect(proc, SIGNAL(processExited(KProcess *)),
- this, SLOT(slotLilyPondViewProcessExited(KProcess *)));
+ connect(proc, TQT_SIGNAL(processExited(KProcess *)),
+ this, TQT_SLOT(slotLilyPondViewProcessExited(KProcess *)));
m_lilyTempFileMap[proc] = file;
proc->start(KProcess::NotifyOnExit);
}
@@ -5073,16 +5073,16 @@ void RosegardenGUIApp::slotLilyPondViewProcessExited(KProcess *p)
delete p;
}
-bool RosegardenGUIApp::exportLilyPondFile(QString file, bool forPreview)
+bool RosegardenGUIApp::exportLilyPondFile(TQString file, bool forPreview)
{
- QString caption = "", heading = "";
+ TQString caption = "", heading = "";
if (forPreview) {
caption = i18n("LilyPond Preview Options");
heading = i18n("LilyPond preview options");
}
LilyPondOptionsDialog dialog(this, m_doc, caption, heading);
- if (dialog.exec() != QDialog::Accepted) {
+ if (dialog.exec() != TQDialog::Accepted) {
return false;
}
@@ -5090,13 +5090,13 @@ bool RosegardenGUIApp::exportLilyPondFile(QString file, bool forPreview)
100,
this);
- LilyPondExporter e(this, m_doc, std::string(QFile::encodeName(file)));
+ LilyPondExporter e(this, m_doc, std::string(TQFile::encodeName(file)));
- connect(&e, SIGNAL(setProgress(int)),
- progressDlg.progressBar(), SLOT(setValue(int)));
+ connect(&e, TQT_SIGNAL(setProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(setValue(int)));
- connect(&e, SIGNAL(incrementProgress(int)),
- progressDlg.progressBar(), SLOT(advance(int)));
+ connect(&e, TQT_SIGNAL(incrementProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(advance(int)));
if (!e.write()) {
CurrentProgressDialog::freeze();
@@ -5111,8 +5111,8 @@ void RosegardenGUIApp::slotExportMusicXml()
{
KTmpStatusMsg msg(i18n("Exporting MusicXML file..."), this);
- QString fileName = getValidWriteFile
- (QString("*.xml|") + i18n("XML files") +
+ TQString fileName = getValidWriteFile
+ (TQString("*.xml|") + i18n("XML files") +
"\n*|" + i18n("All files"), i18n("Export as..."));
if (fileName.isEmpty())
@@ -5121,19 +5121,19 @@ void RosegardenGUIApp::slotExportMusicXml()
exportMusicXmlFile(fileName);
}
-void RosegardenGUIApp::exportMusicXmlFile(QString file)
+void RosegardenGUIApp::exportMusicXmlFile(TQString file)
{
ProgressDialog progressDlg(i18n("Exporting MusicXML file..."),
100,
this);
- MusicXmlExporter e(this, m_doc, std::string(QFile::encodeName(file)));
+ MusicXmlExporter e(this, m_doc, std::string(TQFile::encodeName(file)));
- connect(&e, SIGNAL(setProgress(int)),
- progressDlg.progressBar(), SLOT(setValue(int)));
+ connect(&e, TQT_SIGNAL(setProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(setValue(int)));
- connect(&e, SIGNAL(incrementProgress(int)),
- progressDlg.progressBar(), SLOT(advance(int)));
+ connect(&e, TQT_SIGNAL(incrementProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(advance(int)));
if (!e.write()) {
CurrentProgressDialog::freeze();
@@ -5156,7 +5156,7 @@ RosegardenGUIApp::slotDeleteTransport()
}
void
-RosegardenGUIApp::slotActivateTool(QString toolName)
+RosegardenGUIApp::slotActivateTool(TQString toolName)
{
if (toolName == SegmentSelector::ToolName) {
actionCollection()->action("select")->activate();
@@ -5273,7 +5273,7 @@ RosegardenGUIApp::slotRecord()
//
try {
m_seqManager->record(false);
- } catch (QString s) {
+ } catch (TQString s) {
// We should already be stopped by this point so just unset
// the buttons after clicking the dialog.
//
@@ -5308,8 +5308,8 @@ RosegardenGUIApp::slotRecord()
plugAccelerators(m_seqManager->getCountdownDialog(),
m_seqManager->getCountdownDialog()->getAccelerators());
- connect(m_seqManager->getCountdownDialog(), SIGNAL(stopped()),
- this, SLOT(slotStop()));
+ connect(m_seqManager->getCountdownDialog(), TQT_SIGNAL(stopped()),
+ this, TQT_SLOT(slotStop()));
// Start the playback timer - this fetches the current sequencer position &c
//
@@ -5329,7 +5329,7 @@ RosegardenGUIApp::slotToggleRecord()
try {
m_seqManager->record(true);
- } catch (QString s) {
+ } catch (TQString s) {
KMessageBox::error(this, s);
} catch (AudioFileManager::BadAudioPathException e) {
if (KMessageBox::warningContinueCancel
@@ -5361,7 +5361,7 @@ RosegardenGUIApp::slotSetLoop(timeT lhs, timeT rhs)
getTransport()->LoopButton()->setOn(false);
stateChanged("have_range", KXMLGUIClient::StateReverse);
}
- } catch (QString s) {
+ } catch (TQString s) {
KMessageBox::error(this, s);
}
}
@@ -5429,7 +5429,7 @@ void RosegardenGUIApp::slotPlay()
m_playTimer->stop();
m_stopTimer->start(100);
}
- } catch (QString s) {
+ } catch (TQString s) {
KMessageBox::error(this, s);
m_playTimer->stop();
m_stopTimer->start(100);
@@ -5459,10 +5459,10 @@ void RosegardenGUIApp::slotStop()
{
if (m_seqManager &&
m_seqManager->getCountdownDialog()) {
- disconnect(m_seqManager->getCountdownDialog(), SIGNAL(stopped()),
- this, SLOT(slotStop()));
- disconnect(m_seqManager->getCountdownDialog(), SIGNAL(completed()),
- this, SLOT(slotStop()));
+ disconnect(m_seqManager->getCountdownDialog(), TQT_SIGNAL(stopped()),
+ this, TQT_SLOT(slotStop()));
+ disconnect(m_seqManager->getCountdownDialog(), TQT_SIGNAL(completed()),
+ this, TQT_SLOT(slotStop()));
}
try {
@@ -5645,10 +5645,10 @@ void RosegardenGUIApp::slotConfigure()
ConfigureDialog *configDlg =
new ConfigureDialog(m_doc, kapp->config(), this);
- connect(configDlg, SIGNAL(updateAutoSaveInterval(unsigned int)),
- this, SLOT(slotUpdateAutoSaveInterval(unsigned int)));
- connect(configDlg, SIGNAL(updateSidebarStyle(unsigned int)),
- this, SLOT(slotUpdateSidebarStyle(unsigned int)));
+ connect(configDlg, TQT_SIGNAL(updateAutoSaveInterval(unsigned int)),
+ this, TQT_SLOT(slotUpdateAutoSaveInterval(unsigned int)));
+ connect(configDlg, TQT_SIGNAL(updateSidebarStyle(unsigned int)),
+ this, TQT_SLOT(slotUpdateSidebarStyle(unsigned int)));
configDlg->show();
}
@@ -5683,8 +5683,8 @@ void RosegardenGUIApp::slotEditToolbars()
{
KEditToolbar dlg(actionCollection(), "rosegardenui.rc");
- connect(&dlg, SIGNAL(newToolbarConfig()),
- SLOT(slotUpdateToolbars()));
+ connect(&dlg, TQT_SIGNAL(newToolbarConfig()),
+ TQT_SLOT(slotUpdateToolbars()));
dlg.exec();
}
@@ -5705,23 +5705,23 @@ void RosegardenGUIApp::slotEditTempo(timeT atTime)
slotEditTempo(this, atTime);
}
-void RosegardenGUIApp::slotEditTempo(QWidget *parent)
+void RosegardenGUIApp::slotEditTempo(TQWidget *parent)
{
slotEditTempo(parent, m_doc->getComposition().getPosition());
}
-void RosegardenGUIApp::slotEditTempo(QWidget *parent, timeT atTime)
+void RosegardenGUIApp::slotEditTempo(TQWidget *parent, timeT atTime)
{
RG_DEBUG << "RosegardenGUIApp::slotEditTempo\n";
TempoDialog tempoDialog(parent, m_doc);
connect(&tempoDialog,
- SIGNAL(changeTempo(timeT,
+ TQT_SIGNAL(changeTempo(timeT,
tempoT,
tempoT,
TempoDialog::TempoDialogAction)),
- SLOT(slotChangeTempo(timeT,
+ TQT_SLOT(slotChangeTempo(timeT,
tempoT,
tempoT,
TempoDialog::TempoDialogAction)));
@@ -5740,12 +5740,12 @@ void RosegardenGUIApp::slotEditTimeSignature(timeT atTime)
slotEditTimeSignature(this, atTime);
}
-void RosegardenGUIApp::slotEditTimeSignature(QWidget *parent)
+void RosegardenGUIApp::slotEditTimeSignature(TQWidget *parent)
{
slotEditTimeSignature(parent, m_doc->getComposition().getPosition());
}
-void RosegardenGUIApp::slotEditTimeSignature(QWidget *parent,
+void RosegardenGUIApp::slotEditTimeSignature(TQWidget *parent,
timeT time)
{
Composition &composition(m_doc->getComposition());
@@ -5754,7 +5754,7 @@ void RosegardenGUIApp::slotEditTimeSignature(QWidget *parent,
TimeSignatureDialog dialog(parent, &composition, time, sig);
- if (dialog.exec() == QDialog::Accepted) {
+ if (dialog.exec() == TQDialog::Accepted) {
time = dialog.getTime();
@@ -5775,13 +5775,13 @@ void RosegardenGUIApp::slotEditTransportTime()
slotEditTransportTime(this);
}
-void RosegardenGUIApp::slotEditTransportTime(QWidget *parent)
+void RosegardenGUIApp::slotEditTransportTime(TQWidget *parent)
{
TimeDialog dialog(parent, i18n("Move playback pointer to time"),
&m_doc->getComposition(),
m_doc->getComposition().getPosition(),
true);
- if (dialog.exec() == QDialog::Accepted) {
+ if (dialog.exec() == TQDialog::Accepted) {
m_doc->slotSetPointerPosition(dialog.getTime());
}
}
@@ -5953,7 +5953,7 @@ RosegardenGUIApp::slotAddMarker(timeT time)
}
void
-RosegardenGUIApp::slotDeleteMarker(int id, timeT time, QString name, QString description)
+RosegardenGUIApp::slotDeleteMarker(int id, timeT time, TQString name, TQString description)
{
RemoveMarkerCommand *command =
new RemoveMarkerCommand(&m_doc->getComposition(),
@@ -5980,7 +5980,7 @@ RosegardenGUIApp::slotDocumentModified(bool m)
}
void
-RosegardenGUIApp::slotStateChanged(QString s,
+RosegardenGUIApp::slotStateChanged(TQString s,
bool noReverse)
{
// RG_DEBUG << "RosegardenGUIApp::slotStateChanged " << s << "," << noReverse << endl;
@@ -6005,32 +6005,32 @@ RosegardenGUIApp::slotTestClipboard()
}
void
-RosegardenGUIApp::plugAccelerators(QWidget *widget, QAccel *acc)
+RosegardenGUIApp::plugAccelerators(TQWidget *widget, TQAccel *acc)
{
acc->connectItem(acc->insertItem(Key_Enter),
this,
- SLOT(slotPlay()));
+ TQT_SLOT(slotPlay()));
// Alternative shortcut for Play
acc->connectItem(acc->insertItem(Key_Return + CTRL),
this,
- SLOT(slotPlay()));
+ TQT_SLOT(slotPlay()));
acc->connectItem(acc->insertItem(Key_Insert),
this,
- SLOT(slotStop()));
+ TQT_SLOT(slotStop()));
acc->connectItem(acc->insertItem(Key_PageDown),
this,
- SLOT(slotFastforward()));
+ TQT_SLOT(slotFastforward()));
acc->connectItem(acc->insertItem(Key_End),
this,
- SLOT(slotRewind()));
+ TQT_SLOT(slotRewind()));
acc->connectItem(acc->insertItem(Key_Space),
this,
- SLOT(slotToggleRecord()));
+ TQT_SLOT(slotToggleRecord()));
TransportDialog *transport =
dynamic_cast<TransportDialog*>(widget);
@@ -6038,69 +6038,69 @@ RosegardenGUIApp::plugAccelerators(QWidget *widget, QAccel *acc)
if (transport) {
acc->connectItem(acc->insertItem(m_jumpToQuickMarkerAction->shortcut()),
this,
- SLOT(slotJumpToQuickMarker()));
+ TQT_SLOT(slotJumpToQuickMarker()));
acc->connectItem(acc->insertItem(m_setQuickMarkerAction->shortcut()),
this,
- SLOT(slotSetQuickMarker()));
+ TQT_SLOT(slotSetQuickMarker()));
connect(transport->PlayButton(),
- SIGNAL(clicked()),
+ TQT_SIGNAL(clicked()),
this,
- SLOT(slotPlay()));
+ TQT_SLOT(slotPlay()));
connect(transport->StopButton(),
- SIGNAL(clicked()),
+ TQT_SIGNAL(clicked()),
this,
- SLOT(slotStop()));
+ TQT_SLOT(slotStop()));
connect(transport->FfwdButton(),
- SIGNAL(clicked()),
- SLOT(slotFastforward()));
+ TQT_SIGNAL(clicked()),
+ TQT_SLOT(slotFastforward()));
connect(transport->RewindButton(),
- SIGNAL(clicked()),
+ TQT_SIGNAL(clicked()),
this,
- SLOT(slotRewind()));
+ TQT_SLOT(slotRewind()));
connect(transport->RecordButton(),
- SIGNAL(clicked()),
+ TQT_SIGNAL(clicked()),
this,
- SLOT(slotRecord()));
+ TQT_SLOT(slotRecord()));
connect(transport->RewindEndButton(),
- SIGNAL(clicked()),
+ TQT_SIGNAL(clicked()),
this,
- SLOT(slotRewindToBeginning()));
+ TQT_SLOT(slotRewindToBeginning()));
connect(transport->FfwdEndButton(),
- SIGNAL(clicked()),
+ TQT_SIGNAL(clicked()),
this,
- SLOT(slotFastForwardToEnd()));
+ TQT_SLOT(slotFastForwardToEnd()));
connect(transport->MetronomeButton(),
- SIGNAL(clicked()),
+ TQT_SIGNAL(clicked()),
this,
- SLOT(slotToggleMetronome()));
+ TQT_SLOT(slotToggleMetronome()));
connect(transport->SoloButton(),
- SIGNAL(toggled(bool)),
+ TQT_SIGNAL(toggled(bool)),
this,
- SLOT(slotToggleSolo(bool)));
+ TQT_SLOT(slotToggleSolo(bool)));
connect(transport->TimeDisplayButton(),
- SIGNAL(clicked()),
+ TQT_SIGNAL(clicked()),
this,
- SLOT(slotRefreshTimeDisplay()));
+ TQT_SLOT(slotRefreshTimeDisplay()));
connect(transport->ToEndButton(),
- SIGNAL(clicked()),
- SLOT(slotRefreshTimeDisplay()));
+ TQT_SIGNAL(clicked()),
+ TQT_SLOT(slotRefreshTimeDisplay()));
}
}
void
-RosegardenGUIApp::setCursor(const QCursor& cursor)
+RosegardenGUIApp::setCursor(const TQCursor& cursor)
{
KDockMainWindow::setCursor(cursor);
@@ -6119,7 +6119,7 @@ RosegardenGUIApp::setCursor(const QCursor& cursor)
// toolbars...
//
- QPtrListIterator<KToolBar> tbIter = toolBarIterator();
+ TQPtrListIterator<KToolBar> tbIter = toolBarIterator();
KToolBar* tb = 0;
while ((tb = tbIter.current()) != 0) {
tb->setCursor(cursor);
@@ -6150,10 +6150,10 @@ RosegardenGUIApp::createNewAudioFile()
}
}
-QValueVector<QString>
-RosegardenGUIApp::createRecordAudioFiles(const QValueVector<InstrumentId> &recordInstruments)
+TQValueVector<TQString>
+RosegardenGUIApp::createRecordAudioFiles(const TQValueVector<InstrumentId> &recordInstruments)
{
- QValueVector<QString> qv;
+ TQValueVector<TQString> qv;
for (unsigned int i = 0; i < recordInstruments.size(); ++i) {
AudioFile *aF = 0;
try {
@@ -6180,10 +6180,10 @@ RosegardenGUIApp::createRecordAudioFiles(const QValueVector<InstrumentId> &recor
QString
RosegardenGUIApp::getAudioFilePath()
{
- return QString(m_doc->getAudioFileManager().getAudioPath().c_str());
+ return TQString(m_doc->getAudioFileManager().getAudioPath().c_str());
}
-QValueVector<InstrumentId>
+TQValueVector<InstrumentId>
RosegardenGUIApp::getArmedInstruments()
{
std::set
@@ -6203,7 +6203,7 @@ RosegardenGUIApp::getArmedInstruments()
}
}
- QValueVector<InstrumentId> iv;
+ TQValueVector<InstrumentId> iv;
for (std::set
<InstrumentId>::iterator ii = iid.begin();
ii != iid.end(); ++ii) {
@@ -6213,7 +6213,7 @@ RosegardenGUIApp::getArmedInstruments()
}
void
-RosegardenGUIApp::showError(QString error)
+RosegardenGUIApp::showError(TQString error)
{
KStartupLogo::hideIfStillThere();
CurrentProgressDialog::freeze();
@@ -6245,20 +6245,20 @@ RosegardenGUIApp::slotAudioManager()
new AudioManagerDialog(this, m_doc);
connect(m_audioManagerDialog,
- SIGNAL(playAudioFile(AudioFileId,
+ TQT_SIGNAL(playAudioFile(AudioFileId,
const RealTime &,
const RealTime&)),
- SLOT(slotPlayAudioFile(AudioFileId,
+ TQT_SLOT(slotPlayAudioFile(AudioFileId,
const RealTime &,
const RealTime &)));
connect(m_audioManagerDialog,
- SIGNAL(addAudioFile(AudioFileId)),
- SLOT(slotAddAudioFile(AudioFileId)));
+ TQT_SIGNAL(addAudioFile(AudioFileId)),
+ TQT_SLOT(slotAddAudioFile(AudioFileId)));
connect(m_audioManagerDialog,
- SIGNAL(deleteAudioFile(AudioFileId)),
- SLOT(slotDeleteAudioFile(AudioFileId)));
+ TQT_SIGNAL(deleteAudioFile(AudioFileId)),
+ TQT_SLOT(slotDeleteAudioFile(AudioFileId)));
//
// Sync segment selection between audio man. dialog and main window
@@ -6266,46 +6266,46 @@ RosegardenGUIApp::slotAudioManager()
// from dialog to us...
connect(m_audioManagerDialog,
- SIGNAL(segmentsSelected(const SegmentSelection&)),
+ TQT_SIGNAL(segmentsSelected(const SegmentSelection&)),
m_view,
- SLOT(slotPropagateSegmentSelection(const SegmentSelection&)));
+ TQT_SLOT(slotPropagateSegmentSelection(const SegmentSelection&)));
// and from us to dialog
- connect(this, SIGNAL(segmentsSelected(const SegmentSelection&)),
+ connect(this, TQT_SIGNAL(segmentsSelected(const SegmentSelection&)),
m_audioManagerDialog,
- SLOT(slotSegmentSelection(const SegmentSelection&)));
+ TQT_SLOT(slotSegmentSelection(const SegmentSelection&)));
connect(m_audioManagerDialog,
- SIGNAL(deleteSegments(const SegmentSelection&)),
- SLOT(slotDeleteSegments(const SegmentSelection&)));
+ TQT_SIGNAL(deleteSegments(const SegmentSelection&)),
+ TQT_SLOT(slotDeleteSegments(const SegmentSelection&)));
connect(m_audioManagerDialog,
- SIGNAL(insertAudioSegment(AudioFileId,
+ TQT_SIGNAL(insertAudioSegment(AudioFileId,
const RealTime&,
const RealTime&)),
m_view,
- SLOT(slotAddAudioSegmentDefaultPosition(AudioFileId,
+ TQT_SLOT(slotAddAudioSegmentDefaultPosition(AudioFileId,
const RealTime&,
const RealTime&)));
connect(m_audioManagerDialog,
- SIGNAL(cancelPlayingAudioFile(AudioFileId)),
- SLOT(slotCancelAudioPlayingFile(AudioFileId)));
+ TQT_SIGNAL(cancelPlayingAudioFile(AudioFileId)),
+ TQT_SLOT(slotCancelAudioPlayingFile(AudioFileId)));
connect(m_audioManagerDialog,
- SIGNAL(deleteAllAudioFiles()),
- SLOT(slotDeleteAllAudioFiles()));
+ TQT_SIGNAL(deleteAllAudioFiles()),
+ TQT_SLOT(slotDeleteAllAudioFiles()));
// Make sure we know when the audio man. dialog is closing
//
connect(m_audioManagerDialog,
- SIGNAL(closing()),
- SLOT(slotAudioManagerClosed()));
+ TQT_SIGNAL(closing()),
+ TQT_SLOT(slotAudioManagerClosed()));
// And that it goes away when the current document is changing
//
- connect(this, SIGNAL(documentAboutToChange()),
- m_audioManagerDialog, SLOT(close()));
+ connect(this, TQT_SIGNAL(documentAboutToChange()),
+ m_audioManagerDialog, TQT_SLOT(close()));
m_audioManagerDialog->setAudioSubsystemStatus(
m_seqManager->getSoundDriverStatus() & AUDIO_OK);
@@ -6345,18 +6345,18 @@ RosegardenGUIApp::slotAddAudioFile(unsigned int id)
if (aF == 0)
return ;
- QCString replyType;
- QByteArray replyData;
- QByteArray data;
- QDataStream streamOut(data, IO_WriteOnly);
+ TQCString replyType;
+ TQByteArray replyData;
+ TQByteArray data;
+ TQDataStream streamOut(data, IO_WriteOnly);
// We have to pass the filename as a QString
//
- streamOut << QString(strtoqstr(aF->getFilename()));
+ streamOut << TQString(strtoqstr(aF->getFilename()));
streamOut << (int)aF->getId();
- if (rgapp->sequencerCall("addAudioFile(QString, int)", replyType, replyData, data)) {
- QDataStream streamIn(replyData, IO_ReadOnly);
+ if (rgapp->sequencerCall("addAudioFile(TQString, int)", replyType, replyData, data)) {
+ TQDataStream streamIn(replyData, IO_ReadOnly);
int result;
streamIn >> result;
if (!result) {
@@ -6371,17 +6371,17 @@ RosegardenGUIApp::slotDeleteAudioFile(unsigned int id)
if (m_doc->getAudioFileManager().removeFile(id) == false)
return ;
- QCString replyType;
- QByteArray replyData;
- QByteArray data;
- QDataStream streamOut(data, IO_WriteOnly);
+ TQCString replyType;
+ TQByteArray replyData;
+ TQByteArray data;
+ TQDataStream streamOut(data, IO_WriteOnly);
// file id
//
streamOut << (int)id;
if (rgapp->sequencerCall("removeAudioFile(int)", replyType, replyData, data)) {
- QDataStream streamIn(replyData, IO_ReadOnly);
+ TQDataStream streamIn(replyData, IO_ReadOnly);
int result;
streamIn >> result;
if (!result) {
@@ -6420,9 +6420,9 @@ RosegardenGUIApp::slotDeleteAllAudioFiles()
// Clear at the sequencer
//
- QCString replyType;
- QByteArray replyData;
- QByteArray data;
+ TQCString replyType;
+ TQByteArray replyData;
+ TQByteArray data;
rgapp->sequencerCall("clearAllAudioFiles()", replyType, replyData, data);
}
@@ -6440,7 +6440,7 @@ RosegardenGUIApp::slotRelabelSegments()
return ;
SegmentSelection selection(m_view->getSelection());
- QString editLabel;
+ TQString editLabel;
if (selection.size() == 0)
return ;
@@ -6452,7 +6452,7 @@ RosegardenGUIApp::slotRelabelSegments()
KTmpStatusMsg msg(i18n("Relabelling selection..."), this);
// Generate label
- QString label = strtoqstr((*selection.begin())->getLabel());
+ TQString label = strtoqstr((*selection.begin())->getLabel());
for (SegmentSelection::iterator i = selection.begin();
i != selection.end(); ++i) {
@@ -6462,7 +6462,7 @@ RosegardenGUIApp::slotRelabelSegments()
bool ok = false;
- QString newLabel = KInputDialog::getText(editLabel,
+ TQString newLabel = KInputDialog::getText(editLabel,
i18n("Enter new label"),
label,
&ok,
@@ -6498,7 +6498,7 @@ RosegardenGUIApp::slotChangeCompositionLength()
{
CompositionLengthDialog dialog(this, &m_doc->getComposition());
- if (dialog.exec() == QDialog::Accepted) {
+ if (dialog.exec() == TQDialog::Accepted) {
ChangeCompositionLengthCommand *command
= new ChangeCompositionLengthCommand(
&m_doc->getComposition(),
@@ -6522,26 +6522,26 @@ RosegardenGUIApp::slotManageMIDIDevices()
m_deviceManager = new DeviceManagerDialog(this, m_doc);
- connect(m_deviceManager, SIGNAL(closing()),
- this, SLOT(slotDeviceManagerClosed()));
+ connect(m_deviceManager, TQT_SIGNAL(closing()),
+ this, TQT_SLOT(slotDeviceManagerClosed()));
- connect(this, SIGNAL(documentAboutToChange()),
- m_deviceManager, SLOT(close()));
+ connect(this, TQT_SIGNAL(documentAboutToChange()),
+ m_deviceManager, TQT_SLOT(close()));
// Cheating way of updating the track/instrument list
//
- connect(m_deviceManager, SIGNAL(deviceNamesChanged()),
- m_view, SLOT(slotSynchroniseWithComposition()));
+ connect(m_deviceManager, TQT_SIGNAL(deviceNamesChanged()),
+ m_view, TQT_SLOT(slotSynchroniseWithComposition()));
- connect(m_deviceManager, SIGNAL(editBanks(DeviceId)),
- this, SLOT(slotEditBanks(DeviceId)));
+ connect(m_deviceManager, TQT_SIGNAL(editBanks(DeviceId)),
+ this, TQT_SLOT(slotEditBanks(DeviceId)));
- connect(m_deviceManager, SIGNAL(editControllers(DeviceId)),
- this, SLOT(slotEditControlParameters(DeviceId)));
+ connect(m_deviceManager, TQT_SIGNAL(editControllers(DeviceId)),
+ this, TQT_SLOT(slotEditControlParameters(DeviceId)));
if (m_midiMixer) {
- connect(m_deviceManager, SIGNAL(deviceNamesChanged()),
- m_midiMixer, SLOT(slotSynchronise()));
+ connect(m_deviceManager, TQT_SIGNAL(deviceNamesChanged()),
+ m_midiMixer, TQT_SLOT(slotSynchronise()));
}
@@ -6565,26 +6565,26 @@ RosegardenGUIApp::slotManageSynths()
#endif
);
- connect(m_synthManager, SIGNAL(closing()),
- this, SLOT(slotSynthPluginManagerClosed()));
+ connect(m_synthManager, TQT_SIGNAL(closing()),
+ this, TQT_SLOT(slotSynthPluginManagerClosed()));
- connect(this, SIGNAL(documentAboutToChange()),
- m_synthManager, SLOT(close()));
+ connect(this, TQT_SIGNAL(documentAboutToChange()),
+ m_synthManager, TQT_SLOT(close()));
connect(m_synthManager,
- SIGNAL(pluginSelected(InstrumentId, int, int)),
+ TQT_SIGNAL(pluginSelected(InstrumentId, int, int)),
this,
- SLOT(slotPluginSelected(InstrumentId, int, int)));
+ TQT_SLOT(slotPluginSelected(InstrumentId, int, int)));
connect(m_synthManager,
- SIGNAL(showPluginDialog(QWidget *, InstrumentId, int)),
+ TQT_SIGNAL(showPluginDialog(TQWidget *, InstrumentId, int)),
this,
- SLOT(slotShowPluginDialog(QWidget *, InstrumentId, int)));
+ TQT_SLOT(slotShowPluginDialog(TQWidget *, InstrumentId, int)));
connect(m_synthManager,
- SIGNAL(showPluginGUI(InstrumentId, int)),
+ TQT_SIGNAL(showPluginGUI(InstrumentId, int)),
this,
- SLOT(slotShowPluginGUI(InstrumentId, int)));
+ TQT_SLOT(slotShowPluginGUI(InstrumentId, int)));
m_synthManager->show();
}
@@ -6601,66 +6601,66 @@ RosegardenGUIApp::slotOpenAudioMixer()
m_audioMixer = new AudioMixerWindow(this, m_doc);
- connect(m_audioMixer, SIGNAL(windowActivated()),
- m_view, SLOT(slotActiveMainWindowChanged()));
+ connect(m_audioMixer, TQT_SIGNAL(windowActivated()),
+ m_view, TQT_SLOT(slotActiveMainWindowChanged()));
- connect(m_view, SIGNAL(controllerDeviceEventReceived(MappedEvent *, const void *)),
- m_audioMixer, SLOT(slotControllerDeviceEventReceived(MappedEvent *, const void *)));
+ connect(m_view, TQT_SIGNAL(controllerDeviceEventReceived(MappedEvent *, const void *)),
+ m_audioMixer, TQT_SLOT(slotControllerDeviceEventReceived(MappedEvent *, const void *)));
- connect(m_audioMixer, SIGNAL(closing()),
- this, SLOT(slotAudioMixerClosed()));
+ connect(m_audioMixer, TQT_SIGNAL(closing()),
+ this, TQT_SLOT(slotAudioMixerClosed()));
- connect(m_audioMixer, SIGNAL(selectPlugin(QWidget *, InstrumentId, int)),
- this, SLOT(slotShowPluginDialog(QWidget *, InstrumentId, int)));
+ connect(m_audioMixer, TQT_SIGNAL(selectPlugin(TQWidget *, InstrumentId, int)),
+ this, TQT_SLOT(slotShowPluginDialog(TQWidget *, InstrumentId, int)));
connect(this,
- SIGNAL(pluginSelected(InstrumentId, int, int)),
+ TQT_SIGNAL(pluginSelected(InstrumentId, int, int)),
m_audioMixer,
- SLOT(slotPluginSelected(InstrumentId, int, int)));
+ TQT_SLOT(slotPluginSelected(InstrumentId, int, int)));
connect(this,
- SIGNAL(pluginBypassed(InstrumentId, int, bool)),
+ TQT_SIGNAL(pluginBypassed(InstrumentId, int, bool)),
m_audioMixer,
- SLOT(slotPluginBypassed(InstrumentId, int, bool)));
-
- connect(this, SIGNAL(documentAboutToChange()),
- m_audioMixer, SLOT(close()));
-
- connect(m_view, SIGNAL(checkTrackAssignments()),
- m_audioMixer, SLOT(slotTrackAssignmentsChanged()));
-
- connect(m_audioMixer, SIGNAL(play()),
- this, SLOT(slotPlay()));
- connect(m_audioMixer, SIGNAL(stop()),
- this, SLOT(slotStop()));
- connect(m_audioMixer, SIGNAL(fastForwardPlayback()),
- this, SLOT(slotFastforward()));
- connect(m_audioMixer, SIGNAL(rewindPlayback()),
- this, SLOT(slotRewind()));
- connect(m_audioMixer, SIGNAL(fastForwardPlaybackToEnd()),
- this, SLOT(slotFastForwardToEnd()));
- connect(m_audioMixer, SIGNAL(rewindPlaybackToBeginning()),
- this, SLOT(slotRewindToBeginning()));
- connect(m_audioMixer, SIGNAL(record()),
- this, SLOT(slotRecord()));
- connect(m_audioMixer, SIGNAL(panic()),
- this, SLOT(slotPanic()));
+ TQT_SLOT(slotPluginBypassed(InstrumentId, int, bool)));
+
+ connect(this, TQT_SIGNAL(documentAboutToChange()),
+ m_audioMixer, TQT_SLOT(close()));
+
+ connect(m_view, TQT_SIGNAL(checkTrackAssignments()),
+ m_audioMixer, TQT_SLOT(slotTrackAssignmentsChanged()));
+
+ connect(m_audioMixer, TQT_SIGNAL(play()),
+ this, TQT_SLOT(slotPlay()));
+ connect(m_audioMixer, TQT_SIGNAL(stop()),
+ this, TQT_SLOT(slotStop()));
+ connect(m_audioMixer, TQT_SIGNAL(fastForwardPlayback()),
+ this, TQT_SLOT(slotFastforward()));
+ connect(m_audioMixer, TQT_SIGNAL(rewindPlayback()),
+ this, TQT_SLOT(slotRewind()));
+ connect(m_audioMixer, TQT_SIGNAL(fastForwardPlaybackToEnd()),
+ this, TQT_SLOT(slotFastForwardToEnd()));
+ connect(m_audioMixer, TQT_SIGNAL(rewindPlaybackToBeginning()),
+ this, TQT_SLOT(slotRewindToBeginning()));
+ connect(m_audioMixer, TQT_SIGNAL(record()),
+ this, TQT_SLOT(slotRecord()));
+ connect(m_audioMixer, TQT_SIGNAL(panic()),
+ this, TQT_SLOT(slotPanic()));
connect(m_audioMixer,
- SIGNAL(instrumentParametersChanged(InstrumentId)),
+ TQT_SIGNAL(instrumentParametersChanged(InstrumentId)),
this,
- SIGNAL(instrumentParametersChanged(InstrumentId)));
+ TQT_SIGNAL(instrumentParametersChanged(InstrumentId)));
connect(this,
- SIGNAL(instrumentParametersChanged(InstrumentId)),
+ TQT_SIGNAL(instrumentParametersChanged(InstrumentId)),
m_audioMixer,
- SLOT(slotUpdateInstrument(InstrumentId)));
+ TQT_SLOT(slotUpdateInstrument(InstrumentId)));
if (m_synthManager) {
connect(m_synthManager,
- SIGNAL(pluginSelected(InstrumentId, int, int)),
+ TQT_SIGNAL(pluginSelected(InstrumentId, int, int)),
m_audioMixer,
- SLOT(slotPluginSelected(InstrumentId, int, int)));
+ TQT_SLOT(slotPluginSelected(InstrumentId, int, int)));
}
plugAccelerators(m_audioMixer, m_audioMixer->getAccelerators());
@@ -6680,44 +6680,44 @@ RosegardenGUIApp::slotOpenMidiMixer()
m_midiMixer = new MidiMixerWindow(this, m_doc);
- connect(m_midiMixer, SIGNAL(windowActivated()),
- m_view, SLOT(slotActiveMainWindowChanged()));
-
- connect(m_view, SIGNAL(controllerDeviceEventReceived(MappedEvent *, const void *)),
- m_midiMixer, SLOT(slotControllerDeviceEventReceived(MappedEvent *, const void *)));
-
- connect(m_midiMixer, SIGNAL(closing()),
- this, SLOT(slotMidiMixerClosed()));
-
- connect(this, SIGNAL(documentAboutToChange()),
- m_midiMixer, SLOT(close()));
-
- connect(m_midiMixer, SIGNAL(play()),
- this, SLOT(slotPlay()));
- connect(m_midiMixer, SIGNAL(stop()),
- this, SLOT(slotStop()));
- connect(m_midiMixer, SIGNAL(fastForwardPlayback()),
- this, SLOT(slotFastforward()));
- connect(m_midiMixer, SIGNAL(rewindPlayback()),
- this, SLOT(slotRewind()));
- connect(m_midiMixer, SIGNAL(fastForwardPlaybackToEnd()),
- this, SLOT(slotFastForwardToEnd()));
- connect(m_midiMixer, SIGNAL(rewindPlaybackToBeginning()),
- this, SLOT(slotRewindToBeginning()));
- connect(m_midiMixer, SIGNAL(record()),
- this, SLOT(slotRecord()));
- connect(m_midiMixer, SIGNAL(panic()),
- this, SLOT(slotPanic()));
+ connect(m_midiMixer, TQT_SIGNAL(windowActivated()),
+ m_view, TQT_SLOT(slotActiveMainWindowChanged()));
+
+ connect(m_view, TQT_SIGNAL(controllerDeviceEventReceived(MappedEvent *, const void *)),
+ m_midiMixer, TQT_SLOT(slotControllerDeviceEventReceived(MappedEvent *, const void *)));
+
+ connect(m_midiMixer, TQT_SIGNAL(closing()),
+ this, TQT_SLOT(slotMidiMixerClosed()));
+
+ connect(this, TQT_SIGNAL(documentAboutToChange()),
+ m_midiMixer, TQT_SLOT(close()));
+
+ connect(m_midiMixer, TQT_SIGNAL(play()),
+ this, TQT_SLOT(slotPlay()));
+ connect(m_midiMixer, TQT_SIGNAL(stop()),
+ this, TQT_SLOT(slotStop()));
+ connect(m_midiMixer, TQT_SIGNAL(fastForwardPlayback()),
+ this, TQT_SLOT(slotFastforward()));
+ connect(m_midiMixer, TQT_SIGNAL(rewindPlayback()),
+ this, TQT_SLOT(slotRewind()));
+ connect(m_midiMixer, TQT_SIGNAL(fastForwardPlaybackToEnd()),
+ this, TQT_SLOT(slotFastForwardToEnd()));
+ connect(m_midiMixer, TQT_SIGNAL(rewindPlaybackToBeginning()),
+ this, TQT_SLOT(slotRewindToBeginning()));
+ connect(m_midiMixer, TQT_SIGNAL(record()),
+ this, TQT_SLOT(slotRecord()));
+ connect(m_midiMixer, TQT_SIGNAL(panic()),
+ this, TQT_SLOT(slotPanic()));
connect(m_midiMixer,
- SIGNAL(instrumentParametersChanged(InstrumentId)),
+ TQT_SIGNAL(instrumentParametersChanged(InstrumentId)),
this,
- SIGNAL(instrumentParametersChanged(InstrumentId)));
+ TQT_SIGNAL(instrumentParametersChanged(InstrumentId)));
connect(this,
- SIGNAL(instrumentParametersChanged(InstrumentId)),
+ TQT_SIGNAL(instrumentParametersChanged(InstrumentId)),
m_midiMixer,
- SLOT(slotUpdateInstrument(InstrumentId)));
+ TQT_SLOT(slotUpdateInstrument(InstrumentId)));
plugAccelerators(m_midiMixer, m_midiMixer->getAccelerators());
@@ -6744,14 +6744,14 @@ RosegardenGUIApp::slotEditControlParameters(DeviceId device)
RG_DEBUG << "inserting control editor dialog, have " << m_controlEditors.size() << " now" << endl;
- connect(controlEditor, SIGNAL(closing()),
- SLOT(slotControlEditorClosed()));
+ connect(controlEditor, TQT_SIGNAL(closing()),
+ TQT_SLOT(slotControlEditorClosed()));
- connect(this, SIGNAL(documentAboutToChange()),
- controlEditor, SLOT(close()));
+ connect(this, TQT_SIGNAL(documentAboutToChange()),
+ controlEditor, TQT_SLOT(close()));
- connect(m_doc, SIGNAL(devicesResyncd()),
- controlEditor, SLOT(slotUpdate()));
+ connect(m_doc, TQT_SIGNAL(devicesResyncd()),
+ controlEditor, TQT_SLOT(slotUpdate()));
controlEditor->show();
}
@@ -6776,16 +6776,16 @@ RosegardenGUIApp::slotEditBanks(DeviceId device)
m_bankEditor = new BankEditorDialog(this, m_doc, device);
- connect(m_bankEditor, SIGNAL(closing()),
- this, SLOT(slotBankEditorClosed()));
+ connect(m_bankEditor, TQT_SIGNAL(closing()),
+ this, TQT_SLOT(slotBankEditorClosed()));
- connect(this, SIGNAL(documentAboutToChange()),
- m_bankEditor, SLOT(slotFileClose()));
+ connect(this, TQT_SIGNAL(documentAboutToChange()),
+ m_bankEditor, TQT_SLOT(slotFileClose()));
// Cheating way of updating the track/instrument list
//
- connect(m_bankEditor, SIGNAL(deviceNamesChanged()),
- m_view, SLOT(slotSynchroniseWithComposition()));
+ connect(m_bankEditor, TQT_SIGNAL(deviceNamesChanged()),
+ m_view, TQT_SLOT(slotSynchroniseWithComposition()));
m_bankEditor->show();
}
@@ -6802,11 +6802,11 @@ RosegardenGUIApp::slotManageTriggerSegments()
m_triggerSegmentManager = new TriggerSegmentManager(this, m_doc);
- connect(m_triggerSegmentManager, SIGNAL(closing()),
- SLOT(slotTriggerManagerClosed()));
+ connect(m_triggerSegmentManager, TQT_SIGNAL(closing()),
+ TQT_SLOT(slotTriggerManagerClosed()));
- connect(m_triggerSegmentManager, SIGNAL(editTriggerSegment(int)),
- m_view, SLOT(slotEditTriggerSegment(int)));
+ connect(m_triggerSegmentManager, TQT_SIGNAL(editTriggerSegment(int)),
+ m_view, TQT_SLOT(slotEditTriggerSegment(int)));
m_triggerSegmentManager->show();
}
@@ -6831,11 +6831,11 @@ RosegardenGUIApp::slotEditMarkers()
m_markerEditor = new MarkerEditor(this, m_doc);
- connect(m_markerEditor, SIGNAL(closing()),
- SLOT(slotMarkerEditorClosed()));
+ connect(m_markerEditor, TQT_SIGNAL(closing()),
+ TQT_SLOT(slotMarkerEditorClosed()));
- connect(m_markerEditor, SIGNAL(jumpToMarker(timeT)),
- m_doc, SLOT(slotSetPointerPosition(timeT)));
+ connect(m_markerEditor, TQT_SIGNAL(jumpToMarker(timeT)),
+ m_doc, TQT_SLOT(slotSetPointerPosition(timeT)));
plugAccelerators(m_markerEditor, m_markerEditor->getAccelerators());
@@ -6862,24 +6862,24 @@ RosegardenGUIApp::slotEditTempos(timeT t)
m_tempoView = new TempoView(m_doc, getView(), t);
- connect(m_tempoView, SIGNAL(closing()),
- SLOT(slotTempoViewClosed()));
+ connect(m_tempoView, TQT_SIGNAL(closing()),
+ TQT_SLOT(slotTempoViewClosed()));
- connect(m_tempoView, SIGNAL(windowActivated()),
- getView(), SLOT(slotActiveMainWindowChanged()));
+ connect(m_tempoView, TQT_SIGNAL(windowActivated()),
+ getView(), TQT_SLOT(slotActiveMainWindowChanged()));
connect(m_tempoView,
- SIGNAL(changeTempo(timeT,
+ TQT_SIGNAL(changeTempo(timeT,
tempoT,
tempoT,
TempoDialog::TempoDialogAction)),
this,
- SLOT(slotChangeTempo(timeT,
+ TQT_SLOT(slotChangeTempo(timeT,
tempoT,
tempoT,
TempoDialog::TempoDialogAction)));
- connect(m_tempoView, SIGNAL(saveFile()), this, SLOT(slotFileSave()));
+ connect(m_tempoView, TQT_SIGNAL(saveFile()), this, TQT_SLOT(slotFileSave()));
plugAccelerators(m_tempoView, m_tempoView->getAccelerators());
@@ -6897,7 +6897,7 @@ RosegardenGUIApp::slotTempoViewClosed()
void
RosegardenGUIApp::slotControlEditorClosed()
{
- const QObject *s = sender();
+ const TQObject *s = sender();
RG_DEBUG << "RosegardenGUIApp::slotControlEditorClosed" << endl;
@@ -6915,7 +6915,7 @@ RosegardenGUIApp::slotControlEditorClosed()
}
void
-RosegardenGUIApp::slotShowPluginDialog(QWidget *parent,
+RosegardenGUIApp::slotShowPluginDialog(TQWidget *parent,
InstrumentId instrumentId,
int index)
{
@@ -6962,12 +6962,12 @@ RosegardenGUIApp::slotShowPluginDialog(QWidget *parent,
container,
index);
- connect(dialog, SIGNAL(windowActivated()),
- m_view, SLOT(slotActiveMainWindowChanged()));
+ connect(dialog, TQT_SIGNAL(windowActivated()),
+ m_view, TQT_SLOT(slotActiveMainWindowChanged()));
/* This feature isn't provided by the plugin dialog
- connect(m_view, SIGNAL(controllerDeviceEventReceived(MappedEvent *, const void *)),
- dialog, SLOT(slotControllerDeviceEventReceived(MappedEvent *, const void *)));
+ connect(m_view, TQT_SIGNAL(controllerDeviceEventReceived(MappedEvent *, const void *)),
+ dialog, TQT_SLOT(slotControllerDeviceEventReceived(MappedEvent *, const void *)));
*/
// Plug the new dialog into the standard keyboard accelerators so
@@ -6976,46 +6976,46 @@ RosegardenGUIApp::slotShowPluginDialog(QWidget *parent,
plugAccelerators(dialog, dialog->getAccelerators());
connect(dialog,
- SIGNAL(pluginSelected(InstrumentId, int, int)),
+ TQT_SIGNAL(pluginSelected(InstrumentId, int, int)),
this,
- SLOT(slotPluginSelected(InstrumentId, int, int)));
+ TQT_SLOT(slotPluginSelected(InstrumentId, int, int)));
connect(dialog,
- SIGNAL(pluginPortChanged(InstrumentId, int, int)),
+ TQT_SIGNAL(pluginPortChanged(InstrumentId, int, int)),
this,
- SLOT(slotPluginPortChanged(InstrumentId, int, int)));
+ TQT_SLOT(slotPluginPortChanged(InstrumentId, int, int)));
connect(dialog,
- SIGNAL(pluginProgramChanged(InstrumentId, int)),
+ TQT_SIGNAL(pluginProgramChanged(InstrumentId, int)),
this,
- SLOT(slotPluginProgramChanged(InstrumentId, int)));
+ TQT_SLOT(slotPluginProgramChanged(InstrumentId, int)));
connect(dialog,
- SIGNAL(changePluginConfiguration(InstrumentId, int, bool, QString, QString)),
+ TQT_SIGNAL(changePluginConfiguration(InstrumentId, int, bool, TQString, TQString)),
this,
- SLOT(slotChangePluginConfiguration(InstrumentId, int, bool, QString, QString)));
+ TQT_SLOT(slotChangePluginConfiguration(InstrumentId, int, bool, TQString, TQString)));
connect(dialog,
- SIGNAL(showPluginGUI(InstrumentId, int)),
+ TQT_SIGNAL(showPluginGUI(InstrumentId, int)),
this,
- SLOT(slotShowPluginGUI(InstrumentId, int)));
+ TQT_SLOT(slotShowPluginGUI(InstrumentId, int)));
connect(dialog,
- SIGNAL(stopPluginGUI(InstrumentId, int)),
+ TQT_SIGNAL(stopPluginGUI(InstrumentId, int)),
this,
- SLOT(slotStopPluginGUI(InstrumentId, int)));
+ TQT_SLOT(slotStopPluginGUI(InstrumentId, int)));
connect(dialog,
- SIGNAL(bypassed(InstrumentId, int, bool)),
+ TQT_SIGNAL(bypassed(InstrumentId, int, bool)),
this,
- SLOT(slotPluginBypassed(InstrumentId, int, bool)));
+ TQT_SLOT(slotPluginBypassed(InstrumentId, int, bool)));
connect(dialog,
- SIGNAL(destroyed(InstrumentId, int)),
+ TQT_SIGNAL(destroyed(InstrumentId, int)),
this,
- SLOT(slotPluginDialogDestroyed(InstrumentId, int)));
+ TQT_SLOT(slotPluginDialogDestroyed(InstrumentId, int)));
- connect(this, SIGNAL(documentAboutToChange()), dialog, SLOT(close()));
+ connect(this, TQT_SIGNAL(documentAboutToChange()), dialog, TQT_SLOT(close()));
m_pluginDialogs[key] = dialog;
m_pluginDialogs[key]->show();
@@ -7028,7 +7028,7 @@ void
RosegardenGUIApp::slotPluginSelected(InstrumentId instrumentId,
int index, int plugin)
{
- const QObject *s = sender();
+ const TQObject *s = sender();
bool fromSynthMgr = (s == m_synthManager);
@@ -7276,7 +7276,7 @@ RosegardenGUIApp::slotPluginPortChanged(InstrumentId instrumentId,
void
RosegardenGUIApp::slotChangePluginProgram(InstrumentId instrumentId,
int pluginIndex,
- QString program)
+ TQString program)
{
PluginContainer *container = 0;
@@ -7345,7 +7345,7 @@ RosegardenGUIApp::slotPluginProgramChanged(InstrumentId instrumentId,
return ;
}
- QString program = strtoqstr(inst->getProgram());
+ TQString program = strtoqstr(inst->getProgram());
RG_DEBUG << "RosegardenGUIApp::slotPluginProgramChanged - "
<< "setting plugin program ("
@@ -7381,8 +7381,8 @@ void
RosegardenGUIApp::slotChangePluginConfiguration(InstrumentId instrumentId,
int index,
bool global,
- QString key,
- QString value)
+ TQString key,
+ TQString value)
{
PluginContainer *container = 0;
@@ -7537,17 +7537,17 @@ RosegardenGUIApp::slotPlayList()
{
if (!m_playList) {
m_playList = new PlayListDialog(i18n("Play List"), this);
- connect(m_playList, SIGNAL(closing()),
- SLOT(slotPlayListClosed()));
- connect(m_playList->getPlayList(), SIGNAL(play(QString)),
- SLOT(slotPlayListPlay(QString)));
+ connect(m_playList, TQT_SIGNAL(closing()),
+ TQT_SLOT(slotPlayListClosed()));
+ connect(m_playList->getPlayList(), TQT_SIGNAL(play(TQString)),
+ TQT_SLOT(slotPlayListPlay(TQString)));
}
m_playList->show();
}
void
-RosegardenGUIApp::slotPlayListPlay(QString url)
+RosegardenGUIApp::slotPlayListPlay(TQString url)
{
slotStop();
openURL(url);
@@ -7564,7 +7564,7 @@ RosegardenGUIApp::slotPlayListClosed()
void
RosegardenGUIApp::slotTutorial()
{
- QString exe = KStandardDirs::findExe( "x-www-browser" );
+ TQString exe = KStandardDirs::findExe( "x-www-browser" );
if( exe )
{
@@ -7578,7 +7578,7 @@ RosegardenGUIApp::slotTutorial()
}
else
{
- QString tutorialURL = i18n("http://rosegarden.sourceforge.net/tutorial/en/chapter-0.html");
+ TQString tutorialURL = i18n("http://rosegarden.sourceforge.net/tutorial/en/chapter-0.html");
kapp->invokeBrowser(tutorialURL);
}
}
@@ -7586,7 +7586,7 @@ RosegardenGUIApp::slotTutorial()
void
RosegardenGUIApp::slotBugGuidelines()
{
- QString exe = KStandardDirs::findExe( "x-www-browser" );
+ TQString exe = KStandardDirs::findExe( "x-www-browser" );
if( exe )
{
@@ -7600,7 +7600,7 @@ RosegardenGUIApp::slotBugGuidelines()
}
else
{
- QString tutorialURL = i18n("http://rosegarden.sourceforge.net/tutorial/bug-guidelines.html");
+ TQString tutorialURL = i18n("http://rosegarden.sourceforge.net/tutorial/bug-guidelines.html");
kapp->invokeBrowser(tutorialURL);
}
}
@@ -7684,10 +7684,10 @@ RosegardenGUIApp::slotPanic()
(&progressDlg);
ProgressDialog::processEvents();
- connect(m_seqManager, SIGNAL(setProgress(int)),
- progressDlg.progressBar(), SLOT(setValue(int)));
- connect(m_seqManager, SIGNAL(incrementProgress(int)),
- progressDlg.progressBar(), SLOT(advance(int)));
+ connect(m_seqManager, TQT_SIGNAL(setProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(setValue(int)));
+ connect(m_seqManager, TQT_SIGNAL(incrementProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(advance(int)));
m_seqManager->panic();
@@ -7708,7 +7708,7 @@ RosegardenGUIApp::slotPopulateTrackInstrumentPopup()
Instrument* instrument = m_doc->getStudio().getInstrumentById(track->getInstrument());
- QPopupMenu* popup = dynamic_cast<QPopupMenu*>(factory()->container("set_track_instrument", this));
+ TQPopupMenu* popup = dynamic_cast<TQPopupMenu*>(factory()->container("set_track_instrument", this));
m_view->getTrackEditor()->getTrackButtons()->populateInstrumentPopup(instrument, popup);
}
@@ -7719,11 +7719,11 @@ RosegardenGUIApp::slotRemapInstruments()
RG_DEBUG << "RosegardenGUIApp::slotRemapInstruments\n";
RemapInstrumentDialog dialog(this, m_doc);
- connect(&dialog, SIGNAL(applyClicked()),
+ connect(&dialog, TQT_SIGNAL(applyClicked()),
m_view->getTrackEditor()->getTrackButtons(),
- SLOT(slotSynchroniseWithComposition()));
+ TQT_SLOT(slotSynchroniseWithComposition()));
- if (dialog.exec() == QDialog::Accepted) {
+ if (dialog.exec() == TQDialog::Accepted) {
RG_DEBUG << "slotRemapInstruments - accepted\n";
}
@@ -7742,20 +7742,20 @@ RosegardenGUIApp::slotSaveDefaultStudio()
KTmpStatusMsg msg(i18n("Saving current document as default studio..."), this);
- QString autoloadFile = ::locateLocal("appdata", "autoload.rg");
+ TQString autoloadFile = ::locateLocal("appdata", "autoload.rg");
RG_DEBUG << "RosegardenGUIApp::slotSaveDefaultStudio : saving studio in "
<< autoloadFile << endl;
SetWaitCursor waitCursor;
- QString errMsg;
+ TQString errMsg;
bool res = m_doc->saveDocument(autoloadFile, errMsg);
if (!res) {
if (errMsg)
- KMessageBox::error(this, i18n(QString("Could not auto-save document at %1\nError was : %2")
+ KMessageBox::error(this, i18n(TQString("Could not auto-save document at %1\nError was : %2")
.arg(autoloadFile).arg(errMsg)));
else
- KMessageBox::error(this, i18n(QString("Could not auto-save document at %1")
+ KMessageBox::error(this, i18n(TQString("Could not auto-save document at %1")
.arg(autoloadFile)));
}
@@ -7770,10 +7770,10 @@ RosegardenGUIApp::slotImportDefaultStudio()
if (reply != KMessageBox::Yes)
return ;
- QString autoloadFile =
+ TQString autoloadFile =
KGlobal::dirs()->findResource("appdata", "autoload.rg");
- QFileInfo autoloadFileInfo(autoloadFile);
+ TQFileInfo autoloadFileInfo(autoloadFile);
if (!autoloadFileInfo.isReadable()) {
RG_DEBUG << "RosegardenGUIDoc::slotImportDefaultStudio - "
@@ -7789,8 +7789,8 @@ RosegardenGUIApp::slotImportStudio()
{
RG_DEBUG << "RosegardenGUIApp::slotImportStudio()\n";
- QString studioDir = KGlobal::dirs()->findResource("appdata", "library/");
- QDir dir(studioDir);
+ TQString studioDir = KGlobal::dirs()->findResource("appdata", "library/");
+ TQDir dir(studioDir);
if (!dir.exists()) {
studioDir = ":ROSEGARDENDEVICE";
} else {
@@ -7805,7 +7805,7 @@ RosegardenGUIApp::slotImportStudio()
if (url.isEmpty())
return ;
- QString target;
+ TQString target;
if (KIO::NetAccess::download(url, target, this) == false) {
KMessageBox::error(this, i18n("Cannot download file %1")
.arg(url.prettyURL()));
@@ -7816,7 +7816,7 @@ RosegardenGUIApp::slotImportStudio()
}
void
-RosegardenGUIApp::slotImportStudioFromFile(const QString &file)
+RosegardenGUIApp::slotImportStudioFromFile(const TQString &file)
{
RosegardenGUIDoc *doc = new RosegardenGUIDoc(this, 0, true); // skipAutoload
@@ -7921,7 +7921,7 @@ RosegardenGUIApp::slotModifyMIDIFilters()
MidiFilterDialog dialog(this, m_doc);
- if (dialog.exec() == QDialog::Accepted) {
+ if (dialog.exec() == TQDialog::Accepted) {
RG_DEBUG << "slotModifyMIDIFilters - accepted" << endl;
}
}
@@ -7933,7 +7933,7 @@ RosegardenGUIApp::slotManageMetronome()
ManageMetronomeDialog dialog(this, m_doc);
- if (dialog.exec() == QDialog::Accepted) {
+ if (dialog.exec() == TQDialog::Accepted) {
RG_DEBUG << "slotManageMetronome - accepted" << endl;
}
}
@@ -7977,9 +7977,9 @@ RosegardenGUIApp::slotShowTip()
KTipDialog::showTip(this, locate("data", "rosegarden/tips"), true);
}
-void RosegardenGUIApp::slotShowToolHelp(const QString &s)
+void RosegardenGUIApp::slotShowToolHelp(const TQString &s)
{
- QString msg = s;
+ TQString msg = s;
if (msg != "") msg = " " + msg;
slotStatusMsg(msg);
}
@@ -8012,12 +8012,12 @@ RosegardenGUIApp::awaitDialogClearance()
while (haveDialog) {
- const QObjectList *c = children();
+ const TQObjectList *c = children();
if (!c) return;
haveDialog = false;
- for (QObjectList::const_iterator i = c->begin(); i != c->end(); ++i) {
- QDialog *dialog = dynamic_cast<QDialog *>(*i);
+ for (TQObjectList::const_iterator i = c->begin(); i != c->end(); ++i) {
+ TQDialog *dialog = dynamic_cast<TQDialog *>(*i);
if (dialog && dialog->isVisible()) {
haveDialog = true;
break;
@@ -8034,7 +8034,7 @@ RosegardenGUIApp::awaitDialogClearance()
}
void
-RosegardenGUIApp::slotNewerVersionAvailable(QString v)
+RosegardenGUIApp::slotNewerVersionAvailable(TQString v)
{
if (m_firstRun) return;
KStartupLogo::hideIfStillThere();
@@ -8044,7 +8044,7 @@ RosegardenGUIApp::slotNewerVersionAvailable(QString v)
(this,
i18n("<h3>Newer version available</h3><p>A newer version of Rosegarden may be available.<br>Please consult the <a href=\"http://www.rosegardenmusic.com/getting/\">Rosegarden website</a> for more information.</p>"),
i18n("Newer version available"),
- QString("version-%1-available-show").arg(v),
+ TQString("version-%1-available-show").arg(v),
KMessageBox::AllowLink);
CurrentProgressDialog::thaw();
}
diff --git a/src/gui/application/RosegardenGUIApp.cpp.orig b/src/gui/application/RosegardenGUIApp.cpp.orig
index fa98530..889f4f7 100644
--- a/src/gui/application/RosegardenGUIApp.cpp.orig
+++ b/src/gui/application/RosegardenGUIApp.cpp.orig
@@ -199,31 +199,31 @@
#include <ktoolbar.h>
#include <kurl.h>
#include <kxmlguiclient.h>
-#include <qaccel.h>
-#include <qcanvas.h>
-#include <qcstring.h>
-#include <qcursor.h>
-#include <qdatastream.h>
-#include <qdialog.h>
-#include <qdir.h>
-#include <qfile.h>
-#include <qfileinfo.h>
-#include <qiconset.h>
-#include <qinputdialog.h>
-#include <qlabel.h>
-#include <qobject.h>
-#include <qobjectlist.h>
-#include <qpixmap.h>
-#include <qpopupmenu.h>
-#include <qpushbutton.h>
-#include <qregexp.h>
-#include <qslider.h>
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qtextcodec.h>
-#include <qtimer.h>
-#include <qvaluevector.h>
-#include <qwidget.h>
+#include <tqaccel.h>
+#include <tqcanvas.h>
+#include <tqcstring.h>
+#include <tqcursor.h>
+#include <tqdatastream.h>
+#include <tqdialog.h>
+#include <tqdir.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
+#include <tqiconset.h>
+#include <tqinputdialog.h>
+#include <tqlabel.h>
+#include <tqobject.h>
+#include <tqobjectlist.h>
+#include <tqpixmap.h>
+#include <tqpopupmenu.h>
+#include <tqpushbutton.h>
+#include <tqregexp.h>
+#include <tqslider.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqtextcodec.h>
+#include <tqtimer.h>
+#include <tqvaluevector.h>
+#include <tqwidget.h>
#ifdef HAVE_LIBJACK
#include <jack/jack.h>
@@ -235,7 +235,7 @@ namespace Rosegarden
RosegardenGUIApp::RosegardenGUIApp(bool useSequencer,
bool useExistingSequencer,
- QObject *startupStatusMessageReceiver)
+ TQObject *startupStatusMessageReceiver)
: DCOPObject("RosegardenIface"), RosegardenIface(this), KDockMainWindow(0),
m_actionsSetup(false),
m_fileRecent(0),
@@ -258,7 +258,7 @@ RosegardenGUIApp::RosegardenGUIApp(bool useSequencer,
m_storedLoopEnd(0),
m_useSequencer(useSequencer),
m_dockVisible(true),
- m_autoSaveTimer(new QTimer(this)),
+ m_autoSaveTimer(new TQTimer(this)),
m_clipboard(new Clipboard),
m_playList(0),
m_deviceManager(0),
@@ -272,8 +272,8 @@ RosegardenGUIApp::RosegardenGUIApp(bool useSequencer,
#ifdef HAVE_LIBLO
m_pluginGUIManager(new AudioPluginOSCGUIManager(this)),
#endif
- m_playTimer(new QTimer(this)),
- m_stopTimer(new QTimer(this)),
+ m_playTimer(new TQTimer(this)),
+ m_stopTimer(new TQTimer(this)),
m_startupTester(0),
#ifdef HAVE_LIRC
m_lircClient(0),
@@ -287,9 +287,9 @@ RosegardenGUIApp::RosegardenGUIApp(bool useSequencer,
if (startupStatusMessageReceiver) {
- QObject::connect(this, SIGNAL(startupStatusMessage(QString)),
+ TQObject::connect(this, TQT_SIGNAL(startupStatusMessage(TQString)),
startupStatusMessageReceiver,
- SLOT(slotShowStatusMessage(QString)));
+ TQT_SLOT(slotShowStatusMessage(TQString)));
}
// Try to start the sequencer
@@ -341,7 +341,7 @@ RosegardenGUIApp::RosegardenGUIApp(bool useSequencer,
iFaceDelayedInit(this);
initZoomToolbar();
- QPixmap dummyPixmap; // any icon will do
+ TQPixmap dummyPixmap; // any icon will do
m_mainDockWidget = createDockWidget("Rosegarden MainDockWidget", dummyPixmap, 0L, "main_dock_widget");
// allow others to dock to the left and right sides only
m_mainDockWidget->setDockSite(KDockWidget::DockLeft | KDockWidget::DockRight);
@@ -356,14 +356,14 @@ RosegardenGUIApp::RosegardenGUIApp(bool useSequencer,
KDockWidget::DockLeft, // dock site
20); // relation target/this (in percent)
- connect(m_dockLeft, SIGNAL(iMBeingClosed()),
- this, SLOT(slotParametersClosed()));
- connect(m_dockLeft, SIGNAL(hasUndocked()),
- this, SLOT(slotParametersClosed()));
+ connect(m_dockLeft, TQT_SIGNAL(iMBeingClosed()),
+ this, TQT_SLOT(slotParametersClosed()));
+ connect(m_dockLeft, TQT_SIGNAL(hasUndocked()),
+ this, TQT_SLOT(slotParametersClosed()));
// Apparently, hasUndocked() is emitted when the dock widget's
// 'close' button on the dock handle is clicked.
- connect(m_mainDockWidget, SIGNAL(docking(KDockWidget*, KDockWidget::DockPosition)),
- this, SLOT(slotParametersDockedBack(KDockWidget*, KDockWidget::DockPosition)));
+ connect(m_mainDockWidget, TQT_SIGNAL(docking(KDockWidget*, KDockWidget::DockPosition)),
+ this, TQT_SLOT(slotParametersDockedBack(KDockWidget*, KDockWidget::DockPosition)));
stateChanged("parametersbox_closed", KXMLGUIClient::StateReverse);
@@ -393,35 +393,35 @@ RosegardenGUIApp::RosegardenGUIApp(bool useSequencer,
m_dockLeft->update();
connect(m_instrumentParameterBox,
- SIGNAL(selectPlugin(QWidget *, InstrumentId, int)),
+ TQT_SIGNAL(selectPlugin(TQWidget *, InstrumentId, int)),
this,
- SLOT(slotShowPluginDialog(QWidget *, InstrumentId, int)));
+ TQT_SLOT(slotShowPluginDialog(TQWidget *, InstrumentId, int)));
connect(m_instrumentParameterBox,
- SIGNAL(showPluginGUI(InstrumentId, int)),
+ TQT_SIGNAL(showPluginGUI(InstrumentId, int)),
this,
- SLOT(slotShowPluginGUI(InstrumentId, int)));
+ TQT_SLOT(slotShowPluginGUI(InstrumentId, int)));
// relay this through our own signal so that others can use it too
connect(m_instrumentParameterBox,
- SIGNAL(instrumentParametersChanged(InstrumentId)),
+ TQT_SIGNAL(instrumentParametersChanged(InstrumentId)),
this,
- SIGNAL(instrumentParametersChanged(InstrumentId)));
+ TQT_SIGNAL(instrumentParametersChanged(InstrumentId)));
connect(this,
- SIGNAL(instrumentParametersChanged(InstrumentId)),
+ TQT_SIGNAL(instrumentParametersChanged(InstrumentId)),
m_instrumentParameterBox,
- SLOT(slotInstrumentParametersChanged(InstrumentId)));
+ TQT_SLOT(slotInstrumentParametersChanged(InstrumentId)));
connect(this,
- SIGNAL(pluginSelected(InstrumentId, int, int)),
+ TQT_SIGNAL(pluginSelected(InstrumentId, int, int)),
m_instrumentParameterBox,
- SLOT(slotPluginSelected(InstrumentId, int, int)));
+ TQT_SLOT(slotPluginSelected(InstrumentId, int, int)));
connect(this,
- SIGNAL(pluginBypassed(InstrumentId, int, bool)),
+ TQT_SIGNAL(pluginBypassed(InstrumentId, int, bool)),
m_instrumentParameterBox,
- SLOT(slotPluginBypassed(InstrumentId, int, bool)));
+ TQT_SLOT(slotPluginBypassed(InstrumentId, int, bool)));
// Load the initial document (this includes doc's own autoload)
//
@@ -441,8 +441,8 @@ RosegardenGUIApp::RosegardenGUIApp(bool useSequencer,
}
if (m_view) {
- connect(m_seqManager, SIGNAL(controllerDeviceEventReceived(MappedEvent *)),
- m_view, SLOT(slotControllerDeviceEventReceived(MappedEvent *)));
+ connect(m_seqManager, TQT_SIGNAL(controllerDeviceEventReceived(MappedEvent *)),
+ m_view, TQT_SLOT(slotControllerDeviceEventReceived(MappedEvent *)));
}
if (m_seqManager->getSoundDriverStatus() & AUDIO_OK) {
@@ -496,7 +496,7 @@ RosegardenGUIApp::RosegardenGUIApp(bool useSequencer,
stateChanged("have_project_packager", KXMLGUIClient::StateReverse);
stateChanged("have_lilypondview", KXMLGUIClient::StateReverse);
- QTimer::singleShot(1000, this, SLOT(slotTestStartupTester()));
+ TQTimer::singleShot(1000, this, TQT_SLOT(slotTestStartupTester()));
}
RosegardenGUIApp::~RosegardenGUIApp()
@@ -541,101 +541,101 @@ void RosegardenGUIApp::setupActions()
{
// setup File menu
// New Window ?
- KStdAction::openNew (this, SLOT(slotFileNew()), actionCollection());
- KStdAction::open (this, SLOT(slotFileOpen()), actionCollection());
+ KStdAction::openNew (this, TQT_SLOT(slotFileNew()), actionCollection());
+ KStdAction::open (this, TQT_SLOT(slotFileOpen()), actionCollection());
m_fileRecent = KStdAction::openRecent(this,
- SLOT(slotFileOpenRecent(const KURL&)),
+ TQT_SLOT(slotFileOpenRecent(const KURL&)),
actionCollection());
- KStdAction::save (this, SLOT(slotFileSave()), actionCollection());
- KStdAction::saveAs(this, SLOT(slotFileSaveAs()), actionCollection());
- KStdAction::revert(this, SLOT(slotRevertToSaved()), actionCollection());
- KStdAction::close (this, SLOT(slotFileClose()), actionCollection());
- KStdAction::print (this, SLOT(slotFilePrint()), actionCollection());
- KStdAction::printPreview (this, SLOT(slotFilePrintPreview()), actionCollection());
+ KStdAction::save (this, TQT_SLOT(slotFileSave()), actionCollection());
+ KStdAction::saveAs(this, TQT_SLOT(slotFileSaveAs()), actionCollection());
+ KStdAction::revert(this, TQT_SLOT(slotRevertToSaved()), actionCollection());
+ KStdAction::close (this, TQT_SLOT(slotFileClose()), actionCollection());
+ KStdAction::print (this, TQT_SLOT(slotFilePrint()), actionCollection());
+ KStdAction::printPreview (this, TQT_SLOT(slotFilePrintPreview()), actionCollection());
new KAction(i18n("Import Rosegarden &Project file..."), 0, 0, this,
- SLOT(slotImportProject()), actionCollection(),
+ TQT_SLOT(slotImportProject()), actionCollection(),
"file_import_project");
new KAction(i18n("Import &MIDI file..."), 0, 0, this,
- SLOT(slotImportMIDI()), actionCollection(),
+ TQT_SLOT(slotImportMIDI()), actionCollection(),
"file_import_midi");
new KAction(i18n("Import &Rosegarden 2.1 file..."), 0, 0, this,
- SLOT(slotImportRG21()), actionCollection(),
+ TQT_SLOT(slotImportRG21()), actionCollection(),
"file_import_rg21");
new KAction(i18n("Import &Hydrogen file..."), 0, 0, this,
- SLOT(slotImportHydrogen()), actionCollection(),
+ TQT_SLOT(slotImportHydrogen()), actionCollection(),
"file_import_hydrogen");
new KAction(i18n("Merge &File..."), 0, 0, this,
- SLOT(slotMerge()), actionCollection(),
+ TQT_SLOT(slotMerge()), actionCollection(),
"file_merge");
new KAction(i18n("Merge &MIDI file..."), 0, 0, this,
- SLOT(slotMergeMIDI()), actionCollection(),
+ TQT_SLOT(slotMergeMIDI()), actionCollection(),
"file_merge_midi");
new KAction(i18n("Merge &Rosegarden 2.1 file..."), 0, 0, this,
- SLOT(slotMergeRG21()), actionCollection(),
+ TQT_SLOT(slotMergeRG21()), actionCollection(),
"file_merge_rg21");
new KAction(i18n("Merge &Hydrogen file..."), 0, 0, this,
- SLOT(slotMergeHydrogen()), actionCollection(),
+ TQT_SLOT(slotMergeHydrogen()), actionCollection(),
"file_merge_hydrogen");
new KAction(i18n("Export Rosegarden &Project file..."), 0, 0, this,
- SLOT(slotExportProject()), actionCollection(),
+ TQT_SLOT(slotExportProject()), actionCollection(),
"file_export_project");
new KAction(i18n("Export &MIDI file..."), 0, 0, this,
- SLOT(slotExportMIDI()), actionCollection(),
+ TQT_SLOT(slotExportMIDI()), actionCollection(),
"file_export_midi");
new KAction(i18n("Export &LilyPond file..."), 0, 0, this,
- SLOT(slotExportLilyPond()), actionCollection(),
+ TQT_SLOT(slotExportLilyPond()), actionCollection(),
"file_export_lilypond");
new KAction(i18n("Export Music&XML file..."), 0, 0, this,
- SLOT(slotExportMusicXml()), actionCollection(),
+ TQT_SLOT(slotExportMusicXml()), actionCollection(),
"file_export_musicxml");
new KAction(i18n("Export &Csound score file..."), 0, 0, this,
- SLOT(slotExportCsound()), actionCollection(),
+ TQT_SLOT(slotExportCsound()), actionCollection(),
"file_export_csound");
new KAction(i18n("Export M&up file..."), 0, 0, this,
- SLOT(slotExportMup()), actionCollection(),
+ TQT_SLOT(slotExportMup()), actionCollection(),
"file_export_mup");
new KAction(i18n("Print &with LilyPond..."), 0, 0, this,
- SLOT(slotPrintLilyPond()), actionCollection(),
+ TQT_SLOT(slotPrintLilyPond()), actionCollection(),
"file_print_lilypond");
new KAction(i18n("Preview with Lil&yPond..."), 0, 0, this,
- SLOT(slotPreviewLilyPond()), actionCollection(),
+ TQT_SLOT(slotPreviewLilyPond()), actionCollection(),
"file_preview_lilypond");
new KAction(i18n("Play&list"), 0, 0, this,
- SLOT(slotPlayList()), actionCollection(),
+ TQT_SLOT(slotPlayList()), actionCollection(),
"file_show_playlist");
- KStdAction::quit (this, SLOT(slotQuit()), actionCollection());
+ KStdAction::quit (this, TQT_SLOT(slotQuit()), actionCollection());
// help menu
new KAction(i18n("Rosegarden &Tutorial"), 0, 0, this,
- SLOT(slotTutorial()), actionCollection(),
+ TQT_SLOT(slotTutorial()), actionCollection(),
"tutorial");
new KAction(i18n("&Bug Reporting Guidelines"), 0, 0, this,
- SLOT(slotBugGuidelines()), actionCollection(),
+ TQT_SLOT(slotBugGuidelines()), actionCollection(),
"guidelines");
// setup edit menu
- KStdAction::cut (this, SLOT(slotEditCut()), actionCollection());
- KStdAction::copy (this, SLOT(slotEditCopy()), actionCollection());
- KStdAction::paste (this, SLOT(slotEditPaste()), actionCollection());
+ KStdAction::cut (this, TQT_SLOT(slotEditCut()), actionCollection());
+ KStdAction::copy (this, TQT_SLOT(slotEditCopy()), actionCollection());
+ KStdAction::paste (this, TQT_SLOT(slotEditPaste()), actionCollection());
//
// undo/redo actions are special in that they are connected to
@@ -659,202 +659,202 @@ void RosegardenGUIApp::setupActions()
// setup Settings menu
//
- m_viewToolBar = KStdAction::showToolbar (this, SLOT(slotToggleToolBar()), actionCollection(),
+ m_viewToolBar = KStdAction::showToolbar (this, TQT_SLOT(slotToggleToolBar()), actionCollection(),
"show_stock_toolbar");
m_viewToolsToolBar = new KToggleAction(i18n("Show T&ools Toolbar"), 0, this,
- SLOT(slotToggleToolsToolBar()), actionCollection(),
+ TQT_SLOT(slotToggleToolsToolBar()), actionCollection(),
"show_tools_toolbar");
m_viewTracksToolBar = new KToggleAction(i18n("Show Trac&ks Toolbar"), 0, this,
- SLOT(slotToggleTracksToolBar()), actionCollection(),
+ TQT_SLOT(slotToggleTracksToolBar()), actionCollection(),
"show_tracks_toolbar");
m_viewEditorsToolBar = new KToggleAction(i18n("Show &Editors Toolbar"), 0, this,
- SLOT(slotToggleEditorsToolBar()), actionCollection(),
+ TQT_SLOT(slotToggleEditorsToolBar()), actionCollection(),
"show_editors_toolbar");
m_viewTransportToolBar = new KToggleAction(i18n("Show Trans&port Toolbar"), 0, this,
- SLOT(slotToggleTransportToolBar()), actionCollection(),
+ TQT_SLOT(slotToggleTransportToolBar()), actionCollection(),
"show_transport_toolbar");
m_viewZoomToolBar = new KToggleAction(i18n("Show &Zoom Toolbar"), 0, this,
- SLOT(slotToggleZoomToolBar()), actionCollection(),
+ TQT_SLOT(slotToggleZoomToolBar()), actionCollection(),
"show_zoom_toolbar");
- m_viewStatusBar = KStdAction::showStatusbar(this, SLOT(slotToggleStatusBar()),
+ m_viewStatusBar = KStdAction::showStatusbar(this, TQT_SLOT(slotToggleStatusBar()),
actionCollection(), "show_status_bar");
m_viewTransport = new KToggleAction(i18n("Show Tra&nsport"), Key_T, this,
- SLOT(slotToggleTransport()),
+ TQT_SLOT(slotToggleTransport()),
actionCollection(),
"show_transport");
m_viewTrackLabels = new KToggleAction(i18n("Show Track &Labels"), 0, this,
- SLOT(slotToggleTrackLabels()),
+ TQT_SLOT(slotToggleTrackLabels()),
actionCollection(),
"show_tracklabels");
m_viewRulers = new KToggleAction(i18n("Show Playback Position R&uler"), 0, this,
- SLOT(slotToggleRulers()),
+ TQT_SLOT(slotToggleRulers()),
actionCollection(),
"show_rulers");
m_viewTempoRuler = new KToggleAction(i18n("Show Te&mpo Ruler"), 0, this,
- SLOT(slotToggleTempoRuler()),
+ TQT_SLOT(slotToggleTempoRuler()),
actionCollection(),
"show_tempo_ruler");
m_viewChordNameRuler = new KToggleAction(i18n("Show Cho&rd Name Ruler"), 0, this,
- SLOT(slotToggleChordNameRuler()),
+ TQT_SLOT(slotToggleChordNameRuler()),
actionCollection(),
"show_chord_name_ruler");
m_viewPreviews = new KToggleAction(i18n("Show Segment Pre&views"), 0, this,
- SLOT(slotTogglePreviews()),
+ TQT_SLOT(slotTogglePreviews()),
actionCollection(),
"show_previews");
new KAction(i18n("Show Special &Parameters"), Key_P, this,
- SLOT(slotDockParametersBack()),
+ TQT_SLOT(slotDockParametersBack()),
actionCollection(),
"show_inst_segment_parameters");
- KStdAction::tipOfDay( this, SLOT( slotShowTip() ), actionCollection() );
+ KStdAction::tipOfDay( this, TQT_SLOT( slotShowTip() ), actionCollection() );
// Standard Actions
//
KStdAction::saveOptions(this,
- SLOT(slotSaveOptions()),
+ TQT_SLOT(slotSaveOptions()),
actionCollection());
KStdAction::preferences(this,
- SLOT(slotConfigure()),
+ TQT_SLOT(slotConfigure()),
actionCollection());
KStdAction::keyBindings(this,
- SLOT(slotEditKeys()),
+ TQT_SLOT(slotEditKeys()),
actionCollection());
KStdAction::configureToolbars(this,
- SLOT(slotEditToolbars()),
+ TQT_SLOT(slotEditToolbars()),
actionCollection());
KRadioAction *action = 0;
// Create the select icon
//
- QString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/");
- QCanvasPixmap pixmap(pixmapDir + "/toolbar/select.xpm");
- QIconSet icon = QIconSet(pixmap);
+ TQString pixmapDir = KGlobal::dirs()->findResource("appdata", "pixmaps/");
+ TQCanvasPixmap pixmap(pixmapDir + "/toolbar/select.xpm");
+ TQIconSet icon = TQIconSet(pixmap);
// TODO : add some shortcuts here
action = new KRadioAction(i18n("&Select and Edit"), icon, Key_F2,
- this, SLOT(slotPointerSelected()),
+ this, TQT_SLOT(slotPointerSelected()),
actionCollection(), "select");
action->setExclusiveGroup("segmenttools");
action = new KRadioAction(i18n("&Draw"), "pencil", Key_F3,
- this, SLOT(slotDrawSelected()),
+ this, TQT_SLOT(slotDrawSelected()),
actionCollection(), "draw");
action->setExclusiveGroup("segmenttools");
action = new KRadioAction(i18n("&Erase"), "eraser", Key_F4,
- this, SLOT(slotEraseSelected()),
+ this, TQT_SLOT(slotEraseSelected()),
actionCollection(), "erase");
action->setExclusiveGroup("segmenttools");
action = new KRadioAction(i18n("&Move"), "move", Key_F5,
- this, SLOT(slotMoveSelected()),
+ this, TQT_SLOT(slotMoveSelected()),
actionCollection(), "move");
action->setExclusiveGroup("segmenttools");
pixmap.load(pixmapDir + "/toolbar/resize.xpm");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
action = new KRadioAction(i18n("&Resize"), icon, Key_F6,
- this, SLOT(slotResizeSelected()),
+ this, TQT_SLOT(slotResizeSelected()),
actionCollection(), "resize");
action->setExclusiveGroup("segmenttools");
pixmap.load(pixmapDir + "/toolbar/split.xpm");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
action = new KRadioAction(i18n("&Split"), icon, Key_F7,
- this, SLOT(slotSplitSelected()),
+ this, TQT_SLOT(slotSplitSelected()),
actionCollection(), "split");
action->setExclusiveGroup("segmenttools");
pixmap.load(pixmapDir + "/toolbar/join.xpm");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
action = new KRadioAction(i18n("&Join"), icon, 0,
- this, SLOT(slotJoinSelected()),
+ this, TQT_SLOT(slotJoinSelected()),
actionCollection(), "join");
action->setExclusiveGroup("segmenttools");
new KAction(i18n("&Harmonize"), 0, this,
- SLOT(slotHarmonizeSelection()), actionCollection(),
+ TQT_SLOT(slotHarmonizeSelection()), actionCollection(),
"harmonize_selection");
pixmap.load(pixmapDir + "/toolbar/event-insert-timesig.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(AddTimeSignatureCommand::getGlobalName(),
icon, 0,
- this, SLOT(slotEditTimeSignature()),
+ this, TQT_SLOT(slotEditTimeSignature()),
actionCollection(), "add_time_signature");
new KAction(i18n("Open Tempo and Time Signature Editor"), 0, this,
- SLOT(slotEditTempos()), actionCollection(), "edit_tempos");
+ TQT_SLOT(slotEditTempos()), actionCollection(), "edit_tempos");
//
// Edit menu
//
new KAction(i18n("Cut Range"), Key_X + CTRL + SHIFT, this,
- SLOT(slotCutRange()), actionCollection(),
+ TQT_SLOT(slotCutRange()), actionCollection(),
"cut_range");
new KAction(i18n("Copy Range"), Key_C + CTRL + SHIFT, this,
- SLOT(slotCopyRange()), actionCollection(),
+ TQT_SLOT(slotCopyRange()), actionCollection(),
"copy_range");
new KAction(i18n("Paste Range"), Key_V + CTRL + SHIFT, this,
- SLOT(slotPasteRange()), actionCollection(),
+ TQT_SLOT(slotPasteRange()), actionCollection(),
"paste_range");
/*
new KAction(i18n("Delete Range"), Key_Delete + SHIFT, this,
- SLOT(slotDeleteRange()), actionCollection(),
+ TQT_SLOT(slotDeleteRange()), actionCollection(),
"delete_range");
*/
new KAction(i18n("Insert Range..."), Key_Insert + SHIFT, this,
- SLOT(slotInsertRange()), actionCollection(),
+ TQT_SLOT(slotInsertRange()), actionCollection(),
"insert_range");
new KAction(i18n("De&lete"), Key_Delete, this,
- SLOT(slotDeleteSelectedSegments()), actionCollection(),
+ TQT_SLOT(slotDeleteSelectedSegments()), actionCollection(),
"delete");
new KAction(i18n("Select &All Segments"), Key_A + CTRL, this,
- SLOT(slotSelectAll()), actionCollection(),
+ TQT_SLOT(slotSelectAll()), actionCollection(),
"select_all");
pixmap.load(pixmapDir + "/toolbar/event-insert-tempo.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(AddTempoChangeCommand::getGlobalName(),
icon, 0,
- this, SLOT(slotEditTempo()),
+ this, TQT_SLOT(slotEditTempo()),
actionCollection(), "add_tempo");
new KAction(ChangeCompositionLengthCommand::getGlobalName(),
0,
- this, SLOT(slotChangeCompositionLength()),
+ this, TQT_SLOT(slotChangeCompositionLength()),
actionCollection(), "change_composition_length");
new KAction(i18n("Edit Mar&kers..."), Key_K + CTRL, this,
- SLOT(slotEditMarkers()),
+ TQT_SLOT(slotEditMarkers()),
actionCollection(), "edit_markers");
new KAction(i18n("Edit Document P&roperties..."), 0, this,
- SLOT(slotEditDocumentProperties()),
+ TQT_SLOT(slotEditDocumentProperties()),
actionCollection(), "edit_doc_properties");
@@ -862,267 +862,267 @@ void RosegardenGUIApp::setupActions()
// Segments menu
//
new KAction(i18n("Open in &Default Editor"), Key_Return, this,
- SLOT(slotEdit()), actionCollection(),
+ TQT_SLOT(slotEdit()), actionCollection(),
"edit_default");
pixmap.load(pixmapDir + "/toolbar/matrix.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(i18n("Open in Matri&x Editor"), icon, Key_M, this,
- SLOT(slotEditInMatrix()), actionCollection(),
+ TQT_SLOT(slotEditInMatrix()), actionCollection(),
"edit_matrix");
pixmap.load(pixmapDir + "/toolbar/matrix-percussion.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(i18n("Open in &Percussion Matrix Editor"), icon, Key_D, this,
- SLOT(slotEditInPercussionMatrix()), actionCollection(),
+ TQT_SLOT(slotEditInPercussionMatrix()), actionCollection(),
"edit_percussion_matrix");
pixmap.load(pixmapDir + "/toolbar/notation.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(i18n("Open in &Notation Editor"), icon, Key_N, this,
- SLOT(slotEditAsNotation()), actionCollection(),
+ TQT_SLOT(slotEditAsNotation()), actionCollection(),
"edit_notation");
pixmap.load(pixmapDir + "/toolbar/eventlist.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(i18n("Open in &Event List Editor"), icon, Key_E, this,
- SLOT(slotEditInEventList()), actionCollection(),
+ TQT_SLOT(slotEditInEventList()), actionCollection(),
"edit_event_list");
pixmap.load(pixmapDir + "/toolbar/quantize.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(i18n("&Quantize..."), icon, Key_Equal, this,
- SLOT(slotQuantizeSelection()), actionCollection(),
+ TQT_SLOT(slotQuantizeSelection()), actionCollection(),
"quantize_selection");
new KAction(SegmentLabelCommand::getGlobalName(),
0,
- this, SLOT(slotRelabelSegments()),
+ this, TQT_SLOT(slotRelabelSegments()),
actionCollection(), "relabel_segment");
new KAction(SegmentTransposeCommand::getGlobalName(),
0,
- this, SLOT(slotTransposeSegments()),
+ this, TQT_SLOT(slotTransposeSegments()),
actionCollection(), "transpose");
new KAction(i18n("Repeat Last Quantize"), Key_Plus, this,
- SLOT(slotRepeatQuantizeSelection()), actionCollection(),
+ TQT_SLOT(slotRepeatQuantizeSelection()), actionCollection(),
"repeat_quantize");
new KAction(SegmentRescaleCommand::getGlobalName(), 0, this,
- SLOT(slotRescaleSelection()), actionCollection(),
+ TQT_SLOT(slotRescaleSelection()), actionCollection(),
"rescale");
new KAction(SegmentAutoSplitCommand::getGlobalName(), 0, this,
- SLOT(slotAutoSplitSelection()), actionCollection(),
+ TQT_SLOT(slotAutoSplitSelection()), actionCollection(),
"auto_split");
new KAction(SegmentSplitByPitchCommand::getGlobalName(), 0, this,
- SLOT(slotSplitSelectionByPitch()), actionCollection(),
+ TQT_SLOT(slotSplitSelectionByPitch()), actionCollection(),
"split_by_pitch");
new KAction(SegmentSplitByRecordingSrcCommand::getGlobalName(), 0, this,
- SLOT(slotSplitSelectionByRecordedSrc()), actionCollection(),
+ TQT_SLOT(slotSplitSelectionByRecordedSrc()), actionCollection(),
"split_by_recording");
new KAction(i18n("Split at Time..."), 0, this,
- SLOT(slotSplitSelectionAtTime()), actionCollection(),
+ TQT_SLOT(slotSplitSelectionAtTime()), actionCollection(),
"split_at_time");
new KAction(i18n("Jog &Left"), Key_Left + ALT, this,
- SLOT(slotJogLeft()), actionCollection(),
+ TQT_SLOT(slotJogLeft()), actionCollection(),
"jog_left");
new KAction(i18n("Jog &Right"), Key_Right + ALT, this,
- SLOT(slotJogRight()), actionCollection(),
+ TQT_SLOT(slotJogRight()), actionCollection(),
"jog_right");
new KAction(i18n("Set Start Time..."), 0, this,
- SLOT(slotSetSegmentStartTimes()), actionCollection(),
+ TQT_SLOT(slotSetSegmentStartTimes()), actionCollection(),
"set_segment_start");
new KAction(i18n("Set Duration..."), 0, this,
- SLOT(slotSetSegmentDurations()), actionCollection(),
+ TQT_SLOT(slotSetSegmentDurations()), actionCollection(),
"set_segment_duration");
new KAction(SegmentJoinCommand::getGlobalName(),
Key_J + CTRL,
- this, SLOT(slotJoinSegments()),
+ this, TQT_SLOT(slotJoinSegments()),
actionCollection(), "join_segments");
new KAction(i18n("Turn Re&peats into Copies"),
0,
- this, SLOT(slotRepeatingSegments()),
+ this, TQT_SLOT(slotRepeatingSegments()),
actionCollection(), "repeats_to_real_copies");
new KAction(i18n("Manage Tri&ggered Segments"), 0,
- this, SLOT(slotManageTriggerSegments()),
+ this, TQT_SLOT(slotManageTriggerSegments()),
actionCollection(), "manage_trigger_segments");
new KAction(i18n("Set Tempos from &Beat Segment"), 0, this,
- SLOT(slotGrooveQuantize()), actionCollection(),
+ TQT_SLOT(slotGrooveQuantize()), actionCollection(),
"groove_quantize");
new KAction(i18n("Set &Tempo to Audio Segment Duration"), 0, this,
- SLOT(slotTempoToSegmentLength()), actionCollection(),
+ TQT_SLOT(slotTempoToSegmentLength()), actionCollection(),
"set_tempo_to_segment_length");
pixmap.load(pixmapDir + "/toolbar/manage-audio-segments.xpm");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(i18n("Manage A&udio Files"), icon,
Key_U + CTRL,
- this, SLOT(slotAudioManager()),
+ this, TQT_SLOT(slotAudioManager()),
actionCollection(), "audio_manager");
m_viewSegmentLabels = new KToggleAction(i18n("Show Segment Labels"), 0, this,
- SLOT(slotToggleSegmentLabels()), actionCollection(),
+ TQT_SLOT(slotToggleSegmentLabels()), actionCollection(),
"show_segment_labels");
//
// Tracks menu
//
pixmap.load(pixmapDir + "/toolbar/add_tracks.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(i18n("Add &Track"), icon, CTRL + Key_T,
- this, SLOT(slotAddTrack()),
+ this, TQT_SLOT(slotAddTrack()),
actionCollection(), "add_track");
new KAction(i18n("&Add Tracks..."), 0,
- this, SLOT(slotAddTracks()),
+ this, TQT_SLOT(slotAddTracks()),
actionCollection(), "add_tracks");
pixmap.load(pixmapDir + "/toolbar/delete_track.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(i18n("D&elete Track"), icon, CTRL + Key_D,
- this, SLOT(slotDeleteTrack()),
+ this, TQT_SLOT(slotDeleteTrack()),
actionCollection(), "delete_track");
pixmap.load(pixmapDir + "/toolbar/move_track_down.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(i18n("Move Track &Down"), icon, SHIFT + Key_Down,
- this, SLOT(slotMoveTrackDown()),
+ this, TQT_SLOT(slotMoveTrackDown()),
actionCollection(), "move_track_down");
pixmap.load(pixmapDir + "/toolbar/move_track_up.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(i18n("Move Track &Up"), icon, SHIFT + Key_Up,
- this, SLOT(slotMoveTrackUp()),
+ this, TQT_SLOT(slotMoveTrackUp()),
actionCollection(), "move_track_up");
new KAction(i18n("Select &Next Track"),
Key_Down,
- this, SLOT(slotTrackDown()),
+ this, TQT_SLOT(slotTrackDown()),
actionCollection(), "select_next_track");
new KAction(i18n("Select &Previous Track"),
Key_Up,
- this, SLOT(slotTrackUp()),
+ this, TQT_SLOT(slotTrackUp()),
actionCollection(), "select_previous_track");
new KAction(i18n("Mute or Unmute Track"),
Key_U,
- this, SLOT(slotToggleMutedCurrentTrack()),
+ this, TQT_SLOT(slotToggleMutedCurrentTrack()),
actionCollection(), "toggle_mute_track");
new KAction(i18n("Arm or Un-arm Track for Record"),
Key_R,
- this, SLOT(slotToggleRecordCurrentTrack()),
+ this, TQT_SLOT(slotToggleRecordCurrentTrack()),
actionCollection(), "toggle_arm_track");
pixmap.load(pixmapDir + "/toolbar/mute-all.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(i18n("&Mute all Tracks"), icon, 0,
- this, SLOT(slotMuteAllTracks()),
+ this, TQT_SLOT(slotMuteAllTracks()),
actionCollection(), "mute_all_tracks");
pixmap.load(pixmapDir + "/toolbar/un-mute-all.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(i18n("&Unmute all Tracks"), icon, 0,
- this, SLOT(slotUnmuteAllTracks()),
+ this, TQT_SLOT(slotUnmuteAllTracks()),
actionCollection(), "unmute_all_tracks");
new KAction(i18n("&Remap Instruments..."), 0, this,
- SLOT(slotRemapInstruments()),
+ TQT_SLOT(slotRemapInstruments()),
actionCollection(), "remap_instruments");
//
// Studio menu
//
pixmap.load(pixmapDir + "/toolbar/mixer.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(i18n("&Audio Mixer"), icon, 0, this,
- SLOT(slotOpenAudioMixer()),
+ TQT_SLOT(slotOpenAudioMixer()),
actionCollection(), "audio_mixer");
pixmap.load(pixmapDir + "/toolbar/midimixer.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(i18n("Midi Mi&xer"), icon, 0, this,
- SLOT(slotOpenMidiMixer()),
+ TQT_SLOT(slotOpenMidiMixer()),
actionCollection(), "midi_mixer");
pixmap.load(pixmapDir + "/toolbar/manage-midi-devices.xpm");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(i18n("Manage MIDI &Devices"), icon, 0, this,
- SLOT(slotManageMIDIDevices()),
+ TQT_SLOT(slotManageMIDIDevices()),
actionCollection(), "manage_devices");
pixmap.load(pixmapDir + "/toolbar/manage-synth-plugins.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(i18n("Manage S&ynth Plugins"), icon, 0, this,
- SLOT(slotManageSynths()),
+ TQT_SLOT(slotManageSynths()),
actionCollection(), "manage_synths");
new KAction(i18n("Modify MIDI &Filters"), "filter", 0, this,
- SLOT(slotModifyMIDIFilters()),
+ TQT_SLOT(slotModifyMIDIFilters()),
actionCollection(), "modify_midi_filters");
m_enableMIDIrouting = new KToggleAction(i18n("MIDI Thru Routing"), 0, this,
- SLOT(slotEnableMIDIThruRouting()),
+ TQT_SLOT(slotEnableMIDIThruRouting()),
actionCollection(), "enable_midi_routing");
pixmap.load(pixmapDir + "/toolbar/time-musical.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
new KAction(i18n("Manage &Metronome"), 0, this,
- SLOT(slotManageMetronome()),
+ TQT_SLOT(slotManageMetronome()),
actionCollection(), "manage_metronome");
new KAction(i18n("&Save Current Document as Default Studio"), 0, this,
- SLOT(slotSaveDefaultStudio()),
+ TQT_SLOT(slotSaveDefaultStudio()),
actionCollection(), "save_default_studio");
new KAction(i18n("&Import Default Studio"), 0, this,
- SLOT(slotImportDefaultStudio()),
+ TQT_SLOT(slotImportDefaultStudio()),
actionCollection(), "load_default_studio");
new KAction(i18n("Im&port Studio from File..."), 0, this,
- SLOT(slotImportStudio()),
+ TQT_SLOT(slotImportStudio()),
actionCollection(), "load_studio");
new KAction(i18n("&Reset MIDI Network"), 0, this,
- SLOT(slotResetMidiNetwork()),
+ TQT_SLOT(slotResetMidiNetwork()),
actionCollection(), "reset_midi_network");
m_setQuickMarkerAction = new KAction(i18n("Set Quick Marker at Playback Position"), 0, CTRL + Key_1, this,
- SLOT(slotSetQuickMarker()), actionCollection(),
+ TQT_SLOT(slotSetQuickMarker()), actionCollection(),
"set_quick_marker");
m_jumpToQuickMarkerAction = new KAction(i18n("Jump to Quick Marker"), 0, Key_1, this,
- SLOT(slotJumpToQuickMarker()), actionCollection(),
+ TQT_SLOT(slotJumpToQuickMarker()), actionCollection(),
"jump_to_quick_marker");
//
// Marker Ruler popup menu
//
// new KAction(i18n("Insert Marker"), 0, 0, this,
-// SLOT(slotInsertMarkerHere()), actionCollection(),
+// TQT_SLOT(slotInsertMarkerHere()), actionCollection(),
// "insert_marker_here");
//
// new KAction(i18n("Insert Marker at Playback Position"), 0, 0, this,
-// SLOT(slotInsertMarkerAtPointer()), actionCollection(),
+// TQT_SLOT(slotInsertMarkerAtPointer()), actionCollection(),
// "insert_marker_at_pointer");
//
// new KAction(i18n("Delete Marker"), 0, 0, this,
-// SLOT(slotDeleteMarker()), actionCollection(),
+// TQT_SLOT(slotDeleteMarker()), actionCollection(),
// "delete_marker");
@@ -1138,9 +1138,9 @@ void RosegardenGUIApp::setupActions()
// 0 (insert) and keypad Enter for Play and Stop
//
pixmap.load(pixmapDir + "/toolbar/transport-play.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
m_playTransport = new KAction(i18n("&Play"), icon, Key_Enter, this,
- SLOT(slotPlay()), actionCollection(),
+ TQT_SLOT(slotPlay()), actionCollection(),
"play");
// Alternative shortcut for Play
KShortcut playShortcut = m_playTransport->shortcut();
@@ -1149,69 +1149,69 @@ void RosegardenGUIApp::setupActions()
m_playTransport->setGroup(TransportDialogConfigGroup);
pixmap.load(pixmapDir + "/toolbar/transport-stop.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
m_stopTransport = new KAction(i18n("&Stop"), icon, Key_Insert, this,
- SLOT(slotStop()), actionCollection(),
+ TQT_SLOT(slotStop()), actionCollection(),
"stop");
m_stopTransport->setGroup(TransportDialogConfigGroup);
pixmap.load(pixmapDir + "/toolbar/transport-ffwd.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
m_ffwdTransport = new KAction(i18n("&Fast Forward"), icon, Key_PageDown,
this,
- SLOT(slotFastforward()), actionCollection(),
+ TQT_SLOT(slotFastforward()), actionCollection(),
"fast_forward");
m_ffwdTransport->setGroup(TransportDialogConfigGroup);
pixmap.load(pixmapDir + "/toolbar/transport-rewind.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
m_rewindTransport = new KAction(i18n("Re&wind"), icon, Key_End, this,
- SLOT(slotRewind()), actionCollection(),
+ TQT_SLOT(slotRewind()), actionCollection(),
"rewind");
m_rewindTransport->setGroup(TransportDialogConfigGroup);
pixmap.load(pixmapDir + "/toolbar/transport-record.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
m_recordTransport = new KAction(i18n("P&unch in Record"), icon, Key_Space, this,
- SLOT(slotToggleRecord()), actionCollection(),
+ TQT_SLOT(slotToggleRecord()), actionCollection(),
"recordtoggle");
m_recordTransport->setGroup(TransportDialogConfigGroup);
pixmap.load(pixmapDir + "/toolbar/transport-record.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
m_recordTransport = new KAction(i18n("&Record"), icon, 0, this,
- SLOT(slotRecord()), actionCollection(),
+ TQT_SLOT(slotRecord()), actionCollection(),
"record");
m_recordTransport->setGroup(TransportDialogConfigGroup);
pixmap.load(pixmapDir + "/toolbar/transport-rewind-end.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
m_rewindEndTransport = new KAction(i18n("Rewind to &Beginning"), icon, 0, this,
- SLOT(slotRewindToBeginning()), actionCollection(),
+ TQT_SLOT(slotRewindToBeginning()), actionCollection(),
"rewindtobeginning");
m_rewindEndTransport->setGroup(TransportDialogConfigGroup);
pixmap.load(pixmapDir + "/toolbar/transport-ffwd-end.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
m_ffwdEndTransport = new KAction(i18n("Fast Forward to &End"), icon, 0, this,
- SLOT(slotFastForwardToEnd()), actionCollection(),
+ TQT_SLOT(slotFastForwardToEnd()), actionCollection(),
"fastforwardtoend");
m_ffwdEndTransport->setGroup(TransportDialogConfigGroup);
pixmap.load(pixmapDir + "/toolbar/transport-tracking.png");
- icon = QIconSet(pixmap);
+ icon = TQIconSet(pixmap);
(new KToggleAction(i18n("Scro&ll to Follow Playback"), icon, Key_Pause, this,
- SLOT(slotToggleTracking()), actionCollection(),
+ TQT_SLOT(slotToggleTracking()), actionCollection(),
"toggle_tracking"))->setChecked(true);
pixmap.load(pixmapDir + "/toolbar/transport-panic.png");
- icon = QIconSet(pixmap);
- new KAction( i18n("Panic"), icon, Key_P + CTRL + ALT, this, SLOT(slotPanic()),
+ icon = TQIconSet(pixmap);
+ new KAction( i18n("Panic"), icon, Key_P + CTRL + ALT, this, TQT_SLOT(slotPanic()),
actionCollection(), "panic");
// DEBUG FACILITY
new KAction(i18n("Segment Debug Dump "), 0, this,
- SLOT(slotDebugDump()), actionCollection(),
+ TQT_SLOT(slotDebugDump()), actionCollection(),
"debug_dump_segments");
// create main gui
@@ -1224,11 +1224,11 @@ void RosegardenGUIApp::setupActions()
//
//toolBar("Transport Toolbar")->hide();
- QPopupMenu* setTrackInstrumentMenu = dynamic_cast<QPopupMenu*>(factory()->container("set_track_instrument", this));
+ TQPopupMenu* setTrackInstrumentMenu = dynamic_cast<TQPopupMenu*>(factory()->container("set_track_instrument", this));
if (setTrackInstrumentMenu) {
- connect(setTrackInstrumentMenu, SIGNAL(aboutToShow()),
- this, SLOT(slotPopulateTrackInstrumentPopup()));
+ connect(setTrackInstrumentMenu, TQT_SIGNAL(aboutToShow()),
+ this, TQT_SLOT(slotPopulateTrackInstrumentPopup()));
} else {
RG_DEBUG << "RosegardenGUIApp::setupActions() : couldn't find set_track_instrument menu - check rosegardenui.rcn\n";
}
@@ -1238,21 +1238,21 @@ void RosegardenGUIApp::setupActions()
void RosegardenGUIApp::setRewFFwdToAutoRepeat()
{
- QWidget* transportToolbar = factory()->container("Transport Toolbar", this);
+ TQWidget* transportToolbar = factory()->container("Transport Toolbar", this);
if (transportToolbar) {
- QObjectList *l = transportToolbar->queryList();
- QObjectListIt it(*l); // iterate over the buttons
- QObject *obj;
+ TQObjectList *l = transportToolbar->queryList();
+ TQObjectListIt it(*l); // iterate over the buttons
+ TQObject *obj;
while ( (obj = it.current()) != 0 ) {
// for each found object...
++it;
// RG_DEBUG << "obj name : " << obj->name() << endl;
- QString objName = obj->name();
+ TQString objName = obj->name();
if (objName.endsWith("rewind") || objName.endsWith("fast_forward")) {
- QButton* btn = dynamic_cast<QButton*>(obj);
+ TQButton* btn = dynamic_cast<TQButton*>(obj);
if (!btn) {
RG_DEBUG << "Very strange - found widgets in transport_toolbar which aren't buttons\n";
@@ -1280,7 +1280,7 @@ void RosegardenGUIApp::initZoomToolbar()
return ;
}
- new QLabel(i18n(" Zoom: "), zoomToolbar, "kde toolbar widget");
+ new TQLabel(i18n(" Zoom: "), zoomToolbar, "kde toolbar widget");
std::vector<double> zoomSizes; // in units-per-pixel
double defaultBarWidth44 = 100.0;
@@ -1293,18 +1293,18 @@ void RosegardenGUIApp::initZoomToolbar()
}
// zoom labels
- QString minZoom = QString("%1%").arg(factors[0] * 100.0);
- QString maxZoom = QString("%1%").arg(factors[(sizeof(factors) / sizeof(factors[0])) - 1] * 100.0);
+ TQString minZoom = TQString("%1%").arg(factors[0] * 100.0);
+ TQString maxZoom = TQString("%1%").arg(factors[(sizeof(factors) / sizeof(factors[0])) - 1] * 100.0);
m_zoomSlider = new ZoomSlider<double>
- (zoomSizes, -1, QSlider::Horizontal, zoomToolbar, "kde toolbar widget");
+ (zoomSizes, -1, TQSlider::Horizontal, zoomToolbar, "kde toolbar widget");
m_zoomSlider->setTracking(true);
- m_zoomSlider->setFocusPolicy(QWidget::NoFocus);
- m_zoomLabel = new QLabel(minZoom, zoomToolbar, "kde toolbar widget");
+ m_zoomSlider->setFocusPolicy(TQWidget::NoFocus);
+ m_zoomLabel = new TQLabel(minZoom, zoomToolbar, "kde toolbar widget");
m_zoomLabel->setIndent(10);
- connect(m_zoomSlider, SIGNAL(valueChanged(int)),
- this, SLOT(slotChangeZoom(int)));
+ connect(m_zoomSlider, TQT_SIGNAL(valueChanged(int)),
+ this, TQT_SLOT(slotChangeZoom(int)));
// set initial zoom - we might want to make this a config option
// m_zoomSlider->setToDefault();
@@ -1353,18 +1353,18 @@ void RosegardenGUIApp::initView()
// Connect up this signal so that we can force tool mode
// changes from the view
- connect(m_swapView, SIGNAL(activateTool(QString)),
- this, SLOT(slotActivateTool(QString)));
+ connect(m_swapView, TQT_SIGNAL(activateTool(TQString)),
+ this, TQT_SLOT(slotActivateTool(TQString)));
connect(m_swapView,
- SIGNAL(segmentsSelected(const SegmentSelection &)),
- SIGNAL(segmentsSelected(const SegmentSelection &)));
+ TQT_SIGNAL(segmentsSelected(const SegmentSelection &)),
+ TQT_SIGNAL(segmentsSelected(const SegmentSelection &)));
connect(m_swapView,
- SIGNAL(addAudioFile(AudioFileId)),
- SLOT(slotAddAudioFile(AudioFileId)));
+ TQT_SIGNAL(addAudioFile(AudioFileId)),
+ TQT_SLOT(slotAddAudioFile(AudioFileId)));
- connect(m_swapView, SIGNAL(toggleSolo(bool)), SLOT(slotToggleSolo(bool)));
+ connect(m_swapView, TQT_SIGNAL(toggleSolo(bool)), TQT_SLOT(slotToggleSolo(bool)));
m_doc->attachView(m_swapView);
@@ -1414,11 +1414,11 @@ void RosegardenGUIApp::initView()
RosegardenGUIView *oldView = m_view;
m_view = m_swapView;
- connect(m_view, SIGNAL(stateChange(QString, bool)),
- this, SLOT (slotStateChanged(QString, bool)));
+ connect(m_view, TQT_SIGNAL(stateChange(TQString, bool)),
+ this, TQT_SLOT (slotStateChanged(TQString, bool)));
- connect(m_view, SIGNAL(instrumentParametersChanged(InstrumentId)),
- this, SIGNAL(instrumentParametersChanged(InstrumentId)));
+ connect(m_view, TQT_SIGNAL(instrumentParametersChanged(InstrumentId)),
+ this, TQT_SIGNAL(instrumentParametersChanged(InstrumentId)));
// We only check for the SequenceManager to make sure
// we're not on the first pass though - we don't want
@@ -1440,15 +1440,15 @@ void RosegardenGUIApp::initView()
if (isUsingSequencer())
m_seqManager->setLoop(0, 0);
stateChanged("have_range", KXMLGUIClient::StateReverse);
- } catch (QString s) {
+ } catch (TQString s) {
KStartupLogo::hideIfStillThere();
CurrentProgressDialog::freeze();
KMessageBox::error(this, s);
CurrentProgressDialog::thaw();
}
- connect(m_seqManager, SIGNAL(controllerDeviceEventReceived(MappedEvent *)),
- m_view, SLOT(slotControllerDeviceEventReceived(MappedEvent *)));
+ connect(m_seqManager, TQT_SIGNAL(controllerDeviceEventReceived(MappedEvent *)),
+ m_view, TQT_SLOT(slotControllerDeviceEventReceived(MappedEvent *)));
}
// delete m_playList;
@@ -1490,9 +1490,9 @@ void RosegardenGUIApp::initView()
m_view->show();
connect(m_view->getTrackEditor()->getSegmentCanvas(),
- SIGNAL(showContextHelp(const QString &)),
+ TQT_SIGNAL(showContextHelp(const TQString &)),
this,
- SLOT(slotShowToolHelp(const QString &)));
+ TQT_SLOT(slotShowToolHelp(const TQString &)));
// We have to do this to make sure that the 2nd call ("select")
// actually has any effect. Activating the same radio action
@@ -1542,7 +1542,7 @@ void RosegardenGUIApp::setDocument(RosegardenGUIDoc* newDocument)
// Caption
//
- QString caption = kapp->caption();
+ TQString caption = kapp->caption();
setCaption(caption + ": " + newDocument->getTitle());
// // reset AudioManagerDialog
@@ -1590,45 +1590,45 @@ void RosegardenGUIApp::setDocument(RosegardenGUIDoc* newDocument)
// connect needed signals
//
- connect(m_segmentParameterBox, SIGNAL(documentModified()),
- m_doc, SLOT(slotDocumentModified()));
+ connect(m_segmentParameterBox, TQT_SIGNAL(documentModified()),
+ m_doc, TQT_SLOT(slotDocumentModified()));
- connect(m_doc, SIGNAL(pointerPositionChanged(timeT)),
- this, SLOT(slotSetPointerPosition(timeT)));
+ connect(m_doc, TQT_SIGNAL(pointerPositionChanged(timeT)),
+ this, TQT_SLOT(slotSetPointerPosition(timeT)));
- connect(m_doc, SIGNAL(documentModified(bool)),
- this, SLOT(slotDocumentModified(bool)));
+ connect(m_doc, TQT_SIGNAL(documentModified(bool)),
+ this, TQT_SLOT(slotDocumentModified(bool)));
- connect(m_doc, SIGNAL(loopChanged(timeT, timeT)),
- this, SLOT(slotSetLoop(timeT, timeT)));
+ connect(m_doc, TQT_SIGNAL(loopChanged(timeT, timeT)),
+ this, TQT_SLOT(slotSetLoop(timeT, timeT)));
m_doc->getCommandHistory()->attachView(actionCollection());
- connect(m_doc->getCommandHistory(), SIGNAL(commandExecuted()),
- SLOT(update()));
- connect(m_doc->getCommandHistory(), SIGNAL(commandExecuted()),
- SLOT(slotTestClipboard()));
+ connect(m_doc->getCommandHistory(), TQT_SIGNAL(commandExecuted()),
+ TQT_SLOT(update()));
+ connect(m_doc->getCommandHistory(), TQT_SIGNAL(commandExecuted()),
+ TQT_SLOT(slotTestClipboard()));
// connect and start the autosave timer
- connect(m_autoSaveTimer, SIGNAL(timeout()), this, SLOT(slotAutoSave()));
+ connect(m_autoSaveTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotAutoSave()));
m_autoSaveTimer->start(m_doc->getAutoSavePeriod() * 1000);
// Connect the playback timer
//
- connect(m_playTimer, SIGNAL(timeout()), this, SLOT(slotUpdatePlaybackPosition()));
- connect(m_stopTimer, SIGNAL(timeout()), this, SLOT(slotUpdateMonitoring()));
+ connect(m_playTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotUpdatePlaybackPosition()));
+ connect(m_stopTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotUpdateMonitoring()));
// finally recreate the main view
//
initView();
if (getView() && getView()->getTrackEditor()) {
- connect(m_doc, SIGNAL(makeTrackVisible(int)),
- getView()->getTrackEditor(), SLOT(slotScrollToTrack(int)));
+ connect(m_doc, TQT_SIGNAL(makeTrackVisible(int)),
+ getView()->getTrackEditor(), TQT_SLOT(slotScrollToTrack(int)));
}
- connect(m_doc, SIGNAL(devicesResyncd()),
- this, SLOT(slotDocumentDevicesResyncd()));
+ connect(m_doc, TQT_SIGNAL(devicesResyncd()),
+ this, TQT_SLOT(slotDocumentDevicesResyncd()));
m_doc->syncDevices();
m_doc->clearModifiedStatus();
@@ -1670,7 +1670,7 @@ void RosegardenGUIApp::setDocument(RosegardenGUIDoc* newDocument)
}
void
-RosegardenGUIApp::openFile(QString filePath, ImportType type)
+RosegardenGUIApp::openFile(TQString filePath, ImportType type)
{
RG_DEBUG << "RosegardenGUIApp::openFile " << filePath << endl;
@@ -1690,10 +1690,10 @@ RosegardenGUIApp::openFile(QString filePath, ImportType type)
kapp->config()->setGroup(GeneralOptionsConfigGroup);
if (kapp->config()->readBoolEntry("alwaysusedefaultstudio", false)) {
- QString autoloadFile =
+ TQString autoloadFile =
KGlobal::dirs()->findResource("appdata", "autoload.rg");
- QFileInfo autoloadFileInfo(autoloadFile);
+ TQFileInfo autoloadFileInfo(autoloadFile);
if (autoloadFileInfo.isReadable()) {
RG_DEBUG << "Importing default studio from " << autoloadFile << endl;
@@ -1702,15 +1702,15 @@ RosegardenGUIApp::openFile(QString filePath, ImportType type)
}
}
- QFileInfo fInfo(filePath);
+ TQFileInfo fInfo(filePath);
m_fileRecent->addURL(fInfo.absFilePath());
}
}
RosegardenGUIDoc*
-RosegardenGUIApp::createDocument(QString filePath, ImportType importType)
+RosegardenGUIApp::createDocument(TQString filePath, ImportType importType)
{
- QFileInfo info(filePath);
+ TQFileInfo info(filePath);
RosegardenGUIDoc *doc = 0;
if (!info.exists()) {
@@ -1726,11 +1726,11 @@ RosegardenGUIApp::createDocument(QString filePath, ImportType importType)
return 0;
}
- QFile file(filePath);
+ TQFile file(filePath);
if (!file.open(IO_ReadOnly)) {
KStartupLogo::hideIfStillThere();
- QString errStr =
+ TQString errStr =
i18n("You do not have read permission for \"%1\"").arg(filePath);
KMessageBox::sorry(this, errStr);
@@ -1777,16 +1777,16 @@ RosegardenGUIApp::createDocument(QString filePath, ImportType importType)
}
RosegardenGUIDoc*
-RosegardenGUIApp::createDocumentFromRGFile(QString filePath)
+RosegardenGUIApp::createDocumentFromRGFile(TQString filePath)
{
// Check for an autosaved file to recover
- QString effectiveFilePath = filePath;
+ TQString effectiveFilePath = filePath;
bool canRecover = false;
- QString autoSaveFileName = kapp->checkRecoverFile(filePath, canRecover);
+ TQString autoSaveFileName = kapp->checkRecoverFile(filePath, canRecover);
if (canRecover) {
// First check if the auto-save file is more recent than the doc
- QFileInfo docFileInfo(filePath), autoSaveFileInfo(autoSaveFileName);
+ TQFileInfo docFileInfo(filePath), autoSaveFileInfo(autoSaveFileName);
if (docFileInfo.lastModified() < autoSaveFileInfo.lastModified()) {
@@ -1808,7 +1808,7 @@ RosegardenGUIApp::createDocumentFromRGFile(QString filePath)
// user doesn't want the autosave, so delete it
// so it won't bother us again if we reload
canRecover = false;
- QFile::remove
+ TQFile::remove
(autoSaveFileName);
}
@@ -1830,7 +1830,7 @@ RosegardenGUIApp::createDocumentFromRGFile(QString filePath)
// the autosaved doc)
//
newDoc->slotDocumentModified();
- QFileInfo info(filePath);
+ TQFileInfo info(filePath);
newDoc->setAbsFilePath(info.absFilePath());
newDoc->setTitle(info.fileName());
} else {
@@ -1850,8 +1850,8 @@ void RosegardenGUIApp::slotSaveOptions()
#ifdef SETTING_LOG_DEBUG
- _settingLog(QString("SETTING 2 : transport flap extended = %1").arg(getTransport()->isExpanded()));
- _settingLog(QString("SETTING 2 : show track labels = %1").arg(m_viewTrackLabels->isChecked()));
+ _settingLog(TQString("SETTING 2 : transport flap extended = %1").arg(getTransport()->isExpanded()));
+ _settingLog(TQString("SETTING 2 : show track labels = %1").arg(m_viewTrackLabels->isChecked()));
#endif
kapp->config()->setGroup(GeneralOptionsConfigGroup);
@@ -1893,13 +1893,13 @@ void RosegardenGUIApp::setupFileDialogSpeedbar()
unsigned int n = config->readUnsignedNumEntry("Number of Entries", 0);
- config->writeEntry(QString("Description_%1").arg(n), i18n("Example Files"));
- config->writeEntry(QString("IconGroup_%1").arg(n), 4);
- config->writeEntry(QString("Icon_%1").arg(n), "folder");
- config->writeEntry(QString("URL_%1").arg(n),
+ config->writeEntry(TQString("Description_%1").arg(n), i18n("Example Files"));
+ 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/"));
- RG_DEBUG << "wrote url " << config->readEntry(QString("URL_%1").arg(n)) << endl;
+ RG_DEBUG << "wrote url " << config->readEntry(TQString("URL_%1").arg(n)) << endl;
config->writeEntry("Examples Set", true);
config->writeEntry("Number of Entries", n + 1);
@@ -1936,7 +1936,7 @@ void RosegardenGUIApp::readOptions()
#ifdef SETTING_LOG_DEBUG
- _settingLog(QString("SETTING 3 : transport flap extended = %1").arg(opt));
+ _settingLog(TQString("SETTING 3 : transport flap extended = %1").arg(opt));
#endif
if (opt)
@@ -1948,7 +1948,7 @@ void RosegardenGUIApp::readOptions()
#ifdef SETTING_LOG_DEBUG
- _settingLog(QString("SETTING 3 : show track labels = %1").arg(opt));
+ _settingLog(TQString("SETTING 3 : show track labels = %1").arg(opt));
#endif
m_viewTrackLabels->setChecked(opt);
@@ -2000,19 +2000,19 @@ void RosegardenGUIApp::saveGlobalProperties(KConfig *cfg)
if (m_doc->getTitle() != i18n("Untitled") && !m_doc->isModified()) {
// saving to tempfile not necessary
} else {
- QString filename = m_doc->getAbsFilePath();
+ TQString filename = m_doc->getAbsFilePath();
cfg->writeEntry("filename", filename);
cfg->writeEntry("modified", m_doc->isModified());
- QString tempname = kapp->tempSaveName(filename);
- QString errMsg;
+ TQString tempname = kapp->tempSaveName(filename);
+ TQString errMsg;
bool res = m_doc->saveDocument(tempname, errMsg);
if (!res) {
if (errMsg)
- KMessageBox::error(this, i18n(QString("Could not save document at %1\nError was : %2")
+ KMessageBox::error(this, i18n(TQString("Could not save document at %1\nError was : %2")
.arg(tempname).arg(errMsg)));
else
- KMessageBox::error(this, i18n(QString("Could not save document at %1")
+ KMessageBox::error(this, i18n(TQString("Could not save document at %1")
.arg(tempname)));
}
}
@@ -2020,19 +2020,19 @@ void RosegardenGUIApp::saveGlobalProperties(KConfig *cfg)
void RosegardenGUIApp::readGlobalProperties(KConfig* _cfg)
{
- QString filename = _cfg->readEntry("filename", "");
+ TQString filename = _cfg->readEntry("filename", "");
bool modified = _cfg->readBoolEntry("modified", false);
if (modified) {
bool canRecover;
- QString tempname = kapp->checkRecoverFile(filename, canRecover);
+ TQString tempname = kapp->checkRecoverFile(filename, canRecover);
if (canRecover) {
slotEnableTransport(false);
m_doc->openDocument(tempname);
slotEnableTransport(true);
m_doc->slotDocumentModified();
- QFileInfo info(filename);
+ TQFileInfo info(filename);
m_doc->setAbsFilePath(info.absFilePath());
m_doc->setTitle(info.fileName());
}
@@ -2044,11 +2044,11 @@ void RosegardenGUIApp::readGlobalProperties(KConfig* _cfg)
}
}
- QString caption = kapp->caption();
+ TQString caption = kapp->caption();
setCaption(caption + ": " + m_doc->getTitle());
}
-void RosegardenGUIApp::showEvent(QShowEvent* e)
+void RosegardenGUIApp::showEvent(TQShowEvent* e)
{
RG_DEBUG << "RosegardenGUIApp::showEvent()\n";
@@ -2061,11 +2061,11 @@ bool RosegardenGUIApp::queryClose()
RG_DEBUG << "RosegardenGUIApp::queryClose" << endl;
#ifdef SETTING_LOG_DEBUG
- _settingLog(QString("SETTING 1 : transport flap extended = %1").arg(getTransport()->isExpanded()));
- _settingLog(QString("SETTING 1 : show track labels = %1").arg(m_viewTrackLabels->isChecked()));
+ _settingLog(TQString("SETTING 1 : transport flap extended = %1").arg(getTransport()->isExpanded()));
+ _settingLog(TQString("SETTING 1 : show track labels = %1").arg(m_viewTrackLabels->isChecked()));
#endif
- QString errMsg;
+ TQString errMsg;
bool canClose = m_doc->saveIfModified();
@@ -2077,8 +2077,8 @@ bool RosegardenGUIApp::queryClose()
// 'off'
//
- disconnect(m_transport, SIGNAL(closed()),
- this, SLOT(slotCloseTransport()));
+ disconnect(m_transport, TQT_SIGNAL(closed()),
+ this, TQT_SLOT(slotCloseTransport()));
}
*/
@@ -2124,7 +2124,7 @@ void RosegardenGUIApp::slotFileNew()
}
}
-void RosegardenGUIApp::slotOpenDroppedURL(QString url)
+void RosegardenGUIApp::slotOpenDroppedURL(TQString url)
{
ProgressDialog::processEvents(); // or else we get a crash because the
// track editor is erased too soon - it is the originator of the signal
@@ -2136,9 +2136,9 @@ void RosegardenGUIApp::slotOpenDroppedURL(QString url)
openURL(KURL(url));
}
-void RosegardenGUIApp::openURL(QString url)
+void RosegardenGUIApp::openURL(TQString url)
{
- RG_DEBUG << "RosegardenGUIApp::openURL: QString " << url << endl;
+ RG_DEBUG << "RosegardenGUIApp::openURL: TQString " << url << endl;
openURL(KURL(url));
}
@@ -2146,18 +2146,18 @@ void RosegardenGUIApp::openURL(const KURL& url)
{
SetWaitCursor waitCursor;
- QString netFile = url.prettyURL();
+ TQString netFile = url.prettyURL();
RG_DEBUG << "RosegardenGUIApp::openURL: KURL " << netFile << endl;
if (!url.isValid()) {
- QString string;
+ TQString string;
string = i18n( "Malformed URL\n%1").arg(netFile);
KMessageBox::sorry(this, string);
return ;
}
- QString target, caption(url.path());
+ TQString target, caption(url.path());
if (KIO::NetAccess::download(url, target, this) == false) {
KMessageBox::error(this, i18n("Cannot download file %1").arg(url.prettyURL()));
@@ -2180,7 +2180,7 @@ void RosegardenGUIApp::slotFileOpen()
kapp->config()->setGroup(GeneralOptionsConfigGroup);
- QString lastOpenedVersion =
+ TQString lastOpenedVersion =
kapp->config()->readEntry("Last File Opened Version", "none");
if (lastOpenedVersion != VERSION) {
@@ -2188,11 +2188,11 @@ void RosegardenGUIApp::slotFileOpen()
// We haven't opened any files with this version of the
// program before. Default to the examples directory.
- QString examplesDir = KGlobal::dirs()->findResource("appdata", "examples/");
+ TQString examplesDir = KGlobal::dirs()->findResource("appdata", "examples/");
kapp->config()->setGroup("Recent Dirs");
- QString recentString = kapp->config()->readEntry("ROSEGARDEN", "");
+ TQString recentString = kapp->config()->readEntry("ROSEGARDEN", "");
kapp->config()->writeEntry
- ("ROSEGARDEN", QString("file:%1,%2").arg(examplesDir).arg(recentString));
+ ("ROSEGARDEN", TQString("file:%1,%2").arg(examplesDir).arg(recentString));
}
KURL url = KFileDialog::getOpenURL
@@ -2223,7 +2223,7 @@ void RosegardenGUIApp::slotMerge()
}
- QString target;
+ TQString target;
if (KIO::NetAccess::download(url, target, this) == false) {
KMessageBox::error(this, i18n("Cannot download file %1").arg(url.prettyURL()));
@@ -2267,28 +2267,28 @@ void RosegardenGUIApp::slotFileSave()
} else {
SetWaitCursor waitCursor;
- QString errMsg, docFilePath = m_doc->getAbsFilePath();
+ TQString errMsg, docFilePath = m_doc->getAbsFilePath();
bool res = m_doc->saveDocument(docFilePath, errMsg);
if (!res) {
if (errMsg)
- KMessageBox::error(this, i18n(QString("Could not save document at %1\nError was : %2")
+ KMessageBox::error(this, i18n(TQString("Could not save document at %1\nError was : %2")
.arg(docFilePath).arg(errMsg)));
else
- KMessageBox::error(this, i18n(QString("Could not save document at %1")
+ KMessageBox::error(this, i18n(TQString("Could not save document at %1")
.arg(docFilePath)));
}
}
}
QString
-RosegardenGUIApp::getValidWriteFile(QString descriptiveExtension,
- QString label)
+RosegardenGUIApp::getValidWriteFile(TQString descriptiveExtension,
+ TQString label)
{
// extract first extension listed in descriptiveExtension, for instance,
// ".rg" from "*.rg|Rosegarden files", or ".mid" from "*.mid *.midi|MIDI Files"
//
- QString extension = descriptiveExtension.left(descriptiveExtension.find('|')).mid(1).section(' ', 0, 0);
+ TQString extension = descriptiveExtension.left(descriptiveExtension.find('|')).mid(1).section(' ', 0, 0);
RG_DEBUG << "RosegardenGUIApp::getValidWriteFile() : extension = " << extension << endl;
@@ -2297,7 +2297,7 @@ RosegardenGUIApp::getValidWriteFile(QString descriptiveExtension,
KFileDialog saveFileDialog(":ROSEGARDEN", descriptiveExtension, this, label, true);
saveFileDialog.setOperationMode(KFileDialog::Saving);
if (m_doc) {
- QString saveFileName = m_doc->getAbsFilePath();
+ TQString saveFileName = m_doc->getAbsFilePath();
// Show filename without the old extension
int dotLoc = saveFileName.findRev('.');
if (dotLoc >= int(saveFileName.length() - 4)) {
@@ -2306,7 +2306,7 @@ RosegardenGUIApp::getValidWriteFile(QString descriptiveExtension,
saveFileDialog.setSelection(saveFileName);
}
saveFileDialog.exec();
- QString name = saveFileDialog.selectedFile();
+ TQString name = saveFileDialog.selectedFile();
// RG_DEBUG << "RosegardenGUIApp::getValidWriteFile() : KFileDialog::getSaveFileName returned "
// << name << endl;
@@ -2318,7 +2318,7 @@ RosegardenGUIApp::getValidWriteFile(QString descriptiveExtension,
// Append extension if we don't have one
//
if (!extension.isEmpty()) {
- static QRegExp rgFile("\\..{1,4}$");
+ static TQRegExp rgFile("\\..{1,4}$");
if (rgFile.match(name) == -1) {
name += extension;
}
@@ -2336,7 +2336,7 @@ RosegardenGUIApp::getValidWriteFile(QString descriptiveExtension,
return "";
}
- QFileInfo info(name);
+ TQFileInfo info(name);
if (info.isDir()) {
KMessageBox::sorry(this, i18n("You have specified a directory"));
@@ -2361,31 +2361,31 @@ bool RosegardenGUIApp::slotFileSaveAs()
KTmpStatusMsg msg(i18n("Saving file with a new filename..."), this);
- QString newName = getValidWriteFile("*.rg|" + i18n("Rosegarden files") +
+ TQString newName = getValidWriteFile("*.rg|" + i18n("Rosegarden files") +
"\n*|" + i18n("All files"),
i18n("Save as..."));
if (newName.isEmpty())
return false;
SetWaitCursor waitCursor;
- QFileInfo saveAsInfo(newName);
+ TQFileInfo saveAsInfo(newName);
m_doc->setTitle(saveAsInfo.fileName());
m_doc->setAbsFilePath(saveAsInfo.absFilePath());
- QString errMsg;
+ TQString errMsg;
bool res = m_doc->saveDocument(newName, errMsg);
if (!res) {
if (errMsg)
- KMessageBox::error(this, i18n(QString("Could not save document at %1\nError was : %2")
+ KMessageBox::error(this, i18n(TQString("Could not save document at %1\nError was : %2")
.arg(newName).arg(errMsg)));
else
- KMessageBox::error(this, i18n(QString("Could not save document at %1")
+ KMessageBox::error(this, i18n(TQString("Could not save document at %1")
.arg(newName)));
} else {
m_fileRecent->addURL(newName);
- QString caption = kapp->caption();
+ TQString caption = kapp->caption();
setCaption(caption + ": " + m_doc->getTitle());
// update the edit view's captions too
emit compositionStateUpdate();
@@ -2555,7 +2555,7 @@ void RosegardenGUIApp::slotInsertRange()
std::pair<timeT, timeT> r = m_doc->getComposition().getBarRangeForTime(t0);
TimeDialog dialog(m_view, i18n("Duration of empty range to insert"),
&m_doc->getComposition(), t0, r.second - r.first, false);
- if (dialog.exec() == QDialog::Accepted) {
+ if (dialog.exec() == TQDialog::Accepted) {
m_doc->getCommandHistory()->addCommand
(new InsertRangeCommand(&m_doc->getComposition(), t0, dialog.getTime()));
m_doc->setLoop(0, 0);
@@ -2580,7 +2580,7 @@ void RosegardenGUIApp::slotQuantizeSelection()
//!!! this should all be in rosegardenguiview
QuantizeDialog dialog(m_view);
- if (dialog.exec() != QDialog::Accepted)
+ if (dialog.exec() != TQDialog::Accepted)
return ;
SegmentSelection selection = m_view->getSelection();
@@ -2684,7 +2684,7 @@ void RosegardenGUIApp::slotRescaleSelection()
RescaleDialog dialog(m_view, &m_doc->getComposition(),
startTime, endTime - startTime,
false, false);
- if (dialog.exec() != QDialog::Accepted)
+ if (dialog.exec() != TQDialog::Accepted)
return ;
std::vector<AudioSegmentRescaleCommand *> asrcs;
@@ -2739,10 +2739,10 @@ void RosegardenGUIApp::slotRescaleSelection()
asrcs[i]->disconnectProgressDialog(progressDlg);
}
- connect(&m_doc->getAudioFileManager(), SIGNAL(setProgress(int)),
- progressDlg->progressBar(), SLOT(setValue(int)));
- connect(progressDlg, SIGNAL(cancelClicked()),
- &m_doc->getAudioFileManager(), SLOT(slotStopPreview()));
+ connect(&m_doc->getAudioFileManager(), TQT_SIGNAL(setProgress(int)),
+ progressDlg->progressBar(), TQT_SLOT(setValue(int)));
+ connect(progressDlg, TQT_SIGNAL(cancelClicked()),
+ &m_doc->getAudioFileManager(), TQT_SLOT(slotStopPreview()));
for (size_t i = 0; i < asrcs.size(); ++i) {
int fid = asrcs[i]->getNewAudioFileId();
@@ -2757,7 +2757,7 @@ void RosegardenGUIApp::slotRescaleSelection()
}
bool
-RosegardenGUIApp::testAudioPath(QString op)
+RosegardenGUIApp::testAudioPath(TQString op)
{
try {
m_doc->getAudioFileManager().testAudioPath();
@@ -2793,7 +2793,7 @@ void RosegardenGUIApp::slotAutoSplitSelection()
if ((*i)->getType() == Segment::Audio) {
AudioSplitDialog aSD(this, (*i), m_doc);
- if (aSD.exec() == QDialog::Accepted) {
+ if (aSD.exec() == TQDialog::Accepted) {
// split to threshold
//
command->addCommand(
@@ -2856,33 +2856,33 @@ void RosegardenGUIApp::createAndSetupTransport()
m_transport->getAccelerators()->connectItem
(m_transport->getAccelerators()->insertItem(Key_T),
this,
- SLOT(slotHideTransport()));
+ TQT_SLOT(slotHideTransport()));
// Ensure that the checkbox is unchecked if the dialog
// is closed
- connect(m_transport, SIGNAL(closed()),
- SLOT(slotCloseTransport()));
+ connect(m_transport, TQT_SIGNAL(closed()),
+ TQT_SLOT(slotCloseTransport()));
// Handle loop setting and unsetting from the transport loop button
//
- connect(m_transport, SIGNAL(setLoop()), SLOT(slotSetLoop()));
- connect(m_transport, SIGNAL(unsetLoop()), SLOT(slotUnsetLoop()));
- connect(m_transport, SIGNAL(panic()), SLOT(slotPanic()));
+ connect(m_transport, TQT_SIGNAL(setLoop()), TQT_SLOT(slotSetLoop()));
+ connect(m_transport, TQT_SIGNAL(unsetLoop()), TQT_SLOT(slotUnsetLoop()));
+ connect(m_transport, TQT_SIGNAL(panic()), TQT_SLOT(slotPanic()));
- connect(m_transport, SIGNAL(editTempo(QWidget*)),
- SLOT(slotEditTempo(QWidget*)));
+ connect(m_transport, TQT_SIGNAL(editTempo(TQWidget*)),
+ TQT_SLOT(slotEditTempo(TQWidget*)));
- connect(m_transport, SIGNAL(editTimeSignature(QWidget*)),
- SLOT(slotEditTimeSignature(QWidget*)));
+ connect(m_transport, TQT_SIGNAL(editTimeSignature(TQWidget*)),
+ TQT_SLOT(slotEditTimeSignature(TQWidget*)));
- connect(m_transport, SIGNAL(editTransportTime(QWidget*)),
- SLOT(slotEditTransportTime(QWidget*)));
+ connect(m_transport, TQT_SIGNAL(editTransportTime(TQWidget*)),
+ TQT_SLOT(slotEditTransportTime(TQWidget*)));
// Handle set loop start/stop time buttons.
//
- connect(m_transport, SIGNAL(setLoopStartTime()), SLOT(slotSetLoopStart()));
- connect(m_transport, SIGNAL(setLoopStopTime()), SLOT(slotSetLoopStop()));
+ connect(m_transport, TQT_SIGNAL(setLoopStartTime()), TQT_SLOT(slotSetLoopStart()));
+ connect(m_transport, TQT_SIGNAL(setLoopStopTime()), TQT_SLOT(slotSetLoopStop()));
if (m_seqManager != 0)
m_seqManager->setTransport(m_transport);
@@ -2895,7 +2895,7 @@ void RosegardenGUIApp::slotSplitSelectionByPitch()
return ;
SplitByPitchDialog dialog(m_view);
- if (dialog.exec() != QDialog::Accepted)
+ if (dialog.exec() != TQDialog::Accepted)
return ;
SegmentSelection selection = m_view->getSelection();
@@ -2935,7 +2935,7 @@ RosegardenGUIApp::slotSplitSelectionByRecordedSrc()
return ;
SplitByRecordingSrcDialog dialog(m_view, m_doc);
- if (dialog.exec() != QDialog::Accepted)
+ if (dialog.exec() != TQDialog::Accepted)
return ;
SegmentSelection selection = m_view->getSelection();
@@ -2974,7 +2974,7 @@ RosegardenGUIApp::slotSplitSelectionAtTime()
timeT now = m_doc->getComposition().getPosition();
- QString title = i18n("Split Segment at Time",
+ TQString title = i18n("Split Segment at Time",
"Split %n Segments at Time",
selection.size());
@@ -2984,7 +2984,7 @@ RosegardenGUIApp::slotSplitSelectionAtTime()
KMacroCommand *command = new KMacroCommand( title );
- if (dialog.exec() == QDialog::Accepted) {
+ if (dialog.exec() == TQDialog::Accepted) {
for (SegmentSelection::iterator i = selection.begin();
i != selection.end(); ++i) {
@@ -3014,7 +3014,7 @@ RosegardenGUIApp::slotSetSegmentStartTimes()
&m_doc->getComposition(),
someTime, false);
- if (dialog.exec() == QDialog::Accepted) {
+ if (dialog.exec() == TQDialog::Accepted) {
bool plural = (selection.size() > 1);
@@ -3059,7 +3059,7 @@ RosegardenGUIApp::slotSetSegmentDurations()
someDuration,
false);
- if (dialog.exec() == QDialog::Accepted) {
+ if (dialog.exec() == TQDialog::Accepted) {
bool plural = (selection.size() > 1);
@@ -3105,7 +3105,7 @@ void RosegardenGUIApp::slotTempoToSegmentLength()
slotTempoToSegmentLength(this);
}
-void RosegardenGUIApp::slotTempoToSegmentLength(QWidget* parent)
+void RosegardenGUIApp::slotTempoToSegmentLength(TQWidget* parent)
{
RG_DEBUG << "RosegardenGUIApp::slotTempoToSegmentLength" << endl;
@@ -3136,7 +3136,7 @@ void RosegardenGUIApp::slotTempoToSegmentLength(QWidget* parent)
// Get user to tell us how many beats or bars the segment contains
BeatsBarsDialog dialog(parent);
- if (dialog.exec() == QDialog::Accepted) {
+ if (dialog.exec() == TQDialog::Accepted) {
beats = dialog.getQuantity(); // beats (or bars)
if (dialog.getMode() == 1) // bars (multiply by time sig)
beats *= timeSig.getBeatsPerBar();
@@ -3382,7 +3382,7 @@ void RosegardenGUIApp::slotToggleStatusBar()
statusBar()->show();
}
-void RosegardenGUIApp::slotStatusMsg(QString text)
+void RosegardenGUIApp::slotStatusMsg(TQString text)
{
///////////////////////////////////////////////////////////////////
// change status message permanently
@@ -3390,7 +3390,7 @@ void RosegardenGUIApp::slotStatusMsg(QString text)
statusBar()->changeItem(text, EditViewBase::ID_STATUS_MSG);
}
-void RosegardenGUIApp::slotStatusHelpMsg(QString text)
+void RosegardenGUIApp::slotStatusHelpMsg(TQString text)
{
///////////////////////////////////////////////////////////////////
// change status message of whole statusbar temporary (text, msec)
@@ -3529,7 +3529,7 @@ void RosegardenGUIApp::slotAddTracks()
AddTracksDialog dialog(this, pos);
- if (dialog.exec() == QDialog::Accepted) {
+ if (dialog.exec() == TQDialog::Accepted) {
m_view->slotAddTracks(dialog.getTracks(), id,
dialog.getInsertPosition());
}
@@ -3694,7 +3694,7 @@ void RosegardenGUIApp::slotImportProject()
return ;
}
- QString tmpfile;
+ TQString tmpfile;
KIO::NetAccess::download(url, tmpfile, this);
importProject(tmpfile);
@@ -3702,7 +3702,7 @@ void RosegardenGUIApp::slotImportProject()
KIO::NetAccess::removeTempFile(tmpfile);
}
-void RosegardenGUIApp::importProject(QString filePath)
+void RosegardenGUIApp::importProject(TQString filePath)
{
KProcess *proc = new KProcess;
*proc << "rosegarden-project-package";
@@ -3722,9 +3722,9 @@ void RosegardenGUIApp::importProject(QString filePath)
delete proc;
- QString rgFile = filePath;
- rgFile.replace(QRegExp(".rg.rgp$"), ".rg");
- rgFile.replace(QRegExp(".rgp$"), ".rg");
+ TQString rgFile = filePath;
+ rgFile.replace(TQRegExp(".rg.rgp$"), ".rg");
+ rgFile.replace(TQRegExp(".rgp$"), ".rg");
openURL(rgFile);
}
@@ -3741,7 +3741,7 @@ void RosegardenGUIApp::slotImportMIDI()
return ;
}
- QString tmpfile;
+ TQString tmpfile;
KIO::NetAccess::download(url, tmpfile, this);
openFile(tmpfile, ImportMIDI); // does everything including setting the document
@@ -3758,17 +3758,17 @@ void RosegardenGUIApp::slotMergeMIDI()
return ;
}
- QString tmpfile;
+ TQString tmpfile;
KIO::NetAccess::download(url, tmpfile, this);
mergeFile(tmpfile, ImportMIDI);
KIO::NetAccess::removeTempFile( tmpfile );
}
-QTextCodec *
+TQTextCodec *
RosegardenGUIApp::guessTextCodec(std::string text)
{
- QTextCodec *codec = 0;
+ TQTextCodec *codec = 0;
for (int c = 0; c < text.length(); ++c) {
if (text[c] & 0x80) {
@@ -3784,7 +3784,7 @@ RosegardenGUIApp::guessTextCodec(std::string text)
CurrentProgressDialog::thaw();
if (codecName != "") {
- codec = QTextCodec::codecForName(codecName.c_str());
+ codec = TQTextCodec::codecForName(codecName.c_str());
}
break;
}
@@ -3797,7 +3797,7 @@ void
RosegardenGUIApp::fixTextEncodings(Composition *c)
{
- QTextCodec *codec = 0;
+ TQTextCodec *codec = 0;
for (Composition::iterator i = c->begin();
i != c->end(); ++i) {
@@ -3849,7 +3849,7 @@ RosegardenGUIApp::fixTextEncodings(Composition *c)
}
RosegardenGUIDoc*
-RosegardenGUIApp::createDocumentFromMIDIFile(QString file)
+RosegardenGUIApp::createDocumentFromMIDIFile(TQString file)
{
//if (!merge && !m_doc->saveIfModified()) return;
@@ -3857,7 +3857,7 @@ RosegardenGUIApp::createDocumentFromMIDIFile(QString file)
//
RosegardenGUIDoc *newDoc = new RosegardenGUIDoc(this, m_pluginManager);
- std::string fname(QFile::encodeName(file));
+ std::string fname(TQFile::encodeName(file));
MidiFile midiFile(fname,
&newDoc->getStudio());
@@ -3870,11 +3870,11 @@ RosegardenGUIApp::createDocumentFromMIDIFile(QString file)
CurrentProgressDialog::set
(&progressDlg);
- connect(&midiFile, SIGNAL(setProgress(int)),
- progressDlg.progressBar(), SLOT(setValue(int)));
+ connect(&midiFile, TQT_SIGNAL(setProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(setValue(int)));
- connect(&midiFile, SIGNAL(incrementProgress(int)),
- progressDlg.progressBar(), SLOT(advance(int)));
+ connect(&midiFile, TQT_SIGNAL(incrementProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(advance(int)));
if (!midiFile.open()) {
CurrentProgressDialog::freeze();
@@ -3894,8 +3894,8 @@ RosegardenGUIApp::createDocumentFromMIDIFile(QString file)
// Set the caption
//
- newDoc->setTitle(QFileInfo(file).fileName());
- newDoc->setAbsFilePath(QFileInfo(file).absFilePath());
+ newDoc->setTitle(TQFileInfo(file).fileName());
+ newDoc->setAbsFilePath(TQFileInfo(file).absFilePath());
// Clean up for notation purposes (after reinitialise, because that
// sets the composition's end marker time which is needed here)
@@ -3962,8 +3962,8 @@ RosegardenGUIApp::createDocumentFromMIDIFile(QString file)
(segment, startTime, endTime, "Notation Options", true);
subCommand->setProgressTotal(progressPer + 1);
- QObject::connect(subCommand, SIGNAL(incrementProgress(int)),
- progressDlg.progressBar(), SLOT(advance(int)));
+ TQObject::connect(subCommand, TQT_SIGNAL(incrementProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(advance(int)));
command->addCommand(subCommand);
}
@@ -3994,7 +3994,7 @@ void RosegardenGUIApp::slotImportRG21()
return ;
}
- QString tmpfile;
+ TQString tmpfile;
KIO::NetAccess::download(url, tmpfile, this);
openFile(tmpfile, ImportRG21);
@@ -4011,7 +4011,7 @@ void RosegardenGUIApp::slotMergeRG21()
return ;
}
- QString tmpfile;
+ TQString tmpfile;
KIO::NetAccess::download(url, tmpfile, this);
mergeFile(tmpfile, ImportRG21);
@@ -4019,7 +4019,7 @@ void RosegardenGUIApp::slotMergeRG21()
}
RosegardenGUIDoc*
-RosegardenGUIApp::createDocumentFromRG21File(QString file)
+RosegardenGUIApp::createDocumentFromRG21File(TQString file)
{
KStartupLogo::hideIfStillThere();
ProgressDialog progressDlg(
@@ -4036,11 +4036,11 @@ RosegardenGUIApp::createDocumentFromRG21File(QString file)
// TODO: make RG21Loader to actually emit these signals
//
- connect(&rg21Loader, SIGNAL(setProgress(int)),
- progressDlg.progressBar(), SLOT(setValue(int)));
+ connect(&rg21Loader, TQT_SIGNAL(setProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(setValue(int)));
- connect(&rg21Loader, SIGNAL(incrementProgress(int)),
- progressDlg.progressBar(), SLOT(advance(int)));
+ connect(&rg21Loader, TQT_SIGNAL(incrementProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(advance(int)));
// "your starter for 40%" - helps the "freeze" work
//
@@ -4060,8 +4060,8 @@ RosegardenGUIApp::createDocumentFromRG21File(QString file)
// Set the caption and add recent
//
- newDoc->setTitle(QFileInfo(file).fileName());
- newDoc->setAbsFilePath(QFileInfo(file).absFilePath());
+ newDoc->setTitle(TQFileInfo(file).fileName());
+ newDoc->setAbsFilePath(TQFileInfo(file).absFilePath());
return newDoc;
@@ -4081,7 +4081,7 @@ RosegardenGUIApp::slotImportHydrogen()
return ;
}
- QString tmpfile;
+ TQString tmpfile;
KIO::NetAccess::download(url, tmpfile, this);
openFile(tmpfile, ImportHydrogen);
@@ -4098,7 +4098,7 @@ void RosegardenGUIApp::slotMergeHydrogen()
return ;
}
- QString tmpfile;
+ TQString tmpfile;
KIO::NetAccess::download(url, tmpfile, this);
mergeFile(tmpfile, ImportHydrogen);
@@ -4106,7 +4106,7 @@ void RosegardenGUIApp::slotMergeHydrogen()
}
RosegardenGUIDoc*
-RosegardenGUIApp::createDocumentFromHydrogenFile(QString file)
+RosegardenGUIApp::createDocumentFromHydrogenFile(TQString file)
{
KStartupLogo::hideIfStillThere();
ProgressDialog progressDlg(
@@ -4123,11 +4123,11 @@ RosegardenGUIApp::createDocumentFromHydrogenFile(QString file)
// TODO: make RG21Loader to actually emit these signals
//
- connect(&hydrogenLoader, SIGNAL(setProgress(int)),
- progressDlg.progressBar(), SLOT(setValue(int)));
+ connect(&hydrogenLoader, TQT_SIGNAL(setProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(setValue(int)));
- connect(&hydrogenLoader, SIGNAL(incrementProgress(int)),
- progressDlg.progressBar(), SLOT(advance(int)));
+ connect(&hydrogenLoader, TQT_SIGNAL(incrementProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(advance(int)));
// "your starter for 40%" - helps the "freeze" work
//
@@ -4147,15 +4147,15 @@ RosegardenGUIApp::createDocumentFromHydrogenFile(QString file)
// Set the caption and add recent
//
- newDoc->setTitle(QFileInfo(file).fileName());
- newDoc->setAbsFilePath(QFileInfo(file).absFilePath());
+ newDoc->setTitle(TQFileInfo(file).fileName());
+ newDoc->setAbsFilePath(TQFileInfo(file).absFilePath());
return newDoc;
}
void
-RosegardenGUIApp::mergeFile(QString filePath, ImportType type)
+RosegardenGUIApp::mergeFile(TQString filePath, ImportType type)
{
RosegardenGUIDoc *doc = createDocument(filePath, type);
@@ -4197,7 +4197,7 @@ RosegardenGUIApp::mergeFile(QString filePath, ImportType type)
}
FileMergeDialog dialog(this, filePath, timingsDiffer);
- if (dialog.exec() == QDialog::Accepted) {
+ if (dialog.exec() == TQDialog::Accepted) {
m_doc->mergeDocument(doc, dialog.getMergeOptions());
}
@@ -4385,7 +4385,7 @@ void RosegardenGUIApp::slotSetPointerPosition(timeT t)
if (!m_originatingJump) {
m_seqManager->sendSequencerJump(comp.getElapsedRealTime(t));
}
- } catch (QString s) {
+ } catch (TQString s) {
KMessageBox::error(this, s);
}
}
@@ -4501,22 +4501,22 @@ void RosegardenGUIApp::slotTestStartupTester()
if (!m_startupTester) {
m_startupTester = new StartupTester();
- connect(m_startupTester, SIGNAL(newerVersionAvailable(QString)),
- this, SLOT(slotNewerVersionAvailable(QString)));
+ connect(m_startupTester, TQT_SIGNAL(newerVersionAvailable(TQString)),
+ this, TQT_SLOT(slotNewerVersionAvailable(TQString)));
m_startupTester->start();
- QTimer::singleShot(100, this, SLOT(slotTestStartupTester()));
+ TQTimer::singleShot(100, this, TQT_SLOT(slotTestStartupTester()));
return ;
}
if (!m_startupTester->isReady()) {
- QTimer::singleShot(100, this, SLOT(slotTestStartupTester()));
+ TQTimer::singleShot(100, this, TQT_SLOT(slotTestStartupTester()));
return ;
}
- QStringList missingFeatures;
- QStringList allMissing;
+ TQStringList missingFeatures;
+ TQStringList allMissing;
- QStringList missing;
+ TQStringList missing;
bool have = m_startupTester->haveProjectPackager(&missing);
stateChanged("have_project_packager",
@@ -4582,7 +4582,7 @@ void RosegardenGUIApp::slotTestStartupTester()
#endif
if (missingFeatures.count() > 0) {
- QString message = i18n("<h3>Helper programs not found</h3><p>Rosegarden could not find one or more helper programs which it needs to provide some features. The following features will not be available:</p>");
+ TQString message = i18n("<h3>Helper programs not found</h3><p>Rosegarden could not find one or more helper programs which it needs to provide some features. The following features will not be available:</p>");
message += i18n("<ul>");
for (int i = 0; i < missingFeatures.count(); ++i) {
message += i18n("<li>%1</li>").arg(missingFeatures[i]);
@@ -4634,7 +4634,7 @@ bool RosegardenGUIApp::launchSequencer(bool useExisting)
// User mode should clear down sequencer processes.
//
if (kapp->dcopClient()->isApplicationRegistered(
- QCString(ROSEGARDEN_SEQUENCER_APP_NAME))) {
+ TQCString(ROSEGARDEN_SEQUENCER_APP_NAME))) {
RG_DEBUG << "RosegardenGUIApp::launchSequencer() - "
<< "existing DCOP registered sequencer found\n";
@@ -4659,7 +4659,7 @@ bool RosegardenGUIApp::launchSequencer(bool useExisting)
sleep(1);
if (kapp->dcopClient()->isApplicationRegistered(
- QCString(ROSEGARDEN_SEQUENCER_APP_NAME))) {
+ TQCString(ROSEGARDEN_SEQUENCER_APP_NAME))) {
RG_DEBUG << "RosegardenGUIApp::launchSequencer() - "
<< "failed to kill existing sequencer\n";
@@ -4694,7 +4694,7 @@ bool RosegardenGUIApp::launchSequencer(bool useExisting)
//
KConfig *config = kapp->config();
config->setGroup(SequencerOptionsConfigGroup);
- QString options = config->readEntry("commandlineoptions");
+ TQString options = config->readEntry("commandlineoptions");
if (!options.isEmpty()) {
(*m_sequencerProcess) << options;
RG_DEBUG << "sequencer options \"" << options << "\"" << endl;
@@ -4739,8 +4739,8 @@ bool RosegardenGUIApp::launchSequencer(bool useExisting)
stateChanged("sequencer_running");
slotEnableTransport(true);
- connect(m_sequencerProcess, SIGNAL(processExited(KProcess*)),
- this, SLOT(slotSequencerExited(KProcess*)));
+ connect(m_sequencerProcess, TQT_SIGNAL(processExited(KProcess*)),
+ this, TQT_SLOT(slotSequencerExited(KProcess*)));
} catch (Exception e) {
m_sequencerProcess = 0;
@@ -4784,7 +4784,7 @@ bool RosegardenGUIApp::launchJack()
if (!startJack)
return true; // we don't do anything
- QString jackPath = config->readEntry("jackcommand", "");
+ TQString jackPath = config->readEntry("jackcommand", "");
emit startupStatusMessage(i18n("Clearing down jackd..."));
@@ -4806,8 +4806,8 @@ bool RosegardenGUIApp::launchJack()
RG_DEBUG << "starting jack \"" << jackPath << "\"" << endl;
- QStringList splitCommand;
- splitCommand = QStringList::split(" ", jackPath);
+ TQStringList splitCommand;
+ splitCommand = TQStringList::split(" ", jackPath);
RG_DEBUG << "RosegardenGUIApp::launchJack() : splitCommand length : "
<< splitCommand.size() << endl;
@@ -4855,7 +4855,7 @@ void RosegardenGUIApp::slotExportProject()
{
KTmpStatusMsg msg(i18n("Exporting Rosegarden Project file..."), this);
- QString fileName = getValidWriteFile
+ TQString fileName = getValidWriteFile
("*.rgp|" + i18n("Rosegarden Project files\n") +
"\n*|" + i18n("All files"),
i18n("Export as..."));
@@ -4863,13 +4863,13 @@ void RosegardenGUIApp::slotExportProject()
if (fileName.isEmpty())
return ;
- QString rgFile = fileName;
- rgFile.replace(QRegExp(".rg.rgp$"), ".rg");
- rgFile.replace(QRegExp(".rgp$"), ".rg");
+ TQString rgFile = fileName;
+ rgFile.replace(TQRegExp(".rg.rgp$"), ".rg");
+ rgFile.replace(TQRegExp(".rgp$"), ".rg");
CurrentProgressDialog::freeze();
- QString errMsg;
+ TQString errMsg;
if (!m_doc->saveDocument(rgFile, errMsg,
true)) { // pretend it's autosave
KMessageBox::sorry(this, i18n("Saving Rosegarden file to package failed: %1").arg(errMsg));
@@ -4899,7 +4899,7 @@ void RosegardenGUIApp::slotExportMIDI()
{
KTmpStatusMsg msg(i18n("Exporting MIDI file..."), this);
- QString fileName = getValidWriteFile
+ TQString fileName = getValidWriteFile
("*.mid *.midi|" + i18n("Standard MIDI files\n") +
"\n*|" + i18n("All files"),
i18n("Export as..."));
@@ -4910,22 +4910,22 @@ void RosegardenGUIApp::slotExportMIDI()
exportMIDIFile(fileName);
}
-void RosegardenGUIApp::exportMIDIFile(QString file)
+void RosegardenGUIApp::exportMIDIFile(TQString file)
{
ProgressDialog progressDlg(i18n("Exporting MIDI file..."),
100,
this);
- std::string fname(QFile::encodeName(file));
+ std::string fname(TQFile::encodeName(file));
MidiFile midiFile(fname,
&m_doc->getStudio());
- connect(&midiFile, SIGNAL(setProgress(int)),
- progressDlg.progressBar(), SLOT(setValue(int)));
+ connect(&midiFile, TQT_SIGNAL(setProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(setValue(int)));
- connect(&midiFile, SIGNAL(incrementProgress(int)),
- progressDlg.progressBar(), SLOT(advance(int)));
+ connect(&midiFile, TQT_SIGNAL(incrementProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(advance(int)));
midiFile.convertToMidi(m_doc->getComposition());
@@ -4939,7 +4939,7 @@ void RosegardenGUIApp::slotExportCsound()
{
KTmpStatusMsg msg(i18n("Exporting Csound score file..."), this);
- QString fileName = getValidWriteFile(QString("*|") + i18n("All files"),
+ TQString fileName = getValidWriteFile(TQString("*|") + i18n("All files"),
i18n("Export as..."));
if (fileName.isEmpty())
return ;
@@ -4947,19 +4947,19 @@ void RosegardenGUIApp::slotExportCsound()
exportCsoundFile(fileName);
}
-void RosegardenGUIApp::exportCsoundFile(QString file)
+void RosegardenGUIApp::exportCsoundFile(TQString file)
{
ProgressDialog progressDlg(i18n("Exporting Csound score file..."),
100,
this);
- CsoundExporter e(this, &m_doc->getComposition(), std::string(QFile::encodeName(file)));
+ CsoundExporter e(this, &m_doc->getComposition(), std::string(TQFile::encodeName(file)));
- connect(&e, SIGNAL(setProgress(int)),
- progressDlg.progressBar(), SLOT(setValue(int)));
+ connect(&e, TQT_SIGNAL(setProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(setValue(int)));
- connect(&e, SIGNAL(incrementProgress(int)),
- progressDlg.progressBar(), SLOT(advance(int)));
+ connect(&e, TQT_SIGNAL(incrementProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(advance(int)));
if (!e.write()) {
CurrentProgressDialog::freeze();
@@ -4971,7 +4971,7 @@ void RosegardenGUIApp::slotExportMup()
{
KTmpStatusMsg msg(i18n("Exporting Mup file..."), this);
- QString fileName = getValidWriteFile
+ TQString fileName = getValidWriteFile
("*.mup|" + i18n("Mup files\n") + "\n*|" + i18n("All files"),
i18n("Export as..."));
if (fileName.isEmpty())
@@ -4980,19 +4980,19 @@ void RosegardenGUIApp::slotExportMup()
exportMupFile(fileName);
}
-void RosegardenGUIApp::exportMupFile(QString file)
+void RosegardenGUIApp::exportMupFile(TQString file)
{
ProgressDialog progressDlg(i18n("Exporting Mup file..."),
100,
this);
- MupExporter e(this, &m_doc->getComposition(), std::string(QFile::encodeName(file)));
+ MupExporter e(this, &m_doc->getComposition(), std::string(TQFile::encodeName(file)));
- connect(&e, SIGNAL(setProgress(int)),
- progressDlg.progressBar(), SLOT(setValue(int)));
+ connect(&e, TQT_SIGNAL(setProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(setValue(int)));
- connect(&e, SIGNAL(incrementProgress(int)),
- progressDlg.progressBar(), SLOT(advance(int)));
+ connect(&e, TQT_SIGNAL(incrementProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(advance(int)));
if (!e.write()) {
CurrentProgressDialog::freeze();
@@ -5004,8 +5004,8 @@ void RosegardenGUIApp::slotExportLilyPond()
{
KTmpStatusMsg msg(i18n("Exporting LilyPond file..."), this);
- QString fileName = getValidWriteFile
- (QString("*.ly|") + i18n("LilyPond files") +
+ TQString fileName = getValidWriteFile
+ (TQString("*.ly|") + i18n("LilyPond files") +
"\n*|" + i18n("All files"),
i18n("Export as..."));
@@ -5021,7 +5021,7 @@ std::map<KProcess *, KTempFile *> RosegardenGUIApp::m_lilyTempFileMap;
void RosegardenGUIApp::slotPrintLilyPond()
{
KTmpStatusMsg msg(i18n("Printing LilyPond file..."), this);
- KTempFile *file = new KTempFile(QString::null, ".ly");
+ KTempFile *file = new KTempFile(TQString::null, ".ly");
file->setAutoDelete(true);
if (!file->name()) {
CurrentProgressDialog::freeze();
@@ -5036,8 +5036,8 @@ void RosegardenGUIApp::slotPrintLilyPond()
*proc << "--graphical";
*proc << "--print";
*proc << file->name();
- connect(proc, SIGNAL(processExited(KProcess *)),
- this, SLOT(slotLilyPondViewProcessExited(KProcess *)));
+ connect(proc, TQT_SIGNAL(processExited(KProcess *)),
+ this, TQT_SLOT(slotLilyPondViewProcessExited(KProcess *)));
m_lilyTempFileMap[proc] = file;
proc->start(KProcess::NotifyOnExit);
}
@@ -5045,7 +5045,7 @@ void RosegardenGUIApp::slotPrintLilyPond()
void RosegardenGUIApp::slotPreviewLilyPond()
{
KTmpStatusMsg msg(i18n("Previewing LilyPond file..."), this);
- KTempFile *file = new KTempFile(QString::null, ".ly");
+ KTempFile *file = new KTempFile(TQString::null, ".ly");
file->setAutoDelete(true);
if (!file->name()) {
CurrentProgressDialog::freeze();
@@ -5060,8 +5060,8 @@ void RosegardenGUIApp::slotPreviewLilyPond()
*proc << "--graphical";
*proc << "--pdf";
*proc << file->name();
- connect(proc, SIGNAL(processExited(KProcess *)),
- this, SLOT(slotLilyPondViewProcessExited(KProcess *)));
+ connect(proc, TQT_SIGNAL(processExited(KProcess *)),
+ this, TQT_SLOT(slotLilyPondViewProcessExited(KProcess *)));
m_lilyTempFileMap[proc] = file;
proc->start(KProcess::NotifyOnExit);
}
@@ -5073,16 +5073,16 @@ void RosegardenGUIApp::slotLilyPondViewProcessExited(KProcess *p)
delete p;
}
-bool RosegardenGUIApp::exportLilyPondFile(QString file, bool forPreview)
+bool RosegardenGUIApp::exportLilyPondFile(TQString file, bool forPreview)
{
- QString caption = "", heading = "";
+ TQString caption = "", heading = "";
if (forPreview) {
caption = i18n("LilyPond Preview Options");
heading = i18n("LilyPond preview options");
}
LilyPondOptionsDialog dialog(this, m_doc, caption, heading);
- if (dialog.exec() != QDialog::Accepted) {
+ if (dialog.exec() != TQDialog::Accepted) {
return false;
}
@@ -5090,13 +5090,13 @@ bool RosegardenGUIApp::exportLilyPondFile(QString file, bool forPreview)
100,
this);
- LilyPondExporter e(this, m_doc, std::string(QFile::encodeName(file)));
+ LilyPondExporter e(this, m_doc, std::string(TQFile::encodeName(file)));
- connect(&e, SIGNAL(setProgress(int)),
- progressDlg.progressBar(), SLOT(setValue(int)));
+ connect(&e, TQT_SIGNAL(setProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(setValue(int)));
- connect(&e, SIGNAL(incrementProgress(int)),
- progressDlg.progressBar(), SLOT(advance(int)));
+ connect(&e, TQT_SIGNAL(incrementProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(advance(int)));
if (!e.write()) {
CurrentProgressDialog::freeze();
@@ -5111,8 +5111,8 @@ void RosegardenGUIApp::slotExportMusicXml()
{
KTmpStatusMsg msg(i18n("Exporting MusicXML file..."), this);
- QString fileName = getValidWriteFile
- (QString("*.xml|") + i18n("XML files") +
+ TQString fileName = getValidWriteFile
+ (TQString("*.xml|") + i18n("XML files") +
"\n*|" + i18n("All files"), i18n("Export as..."));
if (fileName.isEmpty())
@@ -5121,19 +5121,19 @@ void RosegardenGUIApp::slotExportMusicXml()
exportMusicXmlFile(fileName);
}
-void RosegardenGUIApp::exportMusicXmlFile(QString file)
+void RosegardenGUIApp::exportMusicXmlFile(TQString file)
{
ProgressDialog progressDlg(i18n("Exporting MusicXML file..."),
100,
this);
- MusicXmlExporter e(this, m_doc, std::string(QFile::encodeName(file)));
+ MusicXmlExporter e(this, m_doc, std::string(TQFile::encodeName(file)));
- connect(&e, SIGNAL(setProgress(int)),
- progressDlg.progressBar(), SLOT(setValue(int)));
+ connect(&e, TQT_SIGNAL(setProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(setValue(int)));
- connect(&e, SIGNAL(incrementProgress(int)),
- progressDlg.progressBar(), SLOT(advance(int)));
+ connect(&e, TQT_SIGNAL(incrementProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(advance(int)));
if (!e.write()) {
CurrentProgressDialog::freeze();
@@ -5156,7 +5156,7 @@ RosegardenGUIApp::slotDeleteTransport()
}
void
-RosegardenGUIApp::slotActivateTool(QString toolName)
+RosegardenGUIApp::slotActivateTool(TQString toolName)
{
if (toolName == SegmentSelector::ToolName) {
actionCollection()->action("select")->activate();
@@ -5273,7 +5273,7 @@ RosegardenGUIApp::slotRecord()
//
try {
m_seqManager->record(false);
- } catch (QString s) {
+ } catch (TQString s) {
// We should already be stopped by this point so just unset
// the buttons after clicking the dialog.
//
@@ -5308,8 +5308,8 @@ RosegardenGUIApp::slotRecord()
plugAccelerators(m_seqManager->getCountdownDialog(),
m_seqManager->getCountdownDialog()->getAccelerators());
- connect(m_seqManager->getCountdownDialog(), SIGNAL(stopped()),
- this, SLOT(slotStop()));
+ connect(m_seqManager->getCountdownDialog(), TQT_SIGNAL(stopped()),
+ this, TQT_SLOT(slotStop()));
// Start the playback timer - this fetches the current sequencer position &c
//
@@ -5329,7 +5329,7 @@ RosegardenGUIApp::slotToggleRecord()
try {
m_seqManager->record(true);
- } catch (QString s) {
+ } catch (TQString s) {
KMessageBox::error(this, s);
} catch (AudioFileManager::BadAudioPathException e) {
if (KMessageBox::warningContinueCancel
@@ -5361,7 +5361,7 @@ RosegardenGUIApp::slotSetLoop(timeT lhs, timeT rhs)
getTransport()->LoopButton()->setOn(false);
stateChanged("have_range", KXMLGUIClient::StateReverse);
}
- } catch (QString s) {
+ } catch (TQString s) {
KMessageBox::error(this, s);
}
}
@@ -5429,7 +5429,7 @@ void RosegardenGUIApp::slotPlay()
m_playTimer->stop();
m_stopTimer->start(100);
}
- } catch (QString s) {
+ } catch (TQString s) {
KMessageBox::error(this, s);
m_playTimer->stop();
m_stopTimer->start(100);
@@ -5459,10 +5459,10 @@ void RosegardenGUIApp::slotStop()
{
if (m_seqManager &&
m_seqManager->getCountdownDialog()) {
- disconnect(m_seqManager->getCountdownDialog(), SIGNAL(stopped()),
- this, SLOT(slotStop()));
- disconnect(m_seqManager->getCountdownDialog(), SIGNAL(completed()),
- this, SLOT(slotStop()));
+ disconnect(m_seqManager->getCountdownDialog(), TQT_SIGNAL(stopped()),
+ this, TQT_SLOT(slotStop()));
+ disconnect(m_seqManager->getCountdownDialog(), TQT_SIGNAL(completed()),
+ this, TQT_SLOT(slotStop()));
}
try {
@@ -5645,10 +5645,10 @@ void RosegardenGUIApp::slotConfigure()
ConfigureDialog *configDlg =
new ConfigureDialog(m_doc, kapp->config(), this);
- connect(configDlg, SIGNAL(updateAutoSaveInterval(unsigned int)),
- this, SLOT(slotUpdateAutoSaveInterval(unsigned int)));
- connect(configDlg, SIGNAL(updateSidebarStyle(unsigned int)),
- this, SLOT(slotUpdateSidebarStyle(unsigned int)));
+ connect(configDlg, TQT_SIGNAL(updateAutoSaveInterval(unsigned int)),
+ this, TQT_SLOT(slotUpdateAutoSaveInterval(unsigned int)));
+ connect(configDlg, TQT_SIGNAL(updateSidebarStyle(unsigned int)),
+ this, TQT_SLOT(slotUpdateSidebarStyle(unsigned int)));
configDlg->show();
}
@@ -5683,8 +5683,8 @@ void RosegardenGUIApp::slotEditToolbars()
{
KEditToolbar dlg(actionCollection(), "rosegardenui.rc");
- connect(&dlg, SIGNAL(newToolbarConfig()),
- SLOT(slotUpdateToolbars()));
+ connect(&dlg, TQT_SIGNAL(newToolbarConfig()),
+ TQT_SLOT(slotUpdateToolbars()));
dlg.exec();
}
@@ -5705,23 +5705,23 @@ void RosegardenGUIApp::slotEditTempo(timeT atTime)
slotEditTempo(this, atTime);
}
-void RosegardenGUIApp::slotEditTempo(QWidget *parent)
+void RosegardenGUIApp::slotEditTempo(TQWidget *parent)
{
slotEditTempo(parent, m_doc->getComposition().getPosition());
}
-void RosegardenGUIApp::slotEditTempo(QWidget *parent, timeT atTime)
+void RosegardenGUIApp::slotEditTempo(TQWidget *parent, timeT atTime)
{
RG_DEBUG << "RosegardenGUIApp::slotEditTempo\n";
TempoDialog tempoDialog(parent, m_doc);
connect(&tempoDialog,
- SIGNAL(changeTempo(timeT,
+ TQT_SIGNAL(changeTempo(timeT,
tempoT,
tempoT,
TempoDialog::TempoDialogAction)),
- SLOT(slotChangeTempo(timeT,
+ TQT_SLOT(slotChangeTempo(timeT,
tempoT,
tempoT,
TempoDialog::TempoDialogAction)));
@@ -5740,12 +5740,12 @@ void RosegardenGUIApp::slotEditTimeSignature(timeT atTime)
slotEditTimeSignature(this, atTime);
}
-void RosegardenGUIApp::slotEditTimeSignature(QWidget *parent)
+void RosegardenGUIApp::slotEditTimeSignature(TQWidget *parent)
{
slotEditTimeSignature(parent, m_doc->getComposition().getPosition());
}
-void RosegardenGUIApp::slotEditTimeSignature(QWidget *parent,
+void RosegardenGUIApp::slotEditTimeSignature(TQWidget *parent,
timeT time)
{
Composition &composition(m_doc->getComposition());
@@ -5754,7 +5754,7 @@ void RosegardenGUIApp::slotEditTimeSignature(QWidget *parent,
TimeSignatureDialog dialog(parent, &composition, time, sig);
- if (dialog.exec() == QDialog::Accepted) {
+ if (dialog.exec() == TQDialog::Accepted) {
time = dialog.getTime();
@@ -5775,13 +5775,13 @@ void RosegardenGUIApp::slotEditTransportTime()
slotEditTransportTime(this);
}
-void RosegardenGUIApp::slotEditTransportTime(QWidget *parent)
+void RosegardenGUIApp::slotEditTransportTime(TQWidget *parent)
{
TimeDialog dialog(parent, i18n("Move playback pointer to time"),
&m_doc->getComposition(),
m_doc->getComposition().getPosition(),
true);
- if (dialog.exec() == QDialog::Accepted) {
+ if (dialog.exec() == TQDialog::Accepted) {
m_doc->slotSetPointerPosition(dialog.getTime());
}
}
@@ -5953,7 +5953,7 @@ RosegardenGUIApp::slotAddMarker(timeT time)
}
void
-RosegardenGUIApp::slotDeleteMarker(int id, timeT time, QString name, QString description)
+RosegardenGUIApp::slotDeleteMarker(int id, timeT time, TQString name, TQString description)
{
RemoveMarkerCommand *command =
new RemoveMarkerCommand(&m_doc->getComposition(),
@@ -5980,7 +5980,7 @@ RosegardenGUIApp::slotDocumentModified(bool m)
}
void
-RosegardenGUIApp::slotStateChanged(QString s,
+RosegardenGUIApp::slotStateChanged(TQString s,
bool noReverse)
{
// RG_DEBUG << "RosegardenGUIApp::slotStateChanged " << s << "," << noReverse << endl;
@@ -6005,32 +6005,32 @@ RosegardenGUIApp::slotTestClipboard()
}
void
-RosegardenGUIApp::plugAccelerators(QWidget *widget, QAccel *acc)
+RosegardenGUIApp::plugAccelerators(TQWidget *widget, TQAccel *acc)
{
acc->connectItem(acc->insertItem(Key_Enter),
this,
- SLOT(slotPlay()));
+ TQT_SLOT(slotPlay()));
// Alternative shortcut for Play
acc->connectItem(acc->insertItem(Key_Return + CTRL),
this,
- SLOT(slotPlay()));
+ TQT_SLOT(slotPlay()));
acc->connectItem(acc->insertItem(Key_Insert),
this,
- SLOT(slotStop()));
+ TQT_SLOT(slotStop()));
acc->connectItem(acc->insertItem(Key_PageDown),
this,
- SLOT(slotFastforward()));
+ TQT_SLOT(slotFastforward()));
acc->connectItem(acc->insertItem(Key_End),
this,
- SLOT(slotRewind()));
+ TQT_SLOT(slotRewind()));
acc->connectItem(acc->insertItem(Key_Space),
this,
- SLOT(slotToggleRecord()));
+ TQT_SLOT(slotToggleRecord()));
TransportDialog *transport =
dynamic_cast<TransportDialog*>(widget);
@@ -6038,69 +6038,69 @@ RosegardenGUIApp::plugAccelerators(QWidget *widget, QAccel *acc)
if (transport) {
acc->connectItem(acc->insertItem(m_jumpToQuickMarkerAction->shortcut()),
this,
- SLOT(slotJumpToQuickMarker()));
+ TQT_SLOT(slotJumpToQuickMarker()));
acc->connectItem(acc->insertItem(m_setQuickMarkerAction->shortcut()),
this,
- SLOT(slotSetQuickMarker()));
+ TQT_SLOT(slotSetQuickMarker()));
connect(transport->PlayButton(),
- SIGNAL(clicked()),
+ TQT_SIGNAL(clicked()),
this,
- SLOT(slotPlay()));
+ TQT_SLOT(slotPlay()));
connect(transport->StopButton(),
- SIGNAL(clicked()),
+ TQT_SIGNAL(clicked()),
this,
- SLOT(slotStop()));
+ TQT_SLOT(slotStop()));
connect(transport->FfwdButton(),
- SIGNAL(clicked()),
- SLOT(slotFastforward()));
+ TQT_SIGNAL(clicked()),
+ TQT_SLOT(slotFastforward()));
connect(transport->RewindButton(),
- SIGNAL(clicked()),
+ TQT_SIGNAL(clicked()),
this,
- SLOT(slotRewind()));
+ TQT_SLOT(slotRewind()));
connect(transport->RecordButton(),
- SIGNAL(clicked()),
+ TQT_SIGNAL(clicked()),
this,
- SLOT(slotRecord()));
+ TQT_SLOT(slotRecord()));
connect(transport->RewindEndButton(),
- SIGNAL(clicked()),
+ TQT_SIGNAL(clicked()),
this,
- SLOT(slotRewindToBeginning()));
+ TQT_SLOT(slotRewindToBeginning()));
connect(transport->FfwdEndButton(),
- SIGNAL(clicked()),
+ TQT_SIGNAL(clicked()),
this,
- SLOT(slotFastForwardToEnd()));
+ TQT_SLOT(slotFastForwardToEnd()));
connect(transport->MetronomeButton(),
- SIGNAL(clicked()),
+ TQT_SIGNAL(clicked()),
this,
- SLOT(slotToggleMetronome()));
+ TQT_SLOT(slotToggleMetronome()));
connect(transport->SoloButton(),
- SIGNAL(toggled(bool)),
+ TQT_SIGNAL(toggled(bool)),
this,
- SLOT(slotToggleSolo(bool)));
+ TQT_SLOT(slotToggleSolo(bool)));
connect(transport->TimeDisplayButton(),
- SIGNAL(clicked()),
+ TQT_SIGNAL(clicked()),
this,
- SLOT(slotRefreshTimeDisplay()));
+ TQT_SLOT(slotRefreshTimeDisplay()));
connect(transport->ToEndButton(),
- SIGNAL(clicked()),
- SLOT(slotRefreshTimeDisplay()));
+ TQT_SIGNAL(clicked()),
+ TQT_SLOT(slotRefreshTimeDisplay()));
}
}
void
-RosegardenGUIApp::setCursor(const QCursor& cursor)
+RosegardenGUIApp::setCursor(const TQCursor& cursor)
{
KDockMainWindow::setCursor(cursor);
@@ -6119,7 +6119,7 @@ RosegardenGUIApp::setCursor(const QCursor& cursor)
// toolbars...
//
- QPtrListIterator<KToolBar> tbIter = toolBarIterator();
+ TQPtrListIterator<KToolBar> tbIter = toolBarIterator();
KToolBar* tb = 0;
while ((tb = tbIter.current()) != 0) {
tb->setCursor(cursor);
@@ -6150,10 +6150,10 @@ RosegardenGUIApp::createNewAudioFile()
}
}
-QValueVector<QString>
-RosegardenGUIApp::createRecordAudioFiles(const QValueVector<InstrumentId> &recordInstruments)
+TQValueVector<TQString>
+RosegardenGUIApp::createRecordAudioFiles(const TQValueVector<InstrumentId> &recordInstruments)
{
- QValueVector<QString> qv;
+ TQValueVector<TQString> qv;
for (unsigned int i = 0; i < recordInstruments.size(); ++i) {
AudioFile *aF = 0;
try {
@@ -6180,10 +6180,10 @@ RosegardenGUIApp::createRecordAudioFiles(const QValueVector<InstrumentId> &recor
QString
RosegardenGUIApp::getAudioFilePath()
{
- return QString(m_doc->getAudioFileManager().getAudioPath().c_str());
+ return TQString(m_doc->getAudioFileManager().getAudioPath().c_str());
}
-QValueVector<InstrumentId>
+TQValueVector<InstrumentId>
RosegardenGUIApp::getArmedInstruments()
{
std::set
@@ -6203,7 +6203,7 @@ RosegardenGUIApp::getArmedInstruments()
}
}
- QValueVector<InstrumentId> iv;
+ TQValueVector<InstrumentId> iv;
for (std::set
<InstrumentId>::iterator ii = iid.begin();
ii != iid.end(); ++ii) {
@@ -6213,7 +6213,7 @@ RosegardenGUIApp::getArmedInstruments()
}
void
-RosegardenGUIApp::showError(QString error)
+RosegardenGUIApp::showError(TQString error)
{
KStartupLogo::hideIfStillThere();
CurrentProgressDialog::freeze();
@@ -6245,20 +6245,20 @@ RosegardenGUIApp::slotAudioManager()
new AudioManagerDialog(this, m_doc);
connect(m_audioManagerDialog,
- SIGNAL(playAudioFile(AudioFileId,
+ TQT_SIGNAL(playAudioFile(AudioFileId,
const RealTime &,
const RealTime&)),
- SLOT(slotPlayAudioFile(AudioFileId,
+ TQT_SLOT(slotPlayAudioFile(AudioFileId,
const RealTime &,
const RealTime &)));
connect(m_audioManagerDialog,
- SIGNAL(addAudioFile(AudioFileId)),
- SLOT(slotAddAudioFile(AudioFileId)));
+ TQT_SIGNAL(addAudioFile(AudioFileId)),
+ TQT_SLOT(slotAddAudioFile(AudioFileId)));
connect(m_audioManagerDialog,
- SIGNAL(deleteAudioFile(AudioFileId)),
- SLOT(slotDeleteAudioFile(AudioFileId)));
+ TQT_SIGNAL(deleteAudioFile(AudioFileId)),
+ TQT_SLOT(slotDeleteAudioFile(AudioFileId)));
//
// Sync segment selection between audio man. dialog and main window
@@ -6266,46 +6266,46 @@ RosegardenGUIApp::slotAudioManager()
// from dialog to us...
connect(m_audioManagerDialog,
- SIGNAL(segmentsSelected(const SegmentSelection&)),
+ TQT_SIGNAL(segmentsSelected(const SegmentSelection&)),
m_view,
- SLOT(slotPropagateSegmentSelection(const SegmentSelection&)));
+ TQT_SLOT(slotPropagateSegmentSelection(const SegmentSelection&)));
// and from us to dialog
- connect(this, SIGNAL(segmentsSelected(const SegmentSelection&)),
+ connect(this, TQT_SIGNAL(segmentsSelected(const SegmentSelection&)),
m_audioManagerDialog,
- SLOT(slotSegmentSelection(const SegmentSelection&)));
+ TQT_SLOT(slotSegmentSelection(const SegmentSelection&)));
connect(m_audioManagerDialog,
- SIGNAL(deleteSegments(const SegmentSelection&)),
- SLOT(slotDeleteSegments(const SegmentSelection&)));
+ TQT_SIGNAL(deleteSegments(const SegmentSelection&)),
+ TQT_SLOT(slotDeleteSegments(const SegmentSelection&)));
connect(m_audioManagerDialog,
- SIGNAL(insertAudioSegment(AudioFileId,
+ TQT_SIGNAL(insertAudioSegment(AudioFileId,
const RealTime&,
const RealTime&)),
m_view,
- SLOT(slotAddAudioSegmentDefaultPosition(AudioFileId,
+ TQT_SLOT(slotAddAudioSegmentDefaultPosition(AudioFileId,
const RealTime&,
const RealTime&)));
connect(m_audioManagerDialog,
- SIGNAL(cancelPlayingAudioFile(AudioFileId)),
- SLOT(slotCancelAudioPlayingFile(AudioFileId)));
+ TQT_SIGNAL(cancelPlayingAudioFile(AudioFileId)),
+ TQT_SLOT(slotCancelAudioPlayingFile(AudioFileId)));
connect(m_audioManagerDialog,
- SIGNAL(deleteAllAudioFiles()),
- SLOT(slotDeleteAllAudioFiles()));
+ TQT_SIGNAL(deleteAllAudioFiles()),
+ TQT_SLOT(slotDeleteAllAudioFiles()));
// Make sure we know when the audio man. dialog is closing
//
connect(m_audioManagerDialog,
- SIGNAL(closing()),
- SLOT(slotAudioManagerClosed()));
+ TQT_SIGNAL(closing()),
+ TQT_SLOT(slotAudioManagerClosed()));
// And that it goes away when the current document is changing
//
- connect(this, SIGNAL(documentAboutToChange()),
- m_audioManagerDialog, SLOT(close()));
+ connect(this, TQT_SIGNAL(documentAboutToChange()),
+ m_audioManagerDialog, TQT_SLOT(close()));
m_audioManagerDialog->setAudioSubsystemStatus(
m_seqManager->getSoundDriverStatus() & AUDIO_OK);
@@ -6345,18 +6345,18 @@ RosegardenGUIApp::slotAddAudioFile(unsigned int id)
if (aF == 0)
return ;
- QCString replyType;
- QByteArray replyData;
- QByteArray data;
- QDataStream streamOut(data, IO_WriteOnly);
+ TQCString replyType;
+ TQByteArray replyData;
+ TQByteArray data;
+ TQDataStream streamOut(data, IO_WriteOnly);
// We have to pass the filename as a QString
//
- streamOut << QString(strtoqstr(aF->getFilename()));
+ streamOut << TQString(strtoqstr(aF->getFilename()));
streamOut << (int)aF->getId();
- if (rgapp->sequencerCall("addAudioFile(QString, int)", replyType, replyData, data)) {
- QDataStream streamIn(replyData, IO_ReadOnly);
+ if (rgapp->sequencerCall("addAudioFile(TQString, int)", replyType, replyData, data)) {
+ TQDataStream streamIn(replyData, IO_ReadOnly);
int result;
streamIn >> result;
if (!result) {
@@ -6371,17 +6371,17 @@ RosegardenGUIApp::slotDeleteAudioFile(unsigned int id)
if (m_doc->getAudioFileManager().removeFile(id) == false)
return ;
- QCString replyType;
- QByteArray replyData;
- QByteArray data;
- QDataStream streamOut(data, IO_WriteOnly);
+ TQCString replyType;
+ TQByteArray replyData;
+ TQByteArray data;
+ TQDataStream streamOut(data, IO_WriteOnly);
// file id
//
streamOut << (int)id;
if (rgapp->sequencerCall("removeAudioFile(int)", replyType, replyData, data)) {
- QDataStream streamIn(replyData, IO_ReadOnly);
+ TQDataStream streamIn(replyData, IO_ReadOnly);
int result;
streamIn >> result;
if (!result) {
@@ -6420,9 +6420,9 @@ RosegardenGUIApp::slotDeleteAllAudioFiles()
// Clear at the sequencer
//
- QCString replyType;
- QByteArray replyData;
- QByteArray data;
+ TQCString replyType;
+ TQByteArray replyData;
+ TQByteArray data;
rgapp->sequencerCall("clearAllAudioFiles()", replyType, replyData, data);
}
@@ -6440,7 +6440,7 @@ RosegardenGUIApp::slotRelabelSegments()
return ;
SegmentSelection selection(m_view->getSelection());
- QString editLabel;
+ TQString editLabel;
if (selection.size() == 0)
return ;
@@ -6452,7 +6452,7 @@ RosegardenGUIApp::slotRelabelSegments()
KTmpStatusMsg msg(i18n("Relabelling selection..."), this);
// Generate label
- QString label = strtoqstr((*selection.begin())->getLabel());
+ TQString label = strtoqstr((*selection.begin())->getLabel());
for (SegmentSelection::iterator i = selection.begin();
i != selection.end(); ++i) {
@@ -6462,7 +6462,7 @@ RosegardenGUIApp::slotRelabelSegments()
bool ok = false;
- QString newLabel = KInputDialog::getText(editLabel,
+ TQString newLabel = KInputDialog::getText(editLabel,
i18n("Enter new label"),
label,
&ok,
@@ -6498,7 +6498,7 @@ RosegardenGUIApp::slotChangeCompositionLength()
{
CompositionLengthDialog dialog(this, &m_doc->getComposition());
- if (dialog.exec() == QDialog::Accepted) {
+ if (dialog.exec() == TQDialog::Accepted) {
ChangeCompositionLengthCommand *command
= new ChangeCompositionLengthCommand(
&m_doc->getComposition(),
@@ -6522,26 +6522,26 @@ RosegardenGUIApp::slotManageMIDIDevices()
m_deviceManager = new DeviceManagerDialog(this, m_doc);
- connect(m_deviceManager, SIGNAL(closing()),
- this, SLOT(slotDeviceManagerClosed()));
+ connect(m_deviceManager, TQT_SIGNAL(closing()),
+ this, TQT_SLOT(slotDeviceManagerClosed()));
- connect(this, SIGNAL(documentAboutToChange()),
- m_deviceManager, SLOT(close()));
+ connect(this, TQT_SIGNAL(documentAboutToChange()),
+ m_deviceManager, TQT_SLOT(close()));
// Cheating way of updating the track/instrument list
//
- connect(m_deviceManager, SIGNAL(deviceNamesChanged()),
- m_view, SLOT(slotSynchroniseWithComposition()));
+ connect(m_deviceManager, TQT_SIGNAL(deviceNamesChanged()),
+ m_view, TQT_SLOT(slotSynchroniseWithComposition()));
- connect(m_deviceManager, SIGNAL(editBanks(DeviceId)),
- this, SLOT(slotEditBanks(DeviceId)));
+ connect(m_deviceManager, TQT_SIGNAL(editBanks(DeviceId)),
+ this, TQT_SLOT(slotEditBanks(DeviceId)));
- connect(m_deviceManager, SIGNAL(editControllers(DeviceId)),
- this, SLOT(slotEditControlParameters(DeviceId)));
+ connect(m_deviceManager, TQT_SIGNAL(editControllers(DeviceId)),
+ this, TQT_SLOT(slotEditControlParameters(DeviceId)));
if (m_midiMixer) {
- connect(m_deviceManager, SIGNAL(deviceNamesChanged()),
- m_midiMixer, SLOT(slotSynchronise()));
+ connect(m_deviceManager, TQT_SIGNAL(deviceNamesChanged()),
+ m_midiMixer, TQT_SLOT(slotSynchronise()));
}
@@ -6565,26 +6565,26 @@ RosegardenGUIApp::slotManageSynths()
#endif
);
- connect(m_synthManager, SIGNAL(closing()),
- this, SLOT(slotSynthPluginManagerClosed()));
+ connect(m_synthManager, TQT_SIGNAL(closing()),
+ this, TQT_SLOT(slotSynthPluginManagerClosed()));
- connect(this, SIGNAL(documentAboutToChange()),
- m_synthManager, SLOT(close()));
+ connect(this, TQT_SIGNAL(documentAboutToChange()),
+ m_synthManager, TQT_SLOT(close()));
connect(m_synthManager,
- SIGNAL(pluginSelected(InstrumentId, int, int)),
+ TQT_SIGNAL(pluginSelected(InstrumentId, int, int)),
this,
- SLOT(slotPluginSelected(InstrumentId, int, int)));
+ TQT_SLOT(slotPluginSelected(InstrumentId, int, int)));
connect(m_synthManager,
- SIGNAL(showPluginDialog(QWidget *, InstrumentId, int)),
+ TQT_SIGNAL(showPluginDialog(TQWidget *, InstrumentId, int)),
this,
- SLOT(slotShowPluginDialog(QWidget *, InstrumentId, int)));
+ TQT_SLOT(slotShowPluginDialog(TQWidget *, InstrumentId, int)));
connect(m_synthManager,
- SIGNAL(showPluginGUI(InstrumentId, int)),
+ TQT_SIGNAL(showPluginGUI(InstrumentId, int)),
this,
- SLOT(slotShowPluginGUI(InstrumentId, int)));
+ TQT_SLOT(slotShowPluginGUI(InstrumentId, int)));
m_synthManager->show();
}
@@ -6601,66 +6601,66 @@ RosegardenGUIApp::slotOpenAudioMixer()
m_audioMixer = new AudioMixerWindow(this, m_doc);
- connect(m_audioMixer, SIGNAL(windowActivated()),
- m_view, SLOT(slotActiveMainWindowChanged()));
+ connect(m_audioMixer, TQT_SIGNAL(windowActivated()),
+ m_view, TQT_SLOT(slotActiveMainWindowChanged()));
- connect(m_view, SIGNAL(controllerDeviceEventReceived(MappedEvent *, const void *)),
- m_audioMixer, SLOT(slotControllerDeviceEventReceived(MappedEvent *, const void *)));
+ connect(m_view, TQT_SIGNAL(controllerDeviceEventReceived(MappedEvent *, const void *)),
+ m_audioMixer, TQT_SLOT(slotControllerDeviceEventReceived(MappedEvent *, const void *)));
- connect(m_audioMixer, SIGNAL(closing()),
- this, SLOT(slotAudioMixerClosed()));
+ connect(m_audioMixer, TQT_SIGNAL(closing()),
+ this, TQT_SLOT(slotAudioMixerClosed()));
- connect(m_audioMixer, SIGNAL(selectPlugin(QWidget *, InstrumentId, int)),
- this, SLOT(slotShowPluginDialog(QWidget *, InstrumentId, int)));
+ connect(m_audioMixer, TQT_SIGNAL(selectPlugin(TQWidget *, InstrumentId, int)),
+ this, TQT_SLOT(slotShowPluginDialog(TQWidget *, InstrumentId, int)));
connect(this,
- SIGNAL(pluginSelected(InstrumentId, int, int)),
+ TQT_SIGNAL(pluginSelected(InstrumentId, int, int)),
m_audioMixer,
- SLOT(slotPluginSelected(InstrumentId, int, int)));
+ TQT_SLOT(slotPluginSelected(InstrumentId, int, int)));
connect(this,
- SIGNAL(pluginBypassed(InstrumentId, int, bool)),
+ TQT_SIGNAL(pluginBypassed(InstrumentId, int, bool)),
m_audioMixer,
- SLOT(slotPluginBypassed(InstrumentId, int, bool)));
-
- connect(this, SIGNAL(documentAboutToChange()),
- m_audioMixer, SLOT(close()));
-
- connect(m_view, SIGNAL(checkTrackAssignments()),
- m_audioMixer, SLOT(slotTrackAssignmentsChanged()));
-
- connect(m_audioMixer, SIGNAL(play()),
- this, SLOT(slotPlay()));
- connect(m_audioMixer, SIGNAL(stop()),
- this, SLOT(slotStop()));
- connect(m_audioMixer, SIGNAL(fastForwardPlayback()),
- this, SLOT(slotFastforward()));
- connect(m_audioMixer, SIGNAL(rewindPlayback()),
- this, SLOT(slotRewind()));
- connect(m_audioMixer, SIGNAL(fastForwardPlaybackToEnd()),
- this, SLOT(slotFastForwardToEnd()));
- connect(m_audioMixer, SIGNAL(rewindPlaybackToBeginning()),
- this, SLOT(slotRewindToBeginning()));
- connect(m_audioMixer, SIGNAL(record()),
- this, SLOT(slotRecord()));
- connect(m_audioMixer, SIGNAL(panic()),
- this, SLOT(slotPanic()));
+ TQT_SLOT(slotPluginBypassed(InstrumentId, int, bool)));
+
+ connect(this, TQT_SIGNAL(documentAboutToChange()),
+ m_audioMixer, TQT_SLOT(close()));
+
+ connect(m_view, TQT_SIGNAL(checkTrackAssignments()),
+ m_audioMixer, TQT_SLOT(slotTrackAssignmentsChanged()));
+
+ connect(m_audioMixer, TQT_SIGNAL(play()),
+ this, TQT_SLOT(slotPlay()));
+ connect(m_audioMixer, TQT_SIGNAL(stop()),
+ this, TQT_SLOT(slotStop()));
+ connect(m_audioMixer, TQT_SIGNAL(fastForwardPlayback()),
+ this, TQT_SLOT(slotFastforward()));
+ connect(m_audioMixer, TQT_SIGNAL(rewindPlayback()),
+ this, TQT_SLOT(slotRewind()));
+ connect(m_audioMixer, TQT_SIGNAL(fastForwardPlaybackToEnd()),
+ this, TQT_SLOT(slotFastForwardToEnd()));
+ connect(m_audioMixer, TQT_SIGNAL(rewindPlaybackToBeginning()),
+ this, TQT_SLOT(slotRewindToBeginning()));
+ connect(m_audioMixer, TQT_SIGNAL(record()),
+ this, TQT_SLOT(slotRecord()));
+ connect(m_audioMixer, TQT_SIGNAL(panic()),
+ this, TQT_SLOT(slotPanic()));
connect(m_audioMixer,
- SIGNAL(instrumentParametersChanged(InstrumentId)),
+ TQT_SIGNAL(instrumentParametersChanged(InstrumentId)),
this,
- SIGNAL(instrumentParametersChanged(InstrumentId)));
+ TQT_SIGNAL(instrumentParametersChanged(InstrumentId)));
connect(this,
- SIGNAL(instrumentParametersChanged(InstrumentId)),
+ TQT_SIGNAL(instrumentParametersChanged(InstrumentId)),
m_audioMixer,
- SLOT(slotUpdateInstrument(InstrumentId)));
+ TQT_SLOT(slotUpdateInstrument(InstrumentId)));
if (m_synthManager) {
connect(m_synthManager,
- SIGNAL(pluginSelected(InstrumentId, int, int)),
+ TQT_SIGNAL(pluginSelected(InstrumentId, int, int)),
m_audioMixer,
- SLOT(slotPluginSelected(InstrumentId, int, int)));
+ TQT_SLOT(slotPluginSelected(InstrumentId, int, int)));
}
plugAccelerators(m_audioMixer, m_audioMixer->getAccelerators());
@@ -6680,44 +6680,44 @@ RosegardenGUIApp::slotOpenMidiMixer()
m_midiMixer = new MidiMixerWindow(this, m_doc);
- connect(m_midiMixer, SIGNAL(windowActivated()),
- m_view, SLOT(slotActiveMainWindowChanged()));
-
- connect(m_view, SIGNAL(controllerDeviceEventReceived(MappedEvent *, const void *)),
- m_midiMixer, SLOT(slotControllerDeviceEventReceived(MappedEvent *, const void *)));
-
- connect(m_midiMixer, SIGNAL(closing()),
- this, SLOT(slotMidiMixerClosed()));
-
- connect(this, SIGNAL(documentAboutToChange()),
- m_midiMixer, SLOT(close()));
-
- connect(m_midiMixer, SIGNAL(play()),
- this, SLOT(slotPlay()));
- connect(m_midiMixer, SIGNAL(stop()),
- this, SLOT(slotStop()));
- connect(m_midiMixer, SIGNAL(fastForwardPlayback()),
- this, SLOT(slotFastforward()));
- connect(m_midiMixer, SIGNAL(rewindPlayback()),
- this, SLOT(slotRewind()));
- connect(m_midiMixer, SIGNAL(fastForwardPlaybackToEnd()),
- this, SLOT(slotFastForwardToEnd()));
- connect(m_midiMixer, SIGNAL(rewindPlaybackToBeginning()),
- this, SLOT(slotRewindToBeginning()));
- connect(m_midiMixer, SIGNAL(record()),
- this, SLOT(slotRecord()));
- connect(m_midiMixer, SIGNAL(panic()),
- this, SLOT(slotPanic()));
+ connect(m_midiMixer, TQT_SIGNAL(windowActivated()),
+ m_view, TQT_SLOT(slotActiveMainWindowChanged()));
+
+ connect(m_view, TQT_SIGNAL(controllerDeviceEventReceived(MappedEvent *, const void *)),
+ m_midiMixer, TQT_SLOT(slotControllerDeviceEventReceived(MappedEvent *, const void *)));
+
+ connect(m_midiMixer, TQT_SIGNAL(closing()),
+ this, TQT_SLOT(slotMidiMixerClosed()));
+
+ connect(this, TQT_SIGNAL(documentAboutToChange()),
+ m_midiMixer, TQT_SLOT(close()));
+
+ connect(m_midiMixer, TQT_SIGNAL(play()),
+ this, TQT_SLOT(slotPlay()));
+ connect(m_midiMixer, TQT_SIGNAL(stop()),
+ this, TQT_SLOT(slotStop()));
+ connect(m_midiMixer, TQT_SIGNAL(fastForwardPlayback()),
+ this, TQT_SLOT(slotFastforward()));
+ connect(m_midiMixer, TQT_SIGNAL(rewindPlayback()),
+ this, TQT_SLOT(slotRewind()));
+ connect(m_midiMixer, TQT_SIGNAL(fastForwardPlaybackToEnd()),
+ this, TQT_SLOT(slotFastForwardToEnd()));
+ connect(m_midiMixer, TQT_SIGNAL(rewindPlaybackToBeginning()),
+ this, TQT_SLOT(slotRewindToBeginning()));
+ connect(m_midiMixer, TQT_SIGNAL(record()),
+ this, TQT_SLOT(slotRecord()));
+ connect(m_midiMixer, TQT_SIGNAL(panic()),
+ this, TQT_SLOT(slotPanic()));
connect(m_midiMixer,
- SIGNAL(instrumentParametersChanged(InstrumentId)),
+ TQT_SIGNAL(instrumentParametersChanged(InstrumentId)),
this,
- SIGNAL(instrumentParametersChanged(InstrumentId)));
+ TQT_SIGNAL(instrumentParametersChanged(InstrumentId)));
connect(this,
- SIGNAL(instrumentParametersChanged(InstrumentId)),
+ TQT_SIGNAL(instrumentParametersChanged(InstrumentId)),
m_midiMixer,
- SLOT(slotUpdateInstrument(InstrumentId)));
+ TQT_SLOT(slotUpdateInstrument(InstrumentId)));
plugAccelerators(m_midiMixer, m_midiMixer->getAccelerators());
@@ -6744,14 +6744,14 @@ RosegardenGUIApp::slotEditControlParameters(DeviceId device)
RG_DEBUG << "inserting control editor dialog, have " << m_controlEditors.size() << " now" << endl;
- connect(controlEditor, SIGNAL(closing()),
- SLOT(slotControlEditorClosed()));
+ connect(controlEditor, TQT_SIGNAL(closing()),
+ TQT_SLOT(slotControlEditorClosed()));
- connect(this, SIGNAL(documentAboutToChange()),
- controlEditor, SLOT(close()));
+ connect(this, TQT_SIGNAL(documentAboutToChange()),
+ controlEditor, TQT_SLOT(close()));
- connect(m_doc, SIGNAL(devicesResyncd()),
- controlEditor, SLOT(slotUpdate()));
+ connect(m_doc, TQT_SIGNAL(devicesResyncd()),
+ controlEditor, TQT_SLOT(slotUpdate()));
controlEditor->show();
}
@@ -6776,16 +6776,16 @@ RosegardenGUIApp::slotEditBanks(DeviceId device)
m_bankEditor = new BankEditorDialog(this, m_doc, device);
- connect(m_bankEditor, SIGNAL(closing()),
- this, SLOT(slotBankEditorClosed()));
+ connect(m_bankEditor, TQT_SIGNAL(closing()),
+ this, TQT_SLOT(slotBankEditorClosed()));
- connect(this, SIGNAL(documentAboutToChange()),
- m_bankEditor, SLOT(slotFileClose()));
+ connect(this, TQT_SIGNAL(documentAboutToChange()),
+ m_bankEditor, TQT_SLOT(slotFileClose()));
// Cheating way of updating the track/instrument list
//
- connect(m_bankEditor, SIGNAL(deviceNamesChanged()),
- m_view, SLOT(slotSynchroniseWithComposition()));
+ connect(m_bankEditor, TQT_SIGNAL(deviceNamesChanged()),
+ m_view, TQT_SLOT(slotSynchroniseWithComposition()));
m_bankEditor->show();
}
@@ -6802,11 +6802,11 @@ RosegardenGUIApp::slotManageTriggerSegments()
m_triggerSegmentManager = new TriggerSegmentManager(this, m_doc);
- connect(m_triggerSegmentManager, SIGNAL(closing()),
- SLOT(slotTriggerManagerClosed()));
+ connect(m_triggerSegmentManager, TQT_SIGNAL(closing()),
+ TQT_SLOT(slotTriggerManagerClosed()));
- connect(m_triggerSegmentManager, SIGNAL(editTriggerSegment(int)),
- m_view, SLOT(slotEditTriggerSegment(int)));
+ connect(m_triggerSegmentManager, TQT_SIGNAL(editTriggerSegment(int)),
+ m_view, TQT_SLOT(slotEditTriggerSegment(int)));
m_triggerSegmentManager->show();
}
@@ -6831,11 +6831,11 @@ RosegardenGUIApp::slotEditMarkers()
m_markerEditor = new MarkerEditor(this, m_doc);
- connect(m_markerEditor, SIGNAL(closing()),
- SLOT(slotMarkerEditorClosed()));
+ connect(m_markerEditor, TQT_SIGNAL(closing()),
+ TQT_SLOT(slotMarkerEditorClosed()));
- connect(m_markerEditor, SIGNAL(jumpToMarker(timeT)),
- m_doc, SLOT(slotSetPointerPosition(timeT)));
+ connect(m_markerEditor, TQT_SIGNAL(jumpToMarker(timeT)),
+ m_doc, TQT_SLOT(slotSetPointerPosition(timeT)));
plugAccelerators(m_markerEditor, m_markerEditor->getAccelerators());
@@ -6862,24 +6862,24 @@ RosegardenGUIApp::slotEditTempos(timeT t)
m_tempoView = new TempoView(m_doc, getView(), t);
- connect(m_tempoView, SIGNAL(closing()),
- SLOT(slotTempoViewClosed()));
+ connect(m_tempoView, TQT_SIGNAL(closing()),
+ TQT_SLOT(slotTempoViewClosed()));
- connect(m_tempoView, SIGNAL(windowActivated()),
- getView(), SLOT(slotActiveMainWindowChanged()));
+ connect(m_tempoView, TQT_SIGNAL(windowActivated()),
+ getView(), TQT_SLOT(slotActiveMainWindowChanged()));
connect(m_tempoView,
- SIGNAL(changeTempo(timeT,
+ TQT_SIGNAL(changeTempo(timeT,
tempoT,
tempoT,
TempoDialog::TempoDialogAction)),
this,
- SLOT(slotChangeTempo(timeT,
+ TQT_SLOT(slotChangeTempo(timeT,
tempoT,
tempoT,
TempoDialog::TempoDialogAction)));
- connect(m_tempoView, SIGNAL(saveFile()), this, SLOT(slotFileSave()));
+ connect(m_tempoView, TQT_SIGNAL(saveFile()), this, TQT_SLOT(slotFileSave()));
plugAccelerators(m_tempoView, m_tempoView->getAccelerators());
@@ -6897,7 +6897,7 @@ RosegardenGUIApp::slotTempoViewClosed()
void
RosegardenGUIApp::slotControlEditorClosed()
{
- const QObject *s = sender();
+ const TQObject *s = sender();
RG_DEBUG << "RosegardenGUIApp::slotControlEditorClosed" << endl;
@@ -6915,7 +6915,7 @@ RosegardenGUIApp::slotControlEditorClosed()
}
void
-RosegardenGUIApp::slotShowPluginDialog(QWidget *parent,
+RosegardenGUIApp::slotShowPluginDialog(TQWidget *parent,
InstrumentId instrumentId,
int index)
{
@@ -6962,12 +6962,12 @@ RosegardenGUIApp::slotShowPluginDialog(QWidget *parent,
container,
index);
- connect(dialog, SIGNAL(windowActivated()),
- m_view, SLOT(slotActiveMainWindowChanged()));
+ connect(dialog, TQT_SIGNAL(windowActivated()),
+ m_view, TQT_SLOT(slotActiveMainWindowChanged()));
/* This feature isn't provided by the plugin dialog
- connect(m_view, SIGNAL(controllerDeviceEventReceived(MappedEvent *, const void *)),
- dialog, SLOT(slotControllerDeviceEventReceived(MappedEvent *, const void *)));
+ connect(m_view, TQT_SIGNAL(controllerDeviceEventReceived(MappedEvent *, const void *)),
+ dialog, TQT_SLOT(slotControllerDeviceEventReceived(MappedEvent *, const void *)));
*/
// Plug the new dialog into the standard keyboard accelerators so
@@ -6976,46 +6976,46 @@ RosegardenGUIApp::slotShowPluginDialog(QWidget *parent,
plugAccelerators(dialog, dialog->getAccelerators());
connect(dialog,
- SIGNAL(pluginSelected(InstrumentId, int, int)),
+ TQT_SIGNAL(pluginSelected(InstrumentId, int, int)),
this,
- SLOT(slotPluginSelected(InstrumentId, int, int)));
+ TQT_SLOT(slotPluginSelected(InstrumentId, int, int)));
connect(dialog,
- SIGNAL(pluginPortChanged(InstrumentId, int, int)),
+ TQT_SIGNAL(pluginPortChanged(InstrumentId, int, int)),
this,
- SLOT(slotPluginPortChanged(InstrumentId, int, int)));
+ TQT_SLOT(slotPluginPortChanged(InstrumentId, int, int)));
connect(dialog,
- SIGNAL(pluginProgramChanged(InstrumentId, int)),
+ TQT_SIGNAL(pluginProgramChanged(InstrumentId, int)),
this,
- SLOT(slotPluginProgramChanged(InstrumentId, int)));
+ TQT_SLOT(slotPluginProgramChanged(InstrumentId, int)));
connect(dialog,
- SIGNAL(changePluginConfiguration(InstrumentId, int, bool, QString, QString)),
+ TQT_SIGNAL(changePluginConfiguration(InstrumentId, int, bool, TQString, TQString)),
this,
- SLOT(slotChangePluginConfiguration(InstrumentId, int, bool, QString, QString)));
+ TQT_SLOT(slotChangePluginConfiguration(InstrumentId, int, bool, TQString, TQString)));
connect(dialog,
- SIGNAL(showPluginGUI(InstrumentId, int)),
+ TQT_SIGNAL(showPluginGUI(InstrumentId, int)),
this,
- SLOT(slotShowPluginGUI(InstrumentId, int)));
+ TQT_SLOT(slotShowPluginGUI(InstrumentId, int)));
connect(dialog,
- SIGNAL(stopPluginGUI(InstrumentId, int)),
+ TQT_SIGNAL(stopPluginGUI(InstrumentId, int)),
this,
- SLOT(slotStopPluginGUI(InstrumentId, int)));
+ TQT_SLOT(slotStopPluginGUI(InstrumentId, int)));
connect(dialog,
- SIGNAL(bypassed(InstrumentId, int, bool)),
+ TQT_SIGNAL(bypassed(InstrumentId, int, bool)),
this,
- SLOT(slotPluginBypassed(InstrumentId, int, bool)));
+ TQT_SLOT(slotPluginBypassed(InstrumentId, int, bool)));
connect(dialog,
- SIGNAL(destroyed(InstrumentId, int)),
+ TQT_SIGNAL(destroyed(InstrumentId, int)),
this,
- SLOT(slotPluginDialogDestroyed(InstrumentId, int)));
+ TQT_SLOT(slotPluginDialogDestroyed(InstrumentId, int)));
- connect(this, SIGNAL(documentAboutToChange()), dialog, SLOT(close()));
+ connect(this, TQT_SIGNAL(documentAboutToChange()), dialog, TQT_SLOT(close()));
m_pluginDialogs[key] = dialog;
m_pluginDialogs[key]->show();
@@ -7028,7 +7028,7 @@ void
RosegardenGUIApp::slotPluginSelected(InstrumentId instrumentId,
int index, int plugin)
{
- const QObject *s = sender();
+ const TQObject *s = sender();
bool fromSynthMgr = (s == m_synthManager);
@@ -7276,7 +7276,7 @@ RosegardenGUIApp::slotPluginPortChanged(InstrumentId instrumentId,
void
RosegardenGUIApp::slotChangePluginProgram(InstrumentId instrumentId,
int pluginIndex,
- QString program)
+ TQString program)
{
PluginContainer *container = 0;
@@ -7345,7 +7345,7 @@ RosegardenGUIApp::slotPluginProgramChanged(InstrumentId instrumentId,
return ;
}
- QString program = strtoqstr(inst->getProgram());
+ TQString program = strtoqstr(inst->getProgram());
RG_DEBUG << "RosegardenGUIApp::slotPluginProgramChanged - "
<< "setting plugin program ("
@@ -7381,8 +7381,8 @@ void
RosegardenGUIApp::slotChangePluginConfiguration(InstrumentId instrumentId,
int index,
bool global,
- QString key,
- QString value)
+ TQString key,
+ TQString value)
{
PluginContainer *container = 0;
@@ -7537,17 +7537,17 @@ RosegardenGUIApp::slotPlayList()
{
if (!m_playList) {
m_playList = new PlayListDialog(i18n("Play List"), this);
- connect(m_playList, SIGNAL(closing()),
- SLOT(slotPlayListClosed()));
- connect(m_playList->getPlayList(), SIGNAL(play(QString)),
- SLOT(slotPlayListPlay(QString)));
+ connect(m_playList, TQT_SIGNAL(closing()),
+ TQT_SLOT(slotPlayListClosed()));
+ connect(m_playList->getPlayList(), TQT_SIGNAL(play(TQString)),
+ TQT_SLOT(slotPlayListPlay(TQString)));
}
m_playList->show();
}
void
-RosegardenGUIApp::slotPlayListPlay(QString url)
+RosegardenGUIApp::slotPlayListPlay(TQString url)
{
slotStop();
openURL(url);
@@ -7564,14 +7564,14 @@ RosegardenGUIApp::slotPlayListClosed()
void
RosegardenGUIApp::slotTutorial()
{
- QString tutorialURL = i18n("http://rosegarden.sourceforge.net/tutorial/en/chapter-0.html");
+ TQString tutorialURL = i18n("http://rosegarden.sourceforge.net/tutorial/en/chapter-0.html");
kapp->invokeBrowser(tutorialURL);
}
void
RosegardenGUIApp::slotBugGuidelines()
{
- QString glURL = i18n("http://rosegarden.sourceforge.net/tutorial/bug-guidelines.html");
+ TQString glURL = i18n("http://rosegarden.sourceforge.net/tutorial/bug-guidelines.html");
kapp->invokeBrowser(glURL);
}
@@ -7654,10 +7654,10 @@ RosegardenGUIApp::slotPanic()
(&progressDlg);
ProgressDialog::processEvents();
- connect(m_seqManager, SIGNAL(setProgress(int)),
- progressDlg.progressBar(), SLOT(setValue(int)));
- connect(m_seqManager, SIGNAL(incrementProgress(int)),
- progressDlg.progressBar(), SLOT(advance(int)));
+ connect(m_seqManager, TQT_SIGNAL(setProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(setValue(int)));
+ connect(m_seqManager, TQT_SIGNAL(incrementProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(advance(int)));
m_seqManager->panic();
@@ -7678,7 +7678,7 @@ RosegardenGUIApp::slotPopulateTrackInstrumentPopup()
Instrument* instrument = m_doc->getStudio().getInstrumentById(track->getInstrument());
- QPopupMenu* popup = dynamic_cast<QPopupMenu*>(factory()->container("set_track_instrument", this));
+ TQPopupMenu* popup = dynamic_cast<TQPopupMenu*>(factory()->container("set_track_instrument", this));
m_view->getTrackEditor()->getTrackButtons()->populateInstrumentPopup(instrument, popup);
}
@@ -7689,11 +7689,11 @@ RosegardenGUIApp::slotRemapInstruments()
RG_DEBUG << "RosegardenGUIApp::slotRemapInstruments\n";
RemapInstrumentDialog dialog(this, m_doc);
- connect(&dialog, SIGNAL(applyClicked()),
+ connect(&dialog, TQT_SIGNAL(applyClicked()),
m_view->getTrackEditor()->getTrackButtons(),
- SLOT(slotSynchroniseWithComposition()));
+ TQT_SLOT(slotSynchroniseWithComposition()));
- if (dialog.exec() == QDialog::Accepted) {
+ if (dialog.exec() == TQDialog::Accepted) {
RG_DEBUG << "slotRemapInstruments - accepted\n";
}
@@ -7712,20 +7712,20 @@ RosegardenGUIApp::slotSaveDefaultStudio()
KTmpStatusMsg msg(i18n("Saving current document as default studio..."), this);
- QString autoloadFile = ::locateLocal("appdata", "autoload.rg");
+ TQString autoloadFile = ::locateLocal("appdata", "autoload.rg");
RG_DEBUG << "RosegardenGUIApp::slotSaveDefaultStudio : saving studio in "
<< autoloadFile << endl;
SetWaitCursor waitCursor;
- QString errMsg;
+ TQString errMsg;
bool res = m_doc->saveDocument(autoloadFile, errMsg);
if (!res) {
if (errMsg)
- KMessageBox::error(this, i18n(QString("Could not auto-save document at %1\nError was : %2")
+ KMessageBox::error(this, i18n(TQString("Could not auto-save document at %1\nError was : %2")
.arg(autoloadFile).arg(errMsg)));
else
- KMessageBox::error(this, i18n(QString("Could not auto-save document at %1")
+ KMessageBox::error(this, i18n(TQString("Could not auto-save document at %1")
.arg(autoloadFile)));
}
@@ -7740,10 +7740,10 @@ RosegardenGUIApp::slotImportDefaultStudio()
if (reply != KMessageBox::Yes)
return ;
- QString autoloadFile =
+ TQString autoloadFile =
KGlobal::dirs()->findResource("appdata", "autoload.rg");
- QFileInfo autoloadFileInfo(autoloadFile);
+ TQFileInfo autoloadFileInfo(autoloadFile);
if (!autoloadFileInfo.isReadable()) {
RG_DEBUG << "RosegardenGUIDoc::slotImportDefaultStudio - "
@@ -7759,8 +7759,8 @@ RosegardenGUIApp::slotImportStudio()
{
RG_DEBUG << "RosegardenGUIApp::slotImportStudio()\n";
- QString studioDir = KGlobal::dirs()->findResource("appdata", "library/");
- QDir dir(studioDir);
+ TQString studioDir = KGlobal::dirs()->findResource("appdata", "library/");
+ TQDir dir(studioDir);
if (!dir.exists()) {
studioDir = ":ROSEGARDENDEVICE";
} else {
@@ -7775,7 +7775,7 @@ RosegardenGUIApp::slotImportStudio()
if (url.isEmpty())
return ;
- QString target;
+ TQString target;
if (KIO::NetAccess::download(url, target, this) == false) {
KMessageBox::error(this, i18n("Cannot download file %1")
.arg(url.prettyURL()));
@@ -7786,7 +7786,7 @@ RosegardenGUIApp::slotImportStudio()
}
void
-RosegardenGUIApp::slotImportStudioFromFile(const QString &file)
+RosegardenGUIApp::slotImportStudioFromFile(const TQString &file)
{
RosegardenGUIDoc *doc = new RosegardenGUIDoc(this, 0, true); // skipAutoload
@@ -7891,7 +7891,7 @@ RosegardenGUIApp::slotModifyMIDIFilters()
MidiFilterDialog dialog(this, m_doc);
- if (dialog.exec() == QDialog::Accepted) {
+ if (dialog.exec() == TQDialog::Accepted) {
RG_DEBUG << "slotModifyMIDIFilters - accepted" << endl;
}
}
@@ -7903,7 +7903,7 @@ RosegardenGUIApp::slotManageMetronome()
ManageMetronomeDialog dialog(this, m_doc);
- if (dialog.exec() == QDialog::Accepted) {
+ if (dialog.exec() == TQDialog::Accepted) {
RG_DEBUG << "slotManageMetronome - accepted" << endl;
}
}
@@ -7947,9 +7947,9 @@ RosegardenGUIApp::slotShowTip()
KTipDialog::showTip(this, locate("data", "rosegarden/tips"), true);
}
-void RosegardenGUIApp::slotShowToolHelp(const QString &s)
+void RosegardenGUIApp::slotShowToolHelp(const TQString &s)
{
- QString msg = s;
+ TQString msg = s;
if (msg != "") msg = " " + msg;
slotStatusMsg(msg);
}
@@ -7982,12 +7982,12 @@ RosegardenGUIApp::awaitDialogClearance()
while (haveDialog) {
- const QObjectList *c = children();
+ const TQObjectList *c = children();
if (!c) return;
haveDialog = false;
- for (QObjectList::const_iterator i = c->begin(); i != c->end(); ++i) {
- QDialog *dialog = dynamic_cast<QDialog *>(*i);
+ for (TQObjectList::const_iterator i = c->begin(); i != c->end(); ++i) {
+ TQDialog *dialog = dynamic_cast<TQDialog *>(*i);
if (dialog && dialog->isVisible()) {
haveDialog = true;
break;
@@ -8004,7 +8004,7 @@ RosegardenGUIApp::awaitDialogClearance()
}
void
-RosegardenGUIApp::slotNewerVersionAvailable(QString v)
+RosegardenGUIApp::slotNewerVersionAvailable(TQString v)
{
if (m_firstRun) return;
KStartupLogo::hideIfStillThere();
@@ -8014,7 +8014,7 @@ RosegardenGUIApp::slotNewerVersionAvailable(QString v)
(this,
i18n("<h3>Newer version available</h3><p>A newer version of Rosegarden may be available.<br>Please consult the <a href=\"http://www.rosegardenmusic.com/getting/\">Rosegarden website</a> for more information.</p>"),
i18n("Newer version available"),
- QString("version-%1-available-show").arg(v),
+ TQString("version-%1-available-show").arg(v),
KMessageBox::AllowLink);
CurrentProgressDialog::thaw();
}
diff --git a/src/gui/application/RosegardenGUIApp.h b/src/gui/application/RosegardenGUIApp.h
index 502d195..8ae0eaa 100644
--- a/src/gui/application/RosegardenGUIApp.h
+++ b/src/gui/application/RosegardenGUIApp.h
@@ -36,18 +36,18 @@
#include "sound/AudioFile.h"
#include "sound/Midi.h"
#include <kdockwidget.h>
-#include <qstring.h>
-#include <qvaluevector.h>
-
-
-class QWidget;
-class QTimer;
-class QTextCodec;
-class QShowEvent;
-class QObject;
-class QLabel;
-class QCursor;
-class QAccel;
+#include <tqstring.h>
+#include <tqvaluevector.h>
+
+
+class TQWidget;
+class TQTimer;
+class TQTextCodec;
+class TQShowEvent;
+class TQObject;
+class TQLabel;
+class TQCursor;
+class TQAccel;
class KURL;
class KTempFile;
class KToggleAction;
@@ -123,7 +123,7 @@ public:
*/
RosegardenGUIApp(bool useSequencer = true,
bool useExistingSequencer = false,
- QObject *startupStatusMessageReceiver = 0);
+ TQObject *startupStatusMessageReceiver = 0);
virtual ~RosegardenGUIApp();
@@ -148,32 +148,32 @@ public:
/**
* open a Rosegarden file
*/
- virtual void openFile(QString filePath) { openFile(filePath, ImportCheckType); }
+ virtual void openFile(TQString filePath) { openFile(filePath, ImportCheckType); }
/**
* open a file, explicitly specifying its type
*/
- void openFile(QString filePath, ImportType type);
+ void openFile(TQString filePath, ImportType type);
/**
* decode and open a project file
*/
- void importProject(QString filePath);
+ void importProject(TQString filePath);
/**
* open a URL
*/
- virtual void openURL(QString url);
+ virtual void openURL(TQString url);
/**
* merge a file with the existing document
*/
- virtual void mergeFile(QString filePath) { mergeFile(filePath, ImportCheckType); }
+ virtual void mergeFile(TQString filePath) { mergeFile(filePath, ImportCheckType); }
/**
* merge a file, explicitly specifying its type
*/
- void mergeFile(QString filePath, ImportType type);
+ void mergeFile(TQString filePath, ImportType type);
/**
* open a URL
@@ -183,27 +183,27 @@ public:
/**
* export a MIDI file
*/
- void exportMIDIFile(QString url);
+ void exportMIDIFile(TQString url);
/**
* export a Csound scorefile
*/
- void exportCsoundFile(QString url);
+ void exportCsoundFile(TQString url);
/**
* export a Mup file
*/
- void exportMupFile(QString url);
+ void exportMupFile(TQString url);
/**
* export a LilyPond file
*/
- bool exportLilyPondFile(QString url, bool forPreview = false);
+ bool exportLilyPondFile(TQString url, bool forPreview = false);
/**
* export a MusicXml file
*/
- void exportMusicXmlFile(QString url);
+ void exportMusicXmlFile(TQString url);
/**
* Get the sequence manager object
@@ -320,17 +320,17 @@ public:
/**
* Plug a widget into our common accelerators
*/
- void plugAccelerators(QWidget *widget, QAccel *accel);
+ void plugAccelerators(TQWidget *widget, TQAccel *accel);
/**
* Override from QWidget
* Toolbars and docks need special treatment
*/
- virtual void setCursor(const QCursor&);
+ virtual void setCursor(const TQCursor&);
bool isTrackEditorPlayTracking() const;
- bool testAudioPath(QString op); // and open the dialog to set it if unset
+ bool testAudioPath(TQString op); // and open the dialog to set it if unset
bool haveAudioImporter() const { return m_haveAudioImporter; }
protected:
@@ -342,27 +342,27 @@ protected:
/**
* Create document from a file
*/
- RosegardenGUIDoc* createDocument(QString filePath, ImportType type = ImportRG4);
+ RosegardenGUIDoc* createDocument(TQString filePath, ImportType type = ImportRG4);
/**
* Create a document from RG file
*/
- RosegardenGUIDoc* createDocumentFromRGFile(QString filePath);
+ RosegardenGUIDoc* createDocumentFromRGFile(TQString filePath);
/**
* Create document from MIDI file
*/
- RosegardenGUIDoc* createDocumentFromMIDIFile(QString filePath);
+ RosegardenGUIDoc* createDocumentFromMIDIFile(TQString filePath);
/**
* Create document from RG21 file
*/
- RosegardenGUIDoc* createDocumentFromRG21File(QString filePath);
+ RosegardenGUIDoc* createDocumentFromRG21File(TQString filePath);
/**
* Create document from Hydrogen drum machine file
*/
- RosegardenGUIDoc* createDocumentFromHydrogenFile(QString filePath);
+ RosegardenGUIDoc* createDocumentFromHydrogenFile(TQString filePath);
/**/
/**/
@@ -377,7 +377,7 @@ protected:
static const void* SequencerExternal;
/// Raise the transport along
- virtual void showEvent(QShowEvent*);
+ virtual void showEvent(TQShowEvent*);
/**
* read general Options again and initialize all variables like
@@ -456,22 +456,22 @@ protected:
/**
* Create a new audio file for the sequencer and return the
- * path to it as a QString.
+ * path to it as a TQString.
*/
- QString createNewAudioFile();
- QValueVector<QString> createRecordAudioFiles(const QValueVector<InstrumentId> &);
+ TQString createNewAudioFile();
+ TQValueVector<TQString> createRecordAudioFiles(const TQValueVector<InstrumentId> &);
- QString getAudioFilePath();
+ TQString getAudioFilePath();
//!!!mtr
- QValueVector<InstrumentId> getArmedInstruments();
+ TQValueVector<InstrumentId> getArmedInstruments();
/**
* Show a sequencer error to the user. This is for errors from
* the framework code; the playback code uses mapped compositions
* to send these things back asynchronously.
*/
- void showError(QString error);
+ void showError(TQString error);
/*
* Return AudioManagerDialog
@@ -483,7 +483,7 @@ protected:
* good and that (if it exists) the user agrees to overwrite.
* Return a null string if the write should not go ahead.
*/
- QString getValidWriteFile(QString extension, QString label);
+ TQString getValidWriteFile(TQString extension, TQString label);
/**
* Find any non-ASCII strings in a composition that has been
@@ -495,7 +495,7 @@ protected:
* necessary).
*/
void fixTextEncodings(Composition *);
- QTextCodec *guessTextCodec(std::string);
+ TQTextCodec *guessTextCodec(std::string);
/**
* Set the current document
@@ -513,7 +513,7 @@ protected:
void createAndSetupTransport();
signals:
- void startupStatusMessage(QString message);
+ void startupStatusMessage(TQString message);
/// emitted just before the document is changed
void documentAboutToChange();
@@ -543,7 +543,7 @@ public slots:
*
* @param url : a string containing a url (protocol://foo/bar/file.rg)
*/
- virtual void slotOpenDroppedURL(QString url);
+ virtual void slotOpenDroppedURL(TQString url);
/**
* Open the document properties dialog on the Audio page
@@ -812,7 +812,7 @@ public slots:
* Tempo to Segment length
*/
void slotTempoToSegmentLength();
- void slotTempoToSegmentLength(QWidget* parent);
+ void slotTempoToSegmentLength(TQWidget* parent);
/**
* toggle segment labels
@@ -855,22 +855,22 @@ public slots:
*/
void slotEditTempo();
void slotEditTempo(timeT atTime);
- void slotEditTempo(QWidget *parent);
- void slotEditTempo(QWidget *parent, timeT atTime);
+ void slotEditTempo(TQWidget *parent);
+ void slotEditTempo(TQWidget *parent, timeT atTime);
/**
* Edit the time signature - called from a Transport signal
*/
void slotEditTimeSignature();
void slotEditTimeSignature(timeT atTime);
- void slotEditTimeSignature(QWidget *parent);
- void slotEditTimeSignature(QWidget *parent, timeT atTime);
+ void slotEditTimeSignature(TQWidget *parent);
+ void slotEditTimeSignature(TQWidget *parent, timeT atTime);
/**
* Edit the playback pointer position - called from a Transport signal
*/
void slotEditTransportTime();
- void slotEditTransportTime(QWidget *parent);
+ void slotEditTransportTime(TQWidget *parent);
/**
* Change the length of the composition
@@ -956,7 +956,7 @@ public slots:
/**
* Import Studio from File
*/
- void slotImportStudioFromFile(const QString &file);
+ void slotImportStudioFromFile(const TQString &file);
/**
* Send MIDI_RESET to all MIDI devices
@@ -1014,7 +1014,7 @@ public slots:
*
* @param text the text that is displayed in the statusbar
*/
- void slotStatusMsg(QString text);
+ void slotStatusMsg(TQString text);
/**
* changes the status message of the whole statusbar for two
@@ -1024,7 +1024,7 @@ public slots:
*
* @param text the text that is displayed in the statusbar
*/
- void slotStatusHelpMsg(QString text);
+ void slotStatusHelpMsg(TQString text);
/**
* enables/disables the transport window
@@ -1146,7 +1146,7 @@ public slots:
/**
* Put the GUI into a given Tool edit mode
*/
- void slotActivateTool(QString toolName);
+ void slotActivateTool(TQString toolName);
/**
* Toggles either the play or record metronome according
@@ -1302,8 +1302,8 @@ public slots:
*/
void slotDeleteMarker(int id,
timeT time,
- QString name,
- QString description);
+ TQString name,
+ TQString description);
/**
* Document modified
@@ -1320,7 +1320,7 @@ public slots:
* Hopefully we'll be able to get rid of this eventually,
* I should slip this in KMainWindow for KDE 4.
*/
- void slotStateChanged(QString, bool noReverse);
+ void slotStateChanged(TQString, bool noReverse);
/**
* A command has happened; check the clipboard in case we
@@ -1339,7 +1339,7 @@ public slots:
* Stop current playback, close current document,
* open specified document and play it.
*/
- void slotPlayListPlay(QString url);
+ void slotPlayListPlay(TQString url);
/**
* Call up the online tutorial
@@ -1464,7 +1464,7 @@ public slots:
* Create a plugin dialog for a given instrument and slot, or
* raise an exising one.
*/
- void slotShowPluginDialog(QWidget *parent,
+ void slotShowPluginDialog(TQWidget *parent,
InstrumentId instrument,
int index);
@@ -1489,7 +1489,7 @@ public slots:
* An external GUI has requested a program change.
*/
void slotChangePluginProgram(InstrumentId instrument,
- int index, QString program);
+ int index, TQString program);
/**
* Our internal GUI has made a program change -- the
@@ -1506,7 +1506,7 @@ public slots:
* internally.)
*/
void slotChangePluginConfiguration(InstrumentId, int index,
- bool global, QString key, QString value);
+ bool global, TQString key, TQString value);
void slotPluginDialogDestroyed(InstrumentId instrument,
int index);
void slotPluginBypassed(InstrumentId,
@@ -1534,9 +1534,9 @@ public slots:
*/
void slotEnableMIDIThruRouting();
- void slotShowToolHelp(const QString &);
+ void slotShowToolHelp(const TQString &);
- void slotNewerVersionAvailable(QString);
+ void slotNewerVersionAvailable(TQString);
void slotSetQuickMarker();
@@ -1607,7 +1607,7 @@ private:
#endif // HAVE_LIBJACK
ZoomSlider<double> *m_zoomSlider;
- QLabel *m_zoomLabel;
+ TQLabel *m_zoomLabel;
ProgressBar *m_progressBar;
@@ -1637,7 +1637,7 @@ private:
AudioPluginManager *m_pluginManager;
- QTimer* m_autoSaveTimer;
+ TQTimer* m_autoSaveTimer;
Clipboard *m_clipboard;
@@ -1666,8 +1666,8 @@ private:
// Used to fetch the current sequencer position from the mmapped sequencer information file
//
- QTimer *m_playTimer;
- QTimer *m_stopTimer;
+ TQTimer *m_playTimer;
+ TQTimer *m_stopTimer;
StartupTester *m_startupTester;
diff --git a/src/gui/application/RosegardenGUIView.cpp b/src/gui/application/RosegardenGUIView.cpp
index c61b51e..9eb7969 100644
--- a/src/gui/application/RosegardenGUIView.cpp
+++ b/src/gui/application/RosegardenGUIView.cpp
@@ -83,20 +83,20 @@
#include <kconfig.h>
#include <kmessagebox.h>
#include <kprocess.h>
-#include <qapplication.h>
-#include <qcursor.h>
-#include <qdialog.h>
-#include <qfileinfo.h>
-#include <qobject.h>
-#include <qstring.h>
-#include <qvbox.h>
-#include <qwidget.h>
+#include <tqapplication.h>
+#include <tqcursor.h>
+#include <tqdialog.h>
+#include <tqfileinfo.h>
+#include <tqobject.h>
+#include <tqstring.h>
+#include <tqvbox.h>
+#include <tqwidget.h>
namespace Rosegarden
{
-// Use this to define the basic unit of the main QCanvas size.
+// Use this to define the basic unit of the main TQCanvas size.
//
// This apparently arbitrary figure is what we think is an
// appropriate width in pixels for a 4/4 bar. Beware of making it
@@ -106,7 +106,7 @@ namespace Rosegarden
//
static double barWidth44 = 100.0;
-const QWidget *RosegardenGUIView::m_lastActiveMainWindow = 0;
+const TQWidget *RosegardenGUIView::m_lastActiveMainWindow = 0;
// This is the maximum number of matrix, event view or percussion
// matrix editors to open in a single operation (not the maximum that
@@ -118,9 +118,9 @@ RosegardenGUIView::RosegardenGUIView(bool showTrackLabels,
SegmentParameterBox* segmentParameterBox,
InstrumentParameterBox* instrumentParameterBox,
TrackParameterBox* trackParameterBox,
- QWidget *parent,
+ TQWidget *parent,
const char* /*name*/)
- : QVBox(parent),
+ : TQVBox(parent),
m_rulerScale(0),
m_trackEditor(0),
m_segmentParameterBox(segmentParameterBox),
@@ -141,91 +141,91 @@ RosegardenGUIView::RosegardenGUIView(bool showTrackLabels,
m_rulerScale, showTrackLabels, unitsPerPixel, this /*hbox*/);
connect(m_trackEditor->getSegmentCanvas(),
- SIGNAL(editSegment(Segment*)),
- SLOT(slotEditSegment(Segment*)));
+ TQT_SIGNAL(editSegment(Segment*)),
+ TQT_SLOT(slotEditSegment(Segment*)));
connect(m_trackEditor->getSegmentCanvas(),
- SIGNAL(editSegmentNotation(Segment*)),
- SLOT(slotEditSegmentNotation(Segment*)));
+ TQT_SIGNAL(editSegmentNotation(Segment*)),
+ TQT_SLOT(slotEditSegmentNotation(Segment*)));
connect(m_trackEditor->getSegmentCanvas(),
- SIGNAL(editSegmentMatrix(Segment*)),
- SLOT(slotEditSegmentMatrix(Segment*)));
+ TQT_SIGNAL(editSegmentMatrix(Segment*)),
+ TQT_SLOT(slotEditSegmentMatrix(Segment*)));
connect(m_trackEditor->getSegmentCanvas(),
- SIGNAL(editSegmentAudio(Segment*)),
- SLOT(slotEditSegmentAudio(Segment*)));
+ TQT_SIGNAL(editSegmentAudio(Segment*)),
+ TQT_SLOT(slotEditSegmentAudio(Segment*)));
connect(m_trackEditor->getSegmentCanvas(),
- SIGNAL(audioSegmentAutoSplit(Segment*)),
- SLOT(slotSegmentAutoSplit(Segment*)));
+ TQT_SIGNAL(audioSegmentAutoSplit(Segment*)),
+ TQT_SLOT(slotSegmentAutoSplit(Segment*)));
connect(m_trackEditor->getSegmentCanvas(),
- SIGNAL(editSegmentEventList(Segment*)),
- SLOT(slotEditSegmentEventList(Segment*)));
+ TQT_SIGNAL(editSegmentEventList(Segment*)),
+ TQT_SLOT(slotEditSegmentEventList(Segment*)));
connect(m_trackEditor->getSegmentCanvas(),
- SIGNAL(editRepeat(Segment*, timeT)),
- SLOT(slotEditRepeat(Segment*, timeT)));
+ TQT_SIGNAL(editRepeat(Segment*, timeT)),
+ TQT_SLOT(slotEditRepeat(Segment*, timeT)));
connect(m_trackEditor->getSegmentCanvas(),
- SIGNAL(setPointerPosition(timeT)),
- doc, SLOT(slotSetPointerPosition(timeT)));
+ TQT_SIGNAL(setPointerPosition(timeT)),
+ doc, TQT_SLOT(slotSetPointerPosition(timeT)));
connect(m_trackEditor,
- SIGNAL(droppedDocument(QString)),
+ TQT_SIGNAL(droppedDocument(TQString)),
parent,
- SLOT(slotOpenDroppedURL(QString)));
+ TQT_SLOT(slotOpenDroppedURL(TQString)));
connect(m_trackEditor,
- SIGNAL(droppedAudio(QString)),
+ TQT_SIGNAL(droppedAudio(TQString)),
this,
- SLOT(slotDroppedAudio(QString)));
+ TQT_SLOT(slotDroppedAudio(TQString)));
connect(m_trackEditor,
- SIGNAL(droppedNewAudio(QString)),
+ TQT_SIGNAL(droppedNewAudio(TQString)),
this,
- SLOT(slotDroppedNewAudio(QString)));
+ TQT_SLOT(slotDroppedNewAudio(TQString)));
connect(m_instrumentParameterBox,
- SIGNAL(changeInstrumentLabel(InstrumentId, QString)),
+ TQT_SIGNAL(changeInstrumentLabel(InstrumentId, TQString)),
this,
- SLOT(slotChangeInstrumentLabel(InstrumentId, QString)));
+ TQT_SLOT(slotChangeInstrumentLabel(InstrumentId, TQString)));
connect(m_instrumentParameterBox,
- SIGNAL(changeInstrumentLabel(InstrumentId, QString)),
+ TQT_SIGNAL(changeInstrumentLabel(InstrumentId, TQString)),
m_trackParameterBox,
- SLOT(slotInstrumentLabelChanged(InstrumentId, QString)));
+ TQT_SLOT(slotInstrumentLabelChanged(InstrumentId, TQString)));
connect(m_trackEditor->getTrackButtons(),
- SIGNAL(nameChanged()),
+ TQT_SIGNAL(nameChanged()),
m_trackParameterBox,
- SLOT(slotSelectedTrackNameChanged()));
+ TQT_SLOT(slotSelectedTrackNameChanged()));
connect(m_trackEditor->getTrackButtons(),
- SIGNAL(instrumentSelected(int)),
+ TQT_SIGNAL(instrumentSelected(int)),
m_trackParameterBox,
- SLOT(slotUpdateControls(int)));
+ TQT_SLOT(slotUpdateControls(int)));
connect(m_trackParameterBox,
- SIGNAL(instrumentSelected(TrackId, int)),
+ TQT_SIGNAL(instrumentSelected(TrackId, int)),
m_trackEditor->getTrackButtons(),
- SLOT(slotTrackInstrumentSelection(TrackId, int)));
+ TQT_SLOT(slotTrackInstrumentSelection(TrackId, int)));
- connect(this, SIGNAL(controllerDeviceEventReceived(MappedEvent *, const void *)),
- this, SLOT(slotControllerDeviceEventReceived(MappedEvent *, const void *)));
+ connect(this, TQT_SIGNAL(controllerDeviceEventReceived(MappedEvent *, const void *)),
+ this, TQT_SLOT(slotControllerDeviceEventReceived(MappedEvent *, const void *)));
if (doc) {
/* signal no longer exists
- connect(doc, SIGNAL(recordingSegmentUpdated(Segment *,
+ connect(doc, TQT_SIGNAL(recordingSegmentUpdated(Segment *,
timeT)),
- this, SLOT(slotUpdateRecordingSegment(Segment *,
+ this, TQT_SLOT(slotUpdateRecordingSegment(Segment *,
timeT)));
*/
- QObject::connect
- (getCommandHistory(), SIGNAL(commandExecuted()),
- m_trackEditor->getSegmentCanvas(), SLOT(slotUpdateSegmentsDrawBuffer()));
+ TQObject::connect
+ (getCommandHistory(), TQT_SIGNAL(commandExecuted()),
+ m_trackEditor->getSegmentCanvas(), TQT_SLOT(slotUpdateSegmentsDrawBuffer()));
}
}
@@ -274,7 +274,7 @@ void RosegardenGUIView::print(Composition* p, bool previewOnly)
delete notationView;
}
-void RosegardenGUIView::selectTool(const QString toolName)
+void RosegardenGUIView::selectTool(const TQString toolName)
{
m_trackEditor->getSegmentCanvas()->slotSetTool(toolName);
}
@@ -298,10 +298,10 @@ void RosegardenGUIView::updateSelectionContents()
/* hjj: WHAT DO DO WITH THIS ?
void
-RosegardenGUIView::slotEditMetadata(QString name)
+RosegardenGUIView::slotEditMetadata(TQString name)
{
- const QWidget *ww = dynamic_cast<const QWidget *>(sender());
- QWidget *w = const_cast<QWidget *>(ww);
+ const TQWidget *ww = dynamic_cast<const TQWidget *>(sender());
+ TQWidget *w = const_cast<TQWidget *>(ww);
DocumentConfigureDialog *configDlg =
new DocumentConfigureDialog(getDocument(), w ? w : this);
@@ -457,77 +457,77 @@ RosegardenGUIView::createNotationView(std::vector<Segment *> segmentsToEdit)
// For tempo changes (ugh -- it'd be nicer to make a tempo change
// command that could interpret all this stuff from the dialog)
//
- connect(notationView, SIGNAL(changeTempo(timeT,
+ connect(notationView, TQT_SIGNAL(changeTempo(timeT,
tempoT,
tempoT,
TempoDialog::TempoDialogAction)),
- RosegardenGUIApp::self(), SLOT(slotChangeTempo(timeT,
+ RosegardenGUIApp::self(), TQT_SLOT(slotChangeTempo(timeT,
tempoT,
tempoT,
TempoDialog::TempoDialogAction)));
- connect(notationView, SIGNAL(windowActivated()),
- this, SLOT(slotActiveMainWindowChanged()));
-
- connect(notationView, SIGNAL(selectTrack(int)),
- this, SLOT(slotSelectTrackSegments(int)));
-
- connect(notationView, SIGNAL(play()),
- RosegardenGUIApp::self(), SLOT(slotPlay()));
- connect(notationView, SIGNAL(stop()),
- RosegardenGUIApp::self(), SLOT(slotStop()));
- connect(notationView, SIGNAL(fastForwardPlayback()),
- RosegardenGUIApp::self(), SLOT(slotFastforward()));
- connect(notationView, SIGNAL(rewindPlayback()),
- RosegardenGUIApp::self(), SLOT(slotRewind()));
- connect(notationView, SIGNAL(fastForwardPlaybackToEnd()),
- RosegardenGUIApp::self(), SLOT(slotFastForwardToEnd()));
- connect(notationView, SIGNAL(rewindPlaybackToBeginning()),
- RosegardenGUIApp::self(), SLOT(slotRewindToBeginning()));
- connect(notationView, SIGNAL(panic()),
- RosegardenGUIApp::self(), SLOT(slotPanic()));
-
- connect(notationView, SIGNAL(saveFile()),
- RosegardenGUIApp::self(), SLOT(slotFileSave()));
- connect(notationView, SIGNAL(jumpPlaybackTo(timeT)),
- getDocument(), SLOT(slotSetPointerPosition(timeT)));
- connect(notationView, SIGNAL(openInNotation(std::vector<Segment *>)),
- this, SLOT(slotEditSegmentsNotation(std::vector<Segment *>)));
- connect(notationView, SIGNAL(openInMatrix(std::vector<Segment *>)),
- this, SLOT(slotEditSegmentsMatrix(std::vector<Segment *>)));
- connect(notationView, SIGNAL(openInPercussionMatrix(std::vector<Segment *>)),
- this, SLOT(slotEditSegmentsPercussionMatrix(std::vector<Segment *>)));
- connect(notationView, SIGNAL(openInEventList(std::vector<Segment *>)),
- this, SLOT(slotEditSegmentsEventList(std::vector<Segment *>)));
+ connect(notationView, TQT_SIGNAL(windowActivated()),
+ this, TQT_SLOT(slotActiveMainWindowChanged()));
+
+ connect(notationView, TQT_SIGNAL(selectTrack(int)),
+ this, TQT_SLOT(slotSelectTrackSegments(int)));
+
+ connect(notationView, TQT_SIGNAL(play()),
+ RosegardenGUIApp::self(), TQT_SLOT(slotPlay()));
+ connect(notationView, TQT_SIGNAL(stop()),
+ RosegardenGUIApp::self(), TQT_SLOT(slotStop()));
+ connect(notationView, TQT_SIGNAL(fastForwardPlayback()),
+ RosegardenGUIApp::self(), TQT_SLOT(slotFastforward()));
+ connect(notationView, TQT_SIGNAL(rewindPlayback()),
+ RosegardenGUIApp::self(), TQT_SLOT(slotRewind()));
+ connect(notationView, TQT_SIGNAL(fastForwardPlaybackToEnd()),
+ RosegardenGUIApp::self(), TQT_SLOT(slotFastForwardToEnd()));
+ connect(notationView, TQT_SIGNAL(rewindPlaybackToBeginning()),
+ RosegardenGUIApp::self(), TQT_SLOT(slotRewindToBeginning()));
+ connect(notationView, TQT_SIGNAL(panic()),
+ RosegardenGUIApp::self(), TQT_SLOT(slotPanic()));
+
+ connect(notationView, TQT_SIGNAL(saveFile()),
+ RosegardenGUIApp::self(), TQT_SLOT(slotFileSave()));
+ connect(notationView, TQT_SIGNAL(jumpPlaybackTo(timeT)),
+ getDocument(), TQT_SLOT(slotSetPointerPosition(timeT)));
+ connect(notationView, TQT_SIGNAL(openInNotation(std::vector<Segment *>)),
+ this, TQT_SLOT(slotEditSegmentsNotation(std::vector<Segment *>)));
+ connect(notationView, TQT_SIGNAL(openInMatrix(std::vector<Segment *>)),
+ this, TQT_SLOT(slotEditSegmentsMatrix(std::vector<Segment *>)));
+ connect(notationView, TQT_SIGNAL(openInPercussionMatrix(std::vector<Segment *>)),
+ this, TQT_SLOT(slotEditSegmentsPercussionMatrix(std::vector<Segment *>)));
+ connect(notationView, TQT_SIGNAL(openInEventList(std::vector<Segment *>)),
+ this, TQT_SLOT(slotEditSegmentsEventList(std::vector<Segment *>)));
/* hjj: WHAT DO DO WITH THIS ?
- connect(notationView, SIGNAL(editMetadata(QString)),
- this, SLOT(slotEditMetadata(QString)));
+ connect(notationView, TQT_SIGNAL(editMetadata(TQString)),
+ this, TQT_SLOT(slotEditMetadata(TQString)));
*/
- connect(notationView, SIGNAL(editTriggerSegment(int)),
- this, SLOT(slotEditTriggerSegment(int)));
- connect(notationView, SIGNAL(staffLabelChanged(TrackId, QString)),
- this, SLOT(slotChangeTrackLabel(TrackId, QString)));
- connect(notationView, SIGNAL(toggleSolo(bool)),
- RosegardenGUIApp::self(), SLOT(slotToggleSolo(bool)));
- connect(notationView, SIGNAL(editTimeSignature(timeT)),
- RosegardenGUIApp::self(), SLOT(slotEditTempos(timeT)));
+ connect(notationView, TQT_SIGNAL(editTriggerSegment(int)),
+ this, TQT_SLOT(slotEditTriggerSegment(int)));
+ connect(notationView, TQT_SIGNAL(staffLabelChanged(TrackId, TQString)),
+ this, TQT_SLOT(slotChangeTrackLabel(TrackId, TQString)));
+ connect(notationView, TQT_SIGNAL(toggleSolo(bool)),
+ RosegardenGUIApp::self(), TQT_SLOT(slotToggleSolo(bool)));
+ connect(notationView, TQT_SIGNAL(editTimeSignature(timeT)),
+ RosegardenGUIApp::self(), TQT_SLOT(slotEditTempos(timeT)));
SequenceManager *sM = getDocument()->getSequenceManager();
- connect(sM, SIGNAL(insertableNoteOnReceived(int, int)),
- notationView, SLOT(slotInsertableNoteOnReceived(int, int)));
- connect(sM, SIGNAL(insertableNoteOffReceived(int, int)),
- notationView, SLOT(slotInsertableNoteOffReceived(int, int)));
+ connect(sM, TQT_SIGNAL(insertableNoteOnReceived(int, int)),
+ notationView, TQT_SLOT(slotInsertableNoteOnReceived(int, int)));
+ connect(sM, TQT_SIGNAL(insertableNoteOffReceived(int, int)),
+ notationView, TQT_SLOT(slotInsertableNoteOffReceived(int, int)));
- connect(notationView, SIGNAL(stepByStepTargetRequested(QObject *)),
- this, SIGNAL(stepByStepTargetRequested(QObject *)));
- connect(this, SIGNAL(stepByStepTargetRequested(QObject *)),
- notationView, SLOT(slotStepByStepTargetRequested(QObject *)));
- connect(RosegardenGUIApp::self(), SIGNAL(compositionStateUpdate()),
- notationView, SLOT(slotCompositionStateUpdate()));
- connect(this, SIGNAL(compositionStateUpdate()),
- notationView, SLOT(slotCompositionStateUpdate()));
+ connect(notationView, TQT_SIGNAL(stepByStepTargetRequested(TQObject *)),
+ this, TQT_SIGNAL(stepByStepTargetRequested(TQObject *)));
+ connect(this, TQT_SIGNAL(stepByStepTargetRequested(TQObject *)),
+ notationView, TQT_SLOT(slotStepByStepTargetRequested(TQObject *)));
+ connect(RosegardenGUIApp::self(), TQT_SIGNAL(compositionStateUpdate()),
+ notationView, TQT_SLOT(slotCompositionStateUpdate()));
+ connect(this, TQT_SIGNAL(compositionStateUpdate()),
+ notationView, TQT_SLOT(slotCompositionStateUpdate()));
// Encourage the notation view window to open to the same
// interval as the current segment view
@@ -659,73 +659,73 @@ RosegardenGUIView::createMatrixView(std::vector<Segment *> segmentsToEdit, bool
// For tempo changes (ugh -- it'd be nicer to make a tempo change
// command that could interpret all this stuff from the dialog)
//
- connect(matrixView, SIGNAL(changeTempo(timeT,
+ connect(matrixView, TQT_SIGNAL(changeTempo(timeT,
tempoT,
tempoT,
TempoDialog::TempoDialogAction)),
- RosegardenGUIApp::self(), SLOT(slotChangeTempo(timeT,
+ RosegardenGUIApp::self(), TQT_SLOT(slotChangeTempo(timeT,
tempoT,
tempoT,
TempoDialog::TempoDialogAction)));
- connect(matrixView, SIGNAL(windowActivated()),
- this, SLOT(slotActiveMainWindowChanged()));
-
- connect(matrixView, SIGNAL(selectTrack(int)),
- this, SLOT(slotSelectTrackSegments(int)));
-
- connect(matrixView, SIGNAL(play()),
- RosegardenGUIApp::self(), SLOT(slotPlay()));
- connect(matrixView, SIGNAL(stop()),
- RosegardenGUIApp::self(), SLOT(slotStop()));
- connect(matrixView, SIGNAL(fastForwardPlayback()),
- RosegardenGUIApp::self(), SLOT(slotFastforward()));
- connect(matrixView, SIGNAL(rewindPlayback()),
- RosegardenGUIApp::self(), SLOT(slotRewind()));
- connect(matrixView, SIGNAL(fastForwardPlaybackToEnd()),
- RosegardenGUIApp::self(), SLOT(slotFastForwardToEnd()));
- connect(matrixView, SIGNAL(rewindPlaybackToBeginning()),
- RosegardenGUIApp::self(), SLOT(slotRewindToBeginning()));
- connect(matrixView, SIGNAL(panic()),
- RosegardenGUIApp::self(), SLOT(slotPanic()));
-
- connect(matrixView, SIGNAL(saveFile()),
- RosegardenGUIApp::self(), SLOT(slotFileSave()));
- connect(matrixView, SIGNAL(jumpPlaybackTo(timeT)),
- getDocument(), SLOT(slotSetPointerPosition(timeT)));
- connect(matrixView, SIGNAL(openInNotation(std::vector<Segment *>)),
- this, SLOT(slotEditSegmentsNotation(std::vector<Segment *>)));
- connect(matrixView, SIGNAL(openInMatrix(std::vector<Segment *>)),
- this, SLOT(slotEditSegmentsMatrix(std::vector<Segment *>)));
- connect(matrixView, SIGNAL(openInEventList(std::vector<Segment *>)),
- this, SLOT(slotEditSegmentsEventList(std::vector<Segment *>)));
- connect(matrixView, SIGNAL(editTriggerSegment(int)),
- this, SLOT(slotEditTriggerSegment(int)));
- connect(matrixView, SIGNAL(toggleSolo(bool)),
- RosegardenGUIApp::self(), SLOT(slotToggleSolo(bool)));
- connect(matrixView, SIGNAL(editTimeSignature(timeT)),
- RosegardenGUIApp::self(), SLOT(slotEditTempos(timeT)));
+ connect(matrixView, TQT_SIGNAL(windowActivated()),
+ this, TQT_SLOT(slotActiveMainWindowChanged()));
+
+ connect(matrixView, TQT_SIGNAL(selectTrack(int)),
+ this, TQT_SLOT(slotSelectTrackSegments(int)));
+
+ connect(matrixView, TQT_SIGNAL(play()),
+ RosegardenGUIApp::self(), TQT_SLOT(slotPlay()));
+ connect(matrixView, TQT_SIGNAL(stop()),
+ RosegardenGUIApp::self(), TQT_SLOT(slotStop()));
+ connect(matrixView, TQT_SIGNAL(fastForwardPlayback()),
+ RosegardenGUIApp::self(), TQT_SLOT(slotFastforward()));
+ connect(matrixView, TQT_SIGNAL(rewindPlayback()),
+ RosegardenGUIApp::self(), TQT_SLOT(slotRewind()));
+ connect(matrixView, TQT_SIGNAL(fastForwardPlaybackToEnd()),
+ RosegardenGUIApp::self(), TQT_SLOT(slotFastForwardToEnd()));
+ connect(matrixView, TQT_SIGNAL(rewindPlaybackToBeginning()),
+ RosegardenGUIApp::self(), TQT_SLOT(slotRewindToBeginning()));
+ connect(matrixView, TQT_SIGNAL(panic()),
+ RosegardenGUIApp::self(), TQT_SLOT(slotPanic()));
+
+ connect(matrixView, TQT_SIGNAL(saveFile()),
+ RosegardenGUIApp::self(), TQT_SLOT(slotFileSave()));
+ connect(matrixView, TQT_SIGNAL(jumpPlaybackTo(timeT)),
+ getDocument(), TQT_SLOT(slotSetPointerPosition(timeT)));
+ connect(matrixView, TQT_SIGNAL(openInNotation(std::vector<Segment *>)),
+ this, TQT_SLOT(slotEditSegmentsNotation(std::vector<Segment *>)));
+ connect(matrixView, TQT_SIGNAL(openInMatrix(std::vector<Segment *>)),
+ this, TQT_SLOT(slotEditSegmentsMatrix(std::vector<Segment *>)));
+ connect(matrixView, TQT_SIGNAL(openInEventList(std::vector<Segment *>)),
+ this, TQT_SLOT(slotEditSegmentsEventList(std::vector<Segment *>)));
+ connect(matrixView, TQT_SIGNAL(editTriggerSegment(int)),
+ this, TQT_SLOT(slotEditTriggerSegment(int)));
+ connect(matrixView, TQT_SIGNAL(toggleSolo(bool)),
+ RosegardenGUIApp::self(), TQT_SLOT(slotToggleSolo(bool)));
+ connect(matrixView, TQT_SIGNAL(editTimeSignature(timeT)),
+ RosegardenGUIApp::self(), TQT_SLOT(slotEditTempos(timeT)));
SequenceManager *sM = getDocument()->getSequenceManager();
- connect(sM, SIGNAL(insertableNoteOnReceived(int, int)),
- matrixView, SLOT(slotInsertableNoteOnReceived(int, int)));
- connect(sM, SIGNAL(insertableNoteOffReceived(int, int)),
- matrixView, SLOT(slotInsertableNoteOffReceived(int, int)));
-
- connect(matrixView, SIGNAL(stepByStepTargetRequested(QObject *)),
- this, SIGNAL(stepByStepTargetRequested(QObject *)));
- connect(this, SIGNAL(stepByStepTargetRequested(QObject *)),
- matrixView, SLOT(slotStepByStepTargetRequested(QObject *)));
- connect(RosegardenGUIApp::self(), SIGNAL(compositionStateUpdate()),
- matrixView, SLOT(slotCompositionStateUpdate()));
- connect(this, SIGNAL(compositionStateUpdate()),
- matrixView, SLOT(slotCompositionStateUpdate()));
+ connect(sM, TQT_SIGNAL(insertableNoteOnReceived(int, int)),
+ matrixView, TQT_SLOT(slotInsertableNoteOnReceived(int, int)));
+ connect(sM, TQT_SIGNAL(insertableNoteOffReceived(int, int)),
+ matrixView, TQT_SLOT(slotInsertableNoteOffReceived(int, int)));
+
+ connect(matrixView, TQT_SIGNAL(stepByStepTargetRequested(TQObject *)),
+ this, TQT_SIGNAL(stepByStepTargetRequested(TQObject *)));
+ connect(this, TQT_SIGNAL(stepByStepTargetRequested(TQObject *)),
+ matrixView, TQT_SLOT(slotStepByStepTargetRequested(TQObject *)));
+ connect(RosegardenGUIApp::self(), TQT_SIGNAL(compositionStateUpdate()),
+ matrixView, TQT_SLOT(slotCompositionStateUpdate()));
+ connect(this, TQT_SIGNAL(compositionStateUpdate()),
+ matrixView, TQT_SLOT(slotCompositionStateUpdate()));
connect(this,
- SIGNAL(instrumentLevelsChanged(InstrumentId,
+ TQT_SIGNAL(instrumentLevelsChanged(InstrumentId,
const LevelInfo &)),
matrixView,
- SLOT(slotInstrumentLevelsChanged(InstrumentId,
+ TQT_SLOT(slotInstrumentLevelsChanged(InstrumentId,
const LevelInfo &)));
// Encourage the matrix view window to open to the same
@@ -817,7 +817,7 @@ void RosegardenGUIView::slotSegmentAutoSplit(Segment *segment)
{
AudioSplitDialog aSD(this, segment, getDocument());
- if (aSD.exec() == QDialog::Accepted) {
+ if (aSD.exec() == TQDialog::Accepted) {
KCommand *command =
new AudioSegmentAutoSplitCommand(getDocument(),
segment, aSD.getThreshold());
@@ -833,13 +833,13 @@ void RosegardenGUIView::slotEditSegmentAudio(Segment *segment)
KConfig* config = kapp->config();
config->setGroup(GeneralOptionsConfigGroup);
- QString application = config->readEntry("externalaudioeditor", "");
+ TQString application = config->readEntry("externalaudioeditor", "");
if (application == "") {
application = AudioConfigurationPage::getBestAvailableAudioEditor();
}
- QStringList splitCommand = QStringList::split(" ", application);
+ TQStringList splitCommand = TQStringList::split(" ", application);
if (splitCommand.size() == 0) {
@@ -853,7 +853,7 @@ void RosegardenGUIView::slotEditSegmentAudio(Segment *segment)
return ;
}
- QFileInfo *appInfo = new QFileInfo(splitCommand[0]);
+ TQFileInfo *appInfo = new TQFileInfo(splitCommand[0]);
if (appInfo->exists() == false || appInfo->isExecutable() == false) {
std::cerr << "RosegardenGUIView::slotEditSegmentAudio() - "
<< "can't execute \"" << splitCommand[0] << "\""
@@ -870,13 +870,13 @@ void RosegardenGUIView::slotEditSegmentAudio(Segment *segment)
}
// wait cursor
- QApplication::setOverrideCursor(QCursor(Qt::waitCursor));
+ TQApplication::setOverrideCursor(TQCursor(Qt::waitCursor));
// Prepare the process
//
KProcess *process = new KProcess();
(*process) << splitCommand;
- (*process) << QString(aF->getFilename().c_str());
+ (*process) << TQString(aF->getFilename().c_str());
// Start it
//
@@ -886,7 +886,7 @@ void RosegardenGUIView::slotEditSegmentAudio(Segment *segment)
}
// restore cursor
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
}
@@ -1371,14 +1371,14 @@ RosegardenGUIView::slotAddCommandToHistory(KCommand *command)
void
RosegardenGUIView::slotChangeInstrumentLabel(InstrumentId id,
- QString label)
+ TQString label)
{
m_trackEditor->getTrackButtons()->changeInstrumentLabel(id, label);
}
void
RosegardenGUIView::slotChangeTrackLabel(TrackId id,
- QString label)
+ TQString label)
{
m_trackEditor->getTrackButtons()->changeTrackLabel(id, label);
}
@@ -1505,11 +1505,11 @@ RosegardenGUIView::slotAddAudioSegmentDefaultPosition(AudioFileId audioFileId,
}
void
-RosegardenGUIView::slotDroppedNewAudio(QString audioDesc)
+RosegardenGUIView::slotDroppedNewAudio(TQString audioDesc)
{
- QTextIStream s(&audioDesc);
+ TQTextIStream s(&audioDesc);
- QString url;
+ TQString url;
int trackId;
timeT time;
url = s.readLine();
@@ -1545,31 +1545,31 @@ RosegardenGUIView::slotDroppedNewAudio(QString audioDesc)
// Connect the progress dialog
//
- connect(&aFM, SIGNAL(setProgress(int)),
- progressDlg.progressBar(), SLOT(setValue(int)));
- connect(&aFM, SIGNAL(setOperationName(QString)),
- &progressDlg, SLOT(slotSetOperationName(QString)));
- connect(&progressDlg, SIGNAL(cancelClicked()),
- &aFM, SLOT(slotStopImport()));
+ connect(&aFM, TQT_SIGNAL(setProgress(int)),
+ progressDlg.progressBar(), TQT_SLOT(setValue(int)));
+ connect(&aFM, TQT_SIGNAL(setOperationName(TQString)),
+ &progressDlg, TQT_SLOT(slotSetOperationName(TQString)));
+ connect(&progressDlg, TQT_SIGNAL(cancelClicked()),
+ &aFM, TQT_SLOT(slotStopImport()));
try {
audioFileId = aFM.importURL(kurl, sampleRate);
} catch (AudioFileManager::BadAudioPathException e) {
CurrentProgressDialog::freeze();
- QString errorString = i18n("Can't add dropped file. ") + strtoqstr(e.getMessage());
+ TQString errorString = i18n("Can't add dropped file. ") + strtoqstr(e.getMessage());
KMessageBox::sorry(this, errorString);
return ;
} catch (SoundFile::BadSoundFileException e) {
CurrentProgressDialog::freeze();
- QString errorString = i18n("Can't add dropped file. ") + strtoqstr(e.getMessage());
+ TQString errorString = i18n("Can't add dropped file. ") + strtoqstr(e.getMessage());
KMessageBox::sorry(this, errorString);
return ;
}
- disconnect(&progressDlg, SIGNAL(cancelClicked()),
- &aFM, SLOT(slotStopImport()));
- connect(&progressDlg, SIGNAL(cancelClicked()),
- &aFM, SLOT(slotStopPreview()));
+ disconnect(&progressDlg, TQT_SIGNAL(cancelClicked()),
+ &aFM, TQT_SLOT(slotStopImport()));
+ connect(&progressDlg, TQT_SIGNAL(cancelClicked()),
+ &aFM, TQT_SLOT(slotStopPreview()));
progressDlg.progressBar()->show();
progressDlg.slotSetOperationName(i18n("Generating audio preview..."));
@@ -1577,14 +1577,14 @@ RosegardenGUIView::slotDroppedNewAudio(QString audioDesc)
aFM.generatePreview(audioFileId);
} catch (Exception e) {
CurrentProgressDialog::freeze();
- QString message = strtoqstr(e.getMessage()) + "\n\n" +
+ TQString message = strtoqstr(e.getMessage()) + "\n\n" +
i18n("Try copying this file to a directory where you have write permission and re-add it");
KMessageBox::information(this, message);
//return false;
}
- disconnect(&progressDlg, SIGNAL(cancelClicked()),
- &aFM, SLOT(slotStopPreview()));
+ disconnect(&progressDlg, TQT_SIGNAL(cancelClicked()),
+ &aFM, TQT_SLOT(slotStopPreview()));
// add the file at the sequencer
emit addAudioFile(audioFileId);
@@ -1605,9 +1605,9 @@ RosegardenGUIView::slotDroppedNewAudio(QString audioDesc)
}
void
-RosegardenGUIView::slotDroppedAudio(QString audioDesc)
+RosegardenGUIView::slotDroppedAudio(TQString audioDesc)
{
- QTextIStream s(&audioDesc);
+ TQTextIStream s(&audioDesc);
AudioFileId audioFileId;
TrackId trackId;
@@ -1748,9 +1748,9 @@ RosegardenGUIView::slotUpdateRecordingSegment(Segment *segment,
return ;
/* signal no longer exists
- QObject::connect
- (getDocument(), SIGNAL(recordingSegmentUpdated(Segment *, timeT)),
- view, SLOT(slotUpdateRecordingSegment(Segment *, timeT)));
+ TQObject::connect
+ (getDocument(), TQT_SIGNAL(recordingSegmentUpdated(Segment *, timeT)),
+ view, TQT_SLOT(slotUpdateRecordingSegment(Segment *, timeT)));
*/
view->show();
@@ -1781,7 +1781,7 @@ RosegardenGUIView::windowActivationChange(bool)
}
void
-RosegardenGUIView::slotActiveMainWindowChanged(const QWidget *w)
+RosegardenGUIView::slotActiveMainWindowChanged(const TQWidget *w)
{
m_lastActiveMainWindow = w;
}
@@ -1789,7 +1789,7 @@ RosegardenGUIView::slotActiveMainWindowChanged(const QWidget *w)
void
RosegardenGUIView::slotActiveMainWindowChanged()
{
- const QWidget *w = dynamic_cast<const QWidget *>(sender());
+ const TQWidget *w = dynamic_cast<const TQWidget *>(sender());
if (w)
slotActiveMainWindowChanged(w);
}
@@ -2000,31 +2000,31 @@ RosegardenGUIView::createEventView(std::vector<Segment *> segmentsToEdit)
segmentsToEdit,
this);
- connect(eventView, SIGNAL(windowActivated()),
- this, SLOT(slotActiveMainWindowChanged()));
-
- connect(eventView, SIGNAL(selectTrack(int)),
- this, SLOT(slotSelectTrackSegments(int)));
-
- connect(eventView, SIGNAL(saveFile()),
- RosegardenGUIApp::self(), SLOT(slotFileSave()));
-
- connect(eventView, SIGNAL(openInNotation(std::vector<Segment *>)),
- this, SLOT(slotEditSegmentsNotation(std::vector<Segment *>)));
- connect(eventView, SIGNAL(openInMatrix(std::vector<Segment *>)),
- this, SLOT(slotEditSegmentsMatrix(std::vector<Segment *>)));
- connect(eventView, SIGNAL(openInPercussionMatrix(std::vector<Segment *>)),
- this, SLOT(slotEditSegmentsPercussionMatrix(std::vector<Segment *>)));
- connect(eventView, SIGNAL(openInEventList(std::vector<Segment *>)),
- this, SLOT(slotEditSegmentsEventList(std::vector<Segment *>)));
- connect(eventView, SIGNAL(editTriggerSegment(int)),
- this, SLOT(slotEditTriggerSegment(int)));
- connect(this, SIGNAL(compositionStateUpdate()),
- eventView, SLOT(slotCompositionStateUpdate()));
- connect(RosegardenGUIApp::self(), SIGNAL(compositionStateUpdate()),
- eventView, SLOT(slotCompositionStateUpdate()));
- connect(eventView, SIGNAL(toggleSolo(bool)),
- RosegardenGUIApp::self(), SLOT(slotToggleSolo(bool)));
+ connect(eventView, TQT_SIGNAL(windowActivated()),
+ this, TQT_SLOT(slotActiveMainWindowChanged()));
+
+ connect(eventView, TQT_SIGNAL(selectTrack(int)),
+ this, TQT_SLOT(slotSelectTrackSegments(int)));
+
+ connect(eventView, TQT_SIGNAL(saveFile()),
+ RosegardenGUIApp::self(), TQT_SLOT(slotFileSave()));
+
+ connect(eventView, TQT_SIGNAL(openInNotation(std::vector<Segment *>)),
+ this, TQT_SLOT(slotEditSegmentsNotation(std::vector<Segment *>)));
+ connect(eventView, TQT_SIGNAL(openInMatrix(std::vector<Segment *>)),
+ this, TQT_SLOT(slotEditSegmentsMatrix(std::vector<Segment *>)));
+ connect(eventView, TQT_SIGNAL(openInPercussionMatrix(std::vector<Segment *>)),
+ this, TQT_SLOT(slotEditSegmentsPercussionMatrix(std::vector<Segment *>)));
+ connect(eventView, TQT_SIGNAL(openInEventList(std::vector<Segment *>)),
+ this, TQT_SLOT(slotEditSegmentsEventList(std::vector<Segment *>)));
+ connect(eventView, TQT_SIGNAL(editTriggerSegment(int)),
+ this, TQT_SLOT(slotEditTriggerSegment(int)));
+ connect(this, TQT_SIGNAL(compositionStateUpdate()),
+ eventView, TQT_SLOT(slotCompositionStateUpdate()));
+ connect(RosegardenGUIApp::self(), TQT_SIGNAL(compositionStateUpdate()),
+ eventView, TQT_SLOT(slotCompositionStateUpdate()));
+ connect(eventView, TQT_SIGNAL(toggleSolo(bool)),
+ RosegardenGUIApp::self(), TQT_SLOT(slotToggleSolo(bool)));
// create keyboard accelerators on view
//
diff --git a/src/gui/application/RosegardenGUIView.h b/src/gui/application/RosegardenGUIView.h
index b3727f3..1c2e3b1 100644
--- a/src/gui/application/RosegardenGUIView.h
+++ b/src/gui/application/RosegardenGUIView.h
@@ -32,12 +32,12 @@
#include "base/Track.h"
#include "sound/AudioFile.h"
#include "gui/editors/segment/TrackEditor.h"
-#include <qstring.h>
-#include <qvbox.h>
+#include <tqstring.h>
+#include <tqvbox.h>
-class QWidget;
-class QObject;
+class TQWidget;
+class TQObject;
class LevelInfo;
class KCommand;
@@ -64,7 +64,7 @@ class LevelInfo;
/**
* The RosegardenGUIView class provides the view widget for the
- * RosegardenGUIApp instance. The View instance inherits QWidget as a
+ * RosegardenGUIApp instance. The View instance inherits TQWidget as a
* base class and represents the view object of a KTMainWindow. As
* RosegardenGUIView is part of the docuement-view model, it needs a
* reference to the document object connected with it by the
@@ -86,7 +86,7 @@ public:
SegmentParameterBox*,
InstrumentParameterBox*,
TrackParameterBox*,
- QWidget *parent = 0,
+ TQWidget *parent = 0,
const char *name=0);
/**
@@ -122,7 +122,7 @@ public:
/**
* Select a tool at the SegmentCanvas
*/
- void selectTool(QString toolName);
+ void selectTool(TQString toolName);
/**
* Show output levels
@@ -143,7 +143,7 @@ public:
SegmentSelection getSelection();
void updateSelectionContents();
- static bool isMainWindowLastActive(const QWidget *w) {
+ static bool isMainWindowLastActive(const TQWidget *w) {
return w == m_lastActiveMainWindow;
}
@@ -162,7 +162,7 @@ public slots:
void slotSegmentAutoSplit(Segment*);
void slotEditRepeat(Segment*, timeT);
/* hjj: WHAT DO DO WITH THIS ?
- void slotEditMetadata(QString);
+ void slotEditMetadata(TQString);
*/
/**
@@ -215,8 +215,8 @@ public slots:
const RealTime &startTime,
const RealTime &endTime);
- void slotDroppedAudio(QString audioDesc);
- void slotDroppedNewAudio(QString audioDesc);
+ void slotDroppedAudio(TQString audioDesc);
+ void slotDroppedNewAudio(TQString audioDesc);
/*
* Commands
@@ -227,12 +227,12 @@ public slots:
/*
* Change the Instrument Label
*/
- void slotChangeInstrumentLabel(InstrumentId id, QString label);
+ void slotChangeInstrumentLabel(InstrumentId id, TQString label);
/*
* Change the Track Label
*/
- void slotChangeTrackLabel(TrackId id, QString label);
+ void slotChangeTrackLabel(TrackId id, TQString label);
/*
* Set the mute button on the track buttons and on the instrument
@@ -269,7 +269,7 @@ public slots:
* another application entirely but still receiving MIDI etc in
* Rosegarden.)
*/
- void slotActiveMainWindowChanged(const QWidget *);
+ void slotActiveMainWindowChanged(const TQWidget *);
void slotActiveMainWindowChanged(); // uses sender()
/**
@@ -280,9 +280,9 @@ public slots:
void slotControllerDeviceEventReceived(MappedEvent *, const void *);
signals:
- void activateTool(QString toolName);
+ void activateTool(TQString toolName);
- void stateChange(QString, bool);
+ void stateChange(TQString, bool);
// Inform that we've got a SegmentSelection
//
@@ -301,10 +301,10 @@ signals:
* This signal is used to dispatch a notification for a request to
* set the step-by-step-editing target window to all candidate targets,
* so that they can either know that their request has been granted
- * (if they match the QObject passed) or else deactivate any step-by-
+ * (if they match the TQObject passed) or else deactivate any step-by-
* step editing currently active in their own window (otherwise).
*/
- void stepByStepTargetRequested(QObject *);
+ void stepByStepTargetRequested(TQObject *);
/*
* Add an audio file at the sequencer - when we drop a new file
@@ -338,7 +338,7 @@ protected:
InstrumentParameterBox *m_instrumentParameterBox;
TrackParameterBox *m_trackParameterBox;
- static const QWidget *m_lastActiveMainWindow;
+ static const TQWidget *m_lastActiveMainWindow;
};
diff --git a/src/gui/application/RosegardenIface.cpp b/src/gui/application/RosegardenIface.cpp
index 7e07f14..95df1f5 100644
--- a/src/gui/application/RosegardenIface.cpp
+++ b/src/gui/application/RosegardenIface.cpp
@@ -35,9 +35,9 @@
#include <kaction.h>
#include <kdcopactionproxy.h>
#include <kmainwindow.h>
-#include <qcstring.h>
-#include <qstring.h>
-#include <qvaluelist.h>
+#include <tqcstring.h>
+#include <tqstring.h>
+#include <tqvaluelist.h>
#include <kapplication.h>
#include <dcopclient.h>
@@ -56,7 +56,7 @@ void RosegardenIface::iFaceDelayedInit(KMainWindow* mainWindow)
this);
}
-DCOPRef RosegardenIface::action(const QCString &name)
+DCOPRef RosegardenIface::action(const TQCString &name)
{
return DCOPRef(kapp->dcopClient()->appId(),
m_dcopActionProxy->actionObjectId(name));
@@ -65,16 +65,16 @@ DCOPRef RosegardenIface::action(const QCString &name)
QCStringList RosegardenIface::actions()
{
QCStringList res;
- QValueList<KAction *> lst = m_dcopActionProxy->actions();
- QValueList<KAction *>::ConstIterator it = lst.begin();
- QValueList<KAction *>::ConstIterator end = lst.end();
+ TQValueList<KAction *> lst = m_dcopActionProxy->actions();
+ TQValueList<KAction *>::ConstIterator it = lst.begin();
+ TQValueList<KAction *>::ConstIterator end = lst.end();
for (; it != end; ++it )
res.append( (*it)->name() );
return res;
}
-QMap<QCString,DCOPRef> RosegardenIface::actionMap()
+TQMap<TQCString,DCOPRef> RosegardenIface::actionMap()
{
return m_dcopActionProxy->actionMap();
}
diff --git a/src/gui/application/RosegardenIface.h b/src/gui/application/RosegardenIface.h
index baa8b4e..046033c 100644
--- a/src/gui/application/RosegardenIface.h
+++ b/src/gui/application/RosegardenIface.h
@@ -32,14 +32,14 @@
#include <dcopobject.h>
#include <dcopref.h>
-#include <qmap.h>
-#include <qstring.h>
-#include <qvaluevector.h>
+#include <tqmap.h>
+#include <tqstring.h>
+#include <tqvaluevector.h>
#include "base/Instrument.h"
#include "sound/MappedComposition.h"
-class QCString;
+class TQCString;
class KMainWindow;
class KDCOPActionProxy;
@@ -60,9 +60,9 @@ public:
void iFaceDelayedInit(KMainWindow*);
k_dcop:
- virtual void openFile(QString file) = 0;
- virtual void openURL(QString url) = 0;
- virtual void mergeFile(QString file) = 0;
+ virtual void openFile(TQString file) = 0;
+ virtual void openURL(TQString url) = 0;
+ virtual void mergeFile(TQString file) = 0;
virtual void fileNew() = 0;
virtual void fileSave() = 0;
virtual void fileClose() = 0;
@@ -102,20 +102,20 @@ k_dcop:
// gui does so and returns the path of the new file so that the
// sequencer can use it.
//
- virtual QString createNewAudioFile() = 0;
- virtual QValueVector<QString> createRecordAudioFiles
- (const QValueVector<InstrumentId> &recordInstruments) = 0;
- virtual QString getAudioFilePath() = 0;
+ virtual TQString createNewAudioFile() = 0;
+ virtual TQValueVector<TQString> createRecordAudioFiles
+ (const TQValueVector<InstrumentId> &recordInstruments) = 0;
+ virtual TQString getAudioFilePath() = 0;
- virtual QValueVector<InstrumentId> getArmedInstruments() = 0;
+ virtual TQValueVector<InstrumentId> getArmedInstruments() = 0;
- virtual void showError(QString error) = 0;
+ virtual void showError(TQString error) = 0;
// Actions proxy
//
- DCOPRef action( const QCString &name );
+ DCOPRef action( const TQCString &name );
QCStringList actions();
- QMap<QCString,DCOPRef> actionMap();
+ TQMap<TQCString,DCOPRef> actionMap();
protected:
//--------------- Data members ---------------------------------
diff --git a/src/gui/application/SetWaitCursor.cpp b/src/gui/application/SetWaitCursor.cpp
index 7fc0053..9d4472d 100644
--- a/src/gui/application/SetWaitCursor.cpp
+++ b/src/gui/application/SetWaitCursor.cpp
@@ -31,8 +31,8 @@
#include "RosegardenGUIApp.h"
#include "RosegardenGUIView.h"
#include <kcursor.h>
-#include <qcursor.h>
-#include <qwidget.h>
+#include <tqcursor.h>
+#include <tqwidget.h>
#include <kapplication.h>
namespace Rosegarden
@@ -65,8 +65,8 @@ SetWaitCursor::~SetWaitCursor()
if (m_guiApp) {
RG_DEBUG << "SetWaitCursor::SetWaitCursor() : restoring normal cursor\n";
- QWidget* viewport = 0;
- QCursor currentSegmentCanvasCursor;
+ TQWidget* viewport = 0;
+ TQCursor currentSegmentCanvasCursor;
if ((m_guiApp->getView() &&
m_guiApp->getView()->getTrackEditor() &&
diff --git a/src/gui/application/SetWaitCursor.h b/src/gui/application/SetWaitCursor.h
index 38687c5..c7b8aa6 100644
--- a/src/gui/application/SetWaitCursor.h
+++ b/src/gui/application/SetWaitCursor.h
@@ -26,7 +26,7 @@
#ifndef _RG_SETWAITCURSOR_H_
#define _RG_SETWAITCURSOR_H_
-#include <qcursor.h>
+#include <tqcursor.h>
@@ -48,8 +48,8 @@ public:
protected:
RosegardenGUIApp* m_guiApp;
- QCursor m_saveCursor;
- QCursor m_saveSegmentCanvasCursor;
+ TQCursor m_saveCursor;
+ TQCursor m_saveSegmentCanvasCursor;
};
diff --git a/src/gui/application/StartupTester.cpp b/src/gui/application/StartupTester.cpp
index 15940b6..5e1813d 100644
--- a/src/gui/application/StartupTester.cpp
+++ b/src/gui/application/StartupTester.cpp
@@ -29,9 +29,9 @@
#include "gui/dialogs/LilyPondOptionsDialog.h"
#include <kprocess.h>
-#include <qmutex.h>
-#include <qthread.h>
-#include <qregexp.h>
+#include <tqmutex.h>
+#include <tqthread.h>
+#include <tqregexp.h>
namespace Rosegarden
@@ -43,11 +43,11 @@ StartupTester::StartupTester() :
m_haveLilyPondView(false),
m_haveAudioFileImporter(false)
{
- QHttp *http = new QHttp();
- connect(http, SIGNAL(responseHeaderReceived(const QHttpResponseHeader &)),
- this, SLOT(slotHttpResponseHeaderReceived(const QHttpResponseHeader &)));
- connect(http, SIGNAL(done(bool)),
- this, SLOT(slotHttpDone(bool)));
+ TQHttp *http = new TQHttp();
+ connect(http, TQT_SIGNAL(responseHeaderReceived(const TQHttpResponseHeader &)),
+ this, TQT_SLOT(slotHttpResponseHeaderReceived(const TQHttpResponseHeader &)));
+ connect(http, TQT_SIGNAL(done(bool)),
+ this, TQT_SLOT(slotHttpDone(bool)));
m_versionHttpFailed = false;
http->setHost("www.rosegardenmusic.com");
http->get("/latest-version.txt");
@@ -67,8 +67,8 @@ StartupTester::run()
KProcess *proc = new KProcess();
m_stdoutBuffer = "";
- QObject::connect(proc, SIGNAL(receivedStdout(KProcess *, char *, int)),
- this, SLOT(stdoutReceived(KProcess *, char *, int)));
+ TQObject::connect(proc, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)),
+ this, TQT_SLOT(stdoutReceived(KProcess *, char *, int)));
*proc << "rosegarden-audiofile-importer";
*proc << "--conftest";
proc->start(KProcess::Block, KProcess::All);
@@ -85,8 +85,8 @@ StartupTester::run()
proc = new KProcess;
m_stdoutBuffer = "";
- QObject::connect(proc, SIGNAL(receivedStdout(KProcess *, char *, int)),
- this, SLOT(stdoutReceived(KProcess *, char *, int)));
+ TQObject::connect(proc, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)),
+ this, TQT_SLOT(stdoutReceived(KProcess *, char *, int)));
*proc << "rosegarden-project-package";
*proc << "--conftest";
proc->start(KProcess::Block, KProcess::All);
@@ -105,8 +105,8 @@ StartupTester::run()
proc = new KProcess();
m_stdoutBuffer = "";
- QObject::connect(proc, SIGNAL(receivedStdout(KProcess *, char *, int)),
- this, SLOT(stdoutReceived(KProcess *, char *, int)));
+ TQObject::connect(proc, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)),
+ this, TQT_SLOT(stdoutReceived(KProcess *, char *, int)));
*proc << "rosegarden-lilypondview";
*proc << "--conftest";
proc->start(KProcess::Block, KProcess::All);
@@ -117,7 +117,7 @@ StartupTester::run()
} else {
RG_DEBUG << "StartupTester - lilypondview OK" << endl;
m_haveLilyPondView = true;
- QRegExp re("LilyPond version: ([^\n]*)");
+ TQRegExp re("LilyPond version: ([^\n]*)");
if (re.search(m_stdoutBuffer) != -1) {
LilyPondOptionsDialog::setDefaultLilyPondVersion(re.cap(1));
}
@@ -147,54 +147,54 @@ StartupTester::isReady()
void
StartupTester::stdoutReceived(KProcess *, char *buffer, int len)
{
- m_stdoutBuffer += QString::fromLatin1(buffer, len);
+ m_stdoutBuffer += TQString::fromLatin1(buffer, len);
}
void
-StartupTester::parseStdoutBuffer(QStringList &target)
+StartupTester::parseStdoutBuffer(TQStringList &target)
{
- QRegExp re("Required: ([^\n]*)");
+ TQRegExp re("Required: ([^\n]*)");
if (re.search(m_stdoutBuffer) != -1) {
- target = QStringList::split(", ", re.cap(1));
+ target = TQStringList::split(", ", re.cap(1));
}
}
bool
-StartupTester::haveProjectPackager(QStringList *missing)
+StartupTester::haveProjectPackager(TQStringList *missing)
{
while (!m_ready)
usleep(10000);
- QMutexLocker locker(&m_projectPackagerMutex);
+ TQMutexLocker locker(&m_projectPackagerMutex);
if (missing) *missing = m_projectPackagerMissing;
return m_haveProjectPackager;
}
bool
-StartupTester::haveLilyPondView(QStringList *missing)
+StartupTester::haveLilyPondView(TQStringList *missing)
{
while (!m_ready)
usleep(10000);
- QMutexLocker locker(&m_lilyPondViewMutex);
+ TQMutexLocker locker(&m_lilyPondViewMutex);
if (missing) *missing = m_lilyPondViewMissing;
return m_haveLilyPondView;
}
bool
-StartupTester::haveAudioFileImporter(QStringList *missing)
+StartupTester::haveAudioFileImporter(TQStringList *missing)
{
while (!m_ready)
usleep(10000);
- QMutexLocker locker(&m_audioFileImporterMutex);
+ TQMutexLocker locker(&m_audioFileImporterMutex);
if (missing) *missing = m_audioFileImporterMissing;
return m_haveAudioFileImporter;
}
bool
-StartupTester::isVersionNewerThan(QString a, QString b)
+StartupTester::isVersionNewerThan(TQString a, TQString b)
{
- QRegExp re("[._-]");
- QStringList alist = QStringList::split(re, a);
- QStringList blist = QStringList::split(re, b);
+ TQRegExp re("[._-]");
+ TQStringList alist = TQStringList::split(re, a);
+ TQStringList blist = TQStringList::split(re, b);
int ae = alist.size();
int be = blist.size();
int e = std::max(ae, be);
@@ -215,7 +215,7 @@ StartupTester::isVersionNewerThan(QString a, QString b)
}
void
-StartupTester::slotHttpResponseHeaderReceived(const QHttpResponseHeader &h)
+StartupTester::slotHttpResponseHeaderReceived(const TQHttpResponseHeader &h)
{
if (h.statusCode() / 100 != 2) m_versionHttpFailed = true;
}
@@ -223,17 +223,17 @@ StartupTester::slotHttpResponseHeaderReceived(const QHttpResponseHeader &h)
void
StartupTester::slotHttpDone(bool error)
{
- QHttp *http = const_cast<QHttp *>(dynamic_cast<const QHttp *>(sender()));
+ TQHttp *http = const_cast<TQHttp *>(dynamic_cast<const TQHttp *>(sender()));
if (!http) return;
http->deleteLater();
if (error) return;
- QByteArray responseData = http->readAll();
- QString str = QString::fromUtf8(responseData.data());
- QStringList lines = QStringList::split('\n', str);
+ TQByteArray responseData = http->readAll();
+ TQString str = TQString::fromUtf8(responseData.data());
+ TQStringList lines = TQStringList::split('\n', str);
if (lines.empty()) return;
- QString latestVersion = lines[0];
+ TQString latestVersion = lines[0];
std::cerr << "Comparing current version \"" << VERSION
<< "\" with latest version \"" << latestVersion << "\""
<< std::endl;
diff --git a/src/gui/application/StartupTester.h b/src/gui/application/StartupTester.h
index 9c82e07..1249cbd 100644
--- a/src/gui/application/StartupTester.h
+++ b/src/gui/application/StartupTester.h
@@ -26,18 +26,18 @@
#ifndef _RG_STARTUPTESTER_H_
#define _RG_STARTUPTESTER_H_
-#include <qmutex.h>
-#include <qthread.h>
-#include <qstringlist.h>
-#include <qobject.h>
-#include <qhttp.h>
+#include <tqmutex.h>
+#include <tqthread.h>
+#include <tqstringlist.h>
+#include <tqobject.h>
+#include <tqhttp.h>
class KProcess;
namespace Rosegarden
{
-class StartupTester : public QObject, public QThread
+class StartupTester : public TQObject, public QThread
{
Q_OBJECT
@@ -52,34 +52,34 @@ public:
// If you call one of these methods before the startup test has
// completed in the background, then it will block.
- bool haveProjectPackager(QStringList *missingApplications);
- bool haveLilyPondView(QStringList *missingApplications);
- bool haveAudioFileImporter(QStringList *missingApplications);
+ bool haveProjectPackager(TQStringList *missingApplications);
+ bool haveLilyPondView(TQStringList *missingApplications);
+ bool haveAudioFileImporter(TQStringList *missingApplications);
signals:
- void newerVersionAvailable(QString);
+ void newerVersionAvailable(TQString);
protected slots:
void stdoutReceived(KProcess *, char *, int);
- void slotHttpResponseHeaderReceived(const QHttpResponseHeader &);
+ void slotHttpResponseHeaderReceived(const TQHttpResponseHeader &);
void slotHttpDone(bool);
protected:
bool m_ready;
- QMutex m_projectPackagerMutex;
- QMutex m_lilyPondViewMutex;
- QMutex m_audioFileImporterMutex;
+ TQMutex m_projectPackagerMutex;
+ TQMutex m_lilyPondViewMutex;
+ TQMutex m_audioFileImporterMutex;
bool m_haveProjectPackager;
- QStringList m_projectPackagerMissing;
+ TQStringList m_projectPackagerMissing;
bool m_haveLilyPondView;
- QStringList m_lilyPondViewMissing;
+ TQStringList m_lilyPondViewMissing;
bool m_haveAudioFileImporter;
- QStringList m_audioFileImporterMissing;
- QString m_stdoutBuffer;
+ TQStringList m_audioFileImporterMissing;
+ TQString m_stdoutBuffer;
bool m_versionHttpFailed;
- void parseStdoutBuffer(QStringList &target);
- bool isVersionNewerThan(QString, QString);
+ void parseStdoutBuffer(TQStringList &target);
+ bool isVersionNewerThan(TQString, TQString);
};
diff --git a/src/gui/application/main.cpp b/src/gui/application/main.cpp
index d7b5779..8ee67e3 100644
--- a/src/gui/application/main.cpp
+++ b/src/gui/application/main.cpp
@@ -19,7 +19,7 @@
COPYING included with this distribution for more information.
*/
-#include <qtimer.h>
+#include <tqtimer.h>
#include <kapplication.h>
#include <sys/time.h>
#include "base/RealTime.h"
@@ -35,10 +35,10 @@
#include <kprocess.h>
#include <kglobalsettings.h>
-#include <qstringlist.h>
-#include <qregexp.h>
-#include <qvbox.h>
-#include <qlabel.h>
+#include <tqstringlist.h>
+#include <tqregexp.h>
+#include <tqvbox.h>
+#include <tqlabel.h>
#include "document/ConfigGroups.h"
#include "misc/Strings.h"
@@ -214,7 +214,7 @@ components:
- a canvas view. Although this isn't a part of the EditView's
definition, both of the existing edit views (notation and matrix)
- use one, because they both use a QCanvas to represent data.
+ use one, because they both use a TQCanvas to represent data.
- LinedStaff, a staff with lines. Like the canvas view, this isn't
part of the EditView definition, but both views use one.
@@ -240,7 +240,7 @@ and Events (our basic music element). To help lift the ambiguity,
"events" is for UI events, Events is for Event.]
-# The canvas view gets the user events (see
- NotationCanvasView::contentsMousePressEvent(QMouseEvent*) for an
+ NotationCanvasView::contentsMousePressEvent(TQMouseEvent*) for an
example). It locates where the event occured in terms of musical
element: which note or staff line the user clicked on, which pitch
and time this corresponds to, that kind of stuff. (In the
@@ -347,14 +347,14 @@ static int _x_errhandler( Display *dpy, XErrorEvent *err )
void testInstalledVersion()
{
- QString versionLocation = locate("appdata", "version.txt");
- QString installedVersion;
+ TQString versionLocation = locate("appdata", "version.txt");
+ TQString installedVersion;
if (versionLocation) {
- QFile versionFile(versionLocation);
+ TQFile versionFile(versionLocation);
if (versionFile.open(IO_ReadOnly)) {
- QTextStream text(&versionFile);
- QString s = text.readLine().stripWhiteSpace();
+ TQTextStream text(&versionFile);
+ TQString s = text.readLine().stripWhiteSpace();
versionFile.close();
if (s) {
if (s == VERSION) return;
@@ -480,7 +480,7 @@ int main(int argc, char *argv[])
// Ensure quit on last window close
// Register main DCOP interface
//
- QObject::connect(&app, SIGNAL(lastWindowClosed()), &app, SLOT(quit()));
+ TQObject::connect(&app, TQT_SIGNAL(lastWindowClosed()), &app, TQT_SLOT(quit()));
app.dcopClient()->registerAs(app.name(), false);
app.dcopClient()->setDefaultObject(ROSEGARDEN_GUI_IFACE_NAME);
@@ -498,7 +498,7 @@ int main(int argc, char *argv[])
KConfig *config = kapp->config();
config->setGroup(GeneralOptionsConfigGroup);
- QString lastVersion = config->readEntry("lastversion", "");
+ TQString lastVersion = config->readEntry("lastversion", "");
bool newVersion = (lastVersion != VERSION);
if (newVersion) {
std::cerr << "*** This is the first time running this Rosegarden version" << std::endl;
@@ -514,25 +514,25 @@ int main(int argc, char *argv[])
// The config keys are "Height X" and "Width Y" where X and Y are
// the sizes of the available desktop (i.e. the whole shebang if
- // under Xinerama). These are obtained from QDesktopWidget.
+ // under Xinerama). These are obtained from TQDesktopWidget.
config->setGroup("MainView");
int windowWidth = 0, windowHeight = 0;
- QDesktopWidget *desktop = KApplication::desktop();
+ TQDesktopWidget *desktop = KApplication::desktop();
if (desktop) {
- QRect totalRect(desktop->screenGeometry());
- QRect desktopRect = KGlobalSettings::desktopGeometry(QPoint(0, 0));
- QSize startupSize;
+ TQRect totalRect(desktop->screenGeometry());
+ TQRect desktopRect = KGlobalSettings::desktopGeometry(TQPoint(0, 0));
+ TQSize startupSize;
if (desktopRect.height() <= 800) {
- startupSize = QSize((desktopRect.width() * 6) / 7,
+ startupSize = TQSize((desktopRect.width() * 6) / 7,
(desktopRect.height() * 6) / 7);
} else {
- startupSize = QSize((desktopRect.width() * 4) / 5,
+ startupSize = TQSize((desktopRect.width() * 4) / 5,
(desktopRect.height() * 4) / 5);
}
- QString widthKey = QString("Width %1").arg(totalRect.width());
- QString heightKey = QString("Height %1").arg(totalRect.height());
+ TQString widthKey = TQString("Width %1").arg(totalRect.width());
+ TQString heightKey = TQString("Height %1").arg(totalRect.height());
windowWidth = config->readUnsignedNumEntry
(widthKey, startupSize.width());
windowHeight = config->readUnsignedNumEntry
@@ -612,11 +612,11 @@ int main(int argc, char *argv[])
if (startLogo) {
startLogo->raise();
startLogo->setHideEnabled(true);
- QApplication::flushX();
+ TQApplication::flushX();
}
if (args->count()) {
- rosegardengui->openFile(QFile::decodeName(args->arg(0)), RosegardenGUIApp::ImportCheckType);
+ rosegardengui->openFile(TQFile::decodeName(args->arg(0)), RosegardenGUIApp::ImportCheckType);
} else {
// rosegardengui->openDocumentFile();
}
@@ -625,15 +625,15 @@ int main(int argc, char *argv[])
}
- QObject::connect(&app, SIGNAL(aboutToSaveState()),
- rosegardengui, SLOT(slotDeleteTransport()));
+ TQObject::connect(&app, TQT_SIGNAL(aboutToSaveState()),
+ rosegardengui, TQT_SLOT(slotDeleteTransport()));
// Now that we've started up, raise start logo
//
if (startLogo) {
startLogo->raise();
startLogo->setHideEnabled(true);
- QApplication::flushX();
+ TQApplication::flushX();
}
// Check for sequencer and launch if needed
@@ -642,7 +642,7 @@ int main(int argc, char *argv[])
rosegardengui->launchSequencer(args->isSet("existingsequencer"));
} catch (std::string e) {
RG_DEBUG << "RosegardenGUI - " << e << endl;
- } catch (QString e) {
+ } catch (TQString e) {
RG_DEBUG << "RosegardenGUI - " << e << endl;
} catch (Exception e) {
RG_DEBUG << "RosegardenGUI - " << e.getMessage() << endl;
@@ -654,16 +654,16 @@ int main(int argc, char *argv[])
// See if the config wants us to load a soundfont
//
if (config->readBoolEntry("sfxloadenabled", false)) {
- QString sfxLoadPath = config->readEntry("sfxloadpath", "/bin/sfxload");
- QString soundFontPath = config->readEntry("soundfontpath", "");
- QFileInfo sfxLoadInfo(sfxLoadPath), soundFontInfo(soundFontPath);
+ TQString sfxLoadPath = config->readEntry("sfxloadpath", "/bin/sfxload");
+ TQString soundFontPath = config->readEntry("soundfontpath", "");
+ TQFileInfo sfxLoadInfo(sfxLoadPath), soundFontInfo(soundFontPath);
if (sfxLoadInfo.isExecutable() && soundFontInfo.isReadable()) {
KProcess* sfxLoadProcess = new KProcess;
(*sfxLoadProcess) << sfxLoadPath << soundFontPath;
RG_DEBUG << "Starting sfxload : " << sfxLoadPath << " " << soundFontPath << endl;
- QObject::connect(sfxLoadProcess, SIGNAL(processExited(KProcess*)),
- &app, SLOT(sfxLoadExited(KProcess*)));
+ TQObject::connect(sfxLoadProcess, TQT_SIGNAL(processExited(KProcess*)),
+ &app, TQT_SLOT(sfxLoadExited(KProcess*)));
sfxLoadProcess->start();
} else {
@@ -695,7 +695,7 @@ int main(int argc, char *argv[])
if (visibleFor < RealTime(2, 0)) {
int waitTime = visibleFor.sec * 1000 + visibleFor.msec();
- QTimer::singleShot(2500 - waitTime, startLogo, SLOT(close()));
+ TQTimer::singleShot(2500 - waitTime, startLogo, TQT_SLOT(close()));
} else {
startLogo->close();
}
@@ -719,15 +719,15 @@ int main(int argc, char *argv[])
true, i18n("Welcome!"),
KDialogBase::Ok,
KDialogBase::Ok, false);
- QVBox *mw = dialog->makeVBoxMainWidget();
- QHBox *hb = new QHBox(mw);
- QLabel *image = new QLabel(hb);
+ TQVBox *mw = dialog->makeVBoxMainWidget();
+ TQHBox *hb = new TQHBox(mw);
+ TQLabel *image = new TQLabel(hb);
image->setAlignment(Qt::AlignTop);
- QString iconFile = locate("appdata", "pixmaps/misc/welcome-icon.png");
+ TQString iconFile = locate("appdata", "pixmaps/misc/welcome-icon.png");
if (iconFile) {
- image->setPixmap(QPixmap(iconFile));
+ image->setPixmap(TQPixmap(iconFile));
}
- QLabel *label = new QLabel(hb);
+ TQLabel *label = new TQLabel(hb);
label->setText(i18n("<h2>Welcome to Rosegarden!</h2><p>Welcome to the Rosegarden audio and MIDI sequencer and musical notation editor.</p><ul><li>If you have not already done so, you may wish to install some DSSI synth plugins, or a separate synth program such as QSynth. Rosegarden does not synthesize sounds from MIDI on its own, so without these you will hear nothing.</li><br><br><li>Rosegarden uses the JACK audio server for recording and playback of audio, and for playback from DSSI synth plugins. These features will only be available if the JACK server is running.</li><br><br><li>Rosegarden has comprehensive documentation: see the Help menu for the handbook, tutorials, and other information!</li></ul><p>Rosegarden was brought to you by a team of volunteers across the world. To learn more, go to <a href=\"http://www.rosegardenmusic.com/\">http://www.rosegardenmusic.com/</a>.</p>"));
dialog->showButtonOK(true);
rosegardengui->awaitDialogClearance();