summaryrefslogtreecommitdiffstats
path: root/src/gui/seqmanager
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
commit11f31c37e5fa4889d9989f10272f44845449cb7b (patch)
tree4383da04a76c497950d957fc6120b0fd0d9082c2 /src/gui/seqmanager
parent832eb69d571e8e518db45d0c0e6fbc0f00690209 (diff)
downloadrosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.tar.gz
rosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.zip
Initial TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1172292 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui/seqmanager')
-rw-r--r--src/gui/seqmanager/AudioSegmentMmapper.cpp4
-rw-r--r--src/gui/seqmanager/AudioSegmentMmapper.h4
-rw-r--r--src/gui/seqmanager/CompositionMmapper.cpp26
-rw-r--r--src/gui/seqmanager/CompositionMmapper.h6
-rw-r--r--src/gui/seqmanager/ControlBlockMmapper.cpp12
-rw-r--r--src/gui/seqmanager/ControlBlockMmapper.h8
-rw-r--r--src/gui/seqmanager/MetronomeMmapper.cpp4
-rw-r--r--src/gui/seqmanager/MetronomeMmapper.h4
-rw-r--r--src/gui/seqmanager/MidiFilterDialog.cpp80
-rw-r--r--src/gui/seqmanager/MidiFilterDialog.h10
-rw-r--r--src/gui/seqmanager/SegmentMmapper.cpp12
-rw-r--r--src/gui/seqmanager/SegmentMmapper.h8
-rw-r--r--src/gui/seqmanager/SegmentMmapperFactory.cpp4
-rw-r--r--src/gui/seqmanager/SegmentMmapperFactory.h4
-rw-r--r--src/gui/seqmanager/SequenceManager.cpp214
-rw-r--r--src/gui/seqmanager/SequenceManager.h26
-rw-r--r--src/gui/seqmanager/SequencerMapper.cpp10
-rw-r--r--src/gui/seqmanager/SequencerMapper.h6
-rw-r--r--src/gui/seqmanager/SpecialSegmentMmapper.cpp6
-rw-r--r--src/gui/seqmanager/SpecialSegmentMmapper.h6
-rw-r--r--src/gui/seqmanager/TempoSegmentMmapper.cpp2
-rw-r--r--src/gui/seqmanager/TempoSegmentMmapper.h4
-rw-r--r--src/gui/seqmanager/TimeSigSegmentMmapper.cpp2
-rw-r--r--src/gui/seqmanager/TimeSigSegmentMmapper.h4
24 files changed, 233 insertions, 233 deletions
diff --git a/src/gui/seqmanager/AudioSegmentMmapper.cpp b/src/gui/seqmanager/AudioSegmentMmapper.cpp
index 8933b39..4e8feef 100644
--- a/src/gui/seqmanager/AudioSegmentMmapper.cpp
+++ b/src/gui/seqmanager/AudioSegmentMmapper.cpp
@@ -33,14 +33,14 @@
#include "document/RosegardenGUIDoc.h"
#include "SegmentMmapper.h"
#include "sound/MappedEvent.h"
-#include <qstring.h>
+#include <tqstring.h>
namespace Rosegarden
{
AudioSegmentMmapper::AudioSegmentMmapper(RosegardenGUIDoc* doc, Segment* s,
- const QString& fileName)
+ const TQString& fileName)
: SegmentMmapper(doc, s, fileName)
{}
diff --git a/src/gui/seqmanager/AudioSegmentMmapper.h b/src/gui/seqmanager/AudioSegmentMmapper.h
index bc4d798..5a8e6c7 100644
--- a/src/gui/seqmanager/AudioSegmentMmapper.h
+++ b/src/gui/seqmanager/AudioSegmentMmapper.h
@@ -29,7 +29,7 @@
#include "SegmentMmapper.h"
-class QString;
+class TQString;
namespace Rosegarden
@@ -45,7 +45,7 @@ class AudioSegmentMmapper : public SegmentMmapper
protected:
AudioSegmentMmapper(RosegardenGUIDoc*, Segment*,
- const QString& fileName);
+ const TQString& fileName);
virtual size_t computeMmappedSize();
diff --git a/src/gui/seqmanager/CompositionMmapper.cpp b/src/gui/seqmanager/CompositionMmapper.cpp
index 094f562..30983fe 100644
--- a/src/gui/seqmanager/CompositionMmapper.cpp
+++ b/src/gui/seqmanager/CompositionMmapper.cpp
@@ -34,10 +34,10 @@
#include "SegmentMmapperFactory.h"
#include "SegmentMmapper.h"
#include <kglobal.h>
-#include <qdir.h>
-#include <qfile.h>
-#include <qstring.h>
-#include <qstringlist.h>
+#include <tqdir.h>
+#include <tqfile.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
#include <stdint.h>
@@ -87,13 +87,13 @@ void CompositionMmapper::cleanup()
// Erase all 'segment_*' files
//
- QString tmpPath = KGlobal::dirs()->resourceDirs("tmp").last();
+ TQString tmpPath = KGlobal::dirs()->resourceDirs("tmp").last();
- QDir segmentsDir(tmpPath, "segment_*");
+ TQDir segmentsDir(tmpPath, "segment_*");
for (unsigned int i = 0; i < segmentsDir.count(); ++i) {
- QString segmentName = tmpPath + '/' + segmentsDir[i];
+ TQString segmentName = tmpPath + '/' + segmentsDir[i];
SEQMAN_DEBUG << "CompositionMmapper : cleaning up " << segmentName << endl;
- QFile::remove
+ TQFile::remove
(segmentName);
}
@@ -142,23 +142,23 @@ void CompositionMmapper::mmapSegment(Segment* segment)
m_segmentMmappers[segment] = mmapper;
}
-QString CompositionMmapper::makeFileName(Segment* segment)
+TQString CompositionMmapper::makeFileName(Segment* segment)
{
- QStringList tmpDirs = KGlobal::dirs()->resourceDirs("tmp");
+ TQStringList tmpDirs = KGlobal::dirs()->resourceDirs("tmp");
- return QString("%1/segment_%2")
+ return TQString("%1/segment_%2")
.arg(tmpDirs.last())
.arg((uintptr_t)segment, 0, 16);
}
-QString CompositionMmapper::getSegmentFileName(Segment* s)
+TQString CompositionMmapper::getSegmentFileName(Segment* s)
{
SegmentMmapper* mmapper = m_segmentMmappers[s];
if (mmapper)
return mmapper->getFileName();
else
- return QString::null;
+ return TQString::null;
}
size_t CompositionMmapper::getSegmentFileSize(Segment* s)
diff --git a/src/gui/seqmanager/CompositionMmapper.h b/src/gui/seqmanager/CompositionMmapper.h
index 8bf997d..b6817f2 100644
--- a/src/gui/seqmanager/CompositionMmapper.h
+++ b/src/gui/seqmanager/CompositionMmapper.h
@@ -27,7 +27,7 @@
#define _RG_COMPOSITIONMMAPPER_H_
#include <map>
-#include <qstring.h>
+#include <tqstring.h>
@@ -48,7 +48,7 @@ public:
CompositionMmapper(RosegardenGUIDoc *doc);
~CompositionMmapper();
- QString getSegmentFileName(Segment*);
+ TQString getSegmentFileName(Segment*);
size_t getSegmentFileSize(Segment*);
void cleanup();
@@ -59,7 +59,7 @@ protected:
void segmentDeleted(Segment*);
void mmapSegment(Segment*);
- QString makeFileName(Segment*);
+ TQString makeFileName(Segment*);
//--------------- Data members ---------------------------------
diff --git a/src/gui/seqmanager/ControlBlockMmapper.cpp b/src/gui/seqmanager/ControlBlockMmapper.cpp
index 90ab6c2..3b49bcc 100644
--- a/src/gui/seqmanager/ControlBlockMmapper.cpp
+++ b/src/gui/seqmanager/ControlBlockMmapper.cpp
@@ -35,8 +35,8 @@
#include "document/RosegardenGUIDoc.h"
#include "sound/ControlBlock.h"
#include <kglobal.h>
-#include <qfile.h>
-#include <qstring.h>
+#include <tqfile.h>
+#include <tqstring.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
@@ -55,7 +55,7 @@ ControlBlockMmapper::ControlBlockMmapper(RosegardenGUIDoc* doc)
m_controlBlock(0)
{
// just in case
- QFile::remove
+ TQFile::remove
(m_fileName);
m_fd = ::open(m_fileName.latin1(), O_RDWR | O_CREAT | O_TRUNC,
@@ -76,7 +76,7 @@ ControlBlockMmapper::ControlBlockMmapper(RosegardenGUIDoc* doc)
MAP_SHARED, m_fd, 0);
if (m_mmappedBuffer == (void*) - 1) {
- SEQMAN_DEBUG << QString("mmap failed : (%1) %2\n").arg(errno).arg(strerror(errno));
+ SEQMAN_DEBUG << TQString("mmap failed : (%1) %2\n").arg(errno).arg(strerror(errno));
throw Exception("mmap failed");
}
@@ -91,11 +91,11 @@ ControlBlockMmapper::~ControlBlockMmapper()
{
::munmap(m_mmappedBuffer, m_mmappedSize);
::close(m_fd);
- QFile::remove
+ TQFile::remove
(m_fileName);
}
-QString ControlBlockMmapper::createFileName()
+TQString ControlBlockMmapper::createFileName()
{
return KGlobal::dirs()->resourceDirs("tmp").last() + "/rosegarden_control_block";
}
diff --git a/src/gui/seqmanager/ControlBlockMmapper.h b/src/gui/seqmanager/ControlBlockMmapper.h
index a96e742..4740bfb 100644
--- a/src/gui/seqmanager/ControlBlockMmapper.h
+++ b/src/gui/seqmanager/ControlBlockMmapper.h
@@ -28,7 +28,7 @@
#include "base/MidiProgram.h"
#include "base/Track.h"
-#include <qstring.h>
+#include <tqstring.h>
@@ -47,7 +47,7 @@ public:
ControlBlockMmapper(RosegardenGUIDoc*);
~ControlBlockMmapper();
- QString getFileName() { return m_fileName; }
+ TQString getFileName() { return m_fileName; }
void updateTrackData(Track*);
void setTrackDeleted(TrackId);
void updateMetronomeData(InstrumentId instId);
@@ -62,11 +62,11 @@ public:
protected:
void initControlBlock();
void setFileSize(size_t);
- QString createFileName();
+ TQString createFileName();
//--------------- Data members ---------------------------------
RosegardenGUIDoc* m_doc;
- QString m_fileName;
+ TQString m_fileName;
int m_fd;
void* m_mmappedBuffer;
size_t m_mmappedSize;
diff --git a/src/gui/seqmanager/MetronomeMmapper.cpp b/src/gui/seqmanager/MetronomeMmapper.cpp
index 9ca9af7..64964f0 100644
--- a/src/gui/seqmanager/MetronomeMmapper.cpp
+++ b/src/gui/seqmanager/MetronomeMmapper.cpp
@@ -42,7 +42,7 @@
#include "sound/MappedEvent.h"
#include <kconfig.h>
#include <kglobal.h>
-#include <qstring.h>
+#include <tqstring.h>
#include <algorithm>
@@ -153,7 +153,7 @@ InstrumentId MetronomeMmapper::getMetronomeInstrument()
return m_metronome->getInstrument();
}
-QString MetronomeMmapper::createFileName()
+TQString MetronomeMmapper::createFileName()
{
return KGlobal::dirs()->resourceDirs("tmp").last() + "/rosegarden_metronome";
}
diff --git a/src/gui/seqmanager/MetronomeMmapper.h b/src/gui/seqmanager/MetronomeMmapper.h
index 1e18171..ed6978d 100644
--- a/src/gui/seqmanager/MetronomeMmapper.h
+++ b/src/gui/seqmanager/MetronomeMmapper.h
@@ -29,7 +29,7 @@
#include "base/MidiProgram.h"
#include "base/RealTime.h"
#include "SegmentMmapper.h"
-#include <qstring.h>
+#include <tqstring.h>
#include <utility>
#include <vector>
#include "base/Event.h"
@@ -63,7 +63,7 @@ protected:
virtual size_t computeMmappedSize();
void sortTicks();
- QString createFileName();
+ TQString createFileName();
// override from SegmentMmapper
virtual void dump();
diff --git a/src/gui/seqmanager/MidiFilterDialog.cpp b/src/gui/seqmanager/MidiFilterDialog.cpp
index 69d687a..0227eff 100644
--- a/src/gui/seqmanager/MidiFilterDialog.cpp
+++ b/src/gui/seqmanager/MidiFilterDialog.cpp
@@ -32,16 +32,16 @@
#include "gui/seqmanager/SequenceManager.h"
#include "sound/MappedEvent.h"
#include <kdialogbase.h>
-#include <qbuttongroup.h>
-#include <qcheckbox.h>
-#include <qhbox.h>
-#include <qwidget.h>
+#include <tqbuttongroup.h>
+#include <tqcheckbox.h>
+#include <tqhbox.h>
+#include <tqwidget.h>
namespace Rosegarden
{
-MidiFilterDialog::MidiFilterDialog(QWidget *parent,
+MidiFilterDialog::MidiFilterDialog(TQWidget *parent,
RosegardenGUIDoc *doc):
KDialogBase(parent, 0, true, i18n("Modify MIDI filters..."),
Ok | Apply | Close | Help),
@@ -50,20 +50,20 @@ MidiFilterDialog::MidiFilterDialog(QWidget *parent,
{
setHelp("studio-midi-filters");
- QHBox *hBox = makeHBoxMainWidget();
+ TQHBox *hBox = makeHBoxMainWidget();
m_thruBox =
- new QButtonGroup(1,
+ new TQButtonGroup(1,
Qt::Horizontal,
i18n("THRU events to ignore"), hBox);
- QCheckBox *noteThru = new QCheckBox(i18n("Note"), m_thruBox);
- QCheckBox *progThru = new QCheckBox(i18n("Program Change"), m_thruBox);
- QCheckBox *keyThru = new QCheckBox(i18n("Key Pressure"), m_thruBox);
- QCheckBox *chanThru = new QCheckBox(i18n("Channel Pressure"), m_thruBox);
- QCheckBox *pitchThru = new QCheckBox(i18n("Pitch Bend"), m_thruBox);
- QCheckBox *contThru = new QCheckBox(i18n("Controller"), m_thruBox);
- QCheckBox *sysThru = new QCheckBox(i18n("System Exclusive"), m_thruBox);
+ TQCheckBox *noteThru = new TQCheckBox(i18n("Note"), m_thruBox);
+ TQCheckBox *progThru = new TQCheckBox(i18n("Program Change"), m_thruBox);
+ TQCheckBox *keyThru = new TQCheckBox(i18n("Key Pressure"), m_thruBox);
+ TQCheckBox *chanThru = new TQCheckBox(i18n("Channel Pressure"), m_thruBox);
+ TQCheckBox *pitchThru = new TQCheckBox(i18n("Pitch Bend"), m_thruBox);
+ TQCheckBox *contThru = new TQCheckBox(i18n("Controller"), m_thruBox);
+ TQCheckBox *sysThru = new TQCheckBox(i18n("System Exclusive"), m_thruBox);
MidiFilter thruFilter = m_doc->getStudio().getMIDIThruFilter();
@@ -89,17 +89,17 @@ MidiFilterDialog::MidiFilterDialog(QWidget *parent,
sysThru->setChecked(true);
m_recordBox =
- new QButtonGroup(1,
+ new TQButtonGroup(1,
Qt::Horizontal,
i18n("RECORD events to ignore"), hBox);
- QCheckBox *noteRecord = new QCheckBox(i18n("Note"), m_recordBox);
- QCheckBox *progRecord = new QCheckBox(i18n("Program Change"), m_recordBox);
- QCheckBox *keyRecord = new QCheckBox(i18n("Key Pressure"), m_recordBox);
- QCheckBox *chanRecord = new QCheckBox(i18n("Channel Pressure"), m_recordBox);
- QCheckBox *pitchRecord = new QCheckBox(i18n("Pitch Bend"), m_recordBox);
- QCheckBox *contRecord = new QCheckBox(i18n("Controller"), m_recordBox);
- QCheckBox *sysRecord = new QCheckBox(i18n("System Exclusive"), m_recordBox);
+ TQCheckBox *noteRecord = new TQCheckBox(i18n("Note"), m_recordBox);
+ TQCheckBox *progRecord = new TQCheckBox(i18n("Program Change"), m_recordBox);
+ TQCheckBox *keyRecord = new TQCheckBox(i18n("Key Pressure"), m_recordBox);
+ TQCheckBox *chanRecord = new TQCheckBox(i18n("Channel Pressure"), m_recordBox);
+ TQCheckBox *pitchRecord = new TQCheckBox(i18n("Pitch Bend"), m_recordBox);
+ TQCheckBox *contRecord = new TQCheckBox(i18n("Controller"), m_recordBox);
+ TQCheckBox *sysRecord = new TQCheckBox(i18n("System Exclusive"), m_recordBox);
MidiFilter recordFilter =
m_doc->getStudio().getMIDIRecordFilter();
@@ -126,11 +126,11 @@ MidiFilterDialog::MidiFilterDialog(QWidget *parent,
sysRecord->setChecked(true);
- connect(m_thruBox, SIGNAL(released(int)),
- this, SLOT(slotSetModified()));
+ connect(m_thruBox, TQT_SIGNAL(released(int)),
+ this, TQT_SLOT(slotSetModified()));
- connect(m_recordBox, SIGNAL(released(int)),
- this, SLOT(slotSetModified()));
+ connect(m_recordBox, TQT_SIGNAL(released(int)),
+ this, TQT_SLOT(slotSetModified()));
setModified(false);
}
@@ -141,46 +141,46 @@ MidiFilterDialog::slotApply()
MidiFilter thruFilter = 0,
recordFilter = 0;
- if (dynamic_cast<QCheckBox*>(m_thruBox->find(0))->isChecked())
+ if (dynamic_cast<TQCheckBox*>(m_thruBox->find(0))->isChecked())
thruFilter |= MappedEvent::MidiNote;
- if (dynamic_cast<QCheckBox*>(m_thruBox->find(1))->isChecked())
+ if (dynamic_cast<TQCheckBox*>(m_thruBox->find(1))->isChecked())
thruFilter |= MappedEvent::MidiProgramChange;
- if (dynamic_cast<QCheckBox*>(m_thruBox->find(2))->isChecked())
+ if (dynamic_cast<TQCheckBox*>(m_thruBox->find(2))->isChecked())
thruFilter |= MappedEvent::MidiKeyPressure;
- if (dynamic_cast<QCheckBox*>(m_thruBox->find(3))->isChecked())
+ if (dynamic_cast<TQCheckBox*>(m_thruBox->find(3))->isChecked())
thruFilter |= MappedEvent::MidiChannelPressure;
- if (dynamic_cast<QCheckBox*>(m_thruBox->find(4))->isChecked())
+ if (dynamic_cast<TQCheckBox*>(m_thruBox->find(4))->isChecked())
thruFilter |= MappedEvent::MidiPitchBend;
- if (dynamic_cast<QCheckBox*>(m_thruBox->find(5))->isChecked())
+ if (dynamic_cast<TQCheckBox*>(m_thruBox->find(5))->isChecked())
thruFilter |= MappedEvent::MidiController;
- if (dynamic_cast<QCheckBox*>(m_thruBox->find(6))->isChecked())
+ if (dynamic_cast<TQCheckBox*>(m_thruBox->find(6))->isChecked())
thruFilter |= MappedEvent::MidiSystemMessage;
- if (dynamic_cast<QCheckBox*>(m_recordBox->find(0))->isChecked())
+ if (dynamic_cast<TQCheckBox*>(m_recordBox->find(0))->isChecked())
recordFilter |= MappedEvent::MidiNote;
- if (dynamic_cast<QCheckBox*>(m_recordBox->find(1))->isChecked())
+ if (dynamic_cast<TQCheckBox*>(m_recordBox->find(1))->isChecked())
recordFilter |= MappedEvent::MidiProgramChange;
- if (dynamic_cast<QCheckBox*>(m_recordBox->find(2))->isChecked())
+ if (dynamic_cast<TQCheckBox*>(m_recordBox->find(2))->isChecked())
recordFilter |= MappedEvent::MidiKeyPressure;
- if (dynamic_cast<QCheckBox*>(m_recordBox->find(3))->isChecked())
+ if (dynamic_cast<TQCheckBox*>(m_recordBox->find(3))->isChecked())
recordFilter |= MappedEvent::MidiChannelPressure;
- if (dynamic_cast<QCheckBox*>(m_recordBox->find(4))->isChecked())
+ if (dynamic_cast<TQCheckBox*>(m_recordBox->find(4))->isChecked())
recordFilter |= MappedEvent::MidiPitchBend;
- if (dynamic_cast<QCheckBox*>(m_recordBox->find(5))->isChecked())
+ if (dynamic_cast<TQCheckBox*>(m_recordBox->find(5))->isChecked())
recordFilter |= MappedEvent::MidiController;
- if (dynamic_cast<QCheckBox*>(m_recordBox->find(6))->isChecked())
+ if (dynamic_cast<TQCheckBox*>(m_recordBox->find(6))->isChecked())
recordFilter |= MappedEvent::MidiSystemMessage;
diff --git a/src/gui/seqmanager/MidiFilterDialog.h b/src/gui/seqmanager/MidiFilterDialog.h
index 06099ac..aaeda9c 100644
--- a/src/gui/seqmanager/MidiFilterDialog.h
+++ b/src/gui/seqmanager/MidiFilterDialog.h
@@ -29,8 +29,8 @@
#include <kdialogbase.h>
-class QWidget;
-class QButtonGroup;
+class TQWidget;
+class TQButtonGroup;
namespace Rosegarden
@@ -43,7 +43,7 @@ class MidiFilterDialog : public KDialogBase
{
Q_OBJECT
public:
- MidiFilterDialog(QWidget *parent,
+ MidiFilterDialog(TQWidget *parent,
RosegardenGUIDoc *doc);
void setModified(bool value);
@@ -58,8 +58,8 @@ protected:
RosegardenGUIDoc *m_doc;
- QButtonGroup *m_thruBox;
- QButtonGroup *m_recordBox;
+ TQButtonGroup *m_thruBox;
+ TQButtonGroup *m_recordBox;
bool m_modified;
diff --git a/src/gui/seqmanager/SegmentMmapper.cpp b/src/gui/seqmanager/SegmentMmapper.cpp
index 5cf117d..37575b2 100644
--- a/src/gui/seqmanager/SegmentMmapper.cpp
+++ b/src/gui/seqmanager/SegmentMmapper.cpp
@@ -38,8 +38,8 @@
#include "base/TriggerSegment.h"
#include "document/RosegardenGUIDoc.h"
#include "sound/MappedEvent.h"
-#include <qfile.h>
-#include <qstring.h>
+#include <tqfile.h>
+#include <tqstring.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
@@ -51,7 +51,7 @@ namespace Rosegarden
{
SegmentMmapper::SegmentMmapper(RosegardenGUIDoc* doc,
- Segment* segment, const QString& fileName)
+ Segment* segment, const TQString& fileName)
: m_doc(doc),
m_segment(segment),
m_fileName(fileName),
@@ -108,7 +108,7 @@ SegmentMmapper::~SegmentMmapper()
::close(m_fd);
SEQMAN_DEBUG << "~SegmentMmapper : removing " << m_fileName << endl;
- QFile::remove
+ TQFile::remove
(m_fileName);
}
@@ -234,7 +234,7 @@ void SegmentMmapper::remap(size_t newsize)
#endif
if (m_mmappedRegion == (void*) - 1) {
- SEQMAN_DEBUG << QString("mremap failed : (%1) %2\n").arg(errno).arg(strerror(errno));
+ SEQMAN_DEBUG << TQString("mremap failed : (%1) %2\n").arg(errno).arg(strerror(errno));
throw Exception("mremap failed");
}
@@ -253,7 +253,7 @@ void SegmentMmapper::doMmap()
m_mmappedEventBuffer = (MappedEvent *)((size_t *)m_mmappedRegion + 1);
if (m_mmappedRegion == (void*) - 1) {
- SEQMAN_DEBUG << QString("mmap failed : (%1) %2\n").arg(errno).arg(strerror(errno));
+ SEQMAN_DEBUG << TQString("mmap failed : (%1) %2\n").arg(errno).arg(strerror(errno));
throw Exception("mmap failed");
}
diff --git a/src/gui/seqmanager/SegmentMmapper.h b/src/gui/seqmanager/SegmentMmapper.h
index ab25aab..e223b8c 100644
--- a/src/gui/seqmanager/SegmentMmapper.h
+++ b/src/gui/seqmanager/SegmentMmapper.h
@@ -26,7 +26,7 @@
#ifndef _RG_SEGMENTMMAPPER_H_
#define _RG_SEGMENTMMAPPER_H_
-#include <qstring.h>
+#include <tqstring.h>
#include "base/Event.h"
@@ -55,14 +55,14 @@ public:
*/
bool refresh();
- QString getFileName() { return m_fileName; }
+ TQString getFileName() { return m_fileName; }
size_t getFileSize() const { return m_mmappedSize; }
virtual unsigned int getSegmentRepeatCount();
protected:
SegmentMmapper(RosegardenGUIDoc*, Segment*,
- const QString& fileName);
+ const TQString& fileName);
virtual size_t computeMmappedSize();
@@ -91,7 +91,7 @@ protected:
//--------------- Data members ---------------------------------
RosegardenGUIDoc* m_doc;
Segment* m_segment;
- QString m_fileName;
+ TQString m_fileName;
int m_fd;
size_t m_mmappedSize;
diff --git a/src/gui/seqmanager/SegmentMmapperFactory.cpp b/src/gui/seqmanager/SegmentMmapperFactory.cpp
index 085d842..4f40cd6 100644
--- a/src/gui/seqmanager/SegmentMmapperFactory.cpp
+++ b/src/gui/seqmanager/SegmentMmapperFactory.cpp
@@ -33,7 +33,7 @@
#include "AudioSegmentMmapper.h"
#include "TempoSegmentMmapper.h"
#include "TimeSigSegmentMmapper.h"
-#include <qstring.h>
+#include <tqstring.h>
namespace Rosegarden
@@ -41,7 +41,7 @@ namespace Rosegarden
SegmentMmapper* SegmentMmapperFactory::makeMmapperForSegment(RosegardenGUIDoc* doc,
Rosegarden::Segment* segment,
- const QString& fileName)
+ const TQString& fileName)
{
SegmentMmapper* mmapper = 0;
diff --git a/src/gui/seqmanager/SegmentMmapperFactory.h b/src/gui/seqmanager/SegmentMmapperFactory.h
index 2970024..e10eee2 100644
--- a/src/gui/seqmanager/SegmentMmapperFactory.h
+++ b/src/gui/seqmanager/SegmentMmapperFactory.h
@@ -28,7 +28,7 @@
-class QString;
+class TQString;
namespace Rosegarden
@@ -47,7 +47,7 @@ class SegmentMmapperFactory
public:
static SegmentMmapper* makeMmapperForSegment(RosegardenGUIDoc*, Segment*,
- const QString& fileName);
+ const TQString& fileName);
static MetronomeMmapper* makeMetronome(RosegardenGUIDoc*);
static TimeSigSegmentMmapper* makeTimeSig(RosegardenGUIDoc*);
diff --git a/src/gui/seqmanager/SequenceManager.cpp b/src/gui/seqmanager/SequenceManager.cpp
index 12334f6..4ebe945 100644
--- a/src/gui/seqmanager/SequenceManager.cpp
+++ b/src/gui/seqmanager/SequenceManager.cpp
@@ -66,16 +66,16 @@
#include <kconfig.h>
#include <kglobal.h>
#include <kmessagebox.h>
-#include <qapplication.h>
-#include <qcstring.h>
-#include <qcursor.h>
-#include <qdatastream.h>
-#include <qevent.h>
-#include <qobject.h>
-#include <qpushbutton.h>
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qtimer.h>
+#include <tqapplication.h>
+#include <tqcstring.h>
+#include <tqcursor.h>
+#include <tqdatastream.h>
+#include <tqevent.h>
+#include <tqobject.h>
+#include <tqpushbutton.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqtimer.h>
#include <algorithm>
@@ -95,14 +95,14 @@ SequenceManager::SequenceManager(RosegardenGUIDoc *doc,
m_transport(transport),
m_lastRewoundAt(clock()),
m_countdownDialog(0),
- m_countdownTimer(new QTimer(m_doc)),
+ m_countdownTimer(new TQTimer(m_doc)),
m_shownOverrunWarning(false),
- m_recordTime(new QTime()),
+ m_recordTime(new TQTime()),
m_compositionRefreshStatusId(m_doc->getComposition().getNewRefreshStatusId()),
m_updateRequested(true),
- m_compositionMmapperResetTimer(new QTimer(m_doc)),
+ m_compositionMmapperResetTimer(new TQTimer(m_doc)),
m_sequencerMapper(0),
- m_reportTimer(new QTimer(m_doc)),
+ m_reportTimer(new TQTimer(m_doc)),
m_canReport(true),
m_lastLowLatencySwitchSent(false),
m_lastTransportStartPosition(0),
@@ -113,22 +113,22 @@ SequenceManager::SequenceManager(RosegardenGUIDoc *doc,
// in the autoload (that have only just been mapped by the ctor!)
// m_compositionMmapper->cleanup();
- m_countdownDialog = new CountdownDialog(dynamic_cast<QWidget*>
+ m_countdownDialog = new CountdownDialog(dynamic_cast<TQWidget*>
(m_doc->parent())->parentWidget());
// Connect these for use later
//
- connect(m_countdownTimer, SIGNAL(timeout()),
- this, SLOT(slotCountdownTimerTimeout()));
+ connect(m_countdownTimer, TQT_SIGNAL(timeout()),
+ this, TQT_SLOT(slotCountdownTimerTimeout()));
- connect(m_reportTimer, SIGNAL(timeout()),
- this, SLOT(slotAllowReport()));
+ connect(m_reportTimer, TQT_SIGNAL(timeout()),
+ this, TQT_SLOT(slotAllowReport()));
- connect(m_compositionMmapperResetTimer, SIGNAL(timeout()),
- this, SLOT(slotScheduledCompositionMmapperReset()));
+ connect(m_compositionMmapperResetTimer, TQT_SIGNAL(timeout()),
+ this, TQT_SLOT(slotScheduledCompositionMmapperReset()));
- connect(doc->getCommandHistory(), SIGNAL(commandExecuted()),
- this, SLOT(update()));
+ connect(doc->getCommandHistory(), TQT_SIGNAL(commandExecuted()),
+ this, TQT_SLOT(update()));
m_doc->getComposition().addObserver(this);
@@ -164,7 +164,7 @@ void SequenceManager::setDocument(RosegardenGUIDoc* doc)
DataBlockRepository::clear();
m_doc->getComposition().removeObserver(this);
- disconnect(m_doc->getCommandHistory(), SIGNAL(commandExecuted()));
+ disconnect(m_doc->getCommandHistory(), TQT_SIGNAL(commandExecuted()));
m_segments.clear();
m_triggerSegments.clear();
@@ -179,25 +179,25 @@ void SequenceManager::setDocument(RosegardenGUIDoc* doc)
delete m_countdownTimer;
delete m_compositionMmapperResetTimer;
- m_countdownDialog = new CountdownDialog(dynamic_cast<QWidget*>
+ m_countdownDialog = new CountdownDialog(dynamic_cast<TQWidget*>
(m_doc->parent())->parentWidget());
// Bug 933041: no longer connect the CountdownDialog from
// SequenceManager; instead let the RosegardenGUIApp connect it to
// its own slotStop to ensure the right housekeeping is done
- m_countdownTimer = new QTimer(m_doc);
+ m_countdownTimer = new TQTimer(m_doc);
// Connect this for use later
//
- connect(m_countdownTimer, SIGNAL(timeout()),
- this, SLOT(slotCountdownTimerTimeout()));
+ connect(m_countdownTimer, TQT_SIGNAL(timeout()),
+ this, TQT_SLOT(slotCountdownTimerTimeout()));
m_compositionRefreshStatusId = comp.getNewRefreshStatusId();
comp.addObserver(this);
- connect(m_doc->getCommandHistory(), SIGNAL(commandExecuted()),
- this, SLOT(update()));
+ connect(m_doc->getCommandHistory(), TQT_SIGNAL(commandExecuted()),
+ this, TQT_SLOT(update()));
for (Composition::iterator i = comp.begin(); i != comp.end(); ++i) {
@@ -216,9 +216,9 @@ void SequenceManager::setDocument(RosegardenGUIDoc* doc)
}
- m_compositionMmapperResetTimer = new QTimer(m_doc);
- connect(m_compositionMmapperResetTimer, SIGNAL(timeout()),
- this, SLOT(slotScheduledCompositionMmapperReset()));
+ m_compositionMmapperResetTimer = new TQTimer(m_doc);
+ connect(m_compositionMmapperResetTimer, TQT_SIGNAL(timeout()),
+ this, TQT_SLOT(slotScheduledCompositionMmapperReset()));
resetCompositionMmapper();
@@ -320,18 +320,18 @@ SequenceManager::play()
if (lowLat != m_lastLowLatencySwitchSent) {
- QByteArray data;
- QDataStream streamOut(data, IO_WriteOnly);
+ TQByteArray data;
+ TQDataStream streamOut(data, IO_WriteOnly);
streamOut << lowLat;
rgapp->sequencerSend("setLowLatencyMode(bool)", data);
m_lastLowLatencySwitchSent = lowLat;
}
- QByteArray data;
- QCString replyType;
- QByteArray replyData;
- QDataStream streamOut(data, IO_WriteOnly);
+ TQByteArray data;
+ TQCString replyType;
+ TQByteArray replyData;
+ TQDataStream streamOut(data, IO_WriteOnly);
// playback start position
streamOut << (long)startPos.sec;
@@ -374,7 +374,7 @@ SequenceManager::play()
}
// ensure the return type is ok
- QDataStream streamIn(replyData, IO_ReadOnly);
+ TQDataStream streamIn(replyData, IO_ReadOnly);
int result;
streamIn >> result;
@@ -464,10 +464,10 @@ SequenceManager::stop()
// wait cursor
//
- QApplication::setOverrideCursor(QCursor(Qt::waitCursor));
+ TQApplication::setOverrideCursor(TQCursor(Qt::waitCursor));
- QCString replyType;
- QByteArray replyData;
+ TQCString replyType;
+ TQByteArray replyData;
bool failed = false;
if (!rgapp->sequencerCall("stop()", replyType, replyData)) {
@@ -475,7 +475,7 @@ SequenceManager::stop()
}
// restore
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
TransportStatus status = m_transportStatus;
@@ -573,8 +573,8 @@ SequenceManager::notifySequencerStatus(TransportStatus status)
void
SequenceManager::sendSequencerJump(const RealTime &time)
{
- QByteArray data;
- QDataStream streamOut(data, IO_WriteOnly);
+ TQByteArray data;
+ TQDataStream streamOut(data, IO_WriteOnly);
streamOut << (long)time.sec;
streamOut << (long)time.nsec;
@@ -648,9 +648,9 @@ SequenceManager::record(bool toggled)
if (m_transportStatus == RECORDING) {
SEQMAN_DEBUG << "SequenceManager::record - stop recording and keep playing\n";
- QByteArray data;
- QCString replyType;
- QByteArray replyData;
+ TQByteArray data;
+ TQCString replyType;
+ TQByteArray replyData;
// Send Record to the Sequencer to signal it to drop out of record mode
if (!rgapp->sequencerCall("punchOut()", replyType, replyData, data)) {
@@ -798,18 +798,18 @@ punchin:
if (lowLat != m_lastLowLatencySwitchSent) {
- QByteArray data;
- QDataStream streamOut(data, IO_WriteOnly);
+ TQByteArray data;
+ TQDataStream streamOut(data, IO_WriteOnly);
streamOut << lowLat;
rgapp->sequencerSend("setLowLatencyMode(bool)", data);
m_lastLowLatencySwitchSent = lowLat;
}
- QByteArray data;
- QCString replyType;
- QByteArray replyData;
- QDataStream streamOut(data, IO_WriteOnly);
+ TQByteArray data;
+ TQCString replyType;
+ TQByteArray replyData;
+ TQDataStream streamOut(data, IO_WriteOnly);
// playback start position
streamOut << (long)startPos.sec;
@@ -858,7 +858,7 @@ punchin:
}
// ensure the return type is ok
- QDataStream streamIn(replyData, IO_ReadOnly);
+ TQDataStream streamIn(replyData, IO_ReadOnly);
int result;
streamIn >> result;
@@ -985,7 +985,7 @@ SequenceManager::processAsynchronousMidi(const MappedComposition &mC,
/*KConfig* config = kapp->config();
config->setGroup(SequencerOptionsConfigGroup);
- QString recordDeviceStr = config->readEntry("midirecorddevice");
+ TQString recordDeviceStr = config->readEntry("midirecorddevice");
sendMIDIRecordingDevice(recordDeviceStr);*/
restoreRecordSubscriptions();
}
@@ -1010,13 +1010,13 @@ SequenceManager::processAsynchronousMidi(const MappedComposition &mC,
} else if ((*i)->getData1() == MappedEvent::FailureJackRestartFailed) {
KMessageBox::error(
- dynamic_cast<QWidget*>(m_doc->parent())->parentWidget(),
+ dynamic_cast<TQWidget*>(m_doc->parent())->parentWidget(),
i18n("The JACK Audio subsystem has failed or it has stopped Rosegarden from processing audio.\nPlease restart Rosegarden to continue working with audio.\nQuitting other running applications may improve Rosegarden's performance."));
} else if ((*i)->getData1() == MappedEvent::FailureJackRestart) {
KMessageBox::error(
- dynamic_cast<QWidget*>(m_doc->parent())->parentWidget(),
+ dynamic_cast<TQWidget*>(m_doc->parent())->parentWidget(),
i18n("The JACK Audio subsystem has stopped Rosegarden from processing audio, probably because of a processing overload.\nAn attempt to restart the audio service has been made, but some problems may remain.\nQuitting other running applications may improve Rosegarden's performance."));
} else if ((*i)->getData1() == MappedEvent::FailureCPUOverload) {
@@ -1027,7 +1027,7 @@ SequenceManager::processAsynchronousMidi(const MappedComposition &mC,
stopping();
KMessageBox::error(
- dynamic_cast<QWidget*>(m_doc->parent())->parentWidget(),
+ dynamic_cast<TQWidget*>(m_doc->parent())->parentWidget(),
i18n("Run out of processor power for real-time audio processing. Cannot continue."));
#endif
@@ -1054,7 +1054,7 @@ SequenceManager::processAsynchronousMidi(const MappedComposition &mC,
if (tv.tv_sec - warningShownAt >= 5 &&
!boolShowingALSAWarning) {
- QString message = i18n("A serious error has occurred in the ALSA MIDI subsystem. It may not be possible to continue sequencing. Please check console output for more information.");
+ TQString message = i18n("A serious error has occurred in the ALSA MIDI subsystem. It may not be possible to continue sequencing. Please check console output for more information.");
boolShowingALSAWarning = true;
KMessageBox::information(0, message);
@@ -1075,7 +1075,7 @@ SequenceManager::processAsynchronousMidi(const MappedComposition &mC,
if (tv.tv_sec - warningShownAt >= 5 &&
!boolShowingWarning) {
- QString message = i18n("JACK Audio subsystem is losing sample frames.");
+ TQString message = i18n("JACK Audio subsystem is losing sample frames.");
boolShowingWarning = true;
KMessageBox::information(0, message);
@@ -1088,7 +1088,7 @@ SequenceManager::processAsynchronousMidi(const MappedComposition &mC,
} else if (!m_shownOverrunWarning) {
- QString message;
+ TQString message;
switch ((*i)->getData1()) {
@@ -1146,13 +1146,13 @@ SequenceManager::processAsynchronousMidi(const MappedComposition &mC,
if ((*i)->getData1() == MappedEvent::FailureJackRestartFailed) {
KMessageBox::error(
- dynamic_cast<QWidget*>(m_doc->parent()),
+ dynamic_cast<TQWidget*>(m_doc->parent()),
i18n("The JACK Audio subsystem has failed or it has stopped Rosegarden from processing audio.\nPlease restart Rosegarden to continue working with audio.\nQuitting other running applications may improve Rosegarden's performance."));
} else if ((*i)->getData1() == MappedEvent::FailureJackRestart) {
KMessageBox::error(
- dynamic_cast<QWidget*>(m_doc->parent()),
+ dynamic_cast<TQWidget*>(m_doc->parent()),
i18n("The JACK Audio subsystem has stopped Rosegarden from processing audio, probably because of a processing overload.\nAn attempt to restart the audio service has been made, but some problems may remain.\nQuitting other running applications may improve Rosegarden's performance."));
} else if ((*i)->getData1() == MappedEvent::WarningImpreciseTimer &&
@@ -1166,7 +1166,7 @@ SequenceManager::processAsynchronousMidi(const MappedComposition &mC,
RosegardenGUIApp::self()->awaitDialogClearance();
KMessageBox::information(
- dynamic_cast<QWidget*>(m_doc->parent()),
+ dynamic_cast<TQWidget*>(m_doc->parent()),
i18n("<h3>System timer resolution is too low</h3><p>Rosegarden was unable to find a high-resolution timing source for MIDI performance.</p><p>This may mean you are using a Linux system with the kernel timer resolution set too low. Please contact your Linux distributor for more information.</p><p>Some Linux distributors already provide low latency kernels, see <a href=\"http://rosegarden.wiki.sourceforge.net/Low+latency+kernels\">http://rosegarden.wiki.sourceforge.net/Low+latency+kernels</a> for instructions.</p>"),
NULL, NULL,
KMessageBox::Notify + KMessageBox::AllowLink);
@@ -1184,7 +1184,7 @@ SequenceManager::processAsynchronousMidi(const MappedComposition &mC,
RosegardenGUIApp::self()->awaitDialogClearance();
KMessageBox::information(
- dynamic_cast<QWidget*>(m_doc->parent()),
+ dynamic_cast<TQWidget*>(m_doc->parent()),
i18n("<h3>System timer resolution is too low</h3><p>Rosegarden was unable to find a high-resolution timing source for MIDI performance.</p><p>You may be able to solve this problem by loading the RTC timer kernel module. To do this, try running <b>sudo modprobe snd-rtctimer</b> in a terminal window and then restarting Rosegarden.</p><p>Alternatively, check whether your Linux distributor provides a multimedia-optimized kernel. See <a href=\"http://rosegarden.wiki.sourceforge.net/Low+latency+kernels\">http://rosegarden.wiki.sourceforge.net/Low+latency+kernels</a> for notes about this.</p>"),
NULL, NULL,
KMessageBox::Notify + KMessageBox::AllowLink);
@@ -1252,8 +1252,8 @@ SequenceManager::setLoop(const timeT &lhs, const timeT &rhs)
// Let the sequencer know about the loop markers
//
- QByteArray data;
- QDataStream streamOut(data, IO_WriteOnly);
+ TQByteArray data;
+ TQDataStream streamOut(data, IO_WriteOnly);
RealTime loopStart =
m_doc->getComposition().getElapsedRealTime(lhs);
@@ -1271,21 +1271,21 @@ SequenceManager::setLoop(const timeT &lhs, const timeT &rhs)
void
SequenceManager::checkSoundDriverStatus(bool warnUser)
{
- QByteArray data;
- QCString replyType;
- QByteArray replyData;
- QDataStream streamOut(data, IO_WriteOnly);
+ TQByteArray data;
+ TQCString replyType;
+ TQByteArray replyData;
+ TQDataStream streamOut(data, IO_WriteOnly);
- streamOut << QString(VERSION);
+ streamOut << TQString(VERSION);
- if (! rgapp->sequencerCall("getSoundDriverStatus(QString)",
+ if (! rgapp->sequencerCall("getSoundDriverStatus(TQString)",
replyType, replyData, data)) {
m_soundDriverStatus = NO_DRIVER;
} else {
- QDataStream streamIn(replyData, IO_ReadOnly);
+ TQDataStream streamIn(replyData, IO_ReadOnly);
unsigned int result;
streamIn >> result;
m_soundDriverStatus = result;
@@ -1306,7 +1306,7 @@ SequenceManager::checkSoundDriverStatus(bool warnUser)
KStartupLogo::hideIfStillThere();
CurrentProgressDialog::freeze();
- QString text = "";
+ TQString text = "";
if (m_soundDriverStatus == NO_DRIVER) {
text = i18n("<p>Both MIDI and Audio subsystems have failed to initialize.</p><p>You may continue without the sequencer, but we suggest closing Rosegarden, running \"alsaconf\" as root, and starting Rosegarden again. If you wish to run with no sequencer by design, then use \"rosegarden --nosequencer\" to avoid seeing this error in the future.</p>");
@@ -1479,7 +1479,7 @@ SequenceManager::resetMidiNetwork()
}
void
-SequenceManager::sendMIDIRecordingDevice(const QString recordDeviceStr)
+SequenceManager::sendMIDIRecordingDevice(const TQString recordDeviceStr)
{
if (recordDeviceStr) {
@@ -1503,10 +1503,10 @@ SequenceManager::restoreRecordSubscriptions()
{
KConfig* config = kapp->config();
config->setGroup(SequencerOptionsConfigGroup);
- //QString recordDeviceStr = config->readEntry("midirecorddevice");
- QStringList devList = config->readListEntry("midirecorddevice");
+ //TQString recordDeviceStr = config->readEntry("midirecorddevice");
+ TQStringList devList = config->readListEntry("midirecorddevice");
- for ( QStringList::ConstIterator it = devList.begin();
+ for ( TQStringList::ConstIterator it = devList.begin();
it != devList.end(); ++it) {
sendMIDIRecordingDevice(*it);
}
@@ -1518,7 +1518,7 @@ SequenceManager::reinitialiseSequencerStudio()
{
KConfig* config = kapp->config();
config->setGroup(SequencerOptionsConfigGroup);
- //QString recordDeviceStr = config->readEntry("midirecorddevice");
+ //TQString recordDeviceStr = config->readEntry("midirecorddevice");
//sendMIDIRecordingDevice(recordDeviceStr);
restoreRecordSubscriptions();
@@ -1669,9 +1669,9 @@ void SequenceManager::resetControlBlockMmapper()
m_controlBlockMmapper->setDocument(m_doc);
}
-bool SequenceManager::event(QEvent *e)
+bool SequenceManager::event(TQEvent *e)
{
- if (e->type() == QEvent::User) {
+ if (e->type() == TQEvent::User) {
SEQMAN_DEBUG << "SequenceManager::event() with user event\n";
if (m_updateRequested) {
SEQMAN_DEBUG << "SequenceManager::event(): update requested\n";
@@ -1680,7 +1680,7 @@ bool SequenceManager::event(QEvent *e)
}
return true;
} else {
- return QObject::event(e);
+ return TQObject::event(e);
}
}
@@ -1688,9 +1688,9 @@ void SequenceManager::update()
{
SEQMAN_DEBUG << "SequenceManager::update()\n";
// schedule a refresh-status check for the next event loop
- QEvent *e = new QEvent(QEvent::User);
+ TQEvent *e = new TQEvent(TQEvent::User);
m_updateRequested = true;
- QApplication::postEvent(this, e);
+ TQApplication::postEvent(this, e);
}
void SequenceManager::checkRefreshStatus()
@@ -1771,16 +1771,16 @@ void SequenceManager::segmentModified(Segment* s)
<< sizeChanged << endl;
if ((m_transportStatus == PLAYING) && sizeChanged) {
- QByteArray data;
- QDataStream streamOut(data, IO_WriteOnly);
+ TQByteArray data;
+ TQDataStream streamOut(data, IO_WriteOnly);
- streamOut << (QString)m_compositionMmapper->getSegmentFileName(s);
+ streamOut << (TQString)m_compositionMmapper->getSegmentFileName(s);
streamOut << (size_t)m_compositionMmapper->getSegmentFileSize(s);
SEQMAN_DEBUG << "SequenceManager::segmentModified() : DCOP-call sequencer remapSegment"
<< m_compositionMmapper->getSegmentFileName(s) << endl;
- rgapp->sequencerSend("remapSegment(QString, size_t)", data);
+ rgapp->sequencerSend("remapSegment(TQString, size_t)", data);
}
}
@@ -1816,7 +1816,7 @@ void SequenceManager::segmentEventsTimingChanged(const Composition*, Segment * s
SEQMAN_DEBUG << "SequenceManager::segmentEventsTimingChanged(" << s << ", " << t << ")\n";
segmentModified(s);
if (s && s->getType() == Segment::Audio && m_transportStatus == PLAYING) {
- QByteArray data;
+ TQByteArray data;
rgapp->sequencerSend("remapTracks()", data);
}
}
@@ -1832,7 +1832,7 @@ void SequenceManager::segmentTrackChanged(const Composition*, Segment *s, TrackI
SEQMAN_DEBUG << "SequenceManager::segmentTrackChanged(" << s << ", " << id << ")\n";
segmentModified(s);
if (s && s->getType() == Segment::Audio && m_transportStatus == PLAYING) {
- QByteArray data;
+ TQByteArray data;
rgapp->sequencerSend("remapTracks()", data);
}
}
@@ -1851,12 +1851,12 @@ void SequenceManager::processAddedSegment(Segment* s)
if (m_transportStatus == PLAYING) {
- QByteArray data;
- QDataStream streamOut(data, IO_WriteOnly);
+ TQByteArray data;
+ TQDataStream streamOut(data, IO_WriteOnly);
streamOut << m_compositionMmapper->getSegmentFileName(s);
- if (!rgapp->sequencerSend("addSegment(QString)", data)) {
+ if (!rgapp->sequencerSend("addSegment(TQString)", data)) {
m_transportStatus = STOPPED;
}
}
@@ -1871,17 +1871,17 @@ void SequenceManager::processRemovedSegment(Segment* s)
{
SEQMAN_DEBUG << "SequenceManager::processRemovedSegment(" << s << ")\n";
- QString filename = m_compositionMmapper->getSegmentFileName(s);
+ TQString filename = m_compositionMmapper->getSegmentFileName(s);
m_compositionMmapper->segmentDeleted(s);
if (m_transportStatus == PLAYING) {
- QByteArray data;
- QDataStream streamOut(data, IO_WriteOnly);
+ TQByteArray data;
+ TQDataStream streamOut(data, IO_WriteOnly);
streamOut << filename;
- if (!rgapp->sequencerSend("deleteSegment(QString)", data)) {
+ if (!rgapp->sequencerSend("deleteSegment(TQString)", data)) {
// failed
m_transportStatus = STOPPED;
}
@@ -1908,7 +1908,7 @@ void SequenceManager::trackChanged(const Composition *, Track* t)
m_controlBlockMmapper->updateTrackData(t);
if (m_transportStatus == PLAYING) {
- QByteArray data;
+ TQByteArray data;
rgapp->sequencerSend("remapTracks()", data);
}
}
@@ -1974,7 +1974,7 @@ void SequenceManager::soloChanged(const Composition *, bool solo, TrackId select
{
if (m_controlBlockMmapper->updateSoloData(solo, selectedTrack)) {
if (m_transportStatus == PLAYING) {
- QByteArray data;
+ TQByteArray data;
rgapp->sequencerSend("remapTracks()", data);
}
}
@@ -2097,7 +2097,7 @@ SequenceManager::slotCountdownTimerTimeout()
}
void
-SequenceManager::slotFoundMountPoint(const QString&,
+SequenceManager::slotFoundMountPoint(const TQString&,
unsigned long kBSize,
unsigned long /*kBUsed*/,
unsigned long kBAvail)
@@ -2117,10 +2117,10 @@ SequenceManager::getSampleRate()
{
if (m_sampleRate != 0) return m_sampleRate;
- QCString replyType;
- QByteArray replyData;
+ TQCString replyType;
+ TQByteArray replyData;
if (rgapp->sequencerCall("getSampleRate()", replyType, replyData)) {
- QDataStream streamIn(replyData, IO_ReadOnly);
+ TQDataStream streamIn(replyData, IO_ReadOnly);
unsigned int result;
streamIn >> m_sampleRate;
}
@@ -2132,7 +2132,7 @@ bool
SequenceManager::shouldWarnForImpreciseTimer()
{
kapp->config()->setGroup(SequencerOptionsConfigGroup);
- QString timer = kapp->config()->readEntry("timer");
+ TQString timer = kapp->config()->readEntry("timer");
if (timer == "(auto)" || timer == "") return true;
else return false; // if the user has chosen the timer, leave them alone
}
diff --git a/src/gui/seqmanager/SequenceManager.h b/src/gui/seqmanager/SequenceManager.h
index 792ec01..4713aab 100644
--- a/src/gui/seqmanager/SequenceManager.h
+++ b/src/gui/seqmanager/SequenceManager.h
@@ -34,15 +34,15 @@
#include "gui/application/RosegardenDCOP.h"
#include "sound/MappedComposition.h"
#include "sound/MappedEvent.h"
-#include <qobject.h>
-#include <qstring.h>
+#include <tqobject.h>
+#include <tqstring.h>
#include <vector>
#include <map>
-class QTimer;
-class QTime;
-class QEvent;
+class TQTimer;
+class TQTime;
+class TQEvent;
namespace Rosegarden
@@ -63,7 +63,7 @@ class Composition;
class AudioManagerDialog;
-class SequenceManager : public QObject, public CompositionObserver
+class SequenceManager : public TQObject, public CompositionObserver
{
Q_OBJECT
public:
@@ -190,7 +190,7 @@ public:
void processRemovedSegment(Segment*);
void segmentModified(Segment*);
- virtual bool event(QEvent *e);
+ virtual bool event(TQEvent *e);
/// for the gui to call to indicate that the metronome needs to be remapped
void metronomeChanged(InstrumentId id, bool regenerateTicks);
@@ -232,7 +232,7 @@ protected slots:
//
void slotAllowReport() { m_canReport = true; }
- void slotFoundMountPoint(const QString&,
+ void slotFoundMountPoint(const TQString&,
unsigned long kBSize,
unsigned long kBUsed,
unsigned long kBAvail);
@@ -247,7 +247,7 @@ protected:
void resetTempoSegmentMmapper();
void resetTimeSigSegmentMmapper();
void checkRefreshStatus();
- void sendMIDIRecordingDevice(const QString recordDeviceStr);
+ void sendMIDIRecordingDevice(const TQString recordDeviceStr);
void restoreRecordSubscriptions();
bool shouldWarnForImpreciseTimer();
@@ -275,13 +275,13 @@ protected:
clock_t m_lastRewoundAt;
CountdownDialog *m_countdownDialog;
- QTimer *m_countdownTimer;
+ TQTimer *m_countdownTimer;
bool m_shownOverrunWarning;
// Keep a track of elapsed record time with this object
//
- QTime *m_recordTime;
+ TQTime *m_recordTime;
typedef std::map<Segment *, int> SegmentRefreshMap;
SegmentRefreshMap m_segments; // map to refresh status id
@@ -292,7 +292,7 @@ protected:
// used to schedule a composition mmapper reset when the composition end time marker changes
// this can be caused by a window resize, and since the reset is potentially expensive we want to collapse
// several following requests into one.
- QTimer *m_compositionMmapperResetTimer;
+ TQTimer *m_compositionMmapperResetTimer;
// Information that the sequencer is providing to us - for the moment
// it's only the position pointer.
@@ -301,7 +301,7 @@ protected:
// Just to make sure we don't bother the user too often
//
- QTimer *m_reportTimer;
+ TQTimer *m_reportTimer;
bool m_canReport;
bool m_gotDiskSpaceResult;
diff --git a/src/gui/seqmanager/SequencerMapper.cpp b/src/gui/seqmanager/SequencerMapper.cpp
index 5d8acf3..af4ca09 100644
--- a/src/gui/seqmanager/SequencerMapper.cpp
+++ b/src/gui/seqmanager/SequencerMapper.cpp
@@ -33,8 +33,8 @@
#include "sound/MappedComposition.h"
#include "sound/MappedEvent.h"
#include "sound/SequencerDataBlock.h"
-#include <qfileinfo.h>
-#include <qstring.h>
+#include <tqfileinfo.h>
+#include <tqstring.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
@@ -45,7 +45,7 @@
namespace Rosegarden
{
-SequencerMapper::SequencerMapper(const QString filename)
+SequencerMapper::SequencerMapper(const TQString filename)
: m_fd( -1),
m_mmappedSize(0),
m_mmappedBuffer((void *)0),
@@ -63,7 +63,7 @@ SequencerMapper::~SequencerMapper()
void
SequencerMapper::map()
{
- QFileInfo fInfo(m_filename);
+ TQFileInfo fInfo(m_filename);
if (!fInfo.exists()) {
RG_DEBUG << "SequencerMapper::map() : file " << m_filename << " doesn't exist\n";
throw Exception("file not found");
@@ -82,7 +82,7 @@ SequencerMapper::map()
if (m_mmappedBuffer == (void*) - 1) {
- RG_DEBUG << QString("mmap failed : (%1) %2\n").
+ RG_DEBUG << TQString("mmap failed : (%1) %2\n").
arg(errno).arg(strerror(errno));
throw Exception("mmap failed");
diff --git a/src/gui/seqmanager/SequencerMapper.h b/src/gui/seqmanager/SequencerMapper.h
index 59d217f..9eddc13 100644
--- a/src/gui/seqmanager/SequencerMapper.h
+++ b/src/gui/seqmanager/SequencerMapper.h
@@ -30,7 +30,7 @@
#include "base/RealTime.h"
#include "base/Track.h"
#include "sound/SequencerDataBlock.h"
-#include <qstring.h>
+#include <tqstring.h>
class LevelInfo;
@@ -46,7 +46,7 @@ class MappedComposition;
class SequencerMapper
{
public:
- SequencerMapper(const QString filename);
+ SequencerMapper(const TQString filename);
~SequencerMapper();
RealTime getPositionPointer() const {
@@ -102,7 +102,7 @@ protected:
int m_fd;
size_t m_mmappedSize;
void* m_mmappedBuffer;
- QString m_filename;
+ TQString m_filename;
SequencerDataBlock *m_sequencerDataBlock;
};
diff --git a/src/gui/seqmanager/SpecialSegmentMmapper.cpp b/src/gui/seqmanager/SpecialSegmentMmapper.cpp
index 5926f11..ecd1e11 100644
--- a/src/gui/seqmanager/SpecialSegmentMmapper.cpp
+++ b/src/gui/seqmanager/SpecialSegmentMmapper.cpp
@@ -32,18 +32,18 @@
#include "document/RosegardenGUIDoc.h"
#include "SegmentMmapper.h"
#include <kglobal.h>
-#include <qstring.h>
+#include <tqstring.h>
namespace Rosegarden
{
SpecialSegmentMmapper::SpecialSegmentMmapper(RosegardenGUIDoc* doc,
- QString baseFileName)
+ TQString baseFileName)
: SegmentMmapper(doc, 0, createFileName(baseFileName))
{}
-QString SpecialSegmentMmapper::createFileName(QString baseFileName)
+TQString SpecialSegmentMmapper::createFileName(TQString baseFileName)
{
return KGlobal::dirs()->resourceDirs("tmp").last() + "/" + baseFileName;
}
diff --git a/src/gui/seqmanager/SpecialSegmentMmapper.h b/src/gui/seqmanager/SpecialSegmentMmapper.h
index e16c7b5..fefdd96 100644
--- a/src/gui/seqmanager/SpecialSegmentMmapper.h
+++ b/src/gui/seqmanager/SpecialSegmentMmapper.h
@@ -27,7 +27,7 @@
#define _RG_SPECIALSEGMENTMMAPPER_H_
#include "SegmentMmapper.h"
-#include <qstring.h>
+#include <tqstring.h>
@@ -46,9 +46,9 @@ public:
protected:
SpecialSegmentMmapper(RosegardenGUIDoc* doc,
- QString baseFileName);
+ TQString baseFileName);
- QString createFileName(QString baseFileName);
+ TQString createFileName(TQString baseFileName);
};
//----------------------------------------
diff --git a/src/gui/seqmanager/TempoSegmentMmapper.cpp b/src/gui/seqmanager/TempoSegmentMmapper.cpp
index 1c53922..9c92f13 100644
--- a/src/gui/seqmanager/TempoSegmentMmapper.cpp
+++ b/src/gui/seqmanager/TempoSegmentMmapper.cpp
@@ -33,7 +33,7 @@
#include "SegmentMmapper.h"
#include "sound/MappedEvent.h"
#include "SpecialSegmentMmapper.h"
-#include <qstring.h>
+#include <tqstring.h>
namespace Rosegarden
diff --git a/src/gui/seqmanager/TempoSegmentMmapper.h b/src/gui/seqmanager/TempoSegmentMmapper.h
index 08c8ebf..a31a1e7 100644
--- a/src/gui/seqmanager/TempoSegmentMmapper.h
+++ b/src/gui/seqmanager/TempoSegmentMmapper.h
@@ -27,7 +27,7 @@
#define _RG_TEMPOSEGMENTMMAPPER_H_
#include "SpecialSegmentMmapper.h"
-#include <qstring.h>
+#include <tqstring.h>
namespace Rosegarden
@@ -42,7 +42,7 @@ class TempoSegmentMmapper : public SpecialSegmentMmapper
protected:
TempoSegmentMmapper(RosegardenGUIDoc* doc,
- QString baseFileName)
+ TQString baseFileName)
: SpecialSegmentMmapper(doc, baseFileName) {}
// overrides from SegmentMmapper
diff --git a/src/gui/seqmanager/TimeSigSegmentMmapper.cpp b/src/gui/seqmanager/TimeSigSegmentMmapper.cpp
index 98beab3..3404021 100644
--- a/src/gui/seqmanager/TimeSigSegmentMmapper.cpp
+++ b/src/gui/seqmanager/TimeSigSegmentMmapper.cpp
@@ -33,7 +33,7 @@
#include "SegmentMmapper.h"
#include "sound/MappedEvent.h"
#include "SpecialSegmentMmapper.h"
-#include <qstring.h>
+#include <tqstring.h>
namespace Rosegarden
diff --git a/src/gui/seqmanager/TimeSigSegmentMmapper.h b/src/gui/seqmanager/TimeSigSegmentMmapper.h
index 20e0474..2412128 100644
--- a/src/gui/seqmanager/TimeSigSegmentMmapper.h
+++ b/src/gui/seqmanager/TimeSigSegmentMmapper.h
@@ -27,7 +27,7 @@
#define _RG_TIMESIGSEGMENTMMAPPER_H_
#include "SpecialSegmentMmapper.h"
-#include <qstring.h>
+#include <tqstring.h>
namespace Rosegarden
@@ -44,7 +44,7 @@ public:
protected:
TimeSigSegmentMmapper(RosegardenGUIDoc* doc,
- QString baseFileName)
+ TQString baseFileName)
: SpecialSegmentMmapper(doc, baseFileName) {}
// overrides from SegmentMmapper