Logo Search packages:      
Sourcecode: canorus version File versions  Download package

void CAMainWin::onRepaintTimerTimeout (  )  [private, slot]

Called every few miliseconds during playback to repaint score viewport as the GUI can only be repainted from the main thread.

Definition at line 2625 of file mainwin.cpp.

References _playbackViewPort, CAScoreViewPort::addToSelection(), CAScoreViewPort::clearSelection(), and CAPlayback::curPlaying().

Referenced by on_uiPlayFromSelection_toggled().

      CAScoreViewPort *sv = static_cast<CAScoreViewPort*>(_playbackViewPort);
      for (int i=0; i<_playback->curPlaying().size(); i++) {
            if (_playback->curPlaying().at(i)->musElementType()==CAMusElement::Note) {
                  sv->addToSelection( _playback->curPlaying()[i] );

Generated by  Doxygen 1.6.0   Back to index