summaryrefslogtreecommitdiffstats
path: root/src/gui/seqmanager/ControlBlockMmapper.cpp
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/ControlBlockMmapper.cpp
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/ControlBlockMmapper.cpp')
-rw-r--r--src/gui/seqmanager/ControlBlockMmapper.cpp16
1 files changed, 8 insertions, 8 deletions
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);