summaryrefslogtreecommitdiffstats
path: root/src/sequencer/RosegardenSequencerApp.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-15 15:33:46 -0600
committerTimothy Pearson <[email protected]>2011-12-15 15:33:46 -0600
commit4faf11eccc5f08d2aa0540157d6eff80b7cdb02a (patch)
tree19bc4d69423c21bcde8ac0cb6fcb11146ae19137 /src/sequencer/RosegardenSequencerApp.cpp
parente6d6692eda797b10f322a83ffdcf23fca719709e (diff)
downloadrosegarden-4faf11eccc5f08d2aa0540157d6eff80b7cdb02a.tar.gz
rosegarden-4faf11eccc5f08d2aa0540157d6eff80b7cdb02a.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'src/sequencer/RosegardenSequencerApp.cpp')
-rw-r--r--src/sequencer/RosegardenSequencerApp.cpp68
1 files changed, 34 insertions, 34 deletions
diff --git a/src/sequencer/RosegardenSequencerApp.cpp b/src/sequencer/RosegardenSequencerApp.cpp
index 9e9b301..51240dc 100644
--- a/src/sequencer/RosegardenSequencerApp.cpp
+++ b/src/sequencer/RosegardenSequencerApp.cpp
@@ -66,7 +66,7 @@ namespace Rosegarden
RosegardenSequencerApp::RosegardenSequencerApp() :
DCOPObject("RosegardenSequencerIface"),
m_driver(0),
- m_transporttqStatus(STOPPED),
+ m_transportStatus(STOPPED),
m_songPosition(0, 0),
m_lastFetchSongPosition(0, 0),
m_readAhead(0, 80000000), // default value
@@ -143,7 +143,7 @@ RosegardenSequencerApp::quit()
close();
// and break out of the loop next time around
- m_transporttqStatus = TQUIT;
+ m_transportStatus = TQUIT;
}
@@ -152,7 +152,7 @@ RosegardenSequencerApp::stop()
{
// set our state at this level to STOPPING (pending any
// unfinished NOTES)
- m_transporttqStatus = STOPPING;
+ m_transportStatus = STOPPING;
// report
//
@@ -186,7 +186,7 @@ RosegardenSequencerApp::fetchEvents(MappedComposition &composition,
{
// Always return nothing if we're stopped
//
- if ( m_transporttqStatus == STOPPED || m_transporttqStatus == STOPPING )
+ if ( m_transportStatus == STOPPED || m_transportStatus == STOPPING )
return ;
// If we're looping then we should get as much of the rest of
@@ -361,8 +361,8 @@ RosegardenSequencerApp::updateClocks()
// If we're not playing etc. then that's all we need to do
//
- if (m_transporttqStatus != PLAYING &&
- m_transporttqStatus != RECORDING)
+ if (m_transportStatus != PLAYING &&
+ m_transportStatus != RECORDING)
return ;
RealTime newPosition = m_driver->getSequencerTime();
@@ -409,13 +409,13 @@ RosegardenSequencerApp::updateClocks()
}
void
-RosegardenSequencerApp::notifySequencertqStatus()
+RosegardenSequencerApp::notifySequencerStatus()
{
TQByteArray data, replyData;
TQCString replyType;
TQDataStream arg(data, IO_WriteOnly);
- arg << (int)m_transporttqStatus;
+ arg << (int)m_transportStatus;
if (!kapp->dcopClient()->send(ROSEGARDEN_GUI_APP_NAME,
ROSEGARDEN_GUI_IFACE_NAME,
@@ -645,12 +645,12 @@ RosegardenSequencerApp::record(const RealTime &time,
long smallFileSize,
long recordMode)
{
- TransporttqStatus localRecordMode = (TransporttqStatus) recordMode;
+ TransportStatus localRecordMode = (TransportStatus) recordMode;
- SEQUENCER_DEBUG << "RosegardenSequencerApp::record - recordMode is " << recordMode << ", transport status is " << m_transporttqStatus << endl;
+ SEQUENCER_DEBUG << "RosegardenSequencerApp::record - recordMode is " << recordMode << ", transport status is " << m_transportStatus << endl;
// punch in recording
- if (m_transporttqStatus == PLAYING) {
+ if (m_transportStatus == PLAYING) {
if (localRecordMode == STARTING_TO_RECORD) {
SEQUENCER_DEBUG << "RosegardenSequencerApp::record: punching in" << endl;
localRecordMode = RECORDING; // no need to start playback
@@ -758,7 +758,7 @@ RosegardenSequencerApp::record(const RealTime &time,
// Now set the local transport status to the record mode
//
//
- m_transporttqStatus = localRecordMode;
+ m_transportStatus = localRecordMode;
if (localRecordMode == RECORDING) { // punch in
return 1;
@@ -787,14 +787,14 @@ RosegardenSequencerApp::play(const RealTime &time,
const RealTime &audioWrite,
long smallFileSize)
{
- if (m_transporttqStatus == PLAYING ||
- m_transporttqStatus == STARTING_TO_PLAY)
+ if (m_transportStatus == PLAYING ||
+ m_transportStatus == STARTING_TO_PLAY)
return true;
// Check for record toggle (punch out)
//
- if (m_transporttqStatus == RECORDING) {
- m_transporttqStatus = PLAYING;
+ if (m_transportStatus == RECORDING) {
+ m_transportStatus = PLAYING;
return punchOut();
}
@@ -809,9 +809,9 @@ RosegardenSequencerApp::play(const RealTime &time,
(m_songPosition);
}
- if (m_transporttqStatus != RECORDING &&
- m_transporttqStatus != STARTING_TO_RECORD) {
- m_transporttqStatus = STARTING_TO_PLAY;
+ if (m_transportStatus != RECORDING &&
+ m_transportStatus != STARTING_TO_RECORD) {
+ m_transportStatus = STARTING_TO_PLAY;
}
m_driver->stopClocks();
@@ -898,9 +898,9 @@ RosegardenSequencerApp::punchOut()
{
// Check for record toggle (punch out)
//
- if (m_transporttqStatus == RECORDING) {
+ if (m_transportStatus == RECORDING) {
m_driver->punchOut();
- m_transporttqStatus = PLAYING;
+ m_transportStatus = PLAYING;
return true;
}
return false;
@@ -943,7 +943,7 @@ void RosegardenSequencerApp::cleanupMmapData()
void RosegardenSequencerApp::remapSegment(const TQString& filename, size_t newSize)
{
- if (m_transporttqStatus != PLAYING)
+ if (m_transportStatus != PLAYING)
return ;
SEQUENCER_DEBUG << "RosegardenSequencerApp::remapSegment(" << filename << ")\n";
@@ -955,7 +955,7 @@ void RosegardenSequencerApp::remapSegment(const TQString& filename, size_t newSi
void RosegardenSequencerApp::addSegment(const TQString& filename)
{
- if (m_transporttqStatus != PLAYING)
+ if (m_transportStatus != PLAYING)
return ;
SEQUENCER_DEBUG << "MmappedSegment::addSegment(" << filename << ")\n";
@@ -968,7 +968,7 @@ void RosegardenSequencerApp::addSegment(const TQString& filename)
void RosegardenSequencerApp::deleteSegment(const TQString& filename)
{
- if (m_transporttqStatus != PLAYING)
+ if (m_transportStatus != PLAYING)
return ;
SEQUENCER_DEBUG << "MmappedSegment::deleteSegment(" << filename << ")\n";
@@ -1097,18 +1097,18 @@ RosegardenSequencerApp::setLoop(long loopStartSec,
// Return the status of the sound systems (audio and MIDI)
//
unsigned int
-RosegardenSequencerApp::getSoundDrivertqStatus(const TQString &guiVersion)
+RosegardenSequencerApp::getSoundDriverStatus(const TQString &guiVersion)
{
- unsigned int drivertqStatus = m_driver->gettqStatus();
+ unsigned int driverStatus = m_driver->getStatus();
if (guiVersion == VERSION)
- drivertqStatus |= VERSION_OK;
+ driverStatus |= VERSION_OK;
else {
std::cerr << "WARNING: RosegardenSequencerApp::getSoundDriverStatus: "
<< "GUI version \"" << guiVersion.ascii()
<< "\" does not match sequencer version \"" << VERSION
<< "\"" << std::endl;
}
- return drivertqStatus;
+ return driverStatus;
}
@@ -1561,8 +1561,8 @@ RosegardenSequencerApp::connectMappedObjects(int id1, int id2)
// When this happens we need to resynchronise our audio processing,
// and this is the easiest (and most brutal) way to do it.
- if (m_transporttqStatus == PLAYING ||
- m_transporttqStatus == RECORDING) {
+ if (m_transportStatus == PLAYING ||
+ m_transportStatus == RECORDING) {
RealTime seqTime = m_driver->getSequencerTime();
jumpTo(seqTime.sec, seqTime.nsec);
}
@@ -1637,8 +1637,8 @@ RosegardenSequencerApp::slotCheckForNewClients()
{
// Don't do this check if any of these conditions hold
//
- if (m_transporttqStatus == PLAYING ||
- m_transporttqStatus == RECORDING)
+ if (m_transportStatus == PLAYING ||
+ m_transportStatus == RECORDING)
return ;
if (m_driver->checkForNewClients()) {
@@ -1795,8 +1795,8 @@ RosegardenSequencerApp::checkExternalTransport()
"jumpToTime(int, int)",
data);
- if (m_transporttqStatus == PLAYING ||
- m_transporttqStatus != RECORDING) {
+ if (m_transportStatus == PLAYING ||
+ m_transportStatus != RECORDING) {
jumpTo(pair.second.sec, pair.second.usec() * 1000);
}