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

CAContext * CAMainWin::currentContext (  ) 

Returns the currently selected context in the current view port or 0 if no contexts are selected.

Definition at line 1112 of file mainwin.cpp.

Referenced by on_uiAssociatedVoice_activated(), on_uiContextName_returnPressed(), on_uiContextProperties_triggered(), on_uiRemoveContext_triggered(), on_uiStanzaNumber_valueChanged(), on_uiVoiceNum_valChanged(), pasteAt(), updateContextToolBar(), updateInsertToolBar(), and updateVoiceToolBar().

                                     {
      if ( currentViewPort() &&
           (currentViewPort()->viewPortType() == CAViewPort::ScoreViewPort) &&
           (static_cast<CAScoreViewPort*>(currentViewPort())->currentContext())
         ) {
            return static_cast<CAScoreViewPort*>(currentViewPort())->currentContext()->context();
      } else
            return 0;
}


Generated by  Doxygen 1.6.0   Back to index