summaryrefslogtreecommitdiffstats
path: root/src/gui/seqmanager
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-02 22:38:52 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-02 22:38:52 +0000
commit458efa7b0c935cbaafa2791021a5f8f7241aa876 (patch)
tree624583f2873febe23770bee3fa94b5c24bd59f4f /src/gui/seqmanager
parent747037b72944ae2c02962b7c5c96e0a7f8852e38 (diff)
downloadrosegarden-458efa7b0c935cbaafa2791021a5f8f7241aa876.tar.gz
rosegarden-458efa7b0c935cbaafa2791021a5f8f7241aa876.zip
Initial TQt4 port of Rosegarden
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1230242 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui/seqmanager')
-rw-r--r--src/gui/seqmanager/CompositionMmapper.cpp22
-rw-r--r--src/gui/seqmanager/ControlBlockMmapper.cpp16
-rw-r--r--src/gui/seqmanager/MetronomeMmapper.cpp18
-rw-r--r--src/gui/seqmanager/MidiFilterDialog.cpp32
-rw-r--r--src/gui/seqmanager/MidiFilterDialog.h3
-rw-r--r--src/gui/seqmanager/SegmentMmapper.cpp36
-rw-r--r--src/gui/seqmanager/SegmentMmapperFactory.cpp4
-rw-r--r--src/gui/seqmanager/SequenceManager.cpp286
-rw-r--r--src/gui/seqmanager/SequenceManager.h17
-rw-r--r--src/gui/seqmanager/SequencerMapper.cpp4
10 files changed, 220 insertions, 218 deletions
diff --git a/src/gui/seqmanager/CompositionMmapper.cpp b/src/gui/seqmanager/CompositionMmapper.cpp
index 30983fe..778b655 100644
--- a/src/gui/seqmanager/CompositionMmapper.cpp
+++ b/src/gui/seqmanager/CompositionMmapper.cpp
@@ -49,7 +49,7 @@ CompositionMmapper::CompositionMmapper(RosegardenGUIDoc *doc)
{
cleanup();
- SEQMAN_DEBUG << "CompositionMmapper() - doc = " << doc << endl;
+ SETQMAN_DEBUG << "CompositionMmapper() - doc = " << doc << endl;
Composition &comp = m_doc->getComposition();
for (Composition::iterator it = comp.begin(); it != comp.end(); it++) {
@@ -67,7 +67,7 @@ CompositionMmapper::CompositionMmapper(RosegardenGUIDoc *doc)
CompositionMmapper::~CompositionMmapper()
{
- SEQMAN_DEBUG << "~CompositionMmapper()\n";
+ SETQMAN_DEBUG << "~CompositionMmapper()\n";
//
// Clean up possible left-overs
@@ -92,7 +92,7 @@ void CompositionMmapper::cleanup()
TQDir segmentsDir(tmpPath, "segment_*");
for (unsigned int i = 0; i < segmentsDir.count(); ++i) {
TQString segmentName = tmpPath + '/' + segmentsDir[i];
- SEQMAN_DEBUG << "CompositionMmapper : cleaning up " << segmentName << endl;
+ SETQMAN_DEBUG << "CompositionMmapper : cleaning up " << segmentName << endl;
TQFile::remove
(segmentName);
}
@@ -107,7 +107,7 @@ bool CompositionMmapper::segmentModified(Segment* segment)
return false; // this can happen with the SegmentSplitCommand, where the new segment's transpose is set
// even though it's not mapped yet
- SEQMAN_DEBUG << "CompositionMmapper::segmentModified(" << segment << ") - mmapper = "
+ SETQMAN_DEBUG << "CompositionMmapper::segmentModified(" << segment << ") - mmapper = "
<< mmapper << endl;
return mmapper->refresh();
@@ -115,24 +115,24 @@ bool CompositionMmapper::segmentModified(Segment* segment)
void CompositionMmapper::segmentAdded(Segment* segment)
{
- SEQMAN_DEBUG << "CompositionMmapper::segmentAdded(" << segment << ")\n";
+ SETQMAN_DEBUG << "CompositionMmapper::segmentAdded(" << segment << ")\n";
mmapSegment(segment);
}
void CompositionMmapper::segmentDeleted(Segment* segment)
{
- SEQMAN_DEBUG << "CompositionMmapper::segmentDeleted(" << segment << ")\n";
+ SETQMAN_DEBUG << "CompositionMmapper::segmentDeleted(" << segment << ")\n";
SegmentMmapper* mmapper = m_segmentMmappers[segment];
m_segmentMmappers.erase(segment);
- SEQMAN_DEBUG << "CompositionMmapper::segmentDeleted() : deleting SegmentMmapper " << mmapper << endl;
+ SETQMAN_DEBUG << "CompositionMmapper::segmentDeleted() : deleting SegmentMmapper " << mmapper << endl;
delete mmapper;
}
void CompositionMmapper::mmapSegment(Segment* segment)
{
- SEQMAN_DEBUG << "CompositionMmapper::mmapSegment(" << segment << ")\n";
+ SETQMAN_DEBUG << "CompositionMmapper::mmapSegment(" << segment << ")\n";
SegmentMmapper* mmapper = SegmentMmapperFactory::makeMmapperForSegment(m_doc,
segment,
@@ -147,8 +147,8 @@ TQString CompositionMmapper::makeFileName(Segment* segment)
TQStringList tmpDirs = KGlobal::dirs()->resourceDirs("tmp");
return TQString("%1/segment_%2")
- .arg(tmpDirs.last())
- .arg((uintptr_t)segment, 0, 16);
+ .tqarg(tmpDirs.last())
+ .tqarg((uintptr_t)segment, 0, 16);
}
TQString CompositionMmapper::getSegmentFileName(Segment* s)
@@ -158,7 +158,7 @@ TQString CompositionMmapper::getSegmentFileName(Segment* s)
if (mmapper)
return mmapper->getFileName();
else
- return TQString::null;
+ return TQString();
}
size_t CompositionMmapper::getSegmentFileSize(Segment* s)
diff --git a/src/gui/seqmanager/ControlBlockMmapper.cpp b/src/gui/seqmanager/ControlBlockMmapper.cpp
index 3b49bcc..46c632b 100644
--- a/src/gui/seqmanager/ControlBlockMmapper.cpp
+++ b/src/gui/seqmanager/ControlBlockMmapper.cpp
@@ -61,7 +61,7 @@ ControlBlockMmapper::ControlBlockMmapper(RosegardenGUIDoc* doc)
m_fd = ::open(m_fileName.latin1(), O_RDWR | O_CREAT | O_TRUNC,
S_IRUSR | S_IWUSR);
if (m_fd < 0) {
- SEQMAN_DEBUG << "ControlBlockMmapper : Couldn't open " << m_fileName
+ SETQMAN_DEBUG << "ControlBlockMmapper : Couldn't open " << m_fileName
<< endl;
throw Exception("Couldn't open " + qstrtostr(m_fileName));
}
@@ -76,11 +76,11 @@ ControlBlockMmapper::ControlBlockMmapper(RosegardenGUIDoc* doc)
MAP_SHARED, m_fd, 0);
if (m_mmappedBuffer == (void*) - 1) {
- SEQMAN_DEBUG << TQString("mmap failed : (%1) %2\n").arg(errno).arg(strerror(errno));
+ SETQMAN_DEBUG << TQString("mmap failed : (%1) %2\n").tqarg(errno).tqarg(strerror(errno));
throw Exception("mmap failed");
}
- SEQMAN_DEBUG << "ControlBlockMmapper : mmap size : " << m_mmappedSize
+ SETQMAN_DEBUG << "ControlBlockMmapper : mmap size : " << m_mmappedSize
<< " at " << (void*)m_mmappedBuffer << endl;
// Create new control block on file
@@ -125,7 +125,7 @@ void ControlBlockMmapper::updateMetronomeData(InstrumentId instId)
void ControlBlockMmapper::updateMetronomeForPlayback()
{
bool muted = !m_doc->getComposition().usePlayMetronome();
- SEQMAN_DEBUG << "ControlBlockMmapper::updateMetronomeForPlayback: muted=" << muted << endl;
+ SETQMAN_DEBUG << "ControlBlockMmapper::updateMetronomeForPlayback: muted=" << muted << endl;
if (m_controlBlock->isMetronomeMuted() == muted)
return ;
m_controlBlock->setMetronomeMuted(muted);
@@ -134,7 +134,7 @@ void ControlBlockMmapper::updateMetronomeForPlayback()
void ControlBlockMmapper::updateMetronomeForRecord()
{
bool muted = !m_doc->getComposition().useRecordMetronome();
- SEQMAN_DEBUG << "ControlBlockMmapper::updateMetronomeForRecord: muted=" << muted << endl;
+ SETQMAN_DEBUG << "ControlBlockMmapper::updateMetronomeForRecord: muted=" << muted << endl;
if (m_controlBlock->isMetronomeMuted() == muted)
return ;
m_controlBlock->setMetronomeMuted(muted);
@@ -163,14 +163,14 @@ bool ControlBlockMmapper::updateSoloData(bool solo,
void ControlBlockMmapper::setDocument(RosegardenGUIDoc* doc)
{
- SEQMAN_DEBUG << "ControlBlockMmapper::setDocument()\n";
+ SETQMAN_DEBUG << "ControlBlockMmapper::setDocument()\n";
m_doc = doc;
initControlBlock();
}
void ControlBlockMmapper::initControlBlock()
{
- SEQMAN_DEBUG << "ControlBlockMmapper::initControlBlock()\n";
+ SETQMAN_DEBUG << "ControlBlockMmapper::initControlBlock()\n";
m_controlBlock = new (m_mmappedBuffer) ControlBlock(m_doc->getComposition().getMaxTrackId());
@@ -194,7 +194,7 @@ void ControlBlockMmapper::initControlBlock()
void ControlBlockMmapper::setFileSize(size_t size)
{
- SEQMAN_DEBUG << "ControlBlockMmapper : setting size of "
+ SETQMAN_DEBUG << "ControlBlockMmapper : setting size of "
<< m_fileName << " to " << size << endl;
// rewind
::lseek(m_fd, 0, SEEK_SET);
diff --git a/src/gui/seqmanager/MetronomeMmapper.cpp b/src/gui/seqmanager/MetronomeMmapper.cpp
index 64964f0..d9804cd 100644
--- a/src/gui/seqmanager/MetronomeMmapper.cpp
+++ b/src/gui/seqmanager/MetronomeMmapper.cpp
@@ -54,7 +54,7 @@ MetronomeMmapper::MetronomeMmapper(RosegardenGUIDoc* doc)
m_metronome(0), // no metronome to begin with
m_tickDuration(0, 100000000)
{
- SEQMAN_DEBUG << "MetronomeMmapper ctor : " << this << endl;
+ SETQMAN_DEBUG << "MetronomeMmapper ctor : " << this << endl;
// get metronome device
Studio &studio = m_doc->getStudio();
@@ -65,13 +65,13 @@ MetronomeMmapper::MetronomeMmapper(RosegardenGUIDoc* doc)
if (metronome) {
- SEQMAN_DEBUG << "MetronomeMmapper: have metronome, it's on instrument " << metronome->getInstrument() << endl;
+ SETQMAN_DEBUG << "MetronomeMmapper: have metronome, it's on instrument " << metronome->getInstrument() << endl;
m_metronome = new MidiMetronome(*metronome);
} else {
m_metronome = new MidiMetronome
(SystemInstrumentBase);
- SEQMAN_DEBUG << "MetronomeMmapper: no metronome for device " << device << endl;
+ SETQMAN_DEBUG << "MetronomeMmapper: no metronome for device " << device << endl;
}
Composition& c = m_doc->getComposition();
@@ -129,7 +129,7 @@ MetronomeMmapper::MetronomeMmapper(RosegardenGUIDoc* doc)
sortTicks();
if (m_ticks.size() == 0) {
- SEQMAN_DEBUG << "MetronomeMmapper : WARNING no ticks generated\n";
+ SETQMAN_DEBUG << "MetronomeMmapper : WARNING no ticks generated\n";
}
// Done by init()
@@ -144,7 +144,7 @@ MetronomeMmapper::MetronomeMmapper(RosegardenGUIDoc* doc)
MetronomeMmapper::~MetronomeMmapper()
{
- SEQMAN_DEBUG << "~MetronomeMmapper " << this << endl;
+ SETQMAN_DEBUG << "~MetronomeMmapper " << this << endl;
delete m_metronome;
}
@@ -163,14 +163,14 @@ void MetronomeMmapper::dump()
RealTime eventTime;
Composition& comp = m_doc->getComposition();
- SEQMAN_DEBUG << "MetronomeMmapper::dump: instrument is " << m_metronome->getInstrument() << endl;
+ SETQMAN_DEBUG << "MetronomeMmapper::dump: instrument is " << m_metronome->getInstrument() << endl;
MappedEvent* bufPos = m_mmappedEventBuffer, *mE;
for (TickContainer::iterator i = m_ticks.begin(); i != m_ticks.end(); ++i) {
/*
- SEQMAN_DEBUG << "MetronomeMmapper::dump: velocity = "
+ SETQMAN_DEBUG << "MetronomeMmapper::dump: velocity = "
<< int(velocity) << endl;
*/
@@ -214,7 +214,7 @@ void MetronomeMmapper::dump()
// Store the number of events at the start of the shared memory region
*(size_t *)m_mmappedRegion = (bufPos - m_mmappedEventBuffer);
- SEQMAN_DEBUG << "MetronomeMmapper::dump: - "
+ SETQMAN_DEBUG << "MetronomeMmapper::dump: - "
<< "Total events written = " << *(size_t *)m_mmappedRegion
<< endl;
}
@@ -244,7 +244,7 @@ size_t MetronomeMmapper::computeMmappedSize()
Note(Note::Crotchet).getDuration();
/*
- SEQMAN_DEBUG << "MetronomeMmapper::computeMmappedSize - "
+ SETQMAN_DEBUG << "MetronomeMmapper::computeMmappedSize - "
<< "Number of clock events catered for = " << clocks
<< endl;
*/
diff --git a/src/gui/seqmanager/MidiFilterDialog.cpp b/src/gui/seqmanager/MidiFilterDialog.cpp
index 0227eff..dfd2017 100644
--- a/src/gui/seqmanager/MidiFilterDialog.cpp
+++ b/src/gui/seqmanager/MidiFilterDialog.cpp
@@ -41,9 +41,9 @@
namespace Rosegarden
{
-MidiFilterDialog::MidiFilterDialog(TQWidget *parent,
+MidiFilterDialog::MidiFilterDialog(TQWidget *tqparent,
RosegardenGUIDoc *doc):
- KDialogBase(parent, 0, true, i18n("Modify MIDI filters..."),
+ KDialogBase(tqparent, 0, true, i18n("Modify MIDI filters..."),
Ok | Apply | Close | Help),
m_doc(doc),
m_modified(true)
@@ -141,46 +141,46 @@ MidiFilterDialog::slotApply()
MidiFilter thruFilter = 0,
recordFilter = 0;
- if (dynamic_cast<TQCheckBox*>(m_thruBox->find(0))->isChecked())
+ if (dynamic_cast<TQCheckBox*>(m_thruBox->tqfind(0))->isChecked())
thruFilter |= MappedEvent::MidiNote;
- if (dynamic_cast<TQCheckBox*>(m_thruBox->find(1))->isChecked())
+ if (dynamic_cast<TQCheckBox*>(m_thruBox->tqfind(1))->isChecked())
thruFilter |= MappedEvent::MidiProgramChange;
- if (dynamic_cast<TQCheckBox*>(m_thruBox->find(2))->isChecked())
+ if (dynamic_cast<TQCheckBox*>(m_thruBox->tqfind(2))->isChecked())
thruFilter |= MappedEvent::MidiKeyPressure;
- if (dynamic_cast<TQCheckBox*>(m_thruBox->find(3))->isChecked())
+ if (dynamic_cast<TQCheckBox*>(m_thruBox->tqfind(3))->isChecked())
thruFilter |= MappedEvent::MidiChannelPressure;
- if (dynamic_cast<TQCheckBox*>(m_thruBox->find(4))->isChecked())
+ if (dynamic_cast<TQCheckBox*>(m_thruBox->tqfind(4))->isChecked())
thruFilter |= MappedEvent::MidiPitchBend;
- if (dynamic_cast<TQCheckBox*>(m_thruBox->find(5))->isChecked())
+ if (dynamic_cast<TQCheckBox*>(m_thruBox->tqfind(5))->isChecked())
thruFilter |= MappedEvent::MidiController;
- if (dynamic_cast<TQCheckBox*>(m_thruBox->find(6))->isChecked())
+ if (dynamic_cast<TQCheckBox*>(m_thruBox->tqfind(6))->isChecked())
thruFilter |= MappedEvent::MidiSystemMessage;
- if (dynamic_cast<TQCheckBox*>(m_recordBox->find(0))->isChecked())
+ if (dynamic_cast<TQCheckBox*>(m_recordBox->tqfind(0))->isChecked())
recordFilter |= MappedEvent::MidiNote;
- if (dynamic_cast<TQCheckBox*>(m_recordBox->find(1))->isChecked())
+ if (dynamic_cast<TQCheckBox*>(m_recordBox->tqfind(1))->isChecked())
recordFilter |= MappedEvent::MidiProgramChange;
- if (dynamic_cast<TQCheckBox*>(m_recordBox->find(2))->isChecked())
+ if (dynamic_cast<TQCheckBox*>(m_recordBox->tqfind(2))->isChecked())
recordFilter |= MappedEvent::MidiKeyPressure;
- if (dynamic_cast<TQCheckBox*>(m_recordBox->find(3))->isChecked())
+ if (dynamic_cast<TQCheckBox*>(m_recordBox->tqfind(3))->isChecked())
recordFilter |= MappedEvent::MidiChannelPressure;
- if (dynamic_cast<TQCheckBox*>(m_recordBox->find(4))->isChecked())
+ if (dynamic_cast<TQCheckBox*>(m_recordBox->tqfind(4))->isChecked())
recordFilter |= MappedEvent::MidiPitchBend;
- if (dynamic_cast<TQCheckBox*>(m_recordBox->find(5))->isChecked())
+ if (dynamic_cast<TQCheckBox*>(m_recordBox->tqfind(5))->isChecked())
recordFilter |= MappedEvent::MidiController;
- if (dynamic_cast<TQCheckBox*>(m_recordBox->find(6))->isChecked())
+ if (dynamic_cast<TQCheckBox*>(m_recordBox->tqfind(6))->isChecked())
recordFilter |= MappedEvent::MidiSystemMessage;
diff --git a/src/gui/seqmanager/MidiFilterDialog.h b/src/gui/seqmanager/MidiFilterDialog.h
index aaeda9c..370ea14 100644
--- a/src/gui/seqmanager/MidiFilterDialog.h
+++ b/src/gui/seqmanager/MidiFilterDialog.h
@@ -42,8 +42,9 @@ class RosegardenGUIDoc;
class MidiFilterDialog : public KDialogBase
{
Q_OBJECT
+ TQ_OBJECT
public:
- MidiFilterDialog(TQWidget *parent,
+ MidiFilterDialog(TQWidget *tqparent,
RosegardenGUIDoc *doc);
void setModified(bool value);
diff --git a/src/gui/seqmanager/SegmentMmapper.cpp b/src/gui/seqmanager/SegmentMmapper.cpp
index 37575b2..23f4c6b 100644
--- a/src/gui/seqmanager/SegmentMmapper.cpp
+++ b/src/gui/seqmanager/SegmentMmapper.cpp
@@ -60,7 +60,7 @@ SegmentMmapper::SegmentMmapper(RosegardenGUIDoc* doc,
m_mmappedRegion(0),
m_mmappedEventBuffer((MappedEvent*)0)
{
- SEQMAN_DEBUG << "SegmentMmapper : " << this
+ SETQMAN_DEBUG << "SegmentMmapper : " << this
<< " trying to mmap " << m_fileName
<< endl;
@@ -68,12 +68,12 @@ SegmentMmapper::SegmentMmapper(RosegardenGUIDoc* doc,
S_IRUSR | S_IWUSR);
if (m_fd < 0) {
perror("SegmentMmapper::SegmentMmapper: Failed to open mmap file for writing");
- SEQMAN_DEBUG << "SegmentMmapper : Couldn't open " << m_fileName
+ SETQMAN_DEBUG << "SegmentMmapper : Couldn't open " << m_fileName
<< endl;
throw Exception("Couldn't open " + qstrtostr(m_fileName));
}
- // SEQMAN_DEBUG << "SegmentMmapper : mmap size = " << m_mmappedSize
+ // SETQMAN_DEBUG << "SegmentMmapper : mmap size = " << m_mmappedSize
// << endl;
}
@@ -86,18 +86,18 @@ void SegmentMmapper::init()
doMmap();
dump();
if (m_segment != 0) {
- SEQMAN_DEBUG << "SegmentMmapper::init : mmap size = " << m_mmappedSize
+ SETQMAN_DEBUG << "SegmentMmapper::init : mmap size = " << m_mmappedSize
<< " for segment " << m_segment->getLabel() << endl;
}
} else {
- SEQMAN_DEBUG << "SegmentMmapper::init : mmap size = 0 - skipping mmapping for now\n";
+ SETQMAN_DEBUG << "SegmentMmapper::init : mmap size = 0 - skipping mmapping for now\n";
}
}
SegmentMmapper::~SegmentMmapper()
{
- SEQMAN_DEBUG << "~SegmentMmapper : " << this
+ SETQMAN_DEBUG << "~SegmentMmapper : " << this
<< " unmapping " << (void*)m_mmappedRegion
<< " of size " << m_mmappedSize
<< endl;
@@ -106,7 +106,7 @@ SegmentMmapper::~SegmentMmapper()
::munmap(m_mmappedRegion, m_mmappedSize);
::close(m_fd);
- SEQMAN_DEBUG << "~SegmentMmapper : removing " << m_fileName << endl;
+ SETQMAN_DEBUG << "~SegmentMmapper : removing " << m_fileName << endl;
TQFile::remove
(m_fileName);
@@ -118,7 +118,7 @@ bool SegmentMmapper::refresh()
size_t newMmappedSize = computeMmappedSize() + sizeof(size_t);
- SEQMAN_DEBUG << "SegmentMmapper::refresh() - " << getFileName()
+ SETQMAN_DEBUG << "SegmentMmapper::refresh() - " << getFileName()
<< " - m_mmappedRegion = " << (void*)m_mmappedRegion
<< " - m_mmappedEventBuffer = " << (void*)m_mmappedEventBuffer
<< " - new size = " << newMmappedSize
@@ -157,7 +157,7 @@ bool SegmentMmapper::refresh()
void SegmentMmapper::setFileSize(size_t size)
{
- SEQMAN_DEBUG << "SegmentMmapper::setFileSize() : setting size of "
+ SETQMAN_DEBUG << "SegmentMmapper::setFileSize() : setting size of "
<< m_fileName << " to " << size
<< " - current size = " << m_mmappedSize << endl;
@@ -173,7 +173,7 @@ void SegmentMmapper::setFileSize(size_t size)
// so go the safe way
if (size == 0) {
- SEQMAN_DEBUG << "SegmentMmapper : size == 0 : no resize to do\n";
+ SETQMAN_DEBUG << "SegmentMmapper : size == 0 : no resize to do\n";
return ;
}
@@ -203,13 +203,13 @@ void SegmentMmapper::setFileSize(size_t size)
void SegmentMmapper::remap(size_t newsize)
{
- SEQMAN_DEBUG << "SegmentMmapper : remapping " << m_fileName
+ SETQMAN_DEBUG << "SegmentMmapper : remapping " << m_fileName
<< " from size " << m_mmappedSize
<< " to size " << newsize << endl;
if (!m_mmappedRegion) { // nothing to mremap, just mmap
- SEQMAN_DEBUG << "SegmentMmapper : nothing to remap - mmap instead\n";
+ SETQMAN_DEBUG << "SegmentMmapper : nothing to remap - mmap instead\n";
m_mmappedSize = newsize;
doMmap();
@@ -222,7 +222,7 @@ void SegmentMmapper::remap(size_t newsize)
m_mmappedEventBuffer = (MappedEvent *)((size_t *)m_mmappedRegion + 1);
if (m_mmappedRegion != oldBuffer) {
- SEQMAN_DEBUG << "NOTE: buffer moved from " << oldBuffer <<
+ SETQMAN_DEBUG << "NOTE: buffer moved from " << oldBuffer <<
" to " << (void *)m_mmappedRegion << endl;
}
#else
@@ -234,7 +234,7 @@ void SegmentMmapper::remap(size_t newsize)
#endif
if (m_mmappedRegion == (void*) - 1) {
- SEQMAN_DEBUG << TQString("mremap failed : (%1) %2\n").arg(errno).arg(strerror(errno));
+ SETQMAN_DEBUG << TQString("mremap failed : (%1) %2\n").tqarg(errno).tqarg(strerror(errno));
throw Exception("mremap failed");
}
@@ -253,11 +253,11 @@ void SegmentMmapper::doMmap()
m_mmappedEventBuffer = (MappedEvent *)((size_t *)m_mmappedRegion + 1);
if (m_mmappedRegion == (void*) - 1) {
- SEQMAN_DEBUG << TQString("mmap failed : (%1) %2\n").arg(errno).arg(strerror(errno));
+ SETQMAN_DEBUG << TQString("mmap failed : (%1) %2\n").tqarg(errno).tqarg(strerror(errno));
throw Exception("mmap failed");
}
- SEQMAN_DEBUG << "SegmentMmapper::doMmap() - mmap size : " << m_mmappedSize
+ SETQMAN_DEBUG << "SegmentMmapper::doMmap() - mmap size : " << m_mmappedSize
<< " at " << (void*)m_mmappedRegion << endl;
}
@@ -401,7 +401,7 @@ void SegmentMmapper::dump()
++bufPos;
} catch (...) {
- SEQMAN_DEBUG << "SegmentMmapper::dump - caught exception while trying to create MappedEvent\n";
+ SETQMAN_DEBUG << "SegmentMmapper::dump - caught exception while trying to create MappedEvent\n";
}
}
}
@@ -473,7 +473,7 @@ SegmentMmapper::mergeTriggerSegment(Segment **target,
timeT d = (*i)->getDuration();
if (evDuration != trDuration &&
- timeAdjust == BaseProperties::TRIGGER_SEGMENT_ADJUST_SQUISH) {
+ timeAdjust == BaseProperties::TRIGGER_SEGMENT_ADJUST_STQUISH) {
t = timeT(double(t * evDuration) / double(trDuration));
d = timeT(double(d * evDuration) / double(trDuration));
}
diff --git a/src/gui/seqmanager/SegmentMmapperFactory.cpp b/src/gui/seqmanager/SegmentMmapperFactory.cpp
index 4f40cd6..f681580 100644
--- a/src/gui/seqmanager/SegmentMmapperFactory.cpp
+++ b/src/gui/seqmanager/SegmentMmapperFactory.cpp
@@ -46,7 +46,7 @@ SegmentMmapper* SegmentMmapperFactory::makeMmapperForSegment(RosegardenGUIDoc* d
SegmentMmapper* mmapper = 0;
if (segment == 0) {
- SEQMAN_DEBUG << "SegmentMmapperFactory::makeMmapperForSegment() segment == 0\n";
+ SETQMAN_DEBUG << "SegmentMmapperFactory::makeMmapperForSegment() segment == 0\n";
return 0;
}
@@ -58,7 +58,7 @@ SegmentMmapper* SegmentMmapperFactory::makeMmapperForSegment(RosegardenGUIDoc* d
mmapper = new AudioSegmentMmapper(doc, segment, fileName);
break;
default:
- SEQMAN_DEBUG << "SegmentMmapperFactory::makeMmapperForSegment(" << segment
+ SETQMAN_DEBUG << "SegmentMmapperFactory::makeMmapperForSegment(" << segment
<< ") : can't map, unknown segment type " << segment->getType() << endl;
mmapper = 0;
}
diff --git a/src/gui/seqmanager/SequenceManager.cpp b/src/gui/seqmanager/SequenceManager.cpp
index 4ebe945..1176e3a 100644
--- a/src/gui/seqmanager/SequenceManager.cpp
+++ b/src/gui/seqmanager/SequenceManager.cpp
@@ -90,8 +90,8 @@ SequenceManager::SequenceManager(RosegardenGUIDoc *doc,
m_metronomeMmapper(SegmentMmapperFactory::makeMetronome(m_doc)),
m_tempoSegmentMmapper(SegmentMmapperFactory::makeTempo(m_doc)),
m_timeSigSegmentMmapper(SegmentMmapperFactory::makeTimeSig(m_doc)),
- m_transportStatus(STOPPED),
- m_soundDriverStatus(NO_DRIVER),
+ m_transporttqStatus(STOPPED),
+ m_soundDrivertqStatus(NO_DRIVER),
m_transport(transport),
m_lastRewoundAt(clock()),
m_countdownDialog(0),
@@ -114,7 +114,7 @@ SequenceManager::SequenceManager(RosegardenGUIDoc *doc,
// m_compositionMmapper->cleanup();
m_countdownDialog = new CountdownDialog(dynamic_cast<TQWidget*>
- (m_doc->parent())->parentWidget());
+ (m_doc->tqparent())->tqparentWidget());
// Connect these for use later
//
connect(m_countdownTimer, TQT_SIGNAL(timeout()),
@@ -133,7 +133,7 @@ SequenceManager::SequenceManager(RosegardenGUIDoc *doc,
m_doc->getComposition().addObserver(this);
// The owner of this sequence manager will need to call
- // checkSoundDriverStatus on it to set up its status appropriately
+ // checkSoundDrivertqStatus on it to set up its status appropriately
// immediately after construction; we used to do it from here but
// we're not well placed to handle reporting to the user if it
// throws an exception (and we don't want to leave the object half
@@ -148,7 +148,7 @@ SequenceManager::~SequenceManager()
{
m_doc->getComposition().removeObserver(this);
- SEQMAN_DEBUG << "SequenceManager::~SequenceManager()\n";
+ SETQMAN_DEBUG << "SequenceManager::~SequenceManager()\n";
delete m_compositionMmapper;
delete m_controlBlockMmapper;
delete m_metronomeMmapper;
@@ -159,7 +159,7 @@ SequenceManager::~SequenceManager()
void SequenceManager::setDocument(RosegardenGUIDoc* doc)
{
- SEQMAN_DEBUG << "SequenceManager::setDocument(" << doc << ")\n";
+ SETQMAN_DEBUG << "SequenceManager::setDocument(" << doc << ")\n";
DataBlockRepository::clear();
@@ -180,7 +180,7 @@ void SequenceManager::setDocument(RosegardenGUIDoc* doc)
delete m_compositionMmapperResetTimer;
m_countdownDialog = new CountdownDialog(dynamic_cast<TQWidget*>
- (m_doc->parent())->parentWidget());
+ (m_doc->tqparent())->tqparentWidget());
// Bug 933041: no longer connect the CountdownDialog from
// SequenceManager; instead let the RosegardenGUIApp connect it to
@@ -201,7 +201,7 @@ void SequenceManager::setDocument(RosegardenGUIDoc* doc)
for (Composition::iterator i = comp.begin(); i != comp.end(); ++i) {
- SEQMAN_DEBUG << "Adding segment with rid " << (*i)->getRuntimeId() << endl;
+ SETQMAN_DEBUG << "Adding segment with rid " << (*i)->getRuntimeId() << endl;
m_segments.insert(SegmentRefreshMap::value_type
(*i, (*i)->getNewRefreshStatusId()));
@@ -228,9 +228,9 @@ void SequenceManager::setDocument(RosegardenGUIDoc* doc)
}
void
-SequenceManager::setTransportStatus(const TransportStatus &status)
+SequenceManager::setTransporttqStatus(const TransporttqStatus &status)
{
- m_transportStatus = status;
+ m_transporttqStatus = status;
}
void
@@ -256,14 +256,14 @@ SequenceManager::play()
// If already playing or recording then stop
//
- if (m_transportStatus == PLAYING ||
- m_transportStatus == RECORDING ) {
+ if (m_transporttqStatus == PLAYING ||
+ m_transporttqStatus == RECORDING ) {
stopping();
return true;
}
// This check may throw an exception
- checkSoundDriverStatus(false);
+ checkSoundDrivertqStatus(false);
// Align Instrument lists and send initial program changes
//
@@ -284,15 +284,15 @@ SequenceManager::play()
//!!! disable the record button, because recording while playing is horribly
// broken, and disabling it is less complicated than fixing it
// see #1223025 - DMM
- // SEQMAN_DEBUG << "SequenceManager::play() - disabling record button, as we are playing\n";
+ // SETQMAN_DEBUG << "SequenceManager::play() - disabling record button, as we are playing\n";
// m_transport->RecordButton()->setEnabled(false);
if (comp.getCurrentTempo() == 0) {
comp.setCompositionDefaultTempo(comp.getTempoForQpm(120.0));
- SEQMAN_DEBUG << "SequenceManager::play() - setting Tempo to Default value of 120.000\n";
+ SETQMAN_DEBUG << "SequenceManager::play() - setting Tempo to Default value of 120.000\n";
} else {
- SEQMAN_DEBUG << "SequenceManager::play() - starting to play\n";
+ SETQMAN_DEBUG << "SequenceManager::play() - starting to play\n";
}
// Send initial tempo
@@ -369,7 +369,7 @@ SequenceManager::play()
// Send Play to the Sequencer
if (!rgapp->sequencerCall("play(long int, long int, long int, long int, long int, long int, long int, long int, long int, long int, long int)",
replyType, replyData, data)) {
- m_transportStatus = STOPPED;
+ m_transporttqStatus = STOPPED;
return false;
}
@@ -380,9 +380,9 @@ SequenceManager::play()
if (result) {
// completed successfully
- m_transportStatus = STARTING_TO_PLAY;
+ m_transporttqStatus = STARTING_TO_PLAY;
} else {
- m_transportStatus = STOPPED;
+ m_transporttqStatus = STOPPED;
std::cerr << "ERROR: SequenceManager::play(): Failed to start playback!" << std::endl;
}
@@ -400,7 +400,7 @@ SequenceManager::stopping()
// Do this here rather than in stop() to avoid any potential
// race condition (we use setPointerPosition() during stop()).
//
- if (m_transportStatus == STOPPED) {
+ if (m_transporttqStatus == STOPPED) {
/*!!!
if (m_doc->getComposition().isLooping())
m_doc->slotSetPointerPosition(m_doc->getComposition().getLoopStart());
@@ -414,17 +414,17 @@ SequenceManager::stopping()
// Disarm recording and drop back to STOPPED
//
- if (m_transportStatus == RECORDING_ARMED) {
- m_transportStatus = STOPPED;
+ if (m_transporttqStatus == RECORDING_ARMED) {
+ m_transporttqStatus = STOPPED;
m_transport->RecordButton()->setOn(false);
m_transport->MetronomeButton()->
setOn(m_doc->getComposition().usePlayMetronome());
return ;
}
- SEQMAN_DEBUG << "SequenceManager::stopping() - preparing to stop\n";
+ SETQMAN_DEBUG << "SequenceManager::stopping() - preparing to stop\n";
- // SEQMAN_DEBUG << kdBacktrace() << endl;
+ // SETQMAN_DEBUG << kdBacktrace() << endl;
stop();
@@ -436,7 +436,7 @@ SequenceManager::stop()
{
// Toggle off the buttons - first record
//
- if (m_transportStatus == RECORDING) {
+ if (m_transporttqStatus == RECORDING) {
m_transport->RecordButton()->setOn(false);
m_transport->MetronomeButton()->
setOn(m_doc->getComposition().usePlayMetronome());
@@ -452,7 +452,7 @@ SequenceManager::stop()
// re-enable the record button if it was previously disabled when
// going into play mode - DMM
- // SEQMAN_DEBUG << "SequenceManager::stop() - re-enabling record button\n";
+ // SETQMAN_DEBUG << "SequenceManager::stop() - re-enabling record button\n";
// m_transport->RecordButton()->setEnabled(true);
@@ -464,7 +464,7 @@ SequenceManager::stop()
// wait cursor
//
- TQApplication::setOverrideCursor(TQCursor(Qt::waitCursor));
+ TQApplication::setOverrideCursor(TQCursor(TQt::waitCursor));
TQCString replyType;
TQByteArray replyData;
@@ -477,25 +477,25 @@ SequenceManager::stop()
// restore
TQApplication::restoreOverrideCursor();
- TransportStatus status = m_transportStatus;
+ TransporttqStatus status = m_transporttqStatus;
// set new transport status first, so that if we're stopping
// recording we don't risk the record segment being restored by a
// timer while the document is busy trying to do away with it
- m_transportStatus = STOPPED;
+ m_transporttqStatus = STOPPED;
// if we're recording MIDI or Audio then tidy up the recording Segment
if (status == RECORDING) {
m_doc->stopRecordingMidi();
m_doc->stopRecordingAudio();
- SEQMAN_DEBUG << "SequenceManager::stop() - stopped recording\n";
+ SETQMAN_DEBUG << "SequenceManager::stop() - stopped recording\n";
}
// always untoggle the play button at this stage
//
m_transport->PlayButton()->setOn(false);
- SEQMAN_DEBUG << "SequenceManager::stop() - stopped playing\n";
+ SETQMAN_DEBUG << "SequenceManager::stop() - stopped playing\n";
// We don't reset controllers at this point - what happens with static
// controllers the next time we play otherwise? [rwb]
@@ -515,7 +515,7 @@ SequenceManager::rewind()
std::pair<timeT, timeT> barRange =
composition.getBarRangeForTime(position - 1);
- if (m_transportStatus == PLAYING) {
+ if (m_transporttqStatus == PLAYING) {
// if we're playing and we had a rewind request less than 200ms
// ago and we're some way into the bar but less than half way
@@ -524,7 +524,7 @@ SequenceManager::rewind()
clock_t now = clock();
int elapsed = (now - m_lastRewoundAt) * 1000 / CLOCKS_PER_SEC;
- SEQMAN_DEBUG << "That was " << m_lastRewoundAt << ", this is " << now << ", elapsed is " << elapsed << endl;
+ SETQMAN_DEBUG << "That was " << m_lastRewoundAt << ", this is " << now << ", elapsed is " << elapsed << endl;
if (elapsed >= 0 && elapsed <= 200) {
if (position > barRange.first &&
@@ -563,10 +563,10 @@ SequenceManager::fastforward()
}
void
-SequenceManager::notifySequencerStatus(TransportStatus status)
+SequenceManager::notifySequencertqStatus(TransporttqStatus status)
{
// for the moment we don't do anything fancy
- m_transportStatus = status;
+ m_transporttqStatus = status;
}
@@ -586,7 +586,7 @@ SequenceManager::record(bool toggled)
{
mapSequencer();
- SEQMAN_DEBUG << "SequenceManager::record(" << toggled << ")" << endl;
+ SETQMAN_DEBUG << "SequenceManager::record(" << toggled << ")" << endl;
Composition &comp = m_doc->getComposition();
Studio &studio = m_doc->getStudio();
@@ -611,7 +611,7 @@ SequenceManager::record(bool toggled)
Instrument *instr = studio.getInstrumentById(instrId);
if (instr && instr->getType() == Instrument::Audio) {
- if (!m_doc || !(m_soundDriverStatus & AUDIO_OK)) {
+ if (!m_doc || !(m_soundDrivertqStatus & AUDIO_OK)) {
m_transport->RecordButton()->setOn(false);
throw(Exception("Audio subsystem is not available - can't record audio"));
}
@@ -623,9 +623,9 @@ SequenceManager::record(bool toggled)
if (toggled) { // preparing record or punch-in record
- if (m_transportStatus == RECORDING_ARMED) {
- SEQMAN_DEBUG << "SequenceManager::record - unarming record\n";
- m_transportStatus = STOPPED;
+ if (m_transporttqStatus == RECORDING_ARMED) {
+ SETQMAN_DEBUG << "SequenceManager::record - unarming record\n";
+ m_transporttqStatus = STOPPED;
// Toggle the buttons
m_transport->MetronomeButton()->setOn(comp.usePlayMetronome());
@@ -634,9 +634,9 @@ SequenceManager::record(bool toggled)
return ;
}
- if (m_transportStatus == STOPPED) {
- SEQMAN_DEBUG << "SequenceManager::record - armed record\n";
- m_transportStatus = RECORDING_ARMED;
+ if (m_transporttqStatus == STOPPED) {
+ SETQMAN_DEBUG << "SequenceManager::record - armed record\n";
+ m_transporttqStatus = RECORDING_ARMED;
// Toggle the buttons
m_transport->MetronomeButton()->setOn(comp.useRecordMetronome());
@@ -645,8 +645,8 @@ SequenceManager::record(bool toggled)
return ;
}
- if (m_transportStatus == RECORDING) {
- SEQMAN_DEBUG << "SequenceManager::record - stop recording and keep playing\n";
+ if (m_transporttqStatus == RECORDING) {
+ SETQMAN_DEBUG << "SequenceManager::record - stop recording and keep playing\n";
TQByteArray data;
TQCString replyType;
@@ -654,12 +654,12 @@ SequenceManager::record(bool toggled)
// Send Record to the Sequencer to signal it to drop out of record mode
if (!rgapp->sequencerCall("punchOut()", replyType, replyData, data)) {
- SEQMAN_DEBUG << "SequenceManager::record - the \"not very plausible\" code executed\n";
+ SETQMAN_DEBUG << "SequenceManager::record - the \"not very plausible\" code executed\n";
// #1797873 - set new transport status first, so that
// if we're stopping recording we don't risk the
// record segment being restored by a timer while the
// document is busy trying to do away with it
- m_transportStatus = STOPPED;
+ m_transporttqStatus = STOPPED;
m_doc->stopRecordingMidi();
m_doc->stopRecordingAudio();
@@ -667,7 +667,7 @@ SequenceManager::record(bool toggled)
}
// #1797873 - as above
- m_transportStatus = PLAYING;
+ m_transporttqStatus = PLAYING;
m_doc->stopRecordingMidi();
m_doc->stopRecordingAudio();
@@ -675,8 +675,8 @@ SequenceManager::record(bool toggled)
return ;
}
- if (m_transportStatus == PLAYING) {
- SEQMAN_DEBUG << "SequenceManager::record - punch in recording\n";
+ if (m_transporttqStatus == PLAYING) {
+ SETQMAN_DEBUG << "SequenceManager::record - punch in recording\n";
punchIn = true;
goto punchin;
}
@@ -720,7 +720,7 @@ punchin:
}
// may throw an exception
- checkSoundDriverStatus(false);
+ checkSoundDrivertqStatus(false);
// toggle the Metronome button if it's in use
m_transport->MetronomeButton()->setOn(comp.useRecordMetronome());
@@ -738,7 +738,7 @@ punchin:
if (comp.isLooping())
m_doc->slotSetPointerPosition(comp.getLoopStart());
else {
- if (m_transportStatus != RECORDING_ARMED && punchIn == false) {
+ if (m_transporttqStatus != RECORDING_ARMED && punchIn == false) {
int startBar = comp.getBarNumber(comp.getPosition());
startBar -= config->readUnsignedNumEntry("countinbars", 0);
m_doc->slotSetPointerPosition(comp.getBarRange(startBar).first);
@@ -767,7 +767,7 @@ punchin:
InstrumentId iid = comp.getTrackById(*i)->getInstrument();
Instrument *inst = studio.getInstrumentById(iid);
if (inst && (inst->getType() != Instrument::Audio)) {
- SEQMAN_DEBUG << "SequenceManager: mdoc->addRecordMIDISegment(" << *i << ")" << endl;
+ SETQMAN_DEBUG << "SequenceManager: mdoc->addRecordMIDISegment(" << *i << ")" << endl;
m_doc->addRecordMIDISegment(*i);
}
}
@@ -778,10 +778,10 @@ punchin:
m_transport->PlayButton()->setOn(true);
if (comp.getCurrentTempo() == 0) {
- SEQMAN_DEBUG << "SequenceManager::play() - setting Tempo to Default value of 120.000\n";
+ SETQMAN_DEBUG << "SequenceManager::play() - setting Tempo to Default value of 120.000\n";
comp.setCompositionDefaultTempo(comp.getTempoForQpm(120.0));
} else {
- SEQMAN_DEBUG << "SequenceManager::record() - starting to record\n";
+ SETQMAN_DEBUG << "SequenceManager::record() - starting to record\n";
}
// set the tempo in the transport
@@ -853,7 +853,7 @@ punchin:
if (!rgapp->sequencerCall("record(long int, long int, long int, long int, long int, long int, long int, long int, long int, long int, long int, long int)",
replyType, replyData, data)) {
// failed
- m_transportStatus = STOPPED;
+ m_transporttqStatus = STOPPED;
return ;
}
@@ -865,7 +865,7 @@ punchin:
if (result) {
// completed successfully
- m_transportStatus = STARTING_TO_RECORD;
+ m_transporttqStatus = STARTING_TO_RECORD;
// Create the countdown timer dialog to show recording time
// remaining. (Note (dmm) this has changed, and it now reports
@@ -898,9 +898,9 @@ punchin:
//m_countdownDialog->show();
} else {
- // Stop immediately - turn off buttons in parent
+ // Stop immediately - turn off buttons in tqparent
//
- m_transportStatus = STOPPED;
+ m_transporttqStatus = STOPPED;
if (haveAudioInstrument) {
throw(Exception("Couldn't start recording audio.\nPlease set a valid file path in the Document Properties\n(Composition menu -> Edit Document Properties -> Audio)."));
@@ -950,7 +950,7 @@ SequenceManager::processAsynchronousMidi(const MappedComposition &mC,
if ((*i)->getType() >= MappedEvent::Audio) {
if ((*i)->getType() == MappedEvent::AudioStopped) {
/*
- SEQMAN_DEBUG << "AUDIO FILE ID = "
+ SETQMAN_DEBUG << "AUDIO FILE ID = "
<< int((*i)->getData1())
<< " - FILE STOPPED - "
<< "INSTRUMENT = "
@@ -971,7 +971,7 @@ SequenceManager::processAsynchronousMidi(const MappedComposition &mC,
if ((*i)->getType() ==
MappedEvent::AudioGeneratePreview) {
- SEQMAN_DEBUG << "Received AudioGeneratePreview: data1 is " << int((*i)->getData1()) << ", data2 " << int((*i)->getData2()) << ", instrument is " << (*i)->getInstrument() << endl;
+ SETQMAN_DEBUG << "Received AudioGeneratePreview: data1 is " << int((*i)->getData1()) << ", data2 " << int((*i)->getData2()) << ", instrument is " << (*i)->getInstrument() << endl;
m_doc->finalizeAudioFile((int)(*i)->getData1() +
(int)(*i)->getData2() * 256);
@@ -990,11 +990,11 @@ SequenceManager::processAsynchronousMidi(const MappedComposition &mC,
restoreRecordSubscriptions();
}
- if (m_transportStatus == PLAYING ||
- m_transportStatus == RECORDING) {
+ if (m_transporttqStatus == PLAYING ||
+ m_transporttqStatus == RECORDING) {
if ((*i)->getType() == MappedEvent::SystemFailure) {
- SEQMAN_DEBUG << "Failure of some sort..." << endl;
+ SETQMAN_DEBUG << "Failure of some sort..." << endl;
bool handling = true;
@@ -1010,13 +1010,13 @@ SequenceManager::processAsynchronousMidi(const MappedComposition &mC,
} else if ((*i)->getData1() == MappedEvent::FailureJackRestartFailed) {
KMessageBox::error(
- dynamic_cast<TQWidget*>(m_doc->parent())->parentWidget(),
+ dynamic_cast<TQWidget*>(m_doc->tqparent())->tqparentWidget(),
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<TQWidget*>(m_doc->parent())->parentWidget(),
+ dynamic_cast<TQWidget*>(m_doc->tqparent())->tqparentWidget(),
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<TQWidget*>(m_doc->parent())->parentWidget(),
+ dynamic_cast<TQWidget*>(m_doc->tqparent())->tqparentWidget(),
i18n("Run out of processor power for real-time audio processing. Cannot continue."));
#endif
@@ -1041,7 +1041,7 @@ SequenceManager::processAsynchronousMidi(const MappedComposition &mC,
continue;
if (!m_canReport) {
- SEQMAN_DEBUG << "Not reporting it to user just yet"
+ SETQMAN_DEBUG << "Not reporting it to user just yet"
<< endl;
continue;
}
@@ -1146,13 +1146,13 @@ SequenceManager::processAsynchronousMidi(const MappedComposition &mC,
if ((*i)->getData1() == MappedEvent::FailureJackRestartFailed) {
KMessageBox::error(
- dynamic_cast<TQWidget*>(m_doc->parent()),
+ dynamic_cast<TQWidget*>(m_doc->tqparent()),
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<TQWidget*>(m_doc->parent()),
+ dynamic_cast<TQWidget*>(m_doc->tqparent()),
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<TQWidget*>(m_doc->parent()),
+ dynamic_cast<TQWidget*>(m_doc->tqparent()),
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<TQWidget*>(m_doc->parent()),
+ dynamic_cast<TQWidget*>(m_doc->tqparent()),
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);
@@ -1201,8 +1201,8 @@ SequenceManager::processAsynchronousMidi(const MappedComposition &mC,
// out any incoming external controller events
for (i = mC.begin(); i != mC.end(); ++i ) {
- if (m_transportStatus == STOPPED ||
- m_transportStatus == RECORDING_ARMED) {
+ if (m_transporttqStatus == STOPPED ||
+ m_transporttqStatus == RECORDING_ARMED) {
if ((*i)->getType() == MappedEvent::MidiNote) {
if ((*i)->getVelocity() == 0) {
emit insertableNoteOffReceived((*i)->getPitch(), (*i)->getVelocity());
@@ -1212,7 +1212,7 @@ SequenceManager::processAsynchronousMidi(const MappedComposition &mC,
}
}
if ((*i)->getRecordedDevice() == Device::CONTROL_DEVICE) {
- SEQMAN_DEBUG << "controllerDeviceEventReceived" << endl;
+ SETQMAN_DEBUG << "controllerDeviceEventReceived" << endl;
emit controllerDeviceEventReceived(*i);
}
}
@@ -1221,14 +1221,14 @@ SequenceManager::processAsynchronousMidi(const MappedComposition &mC,
void
SequenceManager::rewindToBeginning()
{
- SEQMAN_DEBUG << "SequenceManager::rewindToBeginning()\n";
+ SETQMAN_DEBUG << "SequenceManager::rewindToBeginning()\n";
m_doc->slotSetPointerPosition(m_doc->getComposition().getStartMarker());
}
void
SequenceManager::fastForwardToEnd()
{
- SEQMAN_DEBUG << "SequenceManager::fastForwardToEnd()\n";
+ SETQMAN_DEBUG << "SequenceManager::fastForwardToEnd()\n";
Composition &comp = m_doc->getComposition();
m_doc->slotSetPointerPosition(comp.getDuration());
@@ -1238,7 +1238,7 @@ void
SequenceManager::setLoop(const timeT &lhs, const timeT &rhs)
{
// do not set a loop if JACK transport sync is enabled, because this is
- // completely broken, and apparently broken due to a limitation of JACK
+ // completely broken, and aptqparently broken due to a limitation of JACK
// transport itself. #1240039 - DMM
// KConfig* config = kapp->config();
// config->setGroup(SequencerOptionsConfigGroup);
@@ -1269,7 +1269,7 @@ SequenceManager::setLoop(const timeT &lhs, const timeT &rhs)
}
void
-SequenceManager::checkSoundDriverStatus(bool warnUser)
+SequenceManager::checkSoundDrivertqStatus(bool warnUser)
{
TQByteArray data;
TQCString replyType;
@@ -1278,28 +1278,28 @@ SequenceManager::checkSoundDriverStatus(bool warnUser)
streamOut << TQString(VERSION);
- if (! rgapp->sequencerCall("getSoundDriverStatus(TQString)",
+ if (! rgapp->sequencerCall("getSoundDrivertqStatus(TQString)",
replyType, replyData, data)) {
- m_soundDriverStatus = NO_DRIVER;
+ m_soundDrivertqStatus = NO_DRIVER;
} else {
TQDataStream streamIn(replyData, IO_ReadOnly);
unsigned int result;
streamIn >> result;
- m_soundDriverStatus = result;
+ m_soundDrivertqStatus = result;
}
- SEQMAN_DEBUG << "Sound driver status is: " << m_soundDriverStatus << endl;
+ SETQMAN_DEBUG << "Sound driver status is: " << m_soundDrivertqStatus << endl;
if (!warnUser) return;
#ifdef HAVE_LIBJACK
- if ((m_soundDriverStatus & (AUDIO_OK | MIDI_OK | VERSION_OK)) ==
+ if ((m_soundDrivertqStatus & (AUDIO_OK | MIDI_OK | VERSION_OK)) ==
(AUDIO_OK | MIDI_OK | VERSION_OK)) return;
#else
- if ((m_soundDriverStatus & (MIDI_OK | VERSION_OK)) ==
+ if ((m_soundDrivertqStatus & (MIDI_OK | VERSION_OK)) ==
(MIDI_OK | VERSION_OK)) return;
#endif
@@ -1308,24 +1308,24 @@ SequenceManager::checkSoundDriverStatus(bool warnUser)
TQString text = "";
- if (m_soundDriverStatus == NO_DRIVER) {
+ if (m_soundDrivertqStatus == 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>");
- } else if (!(m_soundDriverStatus & MIDI_OK)) {
+ } else if (!(m_soundDrivertqStatus & MIDI_OK)) {
text = i18n("<p>The MIDI subsystem has failed to initialize.</p><p>You may continue without the sequencer, but we suggest closing Rosegarden, running \"modprobe snd-seq-midi\" 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>");
- } else if (!(m_soundDriverStatus & VERSION_OK)) {
+ } else if (!(m_soundDrivertqStatus & VERSION_OK)) {
text = i18n("<p>The Rosegarden sequencer module version does not match the GUI module version.</p><p>You have probably mixed up files from two different versions of Rosegarden. Please check your installation.</p>");
}
if (text != "") {
RosegardenGUIApp::self()->awaitDialogClearance();
KMessageBox::error(RosegardenGUIApp::self(),
- i18n("<h3>Sequencer startup failed</h3>%1").arg(text));
+ i18n("<h3>Sequencer startup failed</h3>%1").tqarg(text));
CurrentProgressDialog::thaw();
return;
}
#ifdef HAVE_LIBJACK
- if (!(m_soundDriverStatus & AUDIO_OK)) {
+ if (!(m_soundDrivertqStatus & AUDIO_OK)) {
RosegardenGUIApp::self()->awaitDialogClearance();
KMessageBox::information(RosegardenGUIApp::self(), i18n("<h3>Failed to connect to JACK audio server.</h3><p>Rosegarden could not connect to the JACK audio server. This probably means the JACK server is not running.</p><p>If you want to be able to play or record audio files or use plugins, you should exit Rosegarden and start the JACK server before running Rosegarden again.</p>"),
i18n("Failed to connect to JACK"),
@@ -1421,7 +1421,7 @@ void
SequenceManager::sendAudioLevel(MappedEvent *mE)
{
RosegardenGUIView *v;
- QList<RosegardenGUIView>& viewList = m_doc->getViewList();
+ TQList<RosegardenGUIView>& viewList = m_doc->getViewList();
for (v = viewList.first(); v != 0; v = viewList.next()) {
v->showVisuals(mE);
@@ -1432,7 +1432,7 @@ SequenceManager::sendAudioLevel(MappedEvent *mE)
void
SequenceManager::resetControllers()
{
- SEQMAN_DEBUG << "SequenceManager::resetControllers - resetting\n";
+ SETQMAN_DEBUG << "SequenceManager::resetControllers - resetting\n";
// Should do all Midi Instrument - not just guess like this is doing
// currently.
@@ -1459,7 +1459,7 @@ SequenceManager::resetControllers()
void
SequenceManager::resetMidiNetwork()
{
- SEQMAN_DEBUG << "SequenceManager::resetMidiNetwork - resetting\n";
+ SETQMAN_DEBUG << "SequenceManager::resetMidiNetwork - resetting\n";
MappedComposition mC;
// Should do all Midi Instrument - not just guess like this is doing
@@ -1492,7 +1492,7 @@ SequenceManager::sendMIDIRecordingDevice(const TQString recordDeviceStr)
MidiByte(true));
StudioControl::sendMappedEvent(mE);
- SEQMAN_DEBUG << "set MIDI record device to "
+ SETQMAN_DEBUG << "set MIDI record device to "
<< recordDevice << endl;
}
}
@@ -1558,7 +1558,7 @@ SequenceManager::reinitialiseSequencerStudio()
void
SequenceManager::panic()
{
- SEQMAN_DEBUG << "panic button\n";
+ SETQMAN_DEBUG << "panic button\n";
stopping();
@@ -1628,7 +1628,7 @@ SequenceManager::applyFiltering(const MappedComposition &mC,
void SequenceManager::resetCompositionMmapper()
{
- SEQMAN_DEBUG << "SequenceManager::resetCompositionMmapper()\n";
+ SETQMAN_DEBUG << "SequenceManager::resetCompositionMmapper()\n";
delete m_compositionMmapper;
m_compositionMmapper = new CompositionMmapper(m_doc);
@@ -1640,7 +1640,7 @@ void SequenceManager::resetCompositionMmapper()
void SequenceManager::resetMetronomeMmapper()
{
- SEQMAN_DEBUG << "SequenceManager::resetMetronomeMmapper()\n";
+ SETQMAN_DEBUG << "SequenceManager::resetMetronomeMmapper()\n";
delete m_metronomeMmapper;
m_metronomeMmapper = SegmentMmapperFactory::makeMetronome(m_doc);
@@ -1648,7 +1648,7 @@ void SequenceManager::resetMetronomeMmapper()
void SequenceManager::resetTempoSegmentMmapper()
{
- SEQMAN_DEBUG << "SequenceManager::resetTempoSegmentMmapper()\n";
+ SETQMAN_DEBUG << "SequenceManager::resetTempoSegmentMmapper()\n";
delete m_tempoSegmentMmapper;
m_tempoSegmentMmapper = SegmentMmapperFactory::makeTempo(m_doc);
@@ -1656,7 +1656,7 @@ void SequenceManager::resetTempoSegmentMmapper()
void SequenceManager::resetTimeSigSegmentMmapper()
{
- SEQMAN_DEBUG << "SequenceManager::resetTimeSigSegmentMmapper()\n";
+ SETQMAN_DEBUG << "SequenceManager::resetTimeSigSegmentMmapper()\n";
delete m_timeSigSegmentMmapper;
m_timeSigSegmentMmapper = SegmentMmapperFactory::makeTimeSig(m_doc);
@@ -1664,7 +1664,7 @@ void SequenceManager::resetTimeSigSegmentMmapper()
void SequenceManager::resetControlBlockMmapper()
{
- SEQMAN_DEBUG << "SequenceManager::resetControlBlockMmapper()\n";
+ SETQMAN_DEBUG << "SequenceManager::resetControlBlockMmapper()\n";
m_controlBlockMmapper->setDocument(m_doc);
}
@@ -1672,10 +1672,10 @@ void SequenceManager::resetControlBlockMmapper()
bool SequenceManager::event(TQEvent *e)
{
if (e->type() == TQEvent::User) {
- SEQMAN_DEBUG << "SequenceManager::event() with user event\n";
+ SETQMAN_DEBUG << "SequenceManager::event() with user event\n";
if (m_updateRequested) {
- SEQMAN_DEBUG << "SequenceManager::event(): update requested\n";
- checkRefreshStatus();
+ SETQMAN_DEBUG << "SequenceManager::event(): update requested\n";
+ checkRefreshtqStatus();
m_updateRequested = false;
}
return true;
@@ -1686,16 +1686,16 @@ bool SequenceManager::event(TQEvent *e)
void SequenceManager::update()
{
- SEQMAN_DEBUG << "SequenceManager::update()\n";
+ SETQMAN_DEBUG << "SequenceManager::update()\n";
// schedule a refresh-status check for the next event loop
TQEvent *e = new TQEvent(TQEvent::User);
m_updateRequested = true;
TQApplication::postEvent(this, e);
}
-void SequenceManager::checkRefreshStatus()
+void SequenceManager::checkRefreshtqStatus()
{
- SEQMAN_DEBUG << "SequenceManager::checkRefreshStatus()\n";
+ SETQMAN_DEBUG << "SequenceManager::checkRefreshtqStatus()\n";
// Look at trigger segments first: if one of those has changed, we'll
// need to be aware of it when scanning segments subsequently
@@ -1716,20 +1716,20 @@ void SequenceManager::checkRefreshStatus()
newTriggerMap[s] = m_triggerSegments[s];
}
- if (s->getRefreshStatus(newTriggerMap[s]).needsRefresh()) {
+ if (s->getRefreshtqStatus(newTriggerMap[s]).needsRefresh()) {
TriggerSegmentRec::SegmentRuntimeIdSet &thisSet = (*i)->getReferences();
ridset.insert(thisSet.begin(), thisSet.end());
- s->getRefreshStatus(newTriggerMap[s]).setNeedsRefresh(false);
+ s->getRefreshtqStatus(newTriggerMap[s]).setNeedsRefresh(false);
}
}
m_triggerSegments = newTriggerMap;
- SEQMAN_DEBUG << "SequenceManager::checkRefreshStatus: segments modified by changes to trigger segments are:" << endl;
+ SETQMAN_DEBUG << "SequenceManager::checkRefreshtqStatus: segments modified by changes to trigger segments are:" << endl;
int x = 0;
for (TriggerSegmentRec::SegmentRuntimeIdSet::iterator i = ridset.begin();
i != ridset.end(); ++i) {
- SEQMAN_DEBUG << x << ": " << *i << endl;
+ SETQMAN_DEBUG << x << ": " << *i << endl;
++x;
}
@@ -1741,16 +1741,16 @@ void SequenceManager::checkRefreshStatus()
}
m_removedSegments.clear();
- SEQMAN_DEBUG << "SequenceManager::checkRefreshStatus: we have "
+ SETQMAN_DEBUG << "SequenceManager::checkRefreshtqStatus: we have "
<< m_segments.size() << " segments" << endl;
// then the ones which are still there
for (SegmentRefreshMap::iterator i = m_segments.begin();
i != m_segments.end(); ++i) {
- if (i->first->getRefreshStatus(i->second).needsRefresh() ||
+ if (i->first->getRefreshtqStatus(i->second).needsRefresh() ||
ridset.find(i->first->getRuntimeId()) != ridset.end()) {
segmentModified(i->first);
- i->first->getRefreshStatus(i->second).setNeedsRefresh(false);
+ i->first->getRefreshtqStatus(i->second).setNeedsRefresh(false);
}
}
@@ -1763,21 +1763,21 @@ void SequenceManager::checkRefreshStatus()
void SequenceManager::segmentModified(Segment* s)
{
- SEQMAN_DEBUG << "SequenceManager::segmentModified(" << s << ")\n";
+ SETQMAN_DEBUG << "SequenceManager::segmentModified(" << s << ")\n";
bool sizeChanged = m_compositionMmapper->segmentModified(s);
- SEQMAN_DEBUG << "SequenceManager::segmentModified() : size changed = "
+ SETQMAN_DEBUG << "SequenceManager::segmentModified() : size changed = "
<< sizeChanged << endl;
- if ((m_transportStatus == PLAYING) && sizeChanged) {
+ if ((m_transporttqStatus == PLAYING) && sizeChanged) {
TQByteArray data;
TQDataStream streamOut(data, IO_WriteOnly);
streamOut << (TQString)m_compositionMmapper->getSegmentFileName(s);
streamOut << (size_t)m_compositionMmapper->getSegmentFileSize(s);
- SEQMAN_DEBUG << "SequenceManager::segmentModified() : DCOP-call sequencer remapSegment"
+ SETQMAN_DEBUG << "SequenceManager::segmentModified() : DCOP-call sequencer remapSegment"
<< m_compositionMmapper->getSegmentFileName(s) << endl;
rgapp->sequencerSend("remapSegment(TQString, size_t)", data);
@@ -1786,13 +1786,13 @@ void SequenceManager::segmentModified(Segment* s)
void SequenceManager::segmentAdded(const Composition*, Segment* s)
{
- SEQMAN_DEBUG << "SequenceManager::segmentAdded(" << s << ")\n";
+ SETQMAN_DEBUG << "SequenceManager::segmentAdded(" << s << ")\n";
m_addedSegments.push_back(s);
}
void SequenceManager::segmentRemoved(const Composition*, Segment* s)
{
- SEQMAN_DEBUG << "SequenceManager::segmentRemoved(" << s << ")\n";
+ SETQMAN_DEBUG << "SequenceManager::segmentRemoved(" << s << ")\n";
m_removedSegments.push_back(s);
std::vector<Segment*>::iterator i = find(m_addedSegments.begin(), m_addedSegments.end(), s);
if (i != m_addedSegments.end())
@@ -1801,21 +1801,21 @@ void SequenceManager::segmentRemoved(const Composition*, Segment* s)
void SequenceManager::segmentRepeatChanged(const Composition*, Segment* s, bool repeat)
{
- SEQMAN_DEBUG << "SequenceManager::segmentRepeatChanged(" << s << ", " << repeat << ")\n";
+ SETQMAN_DEBUG << "SequenceManager::segmentRepeatChanged(" << s << ", " << repeat << ")\n";
segmentModified(s);
}
void SequenceManager::segmentRepeatEndChanged(const Composition*, Segment* s, timeT newEndTime)
{
- SEQMAN_DEBUG << "SequenceManager::segmentRepeatEndChanged(" << s << ", " << newEndTime << ")\n";
+ SETQMAN_DEBUG << "SequenceManager::segmentRepeatEndChanged(" << s << ", " << newEndTime << ")\n";
segmentModified(s);
}
void SequenceManager::segmentEventsTimingChanged(const Composition*, Segment * s, timeT t, RealTime)
{
- SEQMAN_DEBUG << "SequenceManager::segmentEventsTimingChanged(" << s << ", " << t << ")\n";
+ SETQMAN_DEBUG << "SequenceManager::segmentEventsTimingChanged(" << s << ", " << t << ")\n";
segmentModified(s);
- if (s && s->getType() == Segment::Audio && m_transportStatus == PLAYING) {
+ if (s && s->getType() == Segment::Audio && m_transporttqStatus == PLAYING) {
TQByteArray data;
rgapp->sequencerSend("remapTracks()", data);
}
@@ -1823,15 +1823,15 @@ void SequenceManager::segmentEventsTimingChanged(const Composition*, Segment * s
void SequenceManager::segmentTransposeChanged(const Composition*, Segment *s, int transpose)
{
- SEQMAN_DEBUG << "SequenceManager::segmentTransposeChanged(" << s << ", " << transpose << ")\n";
+ SETQMAN_DEBUG << "SequenceManager::segmentTransposeChanged(" << s << ", " << transpose << ")\n";
segmentModified(s);
}
void SequenceManager::segmentTrackChanged(const Composition*, Segment *s, TrackId id)
{
- SEQMAN_DEBUG << "SequenceManager::segmentTrackChanged(" << s << ", " << id << ")\n";
+ SETQMAN_DEBUG << "SequenceManager::segmentTrackChanged(" << s << ", " << id << ")\n";
segmentModified(s);
- if (s && s->getType() == Segment::Audio && m_transportStatus == PLAYING) {
+ if (s && s->getType() == Segment::Audio && m_transporttqStatus == PLAYING) {
TQByteArray data;
rgapp->sequencerSend("remapTracks()", data);
}
@@ -1839,17 +1839,17 @@ void SequenceManager::segmentTrackChanged(const Composition*, Segment *s, TrackI
void SequenceManager::segmentEndMarkerChanged(const Composition*, Segment *s, bool)
{
- SEQMAN_DEBUG << "SequenceManager::segmentEndMarkerChanged(" << s << ")\n";
+ SETQMAN_DEBUG << "SequenceManager::segmentEndMarkerChanged(" << s << ")\n";
segmentModified(s);
}
void SequenceManager::processAddedSegment(Segment* s)
{
- SEQMAN_DEBUG << "SequenceManager::processAddedSegment(" << s << ")\n";
+ SETQMAN_DEBUG << "SequenceManager::processAddedSegment(" << s << ")\n";
m_compositionMmapper->segmentAdded(s);
- if (m_transportStatus == PLAYING) {
+ if (m_transporttqStatus == PLAYING) {
TQByteArray data;
TQDataStream streamOut(data, IO_WriteOnly);
@@ -1857,7 +1857,7 @@ void SequenceManager::processAddedSegment(Segment* s)
streamOut << m_compositionMmapper->getSegmentFileName(s);
if (!rgapp->sequencerSend("addSegment(TQString)", data)) {
- m_transportStatus = STOPPED;
+ m_transporttqStatus = STOPPED;
}
}
@@ -1869,12 +1869,12 @@ void SequenceManager::processAddedSegment(Segment* s)
void SequenceManager::processRemovedSegment(Segment* s)
{
- SEQMAN_DEBUG << "SequenceManager::processRemovedSegment(" << s << ")\n";
+ SETQMAN_DEBUG << "SequenceManager::processRemovedSegment(" << s << ")\n";
TQString filename = m_compositionMmapper->getSegmentFileName(s);
m_compositionMmapper->segmentDeleted(s);
- if (m_transportStatus == PLAYING) {
+ if (m_transporttqStatus == PLAYING) {
TQByteArray data;
TQDataStream streamOut(data, IO_WriteOnly);
@@ -1883,7 +1883,7 @@ void SequenceManager::processRemovedSegment(Segment* s)
if (!rgapp->sequencerSend("deleteSegment(TQString)", data)) {
// failed
- m_transportStatus = STOPPED;
+ m_transporttqStatus = STOPPED;
}
}
@@ -1893,7 +1893,7 @@ void SequenceManager::processRemovedSegment(Segment* s)
void SequenceManager::endMarkerTimeChanged(const Composition *, bool /*shorten*/)
{
- SEQMAN_DEBUG << "SequenceManager::endMarkerTimeChanged()\n";
+ SETQMAN_DEBUG << "SequenceManager::endMarkerTimeChanged()\n";
m_compositionMmapperResetTimer->start(500, true); // schedule a composition mmapper reset in 0.5s
}
@@ -1904,10 +1904,10 @@ void SequenceManager::timeSignatureChanged(const Composition *)
void SequenceManager::trackChanged(const Composition *, Track* t)
{
- SEQMAN_DEBUG << "SequenceManager::trackChanged(" << t << ", " << (t ? t->getPosition() : -1) << ")\n";
+ SETQMAN_DEBUG << "SequenceManager::trackChanged(" << t << ", " << (t ? t->getPosition() : -1) << ")\n";
m_controlBlockMmapper->updateTrackData(t);
- if (m_transportStatus == PLAYING) {
+ if (m_transporttqStatus == PLAYING) {
TQByteArray data;
rgapp->sequencerSend("remapTracks()", data);
}
@@ -1924,7 +1924,7 @@ void SequenceManager::metronomeChanged(InstrumentId id,
// This method is called when the user has changed the
// metronome instrument, pitch etc
- SEQMAN_DEBUG << "SequenceManager::metronomeChanged (simple)"
+ SETQMAN_DEBUG << "SequenceManager::metronomeChanged (simple)"
<< ", instrument = "
<< id
<< endl;
@@ -1933,7 +1933,7 @@ void SequenceManager::metronomeChanged(InstrumentId id,
resetMetronomeMmapper();
m_controlBlockMmapper->updateMetronomeData(id);
- if (m_transportStatus == PLAYING) {
+ if (m_transporttqStatus == PLAYING) {
m_controlBlockMmapper->updateMetronomeForPlayback();
} else {
m_controlBlockMmapper->updateMetronomeForRecord();
@@ -1949,7 +1949,7 @@ void SequenceManager::metronomeChanged(const Composition *)
// This method is called when the muting status in the composition
// has changed -- the metronome itself has not actually changed
- SEQMAN_DEBUG << "SequenceManager::metronomeChanged "
+ SETQMAN_DEBUG << "SequenceManager::metronomeChanged "
<< ", instrument = "
<< m_metronomeMmapper->getMetronomeInstrument()
<< endl;
@@ -1957,7 +1957,7 @@ void SequenceManager::metronomeChanged(const Composition *)
m_controlBlockMmapper->updateMetronomeData
(m_metronomeMmapper->getMetronomeInstrument());
- if (m_transportStatus == PLAYING) {
+ if (m_transporttqStatus == PLAYING) {
m_controlBlockMmapper->updateMetronomeForPlayback();
} else {
m_controlBlockMmapper->updateMetronomeForRecord();
@@ -1973,7 +1973,7 @@ void SequenceManager::filtersChanged(MidiFilter thruFilter,
void SequenceManager::soloChanged(const Composition *, bool solo, TrackId selectedTrack)
{
if (m_controlBlockMmapper->updateSoloData(solo, selectedTrack)) {
- if (m_transportStatus == PLAYING) {
+ if (m_transporttqStatus == PLAYING) {
TQByteArray data;
rgapp->sequencerSend("remapTracks()", data);
}
@@ -1982,7 +1982,7 @@ void SequenceManager::soloChanged(const Composition *, bool solo, TrackId select
void SequenceManager::tempoChanged(const Composition *c)
{
- SEQMAN_DEBUG << "SequenceManager::tempoChanged()\n";
+ SETQMAN_DEBUG << "SequenceManager::tempoChanged()\n";
// Refresh all segments
//
@@ -1999,7 +1999,7 @@ void SequenceManager::tempoChanged(const Composition *c)
if (c->isLooping())
setLoop(c->getLoopStart(), c->getLoopEnd());
- else if (m_transportStatus == PLAYING) {
+ else if (m_transporttqStatus == PLAYING) {
// If the tempo changes during playback, reset the pointer
// position because the sequencer keeps track of position in
// real time and we want to maintain the same position in
diff --git a/src/gui/seqmanager/SequenceManager.h b/src/gui/seqmanager/SequenceManager.h
index 4713aab..c723e79 100644
--- a/src/gui/seqmanager/SequenceManager.h
+++ b/src/gui/seqmanager/SequenceManager.h
@@ -66,6 +66,7 @@ class AudioManagerDialog;
class SequenceManager : public TQObject, public CompositionObserver
{
Q_OBJECT
+ TQ_OBJECT
public:
SequenceManager(RosegardenGUIDoc *doc,
TransportDialog *transport);
@@ -101,7 +102,7 @@ public:
void fastForwardToEnd();
void setLoop(const timeT &lhs, const timeT &rhs);
- void notifySequencerStatus(TransportStatus status);
+ void notifySequencertqStatus(TransporttqStatus status);
void sendSequencerJump(const RealTime &time);
// Events coming in
@@ -111,7 +112,7 @@ public:
// Before playing and recording. If warnUser is true, show the
// user a warning dialog if there is a problem with the setup.
//
- void checkSoundDriverStatus(bool warnUser);
+ void checkSoundDrivertqStatus(bool warnUser);
/**
* Send program changes and align Instrument lists before playback
@@ -125,8 +126,8 @@ public:
void preparePlayback(bool forceProgramChanges = false);
/// Check and set sequencer status
- void setTransportStatus(const TransportStatus &status);
- TransportStatus getTransportStatus() const { return m_transportStatus; }
+ void setTransporttqStatus(const TransporttqStatus &status);
+ TransporttqStatus getTransporttqStatus() const { return m_transporttqStatus; }
/**
* Suspend the sequencer to allow for a safe DCOP call() i.e. one
@@ -139,7 +140,7 @@ public:
void sendAudioLevel(MappedEvent *mE);
/// Find what has been initialised and what hasn't
- unsigned int getSoundDriverStatus() { return m_soundDriverStatus; }
+ unsigned int getSoundDrivertqStatus() { return m_soundDrivertqStatus; }
/// Reset MIDI controllers
void resetControllers();
@@ -246,7 +247,7 @@ protected:
void resetMetronomeMmapper();
void resetTempoSegmentMmapper();
void resetTimeSigSegmentMmapper();
- void checkRefreshStatus();
+ void checkRefreshtqStatus();
void sendMIDIRecordingDevice(const TQString recordDeviceStr);
void restoreRecordSubscriptions();
bool shouldWarnForImpreciseTimer();
@@ -266,8 +267,8 @@ protected:
bool m_metronomeNeedsRefresh;
// statuses
- TransportStatus m_transportStatus;
- unsigned int m_soundDriverStatus;
+ TransporttqStatus m_transporttqStatus;
+ unsigned int m_soundDrivertqStatus;
// pointer to the transport dialog
TransportDialog *m_transport;
diff --git a/src/gui/seqmanager/SequencerMapper.cpp b/src/gui/seqmanager/SequencerMapper.cpp
index af4ca09..b39d7ef 100644
--- a/src/gui/seqmanager/SequencerMapper.cpp
+++ b/src/gui/seqmanager/SequencerMapper.cpp
@@ -74,7 +74,7 @@ SequencerMapper::map()
if (m_fd < 0) {
RG_DEBUG << "SequencerMapper::map() : Couldn't open " << m_filename
<< endl;
- throw Exception("Couldn't open " + std::string(m_filename.data()));
+ throw Exception("Couldn't open " + std::string(m_filename.ascii()));
}
m_mmappedSize = sizeof(SequencerDataBlock);
@@ -83,7 +83,7 @@ SequencerMapper::map()
if (m_mmappedBuffer == (void*) - 1) {
RG_DEBUG << TQString("mmap failed : (%1) %2\n").
- arg(errno).arg(strerror(errno));
+ tqarg(errno).tqarg(strerror(errno));
throw Exception("mmap failed");
}