diff options
author | Timothy Pearson <[email protected]> | 2011-12-15 15:33:46 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-15 15:33:46 -0600 |
commit | 4faf11eccc5f08d2aa0540157d6eff80b7cdb02a (patch) | |
tree | 19bc4d69423c21bcde8ac0cb6fcb11146ae19137 /src/sequencer/main.cpp | |
parent | e6d6692eda797b10f322a83ffdcf23fca719709e (diff) | |
download | rosegarden-4faf11eccc5f08d2aa0540157d6eff80b7cdb02a.tar.gz rosegarden-4faf11eccc5f08d2aa0540157d6eff80b7cdb02a.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'src/sequencer/main.cpp')
-rw-r--r-- | src/sequencer/main.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/sequencer/main.cpp b/src/sequencer/main.cpp index 4c10362..af3d9a3 100644 --- a/src/sequencer/main.cpp +++ b/src/sequencer/main.cpp @@ -131,21 +131,21 @@ int main(int argc, char *argv[]) // make sure the loop doesn't eat up all the // processor - we're not in that much of a rush! // - TransporttqStatus lastSeqtqStatus = roseSeq->gettqStatus(); + TransportStatus lastSeqStatus = roseSeq->getStatus(); RealTime sleepTime = RealTime(0, 10000000); - while (!_exiting && roseSeq && roseSeq->gettqStatus() != TQUIT) { + while (!_exiting && roseSeq && roseSeq->getStatus() != TQUIT) { bool atLeisure = true; - switch (roseSeq->gettqStatus()) { + switch (roseSeq->getStatus()) { case STARTING_TO_PLAY: if (!roseSeq->startPlaying()) { // send result failed and stop Sequencer - roseSeq->settqStatus(STOPPING); + roseSeq->setStatus(STOPPING); } else { - roseSeq->settqStatus(PLAYING); + roseSeq->setStatus(PLAYING); } break; @@ -153,7 +153,7 @@ int main(int argc, char *argv[]) if (!roseSeq->keepPlaying()) { // there's a problem or the piece has // finished - so stop playing - roseSeq->settqStatus(STOPPING); + roseSeq->setStatus(STOPPING); } else { // process any async events // @@ -163,9 +163,9 @@ int main(int argc, char *argv[]) case STARTING_TO_RECORD: if (!roseSeq->startPlaying()) { - roseSeq->settqStatus(STOPPING); + roseSeq->setStatus(STOPPING); } else { - roseSeq->settqStatus(RECORDING); + roseSeq->setStatus(RECORDING); } break; @@ -173,7 +173,7 @@ int main(int argc, char *argv[]) if (!roseSeq->keepPlaying()) { // there's a problem or the piece has // finished - so stop playing - roseSeq->settqStatus(STOPPING); + roseSeq->setStatus(STOPPING); } else { // Now process any incoming MIDI events // and return them to the gui @@ -196,7 +196,7 @@ int main(int argc, char *argv[]) // There's no call to roseSeq to actually process the // stop, because this arises from a DCOP call from the GUI // direct to roseSeq to start with - roseSeq->settqStatus(STOPPED); + roseSeq->setStatus(STOPPED); SEQUENCER_DEBUG << "RosegardenSequencer - Stopped" << endl; break; @@ -226,10 +226,10 @@ int main(int argc, char *argv[]) // we want to process transport changes immediately if (roseSeq->checkExternalTransport()) { atLeisure = false; - } else if (lastSeqtqStatus != roseSeq->gettqStatus()) { - SEQUENCER_DEBUG << "Sequencer status changed from " << lastSeqtqStatus << " to " << roseSeq->gettqStatus() << endl; - roseSeq->notifySequencertqStatus(); - lastSeqtqStatus = roseSeq->gettqStatus(); + } else if (lastSeqStatus != roseSeq->getStatus()) { + SEQUENCER_DEBUG << "Sequencer status changed from " << lastSeqStatus << " to " << roseSeq->getStatus() << endl; + roseSeq->notifySequencerStatus(); + lastSeqStatus = roseSeq->getStatus(); atLeisure = false; } |