|
Canorus
0.7
|
Canorus main window Class CAMainWin represents Canorus main window. The core layout is generated using the Qt designer's ui/mainwin.ui file. Other widgets (specific toolbars, viewports, plugin menus) are generated manually in-code. More...
#include <plugins_swig.h>

Canorus main window Class CAMainWin represents Canorus main window. The core layout is generated using the Qt designer's ui/mainwin.ui file. Other widgets (specific toolbars, viewports, plugin menus) are generated manually in-code.
Copyright (c) 2006-2008, Reinhard Katzmann, Matevž Jekovec, Canorus development team All Rights Reserved. See AUTHORS for a complete list of authors.
Licensed under the GNU GENERAL PUBLIC LICENSE. See COPYING for details.
Canorus supports multiple main windows pointing to the same document or separated document.
Canorus uses multiple inheritance approach. See
http://doc.trolltech.com/4.2/designer-using-a-component.html#the-multiple-inheritance-approach
Class members having _ prefix are general private properties.
Private attributes with ui prefix are GUI-only widgets objects created in Qt designer or manually.
\sa CAViewPort, CACanorus| enum CAMainWin::CAMode |
| CAMainWin::CAMainWin | ( | ) | [inline] |
References pyConsoleIface.
Referenced by on_uiNewWindow_triggered().

| CAMainWin::CAMainWin | ( | QMainWindow * | oParent = 0 | ) |
Default constructor. Creates Canorus main window with parent oParent. Parent is usually null.
References _animatedScroll, _keybdInput, _lockScrollPlayback, _midiRecorderView, _mode, _playback, _playbackViewPort, _poExp, _repaintTimer, _resourceView, _timeEditedTimer, _transposeView, CACanorus::addMainWin(), createCustomActions(), CAPluginManager::enablePlugins(), CACanorus::midiDevice(), onMidiInEvent(), onTimeEditedTimerTimeout(), restartTimeEditedTime(), SelectMode, setDocument(), setRebuildUILock(), setupCustomUi(), and Ui_uiMainWindow::setupUi().

References _midiRecorderView, _musElementFactory, _playback, _poExp, _poPrintCtl, _poPrintPreviewCtl, _resourceView, _transposeView, CACanorus::cleanUp(), CAUndo::deleteUndoStack(), document(), CACanorus::mainWinCount(), CACanorus::removeMainWin(), uiClefToolBar, uiDynamicToolBar, uiFermataToolBar, uiFMToolBar, uiInsertGroup, uiInsertToolBar, uiInstrumentToolBar, uiKeySigToolBar, uiPlayableToolBar, uiRepeatMarkToolBar, uiTempoToolBar, uiTimeSigToolBar, uiVoiceToolBar, and CACanorus::undo().

| void CAMainWin::addSheet | ( | CASheet * | s | ) |
This adds a tab to tabWidget and creates a single score viewport of the sheet. It does not add the sheet to the document.
References _sheetMap, _viewPortContainerList, CAViewPortContainer::addViewPort(), initViewPort(), CASheet::name(), setCurrentViewPortContainer(), Ui_uiMainWindow::uiTabWidget, and updateToolBars().
Referenced by rebuildUI().


| void CAMainWin::clearUI | ( | ) |
Deletes all viewports (and their drawable content), disconnects all signals and resets all buttons and modes.
This function deletes the current main window's GUI only (drawable elements). All the data classes (staffs, notes, rests) should stay intact. Use delete document() to free the data part of Canorus as well.
First call clearUI() and then delete model when clearing the document, because cleraUI() still needs the model alive.
References _midiRecorderView, _sheetMap, _viewPortList, setCurrentViewPort(), Ui_uiMainWindow::uiSelectMode, and Ui_uiMainWindow::uiTabWidget.
Referenced by closeEvent(), newDocument(), openDocument(), rebuildUI(), and sourceViewPortCommit().


| void CAMainWin::closeEvent | ( | QCloseEvent * | event | ) | [private, slot] |
| void CAMainWin::copySelection | ( | CAScoreViewPort * | v | ) |
Backend for Edit->Copy.
References CALyricsContext::addSyllable(), CAStaff::addVoice(), CAVoice::append(), CALyricsContext::associatedVoice(), CATuplet::clone(), CAPlayable::clone(), CAMusElement::clone(), CASlur::clone(), CAMusElement::context(), CASheet::contextCount(), CASheet::contextList(), CAContext::contextType(), currentSheet(), CAMusElement::isPlayable(), CAContext::LyricsContext, CAMusElement::Mark, CADrawableMusElement::musElement(), CAMusElement::musElementType(), CAMusElement::Note, CATuplet::noteList(), CAStaff::numberOfLines(), CANote::phrasingSlurEnd(), CANote::phrasingSlurStart(), CASlur::PhrasingSlurType, CAScoreViewPort::selection(), CANote::setPhrasingSlurStart(), CANote::setSlurStart(), CANote::setTieStart(), CAScoreViewPort::sheet(), CAMusElement::Slur, CANote::slurEnd(), CANote::slurStart(), CASlur::SlurType, CASlur::slurType(), CAContext::Staff, CANote::tieEnd(), CANote::tieStart(), CASlur::TieType, CAMusElement::timeStart(), CAPlayable::tuplet(), CAMusElement::Tuplet, CAPlayable::voice(), CAStaff::voiceCount(), and CAStaff::voiceIndex().
Referenced by on_uiCopy_triggered(), and on_uiCut_triggered().


| void CAMainWin::createCustomActions | ( | ) | [private] |
References CAArticulation::Accent, CAMenuToolButton::addButton(), CAClef::Alto, CAClef::Baritone, CAClef::Bass, CAMark::BookMark, CAPlayableLength::Breve, CARepeatMark::Coda, CAMark::Crescendo, CADynamic::Custom, CAFunctionMark::D, CARepeatMark::DalCoda, CARepeatMark::DalSegno, CARepeatMark::DalVarCoda, document(), CABarline::Dotted, CABarline::Double, CAArticulation::DownBow, CAArticulation::DownMordent, CAArticulation::DownPrall, CAMark::Dynamic, CAPlayableLength::Eighth, CABarline::End, CAArticulation::Espressivo, CADynamic::f, CAFunctionMark::F, CAMark::Fermata, CADynamic::ff, CADynamic::fff, CADynamic::ffff, CADynamic::fffff, CAFingering::Fifth, CAMark::Fingering, CAFingering::First, CAArticulation::Flageolet, CAFingering::Fourth, CADynamic::fp, CAClef::French, CAContext::FunctionMarkContext, CAPlayableLength::Half, CAPlayableLength::HundredTwentyEighth, CAFunctionMark::II, CAFunctionMark::III, CAMark::InstrumentChange, CAFunctionMark::IV, CAFunctionMark::K, CAFunctionMark::L, CAFingering::LHeel, CAArticulation::LinePrall, CAFermata::LongFermata, CAFingering::LToe, CAContext::LyricsContext, CAArticulation::Marcato, CAClef::Mezzosoprano, CADynamic::mf, CACanorus::midiDevice(), CAArticulation::Mordent, CADynamic::mp, CAFunctionMark::N, CAFermata::NormalFermata, oldUiClefOffsetValue, CAArticulation::Open, CADynamic::p, CAMark::Pedal, CASlur::PhrasingSlurType, CADrawableKeySignature::populateComboBox(), CAArticulation::Portato, CADynamic::pp, CADynamic::ppp, CADynamic::pppp, CADynamic::ppppp, CAArticulation::Prall, CAArticulation::PrallDown, CAArticulation::PrallMordent, CAArticulation::PrallPrall, CAArticulation::PrallUp, pyConsole, pyConsoleIface, CAPlayableLength::Quarter, CAUndoToolButton::Redo, CAMark::RehersalMark, CABarline::RepeatClose, CABarline::RepeatCloseOpen, CAMark::RepeatMark, CABarline::RepeatOpen, CAArticulation::ReverseTurn, CADynamic::rfz, CAFingering::RHeel, CAMark::Ritardando, CAFingering::RToe, CAFunctionMark::S, CAFingering::Second, CARepeatMark::Segno, CADynamic::sf, CADynamic::sff, CADynamic::sfz, CAFermata::ShortFermata, CABarline::Single, CAPlayableLength::Sixteenth, CAPlayableLength::SixtyFourth, CASlur::SlurType, CAClef::Soprano, CADynamic::sp, CADynamic::spp, CAArticulation::Staccatissimo, CAArticulation::Staccato, CAContext::Staff, CANote::StemDown, CANote::StemNeutral, CANote::StemPreferred, CANote::StemUp, CAArticulation::Stopped, CAClef::Subbass, CAFunctionMark::T, CAMark::Tempo, CAClef::Tenor, CAArticulation::Tenuto, CAMark::Text, CAFingering::Third, CAPlayableLength::ThirtySecond, CAFingering::Thumb, CASlur::TieType, CAClef::Treble, CAArticulation::Trill, CAArticulation::Turn, uiArticulationType, uiAssociatedVoice, uiBarlineType, uiClefOffset, uiClefToolBar, uiClefType, uiContextName, uiContextToolBar, uiContextType, uiDynamicCustomText, uiDynamicText, uiDynamicToolBar, uiDynamicVolume, uiFermataToolBar, uiFermataType, uiFinger, uiFingeringOriginal, uiFingeringToolBar, uiFMChordArea, uiFMFunction, uiFMKeySig, uiFMTonicDegree, uiFMToolBar, uiHelpDock, uiHelpWidget, uiInsertToolBar, uiInstrumentChange, uiInstrumentToolBar, uiKeySig, uiKeySigToolBar, uiMarkType, uiNoteStemDirection, uiPlayableLength, uiPlayableToolBar, uiPyConsoleDock, uiRedo, uiRepeatMarkToolBar, uiRepeatMarkType, uiSheetName, uiSheetToolBar, uiSlurType, uiStanzaNumber, uiTempoBeat, uiTempoBpm, uiTempoEquals, uiTempoToolBar, uiTimeSigBeat, uiTimeSigBeats, uiTimeSigSlash, uiTimeSigToolBar, uiTimeSigType, uiTupletActualNumber, uiTupletInsteadOf, uiTupletNumber, uiTupletType, uiUndo, uiVoiceInstrument, uiVoiceName, uiVoiceNum, uiVoiceStemDirection, uiVoiceToolBar, CAFunctionMark::Undefined, CAUndoToolButton::Undo, CAArticulation::UpBow, CAArticulation::UpMordent, CAArticulation::UpPrall, CAFunctionMark::V, CAClef::Varbaritone, CARepeatMark::VarCoda, CAFermata::VeryLongFermata, CAFunctionMark::VI, CAFunctionMark::VII, and CAPlayableLength::Whole.
Referenced by CAMainWin().


Returns the currently selected context in the current view port or 0 if no contexts are selected.
References currentViewPort(), and CAViewPort::ScoreViewPort.
Referenced by currentStaff(), on_uiAssociatedVoice_activated(), on_uiContextName_returnPressed(), on_uiContextProperties_triggered(), on_uiLilyPondSource_triggered(), on_uiRemoveContext_triggered(), on_uiStanzaNumber_valueChanged(), on_uiVoiceNum_valChanged(), pasteAt(), updateContextToolBar(), updateInsertToolBar(), and updateVoiceToolBar().


| CAScoreViewPort* CAMainWin::currentScoreViewPort | ( | ) | [inline] |
References currentViewPort().
Referenced by CAPlugin::callAction(), currentSheet(), insertMusElementAt(), CAKeybdInput::midiInEventToScore(), newDocument(), on_uiClefOffset_valueChanged(), on_uiCopy_triggered(), on_uiCut_triggered(), on_uiDynamicCustomText_returnPressed(), on_uiDynamicText_toggled(), on_uiDynamicVolume_valueChanged(), on_uiFermataType_toggled(), on_uiFinger_toggled(), on_uiFingeringOriginal_toggled(), on_uiFMChordArea_toggled(), on_uiFMEllipse_toggled(), on_uiFMFunction_toggled(), on_uiFMTonicDegree_toggled(), on_uiHiddenRest_toggled(), on_uiImportDocument_triggered(), on_uiInstrumentChange_activated(), on_uiKeySig_activated(), on_uiNoteStemDirection_toggled(), on_uiPaste_triggered(), on_uiPlayableLength_toggled(), on_uiPlayFromSelection_toggled(), on_uiRemoveVoice_triggered(), on_uiRepeatMarkType_toggled(), on_uiSlurType_toggled(), on_uiTempoBeat_toggled(), on_uiTempoBpm_returnPressed(), on_uiTimeSigBeat_valueChanged(), on_uiTimeSigBeats_valueChanged(), on_uiTupletType_toggled(), on_uiVoiceNum_valChanged(), CAKeybdInput::onMidiInEvent(), onTextEditKeyPressEvent(), openDocument(), pasteAt(), scoreViewPortKeyPress(), scoreViewPortMousePress(), setMode(), updateClefToolBar(), updateDynamicToolBar(), updateFermataToolBar(), updateFingeringToolBar(), updateFMToolBar(), updateInstrumentToolBar(), updateKeySigToolBar(), updatePlayableToolBar(), updateRepeatMarkToolBar(), updateSheetToolBar(), updateTempoToolBar(), and updateTimeSigToolBar().

| CASheet* CAMainWin::currentSheet | ( | ) | [inline] |
Referenced by CAPlugin::callAction(), copySelection(), insertMusElementAt(), CAKeybdInput::midiInEventToScore(), on_uiAssociatedVoice_activated(), on_uiClefOffset_valueChanged(), on_uiContextName_returnPressed(), on_uiDynamicCustomText_returnPressed(), on_uiDynamicText_toggled(), on_uiDynamicVolume_valueChanged(), on_uiFermataType_toggled(), on_uiFinger_toggled(), on_uiFingeringOriginal_toggled(), on_uiFMChordArea_toggled(), on_uiFMEllipse_toggled(), on_uiFMFunction_toggled(), on_uiFMTonicDegree_toggled(), on_uiHiddenRest_toggled(), on_uiInstrumentChange_activated(), on_uiKeySig_activated(), on_uiMidiRecorder_triggered(), on_uiNewVoice_triggered(), on_uiNoteStemDirection_toggled(), on_uiPlayableLength_toggled(), on_uiPlayFromSelection_toggled(), on_uiRemoveContext_triggered(), on_uiRemoveSheet_triggered(), on_uiRemoveVoice_triggered(), on_uiRepeatMarkType_toggled(), on_uiSheetName_returnPressed(), on_uiSheetProperties_triggered(), on_uiTempoBeat_toggled(), on_uiTempoBpm_returnPressed(), on_uiTimeSigBeat_valueChanged(), on_uiTimeSigBeats_valueChanged(), on_uiTupletType_toggled(), on_uiVoiceInstrument_activated(), on_uiVoiceName_returnPressed(), on_uiVoiceStemDirection_toggled(), onTextEditKeyPressEvent(), pasteAt(), scoreViewPortKeyPress(), updateContextToolBar(), and updateInsertToolBar().

| CASheet* CAMainWin::currentSheet | ( | ) | [inline] |
References currentScoreViewPort(), and CAScoreViewPort::sheet().

| CAStaff* CAMainWin::currentStaff | ( | ) | [inline] |
References CAContext::contextType(), currentContext(), and CAContext::Staff.
Referenced by currentVoice(), on_uiLilyPondSource_triggered(), and on_uiNewVoice_triggered().


| CAViewPort* CAMainWin::currentViewPort | ( | ) | [inline] |
References _currentViewPort.
Referenced by currentContext(), currentScoreViewPort(), floatViewPortClosed(), on_uiCloseCurrentView_triggered(), on_uiInvertSelection_triggered(), on_uiNewViewport_triggered(), on_uiPlayFromSelection_toggled(), on_uiSelectAll_triggered(), on_uiTabWidget_currentChanged(), on_uiUnsplitAll_triggered(), removeSheet(), setMode(), and viewPortClicked().

| CAViewPortContainer* CAMainWin::currentViewPortContainer | ( | ) | [inline] |
References _currentViewPortContainer.
Referenced by floatViewPortClosed(), on_uiCanorusMLSource_triggered(), on_uiCloseCurrentView_triggered(), on_uiLilyPondSource_triggered(), on_uiScoreView_triggered(), on_uiSplitHorizontally_triggered(), on_uiSplitVertically_triggered(), on_uiTabWidget_currentChanged(), on_uiUnsplitAll_triggered(), and viewPortClicked().

Returns the pointer to the currently active voice or 0, if All voices are selected or the current context is not a staff at all.
References currentStaff(), CALCDNumber::getRealValue(), uiVoiceNum, CAStaff::voiceAt(), and CAStaff::voiceCount().
Referenced by insertMusElementAt(), CAKeybdInput::midiInEventToScore(), on_uiRemoveVoice_triggered(), on_uiVoiceInstrument_activated(), on_uiVoiceName_returnPressed(), on_uiVoiceProperties_triggered(), on_uiVoiceStemDirection_toggled(), scoreViewPortKeyPress(), and updateVoiceToolBar().


| void CAMainWin::deleteSelection | ( | CAScoreViewPort * | v, |
| bool | deleteSyllables, | ||
| bool | deleteNotes, | ||
| bool | doUndo | ||
| ) |
Delete action.
If deleteSyllables or deleteNotes is True, it completely removes the element. Otherwise it only replaces it with rest.
If doUndo is True, it also creates undo. doUndo should be False when cutting.
References _playback, CATuplet::addNote(), CATuplet::assignTimes(), CASyllable::clear(), CAFunctionMark::clear(), CAScoreViewPort::clearSelection(), CARest::composeRests(), CAUndo::createUndoCommand(), CAPlayback::curPlaying(), document(), CAMusElement::FunctionMark, CAStaff::getChord(), CAVoice::insert(), CAVoice::lyricsContextList(), CAMusElement::Mark, CAMusElement::musElementType(), CAVoice::next(), CAVoice::nextPlayable(), CARest::Normal, CAPlayable::playableLength(), CAPlayableLength::playableLengthToTimeLength(), CAUndo::pushUndoCommand(), rebuildUI(), CALyricsContext::remove(), CAFunctionMarkContext::remove(), CAVoice::remove(), CATuplet::removeNote(), CAFunctionMarkContext::repositFunctions(), CALyricsContext::repositSyllables(), CAMusElement::Rest, CAScoreViewPort::selection(), CAPlayable::setTuplet(), CAScoreViewPort::sheet(), CAMusElement::Slur, CAPlayable::staff(), CAPlayback::stopNow(), CAMusElement::Syllable, CAMusElement::timeEnd(), CAMusElement::timeLength(), CAMusElement::timeStart(), CAPlayable::tuplet(), CAMusElement::Tuplet, CACanorus::undo(), and CAPlayable::voice().
Referenced by on_uiCut_triggered(), and scoreViewPortKeyPress().


| CADocument* CAMainWin::document | ( | ) | [inline] |
References _document.
Referenced by createCustomActions(), deleteSelection(), CACanorus::findMainWin(), handleUnsavedChanges(), insertMusElementAt(), CAKeybdInput::midiInEventToScore(), newDocument(), on_uiAssociatedVoice_activated(), on_uiCanorusMLSource_triggered(), on_uiClefOffset_valueChanged(), on_uiCloseDocument_triggered(), on_uiContextName_returnPressed(), on_uiCut_triggered(), on_uiDocumentProperties_triggered(), on_uiDynamicCustomText_returnPressed(), on_uiDynamicText_toggled(), on_uiDynamicVolume_valueChanged(), on_uiExportDocument_triggered(), on_uiFermataType_toggled(), on_uiFinger_toggled(), on_uiFingeringOriginal_toggled(), on_uiFMChordArea_toggled(), on_uiFMEllipse_toggled(), on_uiFMFunction_toggled(), on_uiFMTonicDegree_toggled(), on_uiHiddenRest_toggled(), on_uiImportDocument_triggered(), on_uiInstrumentChange_activated(), on_uiKeySig_activated(), on_uiMidiRecorder_triggered(), on_uiNewSheet_triggered(), on_uiNewVoice_triggered(), on_uiNewWindow_triggered(), on_uiNoteStemDirection_toggled(), on_uiPlayableLength_toggled(), CAPreviewCtl::on_uiPrintPreview_triggered(), on_uiRedo_toggled(), on_uiRemoveContext_triggered(), on_uiRemoveSheet_triggered(), on_uiRemoveVoice_triggered(), on_uiRepeatMarkType_toggled(), on_uiSaveDocument_triggered(), on_uiSaveDocumentAs_triggered(), on_uiSheetName_returnPressed(), on_uiStanzaNumber_valueChanged(), on_uiTempoBeat_toggled(), on_uiTempoBpm_returnPressed(), on_uiTimeSigBeat_valueChanged(), on_uiTimeSigBeats_valueChanged(), on_uiTranspose_triggered(), on_uiTupletType_toggled(), on_uiUndo_toggled(), on_uiVoiceInstrument_activated(), on_uiVoiceName_returnPressed(), on_uiVoiceStemDirection_toggled(), onScoreViewPortSelectionChanged(), onTextEditKeyPressEvent(), openDocument(), pasteAt(), CAPrintCtl::printDocument(), CACanorus::rebuildUI(), rebuildUI(), CACanorus::restartTimeEditedTimes(), saveDocument(), CAAutoRecovery::saveRecovery(), scoreViewPortKeyPress(), scoreViewPortMousePress(), scoreViewPortMouseRelease(), setDocument(), sourceViewPortCommit(), updateToolBars(), updateUndoRedoButtons(), updateWindowTitle(), and ~CAMainWin().
| QFileDialog* CAMainWin::exportDialog | ( | ) | [inline] |
References uiExportDialog.
Referenced by CAPluginManager::endElement().

| void CAMainWin::floatViewPortClosed | ( | CAViewPort * | v | ) | [private, slot] |
Called when a floating view port is closed
References currentViewPort(), currentViewPortContainer(), and setCurrentViewPort().
Referenced by on_uiNewViewport_triggered().


| bool CAMainWin::handleUnsavedChanges | ( | ) | [private] |
Checks for any unsaved modifications and returns True, to continue with closing the current document. Returns False only, if user clicks Cancel button.
This method looks at CADocument::_modified property. The property is changed in undo/redo code.
References document(), and on_uiSaveDocument_triggered().
Referenced by closeEvent(), newDocument(), on_uiCloseDocument_triggered(), on_uiImportDocument_triggered(), and on_uiOpenDocument_triggered().


| QDockWidget* CAMainWin::helpDock | ( | ) | [inline] |
References uiHelpDock.
| CAHelpBrowser* CAMainWin::helpWidget | ( | ) | [inline] |
References uiHelpWidget.
| QFileDialog* CAMainWin::importDialog | ( | ) | [inline] |
References uiImportDialog.
Referenced by CAPluginManager::endElement().

| void CAMainWin::initViewPort | ( | CAViewPort * | v | ) | [private] |
Links the newly created viewport with the main window:
References _viewPortList, mode(), onScoreViewPortSelectionChanged(), onTextEditKeyPressEvent(), CAViewPort::ScoreViewPort, scoreViewPortDoubleClick(), scoreViewPortKeyPress(), scoreViewPortMouseMove(), scoreViewPortMousePress(), scoreViewPortMouseRelease(), scoreViewPortTripleClick(), scoreViewPortWheel(), setCurrentViewPort(), setMode(), CAViewPort::SourceViewPort, sourceViewPortCommit(), and viewPortClicked().
Referenced by addSheet(), on_uiCanorusMLSource_triggered(), on_uiLilyPondSource_triggered(), on_uiNewViewport_triggered(), on_uiScoreView_triggered(), on_uiSplitHorizontally_triggered(), and on_uiSplitVertically_triggered().


| void CAMainWin::insertMusElementAt | ( | const QPoint | coords, |
| CAScoreViewPort * | v | ||
| ) |
This method places the currently prepared music element in CAMusElementFactory to the staff or voice, dependent on the music element type and the viewport coordinates.
References CATuplet::actualNumber(), CASettings::autoBar(), CAMusElement::Barline, CADrawableStaff::calculatePitch(), CAMusElement::Clef, CARest::composeRests(), CAMusElementFactory::configureBarline(), CAMusElementFactory::configureClef(), CAMusElementFactory::configureFunctionMark(), CAMusElementFactory::configureKeySignature(), CAMusElementFactory::configureMark(), CAMusElementFactory::configureNote(), CAMusElementFactory::configureRest(), CAMusElementFactory::configureSlur(), CAMusElementFactory::configureTimeSignature(), CAVoice::containsPitch(), CADrawableContext::context(), CAContext::contextType(), CAUndo::createUndoCommand(), CAScoreViewPort::currentContext(), currentScoreViewPort(), currentSheet(), currentVoice(), CANote::diatonicPitch(), document(), CAMusElementFactory::emptyMusElem(), CAMusElement::FunctionMark, CAContext::FunctionMarkContext, CASheet::getChord(), CANote::getChord(), CAVoice::getNoteList(), CAVoice::insert(), CANote::isPartOfChord(), CAMusElement::isPlayable(), CAMusElement::KeySignature, CAVoice::lastTimeEnd(), CAMusElement::Mark, CADrawableMusElement::musElement(), CAMusElementFactory::musElement(), musElementFactory(), CAScoreViewPort::musElementsAt(), CAMusElement::musElementType(), CAScoreViewPort::nearestLeftElement(), CAScoreViewPort::nearestRightElement(), CAVoice::next(), CARest::Normal, CAMusElement::Note, CATuplet::noteList(), CATuplet::number(), CANote::phrasingSlurEnd(), CANote::phrasingSlurStart(), CASlur::PhrasingSlurType, CAMusElementFactory::placeAutoBar(), CAPlayableLength::playableLengthToTimeLength(), playImmediately(), CASettings::playInsertedNotes(), CAUndo::pushUndoCommand(), rebuildUI(), CAVoice::remove(), CAMusElement::Rest, CAScoreViewPort::selection(), CAScoreViewPort::selectMElement(), CAScoreViewPort::setDrawShadowNoteAccs(), CAMusElementFactory::setMusElement(), CAMusElementFactory::setNoteExtraAccs(), CAScoreViewPort::setShadowNoteLength(), CACanorus::settings(), CAScoreViewPort::sheet(), CAMusElement::Slur, CANote::slurEnd(), CANote::slurStart(), CASlur::SlurType, CAMusElementFactory::slurType(), CAStaff::synchronizeVoices(), CANote::tieStart(), CASlur::TieType, CAMusElement::timeEnd(), CAMusElement::timeLength(), CAMusElement::TimeSignature, CAMusElement::timeStart(), uiTupletActualNumber, uiTupletNumber, uiTupletType, CACanorus::undo(), CAScoreViewPort::updateHelpers(), CAPlayable::voice(), CADrawable::width(), and CADrawable::xPos().
Referenced by on_uiSlurType_toggled(), and scoreViewPortMousePress().

| void CAMainWin::keyPressEvent | ( | QKeyEvent * | e | ) | [private, slot] |
Main window's key press event.
| CAMidiRecorderView* CAMainWin::midiRecorderView | ( | ) | [inline] |
References _midiRecorderView.
| CAMode CAMainWin::mode | ( | ) | [inline] |
References _mode.
Referenced by initViewPort(), on_uiClefOffset_valueChanged(), on_uiDynamicCustomText_returnPressed(), on_uiDynamicText_toggled(), on_uiDynamicVolume_valueChanged(), on_uiFermataType_toggled(), on_uiFinger_toggled(), on_uiFingeringOriginal_toggled(), on_uiFMChordArea_toggled(), on_uiFMEllipse_toggled(), on_uiFMFunction_toggled(), on_uiFMTonicDegree_toggled(), on_uiHiddenRest_toggled(), on_uiInstrumentChange_activated(), on_uiKeySig_activated(), on_uiNoteStemDirection_toggled(), on_uiPlayableLength_toggled(), on_uiRepeatMarkType_toggled(), on_uiTempoBeat_toggled(), on_uiTempoBpm_returnPressed(), on_uiTimeSigBeat_valueChanged(), on_uiTimeSigBeats_valueChanged(), on_uiTupletType_toggled(), playbackFinished(), scoreViewPortDoubleClick(), scoreViewPortKeyPress(), scoreViewPortMouseMove(), scoreViewPortMousePress(), scoreViewPortMouseRelease(), scoreViewPortTripleClick(), setMode(), updateClefToolBar(), updateContextToolBar(), updateDynamicToolBar(), updateFermataToolBar(), updateFingeringToolBar(), updateFMToolBar(), updateInsertToolBar(), updateInstrumentToolBar(), updateKeySigToolBar(), updatePlayableToolBar(), updateRepeatMarkToolBar(), updateTempoToolBar(), updateTimeSigToolBar(), and updateVoiceToolBar().

| CAMusElementFactory* CAMainWin::musElementFactory | ( | ) | [inline] |
References _musElementFactory.
Referenced by insertMusElementAt(), CAKeybdInput::midiInEventToScore(), on_uiArticulationType_toggled(), on_uiBarlineType_toggled(), on_uiClefOffset_valueChanged(), on_uiClefType_toggled(), on_uiDynamicCustomText_returnPressed(), on_uiDynamicText_toggled(), on_uiDynamicVolume_valueChanged(), on_uiFermataType_toggled(), on_uiFinger_toggled(), on_uiFingeringOriginal_toggled(), on_uiFMChordArea_toggled(), on_uiFMEllipse_toggled(), on_uiFMFunction_toggled(), on_uiFMTonicDegree_toggled(), on_uiHiddenRest_toggled(), on_uiInsertFM_toggled(), on_uiInsertKeySig_toggled(), on_uiInsertPlayable_toggled(), on_uiInstrumentChange_activated(), on_uiKeySig_activated(), on_uiMarkType_toggled(), on_uiNoteStemDirection_toggled(), on_uiPlayableLength_toggled(), on_uiRepeatMarkType_toggled(), on_uiSlurType_toggled(), on_uiTempoBeat_toggled(), on_uiTempoBpm_returnPressed(), on_uiTimeSigBeat_valueChanged(), on_uiTimeSigBeats_valueChanged(), on_uiTimeSigType_toggled(), on_uiTupletActualNumber_valueChanged(), on_uiTupletNumber_valueChanged(), scoreViewPortKeyPress(), scoreViewPortMouseMove(), scoreViewPortMousePress(), setMode(), updateClefToolBar(), updateDynamicToolBar(), updateFermataToolBar(), updateFingeringToolBar(), updateFMToolBar(), updateInstrumentToolBar(), updateKeySigToolBar(), updatePlayableToolBar(), updateRepeatMarkToolBar(), updateTempoToolBar(), and updateTimeSigToolBar().

| void CAMainWin::newDocument | ( | ) |
References clearUI(), CAUndo::createUndoStack(), currentScoreViewPort(), CAUndo::deleteUndoStack(), document(), handleUnsavedChanges(), CACanorus::mainWinCount(), rebuildUI(), restartTimeEditedTime(), CAScoreViewPort::selectContext(), setDocument(), stopPlayback(), Ui_uiMainWindow::uiCloseDocument, CACanorus::undo(), and updateToolBars().
Referenced by main(), and on_uiNewDocument_triggered().


| void CAMainWin::on_uiAboutCanorus_triggered | ( | ) | [private, slot] |
| void CAMainWin::on_uiAboutQt_triggered | ( | ) | [private, slot] |
| void CAMainWin::on_uiAnimatedScroll_toggled | ( | bool | val | ) | [private, slot] |
References _animatedScroll.
| void CAMainWin::on_uiArticulationType_toggled | ( | bool | checked, |
| int | buttonId | ||
| ) | [private, slot] |
References CAMark::Articulation, InsertMode, CAMusElement::Mark, musElementFactory(), CAMusElementFactory::setArticulationType(), CAMusElementFactory::setMarkType(), setMode(), and CAMusElementFactory::setMusElementType().

| void CAMainWin::on_uiAssociatedVoice_activated | ( | int | idx | ) | [private, slot] |
Sets the associated voice of the current lyrics context.
References CAUndo::createUndoCommand(), currentContext(), currentSheet(), document(), CAContext::LyricsContext, CAUndo::pushUndoCommand(), rebuildUI(), CACanorus::undo(), and CASheet::voiceList().

| void CAMainWin::on_uiBarlineType_toggled | ( | bool | checked, |
| int | buttonId | ||
| ) | [private, slot] |
References CAMusElement::Barline, InsertMode, musElementFactory(), CAMusElementFactory::setBarlineType(), setMode(), and CAMusElementFactory::setMusElementType().

| void CAMainWin::on_uiCanorusMLSource_triggered | ( | ) | [private, slot] |
Shows the current score in CanorusML syntax in a new or the current viewport.
References CAViewPortContainer::addViewPort(), currentViewPortContainer(), document(), initViewPort(), Ui_uiMainWindow::uiCloseCurrentView, and Ui_uiMainWindow::uiUnsplitAll.

| void CAMainWin::on_uiClefOffset_valueChanged | ( | int | newOffset | ) | [private, slot] |
Changes the offset of the clef.
References CAUndo::createUndoCommand(), currentScoreViewPort(), currentSheet(), document(), EditMode, InsertMode, mode(), musElementFactory(), CAClef::offsetFromReadable(), oldUiClefOffsetValue, CAUndo::pushUndoCommand(), rebuildUI(), CAScoreViewPort::selection(), CAMusElementFactory::setClefOffset(), CAClef::setOffset(), uiClefOffset, and CACanorus::undo().

| void CAMainWin::on_uiClefType_toggled | ( | bool | checked, |
| int | buttonId | ||
| ) | [private, slot] |
References CAMusElement::Clef, InsertMode, musElementFactory(), CAMusElementFactory::setClef(), setMode(), and CAMusElementFactory::setMusElementType().

| void CAMainWin::on_uiCloseCurrentView_triggered | ( | ) | [private, slot] |
References _viewPortList, currentViewPort(), currentViewPortContainer(), setCurrentViewPort(), Ui_uiMainWindow::uiCloseCurrentView, Ui_uiMainWindow::uiUnsplitAll, CAViewPortContainer::unsplit(), and viewPortList().

| void CAMainWin::on_uiCloseDocument_triggered | ( | ) | [private, slot] |
References CAUndo::deleteUndoStack(), document(), handleUnsavedChanges(), CACanorus::mainWinCount(), rebuildUI(), setDocument(), Ui_uiMainWindow::uiCloseDocument, and CACanorus::undo().

| void CAMainWin::on_uiContextName_returnPressed | ( | ) | [private, slot] |
Sets the current context name.
References CAUndo::createUndoCommand(), currentContext(), currentSheet(), document(), CAUndo::pushUndoCommand(), rebuildUI(), CAContext::setName(), uiContextName, and CACanorus::undo().

| void CAMainWin::on_uiContextProperties_triggered | ( | ) | [private, slot] |
Brings up the properties dialog.
References CAPropertiesDialog::contextProperties(), and currentContext().

| void CAMainWin::on_uiContextType_toggled | ( | bool | checked, |
| int | buttonId | ||
| ) | [private, slot] |
| void CAMainWin::on_uiCopy_triggered | ( | ) | [private, slot] |
Action on Edit->Copy.
References copySelection(), and currentScoreViewPort().

| void CAMainWin::on_uiCut_triggered | ( | ) | [private, slot] |
Action on Edit->Cut.
References copySelection(), CAUndo::createUndoCommand(), currentScoreViewPort(), deleteSelection(), document(), CAUndo::pushUndoCommand(), stopPlayback(), and CACanorus::undo().

| void CAMainWin::on_uiDocumentProperties_triggered | ( | ) | [private, slot] |
Brings up the properties dialog.
References document(), and CAPropertiesDialog::documentProperties().

| void CAMainWin::on_uiDynamicCustomText_returnPressed | ( | ) | [private, slot] |
References currentScoreViewPort(), currentSheet(), document(), CADynamic::dynamicTextFromString(), EditMode, InsertMode, mode(), musElementFactory(), rebuildUI(), CAScoreViewPort::selection(), CAMenuToolButton::setCurrentId(), CAMusElementFactory::setDynamicText(), CADynamic::setText(), uiDynamicCustomText, and uiDynamicText.

| void CAMainWin::on_uiDynamicText_toggled | ( | bool | checked, |
| int | t | ||
| ) | [private, slot] |
References currentScoreViewPort(), currentSheet(), CADynamic::Custom, document(), CADynamic::dynamicTextToString(), EditMode, InsertMode, mode(), musElementFactory(), rebuildUI(), CAScoreViewPort::selection(), CAMusElementFactory::setDynamicText(), CADynamic::setText(), and uiDynamicCustomText.

| void CAMainWin::on_uiDynamicVolume_valueChanged | ( | int | vol | ) | [private, slot] |
References currentScoreViewPort(), currentSheet(), document(), EditMode, InsertMode, mode(), musElementFactory(), rebuildUI(), CAScoreViewPort::selection(), CAMusElementFactory::setDynamicVolume(), and CADynamic::setVolume().

| void CAMainWin::on_uiEditMode_toggled | ( | bool | checked | ) | [private, slot] |
| void CAMainWin::on_uiExportDocument_triggered | ( | ) | [private, slot] |
Called when File->Export is clicked.
References _poExp, document(), CAPluginManager::exportAction(), CAExport::exportDocument(), CAPluginManager::exportFilterExists(), CAFileFormats::LILYPOND_FILTER, CAFileFormats::MIDI_FILTER, CAFileFormats::MUSICXML_FILTER, CAFileFormats::PDF_FILTER, CAExport::setStreamToFile(), CAFileFormats::SVG_FILTER, uiExportDialog, and CAExport::wait().
Referenced by on_uiExportToPdf_triggered().


| void CAMainWin::on_uiExportToPdf_triggered | ( | ) | [private, slot] |
Called when Export directly to PDF action is clicked.
References on_uiExportDocument_triggered(), CAFileFormats::PDF_FILTER, and uiExportDialog.

| void CAMainWin::on_uiFermataType_toggled | ( | bool | checked, |
| int | t | ||
| ) | [private, slot] |
References CAUndo::createUndoCommand(), currentScoreViewPort(), currentSheet(), document(), EditMode, InsertMode, mode(), musElementFactory(), CAUndo::pushUndoCommand(), rebuildUI(), CAScoreViewPort::selection(), CAFermata::setFermataType(), CAMusElementFactory::setFermataType(), and CACanorus::undo().

| void CAMainWin::on_uiFinger_toggled | ( | bool | checked, |
| int | t | ||
| ) | [private, slot] |
References CAUndo::createUndoCommand(), currentScoreViewPort(), currentSheet(), document(), EditMode, InsertMode, mode(), musElementFactory(), CAUndo::pushUndoCommand(), rebuildUI(), CAScoreViewPort::selection(), CAFingering::setFinger(), CAMusElementFactory::setFingeringFinger(), and CACanorus::undo().

| void CAMainWin::on_uiFingeringOriginal_toggled | ( | bool | checked | ) | [private, slot] |
References CAUndo::createUndoCommand(), currentScoreViewPort(), currentSheet(), document(), EditMode, InsertMode, mode(), musElementFactory(), CAUndo::pushUndoCommand(), rebuildUI(), CAScoreViewPort::selection(), CAMusElementFactory::setFingeringOriginal(), CAFingering::setOriginal(), and CACanorus::undo().

| void CAMainWin::on_uiFMChordArea_toggled | ( | bool | checked, |
| int | buttonId | ||
| ) | [private, slot] |
References CAUndo::createUndoCommand(), currentScoreViewPort(), currentSheet(), document(), EditMode, InsertMode, mode(), musElementFactory(), CAUndo::pushUndoCommand(), rebuildUI(), CAScoreViewPort::selection(), CAFunctionMark::setChordArea(), CAFunctionMark::setChordAreaMinor(), CAMusElementFactory::setFMChordArea(), CAMusElementFactory::setFMChordAreaMinor(), and CACanorus::undo().

| void CAMainWin::on_uiFMEllipse_toggled | ( | bool | checked | ) | [private, slot] |
References CAUndo::createUndoCommand(), currentScoreViewPort(), currentSheet(), document(), EditMode, InsertMode, mode(), musElementFactory(), CAUndo::pushUndoCommand(), rebuildUI(), CAScoreViewPort::selection(), CAFunctionMark::setEllipse(), CAMusElementFactory::setFMEllipse(), and CACanorus::undo().

| void CAMainWin::on_uiFMFunction_toggled | ( | bool | checked, |
| int | buttonId | ||
| ) | [private, slot] |
References CAUndo::createUndoCommand(), currentScoreViewPort(), currentSheet(), document(), EditMode, InsertMode, mode(), musElementFactory(), CAUndo::pushUndoCommand(), rebuildUI(), CAScoreViewPort::selection(), CAMusElementFactory::setFMFunction(), CAMusElementFactory::setFMFunctionMinor(), CAFunctionMark::setFunction(), CAFunctionMark::setMinor(), and CACanorus::undo().

| void CAMainWin::on_uiFMTonicDegree_toggled | ( | bool | checked, |
| int | buttonId | ||
| ) | [private, slot] |
References CAUndo::createUndoCommand(), currentScoreViewPort(), currentSheet(), document(), EditMode, InsertMode, mode(), musElementFactory(), CAUndo::pushUndoCommand(), rebuildUI(), CAScoreViewPort::selection(), CAMusElementFactory::setFMTonicDegree(), CAMusElementFactory::setFMTonicDegreeMinor(), CAFunctionMark::setTonicDegree(), CAFunctionMark::setTonicDegreeMinor(), and CACanorus::undo().

| void CAMainWin::on_uiFullscreen_toggled | ( | bool | checked | ) | [private, slot] |
| void CAMainWin::on_uiHiddenRest_toggled | ( | bool | checked | ) | [private, slot] |
References CAUndo::createUndoCommand(), currentScoreViewPort(), currentSheet(), document(), EditMode, CARest::Hidden, InsertMode, mode(), musElementFactory(), CARest::Normal, CAUndo::pushUndoCommand(), rebuildUI(), CAScoreViewPort::selection(), CARest::setRestType(), CAMusElementFactory::setRestType(), and CACanorus::undo().

| void CAMainWin::on_uiImportDocument_triggered | ( | ) | [private, slot] |
Called when File->Import is clicked.
References CASheet::contextCount(), CAUndo::createUndoStack(), currentScoreViewPort(), document(), handleUnsavedChanges(), CAPluginManager::importAction(), CAPluginManager::importFilterExists(), CAFileFormats::MIDI_FILTER, CAFileFormats::MUSICXML_FILTER, openDocument(), rebuildUI(), CAScoreViewPort::selectContext(), setDocument(), CADocument::sheetAt(), CADocument::sheetCount(), stopPlayback(), Ui_uiMainWindow::uiCloseDocument, uiImportDialog, CACanorus::undo(), and updateToolBars().

| void CAMainWin::on_uiInsertFM_toggled | ( | bool | checked | ) | [private, slot] |
References CAMusElement::FunctionMark, InsertMode, musElementFactory(), setMode(), and CAMusElementFactory::setMusElementType().

| void CAMainWin::on_uiInsertKeySig_toggled | ( | bool | checked | ) | [private, slot] |
References InsertMode, CAMusElement::KeySignature, musElementFactory(), setMode(), and CAMusElementFactory::setMusElementType().

| void CAMainWin::on_uiInsertPlayable_toggled | ( | bool | checked | ) | [private, slot] |
References CALCDNumber::getRealValue(), InsertMode, musElementFactory(), CAMusElement::Note, setMode(), CAMusElementFactory::setMusElementType(), CALCDNumber::setRealValue(), and uiVoiceNum.

| void CAMainWin::on_uiInsertSyllable_toggled | ( | bool | checked | ) | [private, slot] |
| void CAMainWin::on_uiInstrumentChange_activated | ( | int | index | ) | [private, slot] |
References CAUndo::createUndoCommand(), currentScoreViewPort(), currentSheet(), document(), EditMode, InsertMode, mode(), musElementFactory(), CAUndo::pushUndoCommand(), rebuildUI(), CAScoreViewPort::selection(), CAInstrumentChange::setInstrument(), CAMusElementFactory::setInstrument(), and CACanorus::undo().

| void CAMainWin::on_uiInvertSelection_triggered | ( | ) | [private, slot] |
References currentViewPort(), and CAViewPort::ScoreViewPort.

| void CAMainWin::on_uiKeySig_activated | ( | int | row | ) | [private, slot] |
Changes the number of accidentals.
References CADrawableKeySignature::comboBoxRowToDiatonicKey(), CAUndo::createUndoCommand(), currentScoreViewPort(), currentSheet(), CADiatonicKey::diatonicKeyToString(), document(), EditMode, CADiatonicKey::gender(), InsertMode, mode(), musElementFactory(), CADiatonicKey::numberOfAccs(), CAUndo::pushUndoCommand(), rebuildUI(), CAScoreViewPort::selection(), CAKeySignature::setDiatonicKey(), CAMusElementFactory::setDiatonicKeyGender(), CAMusElementFactory::setDiatonicKeyNumberOfAccs(), CAFunctionMark::setKey(), and CACanorus::undo().
Referenced by setupCustomUi().


| void CAMainWin::on_uiLilyPondSource_triggered | ( | ) | [private, slot] |
References CAViewPortContainer::addViewPort(), CAContext::contextType(), currentContext(), currentStaff(), currentViewPortContainer(), CALCDNumber::getRealValue(), initViewPort(), CAContext::LyricsContext, Ui_uiMainWindow::uiCloseCurrentView, Ui_uiMainWindow::uiUnsplitAll, uiVoiceNum, and CAStaff::voiceAt().

| void CAMainWin::on_uiLockScrollPlayback_toggled | ( | bool | val | ) | [private, slot] |
References _lockScrollPlayback.
| void CAMainWin::on_uiMarkType_toggled | ( | bool | checked, |
| int | buttonId | ||
| ) | [private, slot] |
References CARitardando::Accellerando, CACrescendo::Crescendo, CAMark::Crescendo, CACrescendo::Decrescendo, InsertMode, CAMusElement::Mark, musElementFactory(), CARitardando::Ritardando, CAMark::Ritardando, CAMusElementFactory::setCrescendoType(), CAMusElementFactory::setMarkType(), setMode(), CAMusElementFactory::setMusElementType(), and CAMusElementFactory::setRitardandoType().

| void CAMainWin::on_uiMidiRecorder_triggered | ( | ) | [private, slot] |
References _midiRecorderView, CAResourceCtl::createEmptyResource(), currentSheet(), document(), CACanorus::midiDevice(), rebuildUI(), and CAResource::Sound.

| void CAMainWin::on_uiNewDocument_triggered | ( | ) | [private, slot] |
| void CAMainWin::on_uiNewSheet_triggered | ( | ) | [private, slot] |
Adds a new empty sheet.
References CADocument::addSheet(), CAUndo::createUndoCommand(), document(), CAUndo::pushUndoCommand(), rebuildUI(), stopPlayback(), Ui_uiMainWindow::uiTabWidget, and CACanorus::undo().

| void CAMainWin::on_uiNewViewport_triggered | ( | ) | [private, slot] |
References CAViewPort::clone(), currentViewPort(), CAViewPort::DEFAULT_VIEWPORT_HEIGHT, CAViewPort::DEFAULT_VIEWPORT_WIDTH, floatViewPortClosed(), and initViewPort().

| void CAMainWin::on_uiNewVoice_triggered | ( | ) | [private, slot] |
Adds a new voice to the staff.
References CAStaff::addVoice(), CAUndo::createUndoCommand(), currentSheet(), currentStaff(), document(), CAContext::name(), CAUndo::pushUndoCommand(), rebuildUI(), CALCDNumber::setRealValue(), CAVoice::setStemDirection(), CANote::StemDown, CANote::StemNeutral, CANote::StemUp, CAStaff::synchronizeVoices(), uiVoiceNum, CACanorus::undo(), CAStaff::voiceAt(), and CAStaff::voiceCount().

| void CAMainWin::on_uiNewWindow_triggered | ( | ) | [private, slot] |
Creates a new main window sharing the current document.
References CAMainWin(), document(), rebuildUI(), and setDocument().

| void CAMainWin::on_uiNoteStemDirection_toggled | ( | bool | checked, |
| int | id | ||
| ) | [private, slot] |
Sets the currently selected note stem direction if in insert/edit mode or the music elements factory note stem direction if in insert mode.
References CAUndo::createUndoCommand(), currentScoreViewPort(), currentSheet(), document(), EditMode, InsertMode, mode(), musElementFactory(), CAUndo::pushUndoCommand(), rebuildUI(), CAScoreViewPort::selection(), SelectMode, CAMusElementFactory::setNoteStemDirection(), CANote::setStemDirection(), and CACanorus::undo().

| void CAMainWin::on_uiOpenDocument_triggered | ( | ) | [private, slot] |
References handleUnsavedChanges(), openDocument(), and uiOpenDialog.

| void CAMainWin::on_uiOpenRecent_aboutToShow | ( | ) | [private, slot] |
References onUiOpenRecentDocumentTriggered(), CACanorus::recentDocumentList(), and Ui_uiMainWindow::uiOpenRecent.

| void CAMainWin::on_uiPaste_triggered | ( | ) | [private, slot] |
Action on Edit->Paste.
References currentScoreViewPort(), and pasteAt().

| void CAMainWin::on_uiPlayableLength_toggled | ( | bool | checked, |
| int | buttonId | ||
| ) | [private, slot] |
References CAPlayable::calculateTimeLength(), CARest::composeRests(), CAUndo::createUndoCommand(), currentScoreViewPort(), currentSheet(), document(), EditMode, CAVoice::insert(), InsertMode, CAVoice::lyricsContextList(), mode(), musElementFactory(), CAMusElement::musElementType(), CAVoice::next(), CARest::Normal, CAMusElement::Note, CAPlayableLength::playableLengthToTimeLength(), CAUndo::pushUndoCommand(), rebuildUI(), CAVoice::remove(), CAMusElement::Rest, CAScoreViewPort::selection(), CAPlayable::setPlayableLength(), CAMusElementFactory::setPlayableLength(), CAScoreViewPort::setShadowNoteLength(), CAPlayable::staff(), CAStaff::synchronizeVoices(), CAMusElement::timeLength(), CAMusElement::timeStart(), CACanorus::undo(), CAScoreViewPort::updateHelpers(), and CAPlayable::voice().

| void CAMainWin::on_uiPlayFromSelection_toggled | ( | bool | checked | ) | [private, slot] |
Connected with the play button which starts the playback.
References _playback, _playbackViewPort, _prePlaybackSelection, _repaintTimer, CAScoreViewPort::clearSelection(), currentScoreViewPort(), currentSheet(), currentViewPort(), CACanorus::midiDevice(), onRepaintTimerTimeout(), CAMidiDevice::openOutputPort(), playbackFinished(), CAScoreViewPort::selection(), CAScoreViewPort::setBorder(), CAPlayback::setInitTimeStart(), CAScoreViewPort::setPlaying(), CACanorus::settings(), and CAPlayback::stop().

| void CAMainWin::on_uiRedo_toggled | ( | bool | checked, |
| int | row | ||
| ) | [private, slot] |
References document(), CALCDNumber::getRealValue(), on_uiVoiceNum_valChanged(), rebuildUI(), CAUndo::redo(), stopPlayback(), uiVoiceNum, and CACanorus::undo().

| void CAMainWin::on_uiRemoveContext_triggered | ( | ) | [private, slot] |
Removes the current context from the sheet and all its contents.
References CAUndo::createUndoCommand(), currentContext(), currentSheet(), document(), CAContext::name(), CAUndo::pushUndoCommand(), rebuildUI(), CASheet::removeContext(), CAContext::sheet(), stopPlayback(), and CACanorus::undo().

| void CAMainWin::on_uiRemoveSheet_triggered | ( | ) | [private, slot] |
Removes the sheet, all its contents and rebuilds the GUI.
References CAUndo::createUndoCommand(), currentSheet(), document(), CAUndo::pushUndoCommand(), CADocument::removeSheet(), removeSheet(), stopPlayback(), and CACanorus::undo().

| void CAMainWin::on_uiRemoveVoice_triggered | ( | ) | [private, slot] |
Removes the current voice from the staff and deletes its contents.
References CAStaff::addVoice(), CAScoreViewPort::clearSelection(), CAUndo::createUndoCommand(), currentScoreViewPort(), currentSheet(), currentVoice(), document(), CAVoice::name(), CAUndo::pushUndoCommand(), rebuildUI(), CAStaff::removeVoice(), CALCDNumber::setRealValue(), CAVoice::staff(), stopPlayback(), uiVoiceNum, CACanorus::undo(), and CAStaff::voiceCount().

| void CAMainWin::on_uiRepeatMarkType_toggled | ( | bool | checked, |
| int | t | ||
| ) | [private, slot] |
References CAUndo::createUndoCommand(), currentScoreViewPort(), currentSheet(), document(), EditMode, InsertMode, mode(), musElementFactory(), CAUndo::pushUndoCommand(), rebuildUI(), CAScoreViewPort::selection(), CARepeatMark::setRepeatMarkType(), CAMusElementFactory::setRepeatMarkType(), CAMusElementFactory::setRepeatMarkVoltaNumber(), CARepeatMark::setVoltaNumber(), CACanorus::undo(), and CARepeatMark::Volta.

| void CAMainWin::on_uiResourceView_toggled | ( | bool | checked | ) | [private, slot] |
Toggles the visibility of the resource view window.
References _resourceView.
| bool CAMainWin::on_uiSaveDocument_triggered | ( | ) | [private, slot] |
References document(), on_uiSaveDocumentAs_triggered(), and saveDocument().
Referenced by handleUnsavedChanges().


| bool CAMainWin::on_uiSaveDocumentAs_triggered | ( | ) | [private, slot] |
References document(), saveDocument(), and uiSaveDialog.
Referenced by on_uiSaveDocument_triggered().


| void CAMainWin::on_uiScoreView_triggered | ( | ) | [private, slot] |
Adds a new score viewport to default viewport container.
References _sheetMap, CAViewPortContainer::addViewPort(), currentViewPortContainer(), initViewPort(), CAScoreViewPort::rebuild(), Ui_uiMainWindow::uiCloseCurrentView, and Ui_uiMainWindow::uiUnsplitAll.

| void CAMainWin::on_uiSelectAll_triggered | ( | ) | [private, slot] |
References currentViewPort(), CAViewPort::ScoreViewPort, CAViewPort::SourceViewPort, and CAViewPort::viewPortType().

| void CAMainWin::on_uiSelectMode_toggled | ( | bool | checked | ) | [private, slot] |
| void CAMainWin::on_uiSettings_triggered | ( | ) | [private, slot] |
References CASettingsDialog::EditorSettings, and rebuildUI().

| void CAMainWin::on_uiSheetName_returnPressed | ( | ) | [private, slot] |
References CAUndo::createUndoCommand(), currentSheet(), document(), CAUndo::pushUndoCommand(), rebuildUI(), CASheet::setName(), uiSheetName, and CACanorus::undo().

| void CAMainWin::on_uiSheetProperties_triggered | ( | ) | [private, slot] |
Brings up properties dialog.
References currentSheet(), and CAPropertiesDialog::sheetProperties().

| void CAMainWin::on_uiSlurType_toggled | ( | bool | checked, |
| int | buttonId | ||
| ) | [private, slot] |
References currentScoreViewPort(), insertMusElementAt(), musElementFactory(), CAMusElementFactory::musElementType(), CAMusElementFactory::setMusElementType(), CAMusElementFactory::setSlurType(), and CAMusElement::Slur.

| void CAMainWin::on_uiSplitHorizontally_triggered | ( | ) | [private, slot] |
References currentViewPortContainer(), initViewPort(), CAViewPortContainer::splitHorizontally(), Ui_uiMainWindow::uiCloseCurrentView, and Ui_uiMainWindow::uiUnsplitAll.

| void CAMainWin::on_uiSplitVertically_triggered | ( | ) | [private, slot] |
References currentViewPortContainer(), initViewPort(), CAViewPortContainer::splitVertically(), Ui_uiMainWindow::uiCloseCurrentView, and Ui_uiMainWindow::uiUnsplitAll.

| void CAMainWin::on_uiStanzaNumber_valueChanged | ( | int | stanzaNumber | ) | [private, slot] |
Sets the stanza number of the current lyrics context.
References CAUndo::createUndoCommand(), currentContext(), document(), CAContext::LyricsContext, CAUndo::pushUndoCommand(), and CACanorus::undo().

| void CAMainWin::on_uiTabWidget_currentChanged | ( | int | idx | ) | [private, slot] |
Called when the current sheet is switched in the tab widget.
References currentViewPort(), currentViewPortContainer(), setCurrentViewPort(), setCurrentViewPortContainer(), Ui_uiMainWindow::uiTabWidget, and updateToolBars().

| void CAMainWin::on_uiTempoBeat_toggled | ( | bool | checked, |
| int | t | ||
| ) | [private, slot] |
References CAUndo::createUndoCommand(), currentScoreViewPort(), currentSheet(), document(), EditMode, InsertMode, mode(), musElementFactory(), CAUndo::pushUndoCommand(), rebuildUI(), CAScoreViewPort::selection(), CATempo::setBeat(), CAMusElementFactory::setTempoBeat(), and CACanorus::undo().

| void CAMainWin::on_uiTempoBpm_returnPressed | ( | ) | [private, slot] |
References CAUndo::createUndoCommand(), currentScoreViewPort(), currentSheet(), document(), EditMode, InsertMode, mode(), musElementFactory(), CAUndo::pushUndoCommand(), rebuildUI(), CAScoreViewPort::selection(), CATempo::setBpm(), CAMusElementFactory::setTempoBpm(), uiTempoBpm, and CACanorus::undo().

| void CAMainWin::on_uiTimeSigBeat_valueChanged | ( | int | beat | ) | [private, slot] |
References currentScoreViewPort(), currentSheet(), document(), EditMode, InsertMode, mode(), musElementFactory(), rebuildUI(), CAScoreViewPort::selection(), CATimeSignature::setBeat(), CAMenuToolButton::setCurrentId(), CAMusElementFactory::setTimeSigBeat(), uiTimeSigBeat, uiTimeSigBeats, and uiTimeSigType.

| void CAMainWin::on_uiTimeSigBeats_valueChanged | ( | int | beats | ) | [private, slot] |
References currentScoreViewPort(), currentSheet(), document(), EditMode, InsertMode, mode(), musElementFactory(), rebuildUI(), CAScoreViewPort::selection(), CATimeSignature::setBeats(), CAMenuToolButton::setCurrentId(), CAMusElementFactory::setTimeSigBeats(), uiTimeSigBeat, uiTimeSigBeats, and uiTimeSigType.

| void CAMainWin::on_uiTimeSigType_toggled | ( | bool | checked, |
| int | buttonId | ||
| ) | [private, slot] |
References InsertMode, musElementFactory(), setMode(), CAMusElementFactory::setMusElementType(), CAMusElementFactory::setTimeSigBeat(), CAMusElementFactory::setTimeSigBeats(), CAMusElement::TimeSignature, uiTimeSigBeat, and uiTimeSigBeats.

| void CAMainWin::on_uiTranspose_triggered | ( | ) | [private, slot] |
References _transposeView, document(), and CATransposeView::show().

| void CAMainWin::on_uiTupletActualNumber_valueChanged | ( | int | value | ) | [private, slot] |
References musElementFactory(), and CAMusElementFactory::setTupletActualNumber().

| void CAMainWin::on_uiTupletNumber_valueChanged | ( | int | value | ) | [private, slot] |
References musElementFactory(), and CAMusElementFactory::setTupletNumber().

| void CAMainWin::on_uiTupletType_toggled | ( | bool | checked, |
| int | type | ||
| ) | [private, slot] |
References CAUndo::createUndoCommand(), currentScoreViewPort(), currentSheet(), document(), EditMode, mode(), CAUndo::pushUndoCommand(), rebuildUI(), CAScoreViewPort::selection(), uiTupletActualNumber, uiTupletNumber, CACanorus::undo(), and updatePlayableToolBar().

| void CAMainWin::on_uiUndo_toggled | ( | bool | checked, |
| int | row | ||
| ) | [private, slot] |
References document(), CALCDNumber::getRealValue(), on_uiVoiceNum_valChanged(), rebuildUI(), stopPlayback(), uiVoiceNum, CAUndo::undo(), and CACanorus::undo().

| void CAMainWin::on_uiUnsplitAll_triggered | ( | ) | [private, slot] |
References _viewPortList, currentViewPort(), currentViewPortContainer(), setCurrentViewPort(), Ui_uiMainWindow::uiCloseCurrentView, Ui_uiMainWindow::uiUnsplitAll, and CAViewPortContainer::unsplitAll().

| void CAMainWin::on_uiUsersGuide_triggered | ( | ) | [slot] |
References CACanorus::help(), and CAHelpCtl::showUsersGuide().
Referenced by main().


| void CAMainWin::on_uiVoiceInstrument_activated | ( | int | index | ) | [private, slot] |
Changes voice instrument.
References CAUndo::createUndoCommand(), currentSheet(), currentVoice(), document(), CAUndo::pushUndoCommand(), rebuildUI(), CAVoice::setMidiProgram(), and CACanorus::undo().

| void CAMainWin::on_uiVoiceName_returnPressed | ( | ) | [private, slot] |
Gets the current voice and sets its name.
References CAUndo::createUndoCommand(), currentSheet(), currentVoice(), document(), CAUndo::pushUndoCommand(), rebuildUI(), CAVoice::setName(), uiVoiceName, and CACanorus::undo().

| void CAMainWin::on_uiVoiceNum_valChanged | ( | int | voiceNr | ) | [private, slot] |
Called when a user changes the current voice number.
References currentContext(), currentScoreViewPort(), CAScoreViewPort::setSelectedVoice(), CAContext::Staff, and updateVoiceToolBar().
Referenced by on_uiRedo_toggled(), and on_uiUndo_toggled().


| void CAMainWin::on_uiVoiceProperties_triggered | ( | ) | [private, slot] |
Brings up the properties dialog.
References currentVoice(), and CAPropertiesDialog::voiceProperties().

| void CAMainWin::on_uiVoiceStemDirection_toggled | ( | bool | checked, |
| int | direction | ||
| ) | [private, slot] |
References CAUndo::createUndoCommand(), currentSheet(), currentVoice(), document(), CAUndo::pushUndoCommand(), rebuildUI(), CAVoice::setStemDirection(), CAVoice::stemDirection(), and CACanorus::undo().

| void CAMainWin::on_uiZoomToFit_triggered | ( | ) | [private, slot] |
References _currentViewPort, CAViewPort::ScoreViewPort, and CAViewPort::viewPortType().

| void CAMainWin::on_uiZoomToHeight_triggered | ( | ) | [private, slot] |
References _currentViewPort, CAViewPort::ScoreViewPort, and CAViewPort::viewPortType().

| void CAMainWin::on_uiZoomToSelection_triggered | ( | ) | [private, slot] |
References _animatedScroll, _currentViewPort, CAViewPort::ScoreViewPort, and CAViewPort::viewPortType().

| void CAMainWin::on_uiZoomToWidth_triggered | ( | ) | [private, slot] |
References _currentViewPort, CAViewPort::ScoreViewPort, and CAViewPort::viewPortType().

| void CAMainWin::onMidiInEvent | ( | QVector< unsigned char > | message | ) | [private, slot] |
References _keybdInput, and CAKeybdInput::onMidiInEvent().
Referenced by CAMainWin().


| 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.
References _playback, _playbackViewPort, CAScoreViewPort::addToSelection(), CAScoreViewPort::clearSelection(), CAPlayback::curPlaying(), and CAMusElement::Note.
Referenced by on_uiPlayFromSelection_toggled().


| void CAMainWin::onScoreViewPortSelectionChanged | ( | ) | [private, slot] |
Called when selection in score viewports is changed.
References CAPluginManager::action(), document(), Ui_uiMainWindow::uiCopy, and Ui_uiMainWindow::uiCut.
Referenced by initViewPort().


| void CAMainWin::onTextEditKeyPressEvent | ( | QKeyEvent * | e | ) | [private, slot] |
Function called when user types the text of the syllable or hits control keys.
The following behaviour is implemented:
References CASyllable::associatedVoice(), CALyricsContext::associatedVoice(), CAMark::BookMark, CADrawableContext::context(), CAScoreViewPort::createTextEdit(), CAUndo::createUndoCommand(), CAScoreViewPort::currentContext(), currentScoreViewPort(), currentSheet(), document(), CASettings::finaleLyricsBehaviour(), CASyllable::lyricsContext(), CAMusElement::Mark, CAMark::markType(), CAMusElement::musElementType(), CALyricsContext::next(), CALyricsContext::previous(), CAUndo::pushUndoCommand(), rebuildUI(), CAScoreViewPort::removeTextEdit(), CAScoreViewPort::selection(), CAScoreViewPort::selectMElement(), CASyllable::setHyphenStart(), CASyllable::setMelismaStart(), CASyllable::setText(), CACanorus::settings(), CAMusElement::Syllable, CAMark::Text, CAScoreViewPort::textEdit(), and CACanorus::undo().
Referenced by initViewPort().


| void CAMainWin::onTimeEditedTimerTimeout | ( | ) | [private, slot] |
Called every second when timeEditedTimer has timeout. Increases the locally stored time the document is being edited.
References _timeEditedTime.
Referenced by CAMainWin().

| void CAMainWin::onUiOpenRecentDocumentTriggered | ( | ) | [private, slot] |
References openDocument(), CACanorus::recentDocumentList(), CACanorus::removeRecentDocument(), and Ui_uiMainWindow::uiOpenRecent.
Referenced by on_uiOpenRecent_aboutToShow().


| CADocument * CAMainWin::openDocument | ( | const QString & | fileName | ) |
Opens a document with the given absolute file name. The previous document will be lost.
Returns a pointer to the opened document or null if opening the document has failed.
References CAFileFormats::CAN_FILTER, CAFileFormats::CANORUSML_FILTER, CAImport::importDocument(), CAImport::importedDocument(), CAImport::readableStatus(), CADocument::setFileName(), CAFile::setStreamFromFile(), CAFile::status(), stopPlayback(), and uiSaveDialog.
Referenced by on_uiImportDocument_triggered(), on_uiOpenDocument_triggered(), onUiOpenRecentDocumentTriggered(), CAAutoRecovery::openRecovery(), and CACanorus::parseOpenFileArguments().


| CADocument * CAMainWin::openDocument | ( | CADocument * | doc | ) |
Opens the given document. The previous document will be lost.
Returns a pointer to the opened document or null if opening the document has failed.
References clearUI(), CAUndo::createUndoStack(), currentScoreViewPort(), CAUndo::deleteUndoStack(), document(), CADocument::fileName(), CACanorus::insertRecentDocument(), CACanorus::mainWinCount(), rebuildUI(), CAScoreViewPort::selectContext(), setDocument(), CADocument::sheetCount(), stopPlayback(), Ui_uiMainWindow::uiCloseDocument, Ui_uiMainWindow::uiTabWidget, CACanorus::undo(), and updateToolBars().

| void CAMainWin::pasteAt | ( | const QPoint | coords, |
| CAScoreViewPort * | v | ||
| ) |
Backend for Edit->Paste.
References CASheet::addContext(), CALyricsContext::addEmptySyllable(), CALyricsContext::addSyllable(), CAScoreViewPort::addToSelection(), CAStaff::addVoice(), CAScoreViewPort::clearSelection(), CATuplet::clone(), CASyllable::clone(), CAMusElement::clone(), CASlur::clone(), CAVoice::contains(), CADrawableContext::context(), CAMusElement::context(), CASheet::contextAt(), CASheet::contextCount(), CASheet::contextIndex(), CASheet::contextList(), CAContext::contextType(), CAUndo::createUndoCommand(), CAScoreViewPort::currentContext(), currentContext(), currentScoreViewPort(), currentSheet(), document(), CAContext::FunctionMarkContext, CALCDNumber::getRealValue(), CAVoice::insert(), CASheet::insertContextAfter(), CAMusElement::isPlayable(), CAVoice::lastNote(), CAContext::LyricsContext, CAVoice::lyricsContextList(), CADrawableMusElement::musElement(), CAMusElement::musElementType(), CAScoreViewPort::nearestRightElement(), CAMusElement::Note, CASlur::noteEnd(), CATuplet::noteList(), CANote::phrasingSlurEnd(), CANote::phrasingSlurStart(), CASlur::PhrasingSlurType, CAVoice::previous(), CAUndo::pushUndoCommand(), rebuildUI(), CALyricsContext::repositSyllables(), CAScoreViewPort::setLastMousePressCoordsAfter(), CANote::setPhrasingSlurStart(), CANote::setSlurStart(), CANote::setTieStart(), CAMusElement::setTimeStart(), CAContext::sheet(), CAScoreViewPort::sheet(), CANote::slurEnd(), CANote::slurStart(), CASlur::SlurType, CASlur::slurType(), CAContext::Staff, CASheet::staffCount(), CALyricsContext::syllableAt(), CALyricsContext::syllableList(), CAStaff::synchronizeVoices(), CANote::tieEnd(), CANote::tieStart(), CASlur::TieType, CAMusElement::timeStart(), CAPlayable::tuplet(), uiVoiceNum, CACanorus::undo(), CAStaff::voiceAt(), and CAStaff::voiceCount().
Referenced by on_uiPaste_triggered().

| void CAMainWin::playbackFinished | ( | ) | [private, slot] |
Called when playback is finished or interrupted by the user. It stops the playback, closes ports etc.
References _playback, _playbackViewPort, _prePlaybackSelection, _repaintTimer, CAMidiDevice::closeOutputPort(), CACanorus::midiDevice(), mode(), setMode(), and Ui_uiMainWindow::uiPlayFromSelection.
Referenced by on_uiPlayFromSelection_toggled(), and playImmediately().


| void CAMainWin::playImmediately | ( | QList< CAMusElement * > | elements | ) | [private] |
Immediately plays the notes. This is usually called when inserting new notes or changing the pitch of existing notes.
References _playback, CACanorus::midiDevice(), playbackFinished(), CAPlayback::playImmediately(), and CACanorus::settings().
Referenced by insertMusElementAt(), and scoreViewPortKeyPress().


| void CAMainWin::rebuildUI | ( | CASheet * | sheet, |
| bool | repaint = true |
||
| ) |
Rebuilds the GUI from data.
This method is called eg. when multiple viewports share the same data and a change has been made (eg. a note pitch has changed or a new element added). ViewPorts content is repositioned and redrawn (CAEngraver creates CADrawable elements for every score viewport, sources are updated in source viewports etc.).
sheet argument is a pointer to the data sheet where the change occured. This way only viewports showing the given sheet are updated which speeds up the process. If sheet argument is null, all viewports are rebuilt, but the viewports contents, number and locations remain the same.
If repaint is True (default) the rebuilt viewports are also repainted. If False, viewports content is only created but not yet drawn. This is useful when multiple operations which could potentially change the content are to happen and we want to actually draw it only at the end.
References _resourceView, _viewPortList, clearUI(), document(), CAResourceView::rebuildUi(), rebuildUILock(), CAViewPort::ScoreViewPort, setRebuildUILock(), updateToolBars(), and updateWindowTitle().
Referenced by deleteSelection(), insertMusElementAt(), newDocument(), on_uiAssociatedVoice_activated(), on_uiClefOffset_valueChanged(), on_uiCloseDocument_triggered(), on_uiContextName_returnPressed(), on_uiDynamicCustomText_returnPressed(), on_uiDynamicText_toggled(), on_uiDynamicVolume_valueChanged(), on_uiFermataType_toggled(), on_uiFinger_toggled(), on_uiFingeringOriginal_toggled(), on_uiFMChordArea_toggled(), on_uiFMEllipse_toggled(), on_uiFMFunction_toggled(), on_uiFMTonicDegree_toggled(), on_uiHiddenRest_toggled(), on_uiImportDocument_triggered(), on_uiInstrumentChange_activated(), on_uiKeySig_activated(), on_uiMidiRecorder_triggered(), on_uiNewSheet_triggered(), on_uiNewVoice_triggered(), on_uiNewWindow_triggered(), on_uiNoteStemDirection_toggled(), on_uiPlayableLength_toggled(), on_uiRedo_toggled(), on_uiRemoveContext_triggered(), on_uiRemoveVoice_triggered(), on_uiRepeatMarkType_toggled(), on_uiSettings_triggered(), on_uiSheetName_returnPressed(), on_uiTempoBeat_toggled(), on_uiTempoBpm_returnPressed(), on_uiTimeSigBeat_valueChanged(), on_uiTimeSigBeats_valueChanged(), on_uiTupletType_toggled(), on_uiUndo_toggled(), on_uiVoiceInstrument_activated(), on_uiVoiceName_returnPressed(), on_uiVoiceStemDirection_toggled(), onTextEditKeyPressEvent(), openDocument(), pasteAt(), CACanorus::rebuildUI(), scoreViewPortKeyPress(), scoreViewPortMousePress(), scoreViewPortMouseRelease(), and sourceViewPortCommit().

| void CAMainWin::rebuildUI | ( | bool | repaint = true | ) |
Rebuilds the GUI from data.
This method is called eg. when multiple viewports share the same data and a change has been made (eg. a note pitch has changed or a new element added). ViewPorts content is repositioned and redrawn (CAEngraver creates CADrawable elements for every score viewport, sources are updated in source viewports etc.).
This method in comparison to CAMainWin::rebuildUI(CASheet *s, bool repaint) rebuilds the whole GUI from scratch and creates new viewports for the sheets. This method is called for example when a new document is created or opened.
If repaint is True (default) the rebuilt viewports are also repainted. If False, viewports content is only created but not yet drawn. This is useful when multiple operations which could potentially change the content are to happen and we want to actually draw it only at the end.
References _resourceView, _viewPortList, addSheet(), clearUI(), document(), CAResourceView::rebuildUi(), rebuildUILock(), CAViewPort::ScoreViewPort, setRebuildUILock(), CADocument::sheetCount(), Ui_uiMainWindow::uiTabWidget, updateToolBars(), and updateWindowTitle().

| bool CAMainWin::rebuildUILock | ( | ) | [inline] |
| void CAMainWin::removeSheet | ( | CASheet * | sheet | ) |
Removes the sheet from the GUI and deletes the viewports and viewport containers and tabs pointing to the given sheet.
References _sheetMap, currentViewPort(), CASourceViewPort::lyricsContext(), CAViewPort::ScoreViewPort, setCurrentViewPort(), setCurrentViewPortContainer(), CAContext::sheet(), CAViewPort::SourceViewPort, CAVoice::staff(), Ui_uiMainWindow::uiTabWidget, viewPortList(), and CASourceViewPort::voice().
Referenced by on_uiRemoveSheet_triggered().


| void CAMainWin::removeViewPort | ( | CAViewPort * | v | ) | [inline] |
References _viewPortList.
| CAResourceView* CAMainWin::resourceView | ( | ) | [inline] |
References _resourceView.
| QAction* CAMainWin::resourceViewAction | ( | ) | [inline] |
References Ui_uiMainWindow::uiResourceView.
| void CAMainWin::restartTimeEditedTime | ( | ) | [inline] |
References _timeEditedTime.
Referenced by CAMainWin(), newDocument(), and CACanorus::restartTimeEditedTimes().

| bool CAMainWin::saveDocument | ( | QString | fileName | ) |
Saves the current document to a given absolute fileName. This function is usually called when the filename was entered and save document dialog successfully closed. If recovery is False (default), it changes the timeEdit, fileName and some other document properties before saving it.
Returns True, if the save was complete; False otherwise.
References _timeEditedTime, CAFileFormats::CAN_FILTER, CAFileFormats::CANORUSML_FILTER, document(), CAExport::exportDocument(), CAExport::exportedDocument(), CACanorus::insertRecentDocument(), CACanorus::restartTimeEditedTimes(), CADocument::setDateLastModified(), CADocument::setFileName(), CADocument::setModified(), CAExport::setStreamToFile(), CADocument::setTimeEdited(), uiSaveDialog, updateWindowTitle(), and CAExport::wait().
Referenced by on_uiSaveDocument_triggered(), and on_uiSaveDocumentAs_triggered().


| void CAMainWin::scoreViewPortDoubleClick | ( | QMouseEvent * | e, |
| const QPoint | coords | ||
| ) | [private, slot] |
Processes the mouse double click event. Currently this selects the current bar.
References mode(), and SelectMode.
Referenced by initViewPort().


| void CAMainWin::scoreViewPortKeyPress | ( | QKeyEvent * | e | ) | [private, slot] |
Processes the key press event e. Any action happened in any of the viewports are always linked to its main window slots.
References CAMusElementFactory::addNoteAccs(), CAMusElementFactory::addNoteExtraAccs(), CAMusElementFactory::addPlayableDotted(), CAPlayableLength::Breve, CAPlayable::calculateTimeLength(), CAScoreViewPort::clearSelection(), CARest::composeRests(), CADrawableContext::context(), CAContext::contextType(), CAUndo::createUndoCommand(), CAScoreViewPort::currentContext(), currentScoreViewPort(), currentSheet(), currentVoice(), deleteSelection(), CAKeySignature::diatonicKey(), CANote::diatonicPitch(), document(), CAPlayableLength::dotted(), CADrawableMusElement::drawableMusElementType(), CADrawableMusElement::DrawableNote, EditMode, CAPlayableLength::Eighth, CAVoice::getKeySig(), CAPlayableLength::Half, CAPlayableLength::HundredTwentyEighth, CAVoice::insert(), InsertMode, CAMusElement::isPlayable(), CAVoice::lyricsContextList(), mode(), CADrawableMusElement::musElement(), musElementFactory(), CAMusElement::musElementType(), CAStaff::next(), CAVoice::next(), CARest::Normal, CAMusElement::Note, CADiatonicKey::noteAccs(), CADiatonicPitch::noteName(), CAPlayable::playableLength(), CAMusElementFactory::playableLength(), playImmediately(), CAUndo::pushUndoCommand(), CAPlayableLength::Quarter, rebuildUI(), CAVoice::remove(), CAMusElement::Rest, CAScoreViewPort::selection(), CAScoreViewPort::selectMElement(), SelectMode, CAScoreViewPort::selectNextMusElement(), CAScoreViewPort::selectPrevMusElement(), CAScoreViewPort::selectUpMusElement(), CAScoreViewPort::setCurrentContext(), CAMenuToolButton::setCurrentId(), setCurrentViewPort(), CANote::setDiatonicPitch(), CAPlayableLength::setDotted(), CAScoreViewPort::setDrawShadowNoteAccs(), CALCDNumber::setRealValue(), CAScoreViewPort::setShadowNoteAccs(), CAScoreViewPort::setShadowNoteLength(), CACanorus::settings(), CAContext::sheet(), CAScoreViewPort::sheet(), CABarline::Single, CAPlayableLength::Sixteenth, CAPlayableLength::SixtyFourth, CAContext::Staff, CAPlayable::staff(), CAMusElementFactory::subNoteAccs(), CAMusElementFactory::subNoteExtraAccs(), CAStaff::synchronizeVoices(), CAPlayableLength::ThirtySecond, CAMusElement::timeLength(), CAMusElement::timeStart(), Ui_uiMainWindow::uiEditMode, Ui_uiMainWindow::uiInsertPlayable, uiPlayableLength, Ui_uiMainWindow::uiPlayFromSelection, Ui_uiMainWindow::uiSelectMode, uiVoiceNum, CACanorus::undo(), CAScoreViewPort::updateHelpers(), updateToolBars(), CAPlayable::voice(), CAStaff::voiceAt(), and CAPlayableLength::Whole.
Referenced by initViewPort().

| void CAMainWin::scoreViewPortMouseMove | ( | QMouseEvent * | e, |
| const QPoint | coords | ||
| ) | [private, slot] |
Processes the mouse move event e with coordinates coords. Any action happened in any of the viewports are always linked to its main window slots.
References CAScoreViewPort::addSelectionRegion(), CADrawableStaff::calculatePitch(), CAScoreViewPort::clearSelectionRegionList(), CAScoreViewPort::coordsToTime(), CAScoreViewPort::currentContext(), CADrawableContext::drawableContextType(), CADrawableMusElement::DrawableSlur, CADrawableContext::DrawableStaff, CAScoreViewPort::findContextsInRegion(), CADrawableStaff::getAccs(), InsertMode, CAScoreViewPort::lastMousePressCoords(), CADrawable::Left, mode(), musElementFactory(), CAPlayableLength::musicLengthToTimeLength(), CAMusElement::Note, CAMusElementFactory::noteExtraAccs(), CAScoreViewPort::resizeDirection(), CAMusElement::Rest, CADrawable::Right, CAScoreViewPort::selection(), SelectMode, CAMusElementFactory::setNoteAccs(), CAScoreViewPort::setShadowNoteAccs(), CAScoreViewPort::setShadowNoteVisible(), CAPlayableLength::Sixteenth, CAScoreViewPort::timeToCoords(), CADrawable::Undefined, and CAScoreViewPort::updateHelpers().
Referenced by initViewPort().


| void CAMainWin::scoreViewPortMousePress | ( | QMouseEvent * | e, |
| const QPoint | coords | ||
| ) | [private, slot] |
Processes the mouse press event e with world coordinates coords. Any action happened in any of the viewports are always linked to these main window slots.
References CAPluginManager::action(), CAScoreViewPort::addToSelection(), CAMark::BookMark, CAScoreViewPort::clearSelection(), CAScoreViewPort::clearSelectionRegionList(), CADrawableContext::context(), CAMusElement::context(), CASheet::contextCount(), CAContext::contextType(), CAScoreViewPort::createTextEdit(), CAUndo::createUndoCommand(), CAScoreViewPort::currentContext(), CAToolButton::currentId(), currentScoreViewPort(), document(), CADrawableMusElement::drawableContext(), EditMode, CAContext::FunctionMarkContext, CADrawable::height(), CASheet::insertContextAfter(), InsertMode, insertMusElementAt(), CAMusElement::isPlayable(), CAContext::LyricsContext, CAMusElement::Mark, CAMusElementFactory::markType(), mode(), CADrawableMusElement::musElement(), musElementFactory(), CAScoreViewPort::musElementsAt(), CAMusElement::musElementType(), CAMusElementFactory::musElementType(), CAScoreViewPort::nearestUpContext(), CAMusElement::Note, CAUndo::pushUndoCommand(), rebuildUI(), CAScoreViewPort::removeFromSelection(), CAScoreViewPort::removeTextEdit(), CAScoreViewPort::resizeDirection(), CAMusElement::Rest, CAScoreViewPort::selectCElement(), CAScoreViewPort::selectContext(), CAScoreViewPort::selection(), SelectMode, CAScoreViewPort::setCurrentContext(), CALCDNumber::setMax(), CAMusElementFactory::setMusElementType(), CALCDNumber::setRealValue(), CAScoreViewPort::setShadowNoteLength(), CAScoreViewPort::sheet(), CAMusElement::Slur, CAContext::Staff, CASheet::staffCount(), CAMusElement::Syllable, CAMark::Text, CAMusElement::timeEnd(), CAMusElement::timeStart(), uiContextType, Ui_uiMainWindow::uiInsertPlayable, Ui_uiMainWindow::uiInsertSyllable, uiMarkType, Ui_uiMainWindow::uiSelectMode, uiVoiceNum, CADrawable::Undefined, CACanorus::undo(), CAScoreViewPort::updateHelpers(), updateToolBars(), CASheet::voiceList(), CADrawable::width(), CADrawable::xPos(), and CADrawable::yPos().
Referenced by initViewPort().

| void CAMainWin::scoreViewPortMouseRelease | ( | QMouseEvent * | e, |
| const QPoint | coords | ||
| ) | [private, slot] |
Processes the mouse move event e with coordinates coords. Any action happened in any of the viewports are always linked to its main window slots.
References CAScoreViewPort::addToSelection(), CAScoreViewPort::clearSelection(), CAScoreViewPort::clearSelectionRegionList(), document(), CADrawableMusElement::DrawableSlur, CAScoreViewPort::findContextsInRegion(), InsertMode, CAScoreViewPort::lastMousePressCoords(), mode(), CAUndo::pushUndoCommand(), rebuildUI(), CAScoreViewPort::resizeDirection(), CAScoreViewPort::selectedVoice(), CAScoreViewPort::sheet(), CAVoice::staff(), CADrawable::Undefined, and CACanorus::undo().
Referenced by initViewPort().


| void CAMainWin::scoreViewPortTripleClick | ( | QMouseEvent * | e, |
| const QPoint | coords | ||
| ) | [private, slot] |
Processes the mouse triple click event. Currently this selects the current line.
References mode(), and SelectMode.
Referenced by initViewPort().


| void CAMainWin::scoreViewPortWheel | ( | QWheelEvent * | e, |
| const QPoint | coords | ||
| ) | [private, slot] |
Processes the mouse wheel event e with coordinates coords. Any action happened in any of the viewports are always linked to its main window slots.
References _animatedScroll, setCurrentViewPort(), CAScoreViewPort::setWorldX(), CAScoreViewPort::setWorldY(), CAScoreViewPort::setZoom(), CAScoreViewPort::worldX(), CAScoreViewPort::worldY(), and CAScoreViewPort::zoom().
Referenced by initViewPort().


| void CAMainWin::setCurrentViewPort | ( | CAViewPort * | viewPort | ) | [inline, private] |
References _currentViewPort.
Referenced by clearUI(), floatViewPortClosed(), initViewPort(), on_uiCloseCurrentView_triggered(), on_uiTabWidget_currentChanged(), on_uiUnsplitAll_triggered(), removeSheet(), scoreViewPortKeyPress(), scoreViewPortWheel(), sourceViewPortCommit(), and viewPortClicked().

| void CAMainWin::setCurrentViewPortContainer | ( | CAViewPortContainer * | vpc | ) | [inline, private] |
References _currentViewPortContainer.
Referenced by addSheet(), on_uiTabWidget_currentChanged(), and removeSheet().

| void CAMainWin::setDocument | ( | CADocument * | document | ) | [inline] |
References _document, _resourceView, document(), and CAResourceView::setDocument().
Referenced by CAMainWin(), newDocument(), on_uiCloseDocument_triggered(), on_uiImportDocument_triggered(), on_uiNewWindow_triggered(), openDocument(), and sourceViewPortCommit().


| void CAMainWin::setMidiRecorderView | ( | CAMidiRecorderView * | v | ) | [inline] |
References _midiRecorderView.
| void CAMainWin::setMode | ( | CAMode | mode | ) | [private] |
Sets the current mode and updates the GUI and toolbars.
References _mode, _viewPortList, CAMark::BookMark, CAScoreViewPort::createTextEdit(), currentScoreViewPort(), currentViewPort(), EditMode, InsertMode, CAMusElement::Mark, mode(), musElementFactory(), CAMusElement::musElementType(), CAMusElement::Note, CAScoreViewPort::playing(), CAScoreViewPort::removeTextEdit(), CAViewPort::ScoreViewPort, CAScoreViewPort::selection(), SelectMode, CAScoreViewPort::setBorder(), CAMusElementFactory::setMusElementType(), CALCDNumber::setRealValue(), CAScoreViewPort::setShadowNoteVisible(), CAMusElement::Syllable, CAMark::Text, CAScoreViewPort::textEditVisible(), uiVoiceNum, CAMusElement::Undefined, CAScoreViewPort::unsetBorder(), and updateToolBars().
Referenced by initViewPort(), on_uiArticulationType_toggled(), on_uiBarlineType_toggled(), on_uiClefType_toggled(), on_uiContextType_toggled(), on_uiEditMode_toggled(), on_uiInsertFM_toggled(), on_uiInsertKeySig_toggled(), on_uiInsertPlayable_toggled(), on_uiInsertSyllable_toggled(), on_uiMarkType_toggled(), on_uiSelectMode_toggled(), on_uiTimeSigType_toggled(), and playbackFinished().


| void CAMainWin::setRebuildUILock | ( | bool | l | ) | [inline, private] |
References _rebuildUILock.
Referenced by CAMainWin(), and rebuildUI().

| void CAMainWin::setupCustomUi | ( | ) | [private] |
Creates more complex widgets and layouts that cannot be created using Qt Designer (like adding custom toolbars to main window, button boxes etc.).
References _musElementFactory, _poPrintCtl, _poPrintPreviewCtl, CAArticulation::Accent, CAMark::Dynamic, CABarline::End, CADynamic::mf, on_uiKeySig_activated(), CAPlayableLength::Quarter, CAMenuToolButton::setCurrentId(), CAToolButton::setDefaultAction(), CAUndoToolButton::setDefaultAction(), CAContext::Staff, CANote::StemPreferred, CAFunctionMark::T, CASlur::TieType, CAClef::Treble, Ui_uiMainWindow::uiAccsVisible, uiArticulationType, uiAssociatedVoice, uiAssociatedVoiceAction, uiBarlineType, uiClefOffset, uiClefToolBar, uiClefType, uiContextName, Ui_uiMainWindow::uiContextProperties, uiContextToolBar, uiContextType, Ui_uiMainWindow::uiCut, uiDynamicCustomText, uiDynamicText, uiDynamicToolBar, uiDynamicVolume, Ui_uiMainWindow::uiEditMode, uiFermataToolBar, uiFermataType, Ui_uiMainWindow::uiFileToolBar, uiFinger, uiFingeringOriginal, uiFingeringToolBar, uiFMChordArea, Ui_uiMainWindow::uiFMEllipse, uiFMFunction, uiFMKeySig, uiFMTonicDegree, uiFMToolBar, uiHelpDock, Ui_uiMainWindow::uiHiddenRest, Ui_uiMainWindow::uiInsertArticulation, Ui_uiMainWindow::uiInsertBarline, Ui_uiMainWindow::uiInsertClef, Ui_uiMainWindow::uiInsertFM, uiInsertGroup, Ui_uiMainWindow::uiInsertKeySig, Ui_uiMainWindow::uiInsertMark, Ui_uiMainWindow::uiInsertPlayable, Ui_uiMainWindow::uiInsertSyllable, Ui_uiMainWindow::uiInsertTimeSig, uiInsertToolBar, uiInstrumentChange, uiInstrumentToolBar, uiKeySig, uiKeySigToolBar, uiMarkType, Ui_uiMainWindow::uiMenuEdit, Ui_uiMainWindow::uiNewContext, Ui_uiMainWindow::uiNewSheet, Ui_uiMainWindow::uiNewVoice, uiNoteStemDirection, uiPlayableLength, uiPlayableToolBar, Ui_uiMainWindow::uiPrintToolBar, uiPyConsoleDock, uiRedo, Ui_uiMainWindow::uiRemoveContext, Ui_uiMainWindow::uiRemoveSheet, Ui_uiMainWindow::uiRemoveVoice, uiRepeatMarkToolBar, uiRepeatMarkType, Ui_uiMainWindow::uiSelectMode, uiSheetName, Ui_uiMainWindow::uiSheetProperties, uiSheetToolBar, uiSlurType, Ui_uiMainWindow::uiStandardToolBar, uiStanzaNumber, uiStanzaNumberAction, uiTempoBeat, uiTempoBpm, uiTempoEquals, uiTempoToolBar, uiTimeSigBeat, uiTimeSigBeats, uiTimeSigSlash, uiTimeSigToolBar, uiTimeSigType, uiTupletActualNumber, uiTupletActualNumberAction, uiTupletInsteadOf, uiTupletInsteadOfAction, uiTupletNumber, uiTupletNumberAction, uiTupletType, uiUndo, uiVoiceInstrument, uiVoiceName, uiVoiceNum, Ui_uiMainWindow::uiVoiceProperties, uiVoiceStemDirection, and uiVoiceToolBar.
Referenced by CAMainWin().


| void CAMainWin::sourceViewPortCommit | ( | QString | inputString | ) | [private, slot] |
Called when a user clicks "Commit" button in source viewport.
References _viewPortList, CAVoice::addLyricsContext(), CAStaff::addVoice(), CALyricsContext::associatedVoice(), CAUndo::changeDocument(), clearUI(), CALyricsContext::cloneLyricsContextProperties(), CAUndo::createUndoCommand(), CASourceViewPort::document(), document(), CAVoice::getSignList(), CAImport::importDocument(), CAImport::importedDocument(), CAImport::importedLyricsContext(), CAImport::importedVoice(), CAImport::importLyricsContext(), CAImport::importVoice(), CASheet::insertContextAfter(), CASourceViewPort::lyricsContext(), CAUndo::pushUndoCommand(), rebuildUI(), CAVoice::remove(), CASheet::removeContext(), CAVoice::removeLyricsContext(), CAStaff::removeVoice(), CAViewPort::ScoreViewPort, setCurrentViewPort(), setDocument(), CASourceViewPort::setLyricsContext(), CAScoreViewPort::setSelectedVoice(), CALilyPondImport::setTemplateVoice(), CASourceViewPort::setVoice(), CAContext::sheet(), CAVoice::staff(), stopPlayback(), CAStaff::synchronizeVoices(), CACanorus::undo(), CAViewPort::viewPortType(), and CASourceViewPort::voice().
Referenced by initViewPort().


| bool CAMainWin::stopPlayback | ( | ) | [inline, private] |
References _playback, and CAPlayback::stopNow().
Referenced by newDocument(), on_uiCut_triggered(), on_uiImportDocument_triggered(), on_uiNewSheet_triggered(), on_uiRedo_toggled(), on_uiRemoveContext_triggered(), on_uiRemoveSheet_triggered(), on_uiRemoveVoice_triggered(), on_uiUndo_toggled(), openDocument(), and sourceViewPortCommit().


| void CAMainWin::updateClefToolBar | ( | ) | [private] |
Shows/Hides the clef properties tool bar according to the current state.
References currentScoreViewPort(), EditMode, InsertMode, mode(), musElementFactory(), CAClef::offset(), CAClef::offsetToReadable(), CAScoreViewPort::selection(), uiClefOffset, uiClefToolBar, and uiClefType.
Referenced by updateToolBars().


| void CAMainWin::updateContextToolBar | ( | ) | [private] |
Shows/Hides context tool bar according to the selected context (if any) and hides/shows specific actions in the toolbar for the current context.
References CALyricsContext::associatedVoice(), CAContext::contextType(), currentContext(), currentSheet(), CAContext::FunctionMarkContext, CAContext::LyricsContext, mode(), CAContext::name(), SelectMode, CAContext::Staff, CALyricsContext::stanzaNumber(), uiAssociatedVoice, uiAssociatedVoiceAction, uiContextName, uiContextToolBar, Ui_uiMainWindow::uiInsertPlayable, uiStanzaNumber, uiStanzaNumberAction, and CASheet::voiceList().
Referenced by updateToolBars().


| void CAMainWin::updateDynamicToolBar | ( | ) | [private] |
Shows/Hides the dynamic marks properties tool bar according to the current state.
References CAToolButton::currentId(), currentScoreViewPort(), CAMark::Dynamic, CADynamic::dynamicTextFromString(), EditMode, InsertMode, mode(), musElementFactory(), CAScoreViewPort::selection(), CAMenuToolButton::setCurrentId(), CADynamic::text(), uiDynamicCustomText, uiDynamicText, uiDynamicToolBar, uiDynamicVolume, uiMarkType, and CADynamic::volume().
Referenced by updateToolBars().


| void CAMainWin::updateFermataToolBar | ( | ) | [private] |
Shows/Hides the fermata properties tool bar according to the current state.
References CAToolButton::currentId(), currentScoreViewPort(), EditMode, CAMark::Fermata, CAFermata::fermataType(), InsertMode, mode(), musElementFactory(), CAScoreViewPort::selection(), CAMenuToolButton::setCurrentId(), uiFermataToolBar, uiFermataType, and uiMarkType.
Referenced by updateToolBars().


| void CAMainWin::updateFingeringToolBar | ( | ) | [private] |
Shows/Hides the fingering properties tool bar according to the current state.
References CAToolButton::currentId(), currentScoreViewPort(), EditMode, CAFingering::finger(), CAMark::Fingering, InsertMode, CAFingering::isOriginal(), mode(), musElementFactory(), CAScoreViewPort::selection(), CAMenuToolButton::setCurrentId(), uiFinger, uiFingeringOriginal, uiFingeringToolBar, and uiMarkType.
Referenced by updateToolBars().


| void CAMainWin::updateFMToolBar | ( | ) | [private] |
Shows/Hides the function mark properties tool bar according to the current state.
References CAFunctionMark::chordArea(), currentScoreViewPort(), CADrawableKeySignature::diatonicKeyToRow(), EditMode, CAFunctionMark::function(), InsertMode, CAFunctionMark::isChordAreaMinor(), CAFunctionMark::isMinor(), CAFunctionMark::isPartOfEllipse(), CAFunctionMark::isTonicDegreeMinor(), CAFunctionMark::key(), CADiatonicKey::Minor, mode(), musElementFactory(), CAScoreViewPort::selection(), CAMenuToolButton::setCurrentId(), CAFunctionMark::tonicDegree(), uiFMChordArea, Ui_uiMainWindow::uiFMEllipse, uiFMFunction, uiFMKeySig, uiFMTonicDegree, uiFMToolBar, and Ui_uiMainWindow::uiInsertFM.
Referenced by updateToolBars().


| void CAMainWin::updateInsertToolBar | ( | ) | [private] |
Shows/Hides music elements which cannot be placed in the selected context.
References CAContext::contextType(), currentContext(), currentSheet(), EditMode, CAContext::FunctionMarkContext, CAContext::LyricsContext, mode(), CAContext::Staff, uiArticulationType, uiBarlineType, uiClefType, Ui_uiMainWindow::uiInsertBarline, Ui_uiMainWindow::uiInsertClef, Ui_uiMainWindow::uiInsertFM, Ui_uiMainWindow::uiInsertKeySig, Ui_uiMainWindow::uiInsertPlayable, Ui_uiMainWindow::uiInsertSyllable, Ui_uiMainWindow::uiInsertTimeSig, uiInsertToolBar, uiMarkType, Ui_uiMainWindow::uiNewContext, uiSlurType, and uiTimeSigType.
Referenced by updateToolBars().


| void CAMainWin::updateInstrumentToolBar | ( | ) | [private] |
Shows/Hides the instrument marks properties tool bar according to the current state.
References CAToolButton::currentId(), currentScoreViewPort(), EditMode, InsertMode, CAInstrumentChange::instrument(), CAMark::InstrumentChange, mode(), musElementFactory(), CAScoreViewPort::selection(), uiInstrumentChange, uiInstrumentToolBar, and uiMarkType.
Referenced by updateToolBars().


| void CAMainWin::updateKeySigToolBar | ( | ) | [private] |
Shows/Hides the key signature properties tool bar according to the current state.
References currentScoreViewPort(), CAKeySignature::diatonicKey(), CADrawableKeySignature::diatonicKeyToRow(), EditMode, InsertMode, CADiatonicKey::Minor, mode(), musElementFactory(), CAScoreViewPort::selection(), Ui_uiMainWindow::uiInsertKeySig, uiKeySig, and uiKeySigToolBar.
Referenced by updateToolBars().


| void CAMainWin::updatePlayableToolBar | ( | ) | [private] |
Show/Hides the playable tool bar and its properties according to the current state.
References CAToolButton::currentId(), currentScoreViewPort(), EditMode, CARest::Hidden, InsertMode, mode(), musElementFactory(), CAMusElement::musElementType(), CAPlayableLength::musicLength(), CAMusElement::Note, CAPlayable::playableLength(), CAMusElement::Rest, CARest::restType(), CAScoreViewPort::selection(), CAMenuToolButton::setCurrentId(), CALCDNumber::setRealValue(), CANote::stemDirection(), Ui_uiMainWindow::uiHiddenRest, Ui_uiMainWindow::uiInsertPlayable, uiNoteStemDirection, uiPlayableLength, uiPlayableToolBar, uiTupletActualNumber, uiTupletActualNumberAction, uiTupletInsteadOf, uiTupletInsteadOfAction, uiTupletNumber, uiTupletNumberAction, uiTupletType, uiVoiceNum, CAPlayable::voice(), and CAVoice::voiceNumber().
Referenced by on_uiTupletType_toggled(), and updateToolBars().


| void CAMainWin::updateRepeatMarkToolBar | ( | ) | [private] |
Shows/Hides the repeat mark properties tool bar according to the current state.
References CAToolButton::currentId(), currentScoreViewPort(), EditMode, InsertMode, mode(), musElementFactory(), CAMark::RepeatMark, CARepeatMark::repeatMarkType(), CAMusElementFactory::repeatMarkType(), CAScoreViewPort::selection(), CAMenuToolButton::setCurrentId(), uiMarkType, uiRepeatMarkToolBar, uiRepeatMarkType, CARepeatMark::Volta, and CARepeatMark::voltaNumber().
Referenced by updateToolBars().


| void CAMainWin::updateSheetToolBar | ( | ) | [private] |
Shows sheet tool bar if nothing selected. Otherwise hides it.
References CAScoreViewPort::currentContext(), currentScoreViewPort(), CASheet::name(), CAScoreViewPort::selection(), CAScoreViewPort::sheet(), uiSheetName, and uiSheetToolBar.
Referenced by updateToolBars().


| void CAMainWin::updateTempoToolBar | ( | ) | [private] |
Shows/Hides the tempo marks properties tool bar according to the current state.
References CATempo::beat(), CATempo::bpm(), CAToolButton::currentId(), currentScoreViewPort(), CAPlayableLength::dotted(), EditMode, InsertMode, mode(), musElementFactory(), CAPlayableLength::musicLength(), CAScoreViewPort::selection(), CAMenuToolButton::setCurrentId(), CAMark::Tempo, uiMarkType, uiTempoBeat, uiTempoBpm, and uiTempoToolBar.
Referenced by updateToolBars().


| void CAMainWin::updateTimeSigToolBar | ( | ) | [private] |
Shows/Hides the time signature properties tool bar according to the current state.
References CATimeSignature::beat(), CATimeSignature::beats(), currentScoreViewPort(), EditMode, InsertMode, mode(), musElementFactory(), CAScoreViewPort::selection(), uiTimeSigBeat, uiTimeSigBeats, uiTimeSigToolBar, and uiTimeSigType.
Referenced by updateToolBars().


| void CAMainWin::updateToolBars | ( | ) | [private] |
Updates all the toolbars according to the current state of the main window.
References document(), Ui_uiMainWindow::uiNewSheet, updateClefToolBar(), updateContextToolBar(), updateDynamicToolBar(), updateFermataToolBar(), updateFingeringToolBar(), updateFMToolBar(), updateInsertToolBar(), updateInstrumentToolBar(), updateKeySigToolBar(), updatePlayableToolBar(), updateRepeatMarkToolBar(), updateSheetToolBar(), updateTempoToolBar(), updateTimeSigToolBar(), updateUndoRedoButtons(), and updateVoiceToolBar().
Referenced by addSheet(), newDocument(), on_uiImportDocument_triggered(), on_uiTabWidget_currentChanged(), openDocument(), rebuildUI(), scoreViewPortKeyPress(), scoreViewPortMousePress(), and setMode().


| void CAMainWin::updateUndoRedoButtons | ( | ) | [private] |
Enables or Disabled undo/redo buttons if there are undo/redo commands on the undo stack.
References document(), uiRedo, uiUndo, and CACanorus::undo().
Referenced by updateToolBars().


| void CAMainWin::updateVoiceToolBar | ( | ) | [private] |
Shows/Hides the Voice properties tool bar according to the currently selected context and updates its properties.
References CAContext::contextType(), currentContext(), currentVoice(), CALCDNumber::getRealValue(), mode(), CAVoice::name(), SelectMode, CAMenuToolButton::setCurrentId(), CALCDNumber::setMax(), CAContext::Staff, CAVoice::stemDirection(), Ui_uiMainWindow::uiNewVoice, Ui_uiMainWindow::uiRemoveVoice, uiVoiceInstrument, uiVoiceName, uiVoiceNum, Ui_uiMainWindow::uiVoiceProperties, uiVoiceStemDirection, uiVoiceToolBar, CAStaff::voiceAt(), and CAStaff::voiceCount().
Referenced by on_uiVoiceNum_valChanged(), and updateToolBars().


| void CAMainWin::updateWindowTitle | ( | ) |
References document().
Referenced by rebuildUI(), and saveDocument().


| void CAMainWin::viewPortClicked | ( | ) | [private, slot] |
General viewport mouse press event. Sets it as the current view port.
References currentViewPort(), currentViewPortContainer(), CAViewPortContainer::setCurrentViewPort(), and setCurrentViewPort().
Referenced by initViewPort().


| QList<CAViewPort*> CAMainWin::viewPortList | ( | ) | [inline] |
References _viewPortList.
Referenced by on_uiCloseCurrentView_triggered(), and removeSheet().

bool CAMainWin::_animatedScroll [private] |
Referenced by CAMainWin(), on_uiAnimatedScroll_toggled(), on_uiZoomToSelection_triggered(), and scoreViewPortWheel().
CAViewPort* CAMainWin::_currentViewPort [private] |
Referenced by currentViewPortContainer(), and setCurrentViewPortContainer().
CADocument * CAMainWin::_document [private] |
Pointer to the main window's document it represents. Null if no document opened.
Referenced by document(), and setDocument().
CAKeybdInput* CAMainWin::_keybdInput [private] |
Referenced by CAMainWin(), and onMidiInEvent().
bool CAMainWin::_lockScrollPlayback [private] |
Referenced by CAMainWin(), and on_uiLockScrollPlayback_toggled().
CAMidiRecorderView* CAMainWin::_midiRecorderView [private] |
Referenced by CAMainWin(), clearUI(), midiRecorderView(), on_uiMidiRecorder_triggered(), setMidiRecorderView(), and ~CAMainWin().
CAMode CAMainWin::_mode [private] |
CAMusElementFactory* CAMainWin::_musElementFactory [private] |
Referenced by musElementFactory(), setupCustomUi(), and ~CAMainWin().
CAPlayback* CAMainWin::_playback [private] |
CAViewPort * CAMainWin::_playbackViewPort [private] |
Viewport needed to be updated when playback is active.
Referenced by CAMainWin(), on_uiPlayFromSelection_toggled(), onRepaintTimerTimeout(), and playbackFinished().
CAExport* CAMainWin::_poExp [private] |
Referenced by CAMainWin(), on_uiExportDocument_triggered(), and ~CAMainWin().
CAPrintCtl* CAMainWin::_poPrintCtl [private] |
Referenced by setupCustomUi(), and ~CAMainWin().
CAPreviewCtl* CAMainWin::_poPrintPreviewCtl [private] |
Referenced by setupCustomUi(), and ~CAMainWin().
QList<CADrawableMusElement*> CAMainWin::_prePlaybackSelection [private] |
Referenced by on_uiPlayFromSelection_toggled(), and playbackFinished().
bool CAMainWin::_rebuildUILock [private] |
Lock to avoid recursive rebuilds of the GUI viewports.
Referenced by rebuildUILock(), and setRebuildUILock().
QTimer* CAMainWin::_repaintTimer [private] |
Referenced by CAMainWin(), on_uiPlayFromSelection_toggled(), and playbackFinished().
CAResourceView* CAMainWin::_resourceView [private] |
Referenced by CAMainWin(), on_uiResourceView_toggled(), rebuildUI(), resourceView(), setDocument(), and ~CAMainWin().
QHash<CAViewPortContainer*, CASheet*> CAMainWin::_sheetMap [private] |
Referenced by addSheet(), clearUI(), on_uiScoreView_triggered(), and removeSheet().
unsigned int CAMainWin::_timeEditedTime [private] |
Referenced by onTimeEditedTimerTimeout(), restartTimeEditedTime(), and saveDocument().
QTimer CAMainWin::_timeEditedTimer [private] |
Referenced by CAMainWin().
CATransposeView* CAMainWin::_transposeView [private] |
Referenced by CAMainWin(), on_uiTranspose_triggered(), and ~CAMainWin().
QList<CAViewPortContainer *> CAMainWin::_viewPortContainerList [private] |
Referenced by addSheet().
QList< CAViewPort * > CAMainWin::_viewPortList [private] |
List of all available viewports for any sheet in this main window.
Referenced by clearUI(), initViewPort(), on_uiCloseCurrentView_triggered(), on_uiUnsplitAll_triggered(), rebuildUI(), removeViewPort(), setMode(), sourceViewPortCommit(), and viewPortList().
int CAMainWin::oldUiClefOffsetValue [private] |
Referenced by createCustomActions(), and on_uiClefOffset_valueChanged().
Referenced by createCustomActions().
Referenced by CAPlugin::callAction(), CAMainWin(), and createCustomActions().
CAMenuToolButton* CAMainWin::uiArticulationType [private] |
Referenced by createCustomActions(), setupCustomUi(), and updateInsertToolBar().
QComboBox* CAMainWin::uiAssociatedVoice [private] |
Referenced by createCustomActions(), setupCustomUi(), and updateContextToolBar().
QAction* CAMainWin::uiAssociatedVoiceAction [private] |
Referenced by setupCustomUi(), and updateContextToolBar().
CAMenuToolButton* CAMainWin::uiBarlineType [private] |
Referenced by createCustomActions(), setupCustomUi(), and updateInsertToolBar().
QSpinBox* CAMainWin::uiClefOffset [private] |
Referenced by createCustomActions(), on_uiClefOffset_valueChanged(), setupCustomUi(), and updateClefToolBar().
QToolBar* CAMainWin::uiClefToolBar [private] |
Referenced by createCustomActions(), setupCustomUi(), updateClefToolBar(), and ~CAMainWin().
CAMenuToolButton* CAMainWin::uiClefType [private] |
Referenced by createCustomActions(), setupCustomUi(), updateClefToolBar(), and updateInsertToolBar().
QLineEdit* CAMainWin::uiContextName [private] |
Referenced by createCustomActions(), on_uiContextName_returnPressed(), setupCustomUi(), and updateContextToolBar().
QToolBar* CAMainWin::uiContextToolBar [private] |
Referenced by createCustomActions(), setupCustomUi(), and updateContextToolBar().
CAMenuToolButton* CAMainWin::uiContextType [private] |
Referenced by createCustomActions(), scoreViewPortMousePress(), and setupCustomUi().
QLineEdit* CAMainWin::uiDynamicCustomText [private] |
CAMenuToolButton* CAMainWin::uiDynamicText [private] |
Referenced by createCustomActions(), on_uiDynamicCustomText_returnPressed(), setupCustomUi(), and updateDynamicToolBar().
QToolBar* CAMainWin::uiDynamicToolBar [private] |
Referenced by createCustomActions(), setupCustomUi(), updateDynamicToolBar(), and ~CAMainWin().
QSpinBox* CAMainWin::uiDynamicVolume [private] |
Referenced by createCustomActions(), setupCustomUi(), and updateDynamicToolBar().
QFileDialog * CAMainWin::uiExportDialog = 0 [static] |
QToolBar* CAMainWin::uiFermataToolBar [private] |
Referenced by createCustomActions(), setupCustomUi(), updateFermataToolBar(), and ~CAMainWin().
CAMenuToolButton* CAMainWin::uiFermataType [private] |
Referenced by createCustomActions(), setupCustomUi(), and updateFermataToolBar().
CAMenuToolButton* CAMainWin::uiFinger [private] |
Referenced by createCustomActions(), setupCustomUi(), and updateFingeringToolBar().
QCheckBox* CAMainWin::uiFingeringOriginal [private] |
Referenced by createCustomActions(), setupCustomUi(), and updateFingeringToolBar().
QToolBar* CAMainWin::uiFingeringToolBar [private] |
Referenced by createCustomActions(), setupCustomUi(), and updateFingeringToolBar().
CAMenuToolButton* CAMainWin::uiFMChordArea [private] |
Referenced by createCustomActions(), setupCustomUi(), and updateFMToolBar().
CAMenuToolButton* CAMainWin::uiFMFunction [private] |
Referenced by createCustomActions(), setupCustomUi(), and updateFMToolBar().
QComboBox* CAMainWin::uiFMKeySig [private] |
Referenced by createCustomActions(), setupCustomUi(), and updateFMToolBar().
CAMenuToolButton* CAMainWin::uiFMTonicDegree [private] |
Referenced by createCustomActions(), setupCustomUi(), and updateFMToolBar().
QToolBar* CAMainWin::uiFMToolBar [private] |
Referenced by createCustomActions(), setupCustomUi(), updateFMToolBar(), and ~CAMainWin().
QDockWidget* CAMainWin::uiHelpDock [private] |
Referenced by createCustomActions(), helpDock(), and setupCustomUi().
CAHelpBrowser* CAMainWin::uiHelpWidget [private] |
Referenced by createCustomActions(), and helpWidget().
QFileDialog * CAMainWin::uiImportDialog = 0 [static] |
QActionGroup* CAMainWin::uiInsertGroup [private] |
Referenced by setupCustomUi(), and ~CAMainWin().
QToolBar* CAMainWin::uiInsertToolBar [private] |
Referenced by createCustomActions(), setupCustomUi(), updateInsertToolBar(), and ~CAMainWin().
QComboBox* CAMainWin::uiInstrumentChange [private] |
Referenced by createCustomActions(), setupCustomUi(), and updateInstrumentToolBar().
QToolBar* CAMainWin::uiInstrumentToolBar [private] |
Referenced by createCustomActions(), setupCustomUi(), updateInstrumentToolBar(), and ~CAMainWin().
QComboBox* CAMainWin::uiKeySig [private] |
Referenced by createCustomActions(), setupCustomUi(), and updateKeySigToolBar().
QToolBar* CAMainWin::uiKeySigToolBar [private] |
Referenced by createCustomActions(), setupCustomUi(), updateKeySigToolBar(), and ~CAMainWin().
CAMenuToolButton* CAMainWin::uiMarkType [private] |
CAMenuToolButton* CAMainWin::uiNoteAccs [private] |
CAMenuToolButton* CAMainWin::uiNoteStemDirection [private] |
Referenced by createCustomActions(), setupCustomUi(), and updatePlayableToolBar().
QFileDialog * CAMainWin::uiOpenDialog = 0 [static] |
CAMenuToolButton* CAMainWin::uiPlayableLength [private] |
Referenced by createCustomActions(), scoreViewPortKeyPress(), setupCustomUi(), and updatePlayableToolBar().
QToolBar* CAMainWin::uiPlayableToolBar [private] |
Referenced by createCustomActions(), setupCustomUi(), updatePlayableToolBar(), and ~CAMainWin().
QDockWidget* CAMainWin::uiPyConsoleDock [private] |
Referenced by createCustomActions(), and setupCustomUi().
CAUndoToolButton* CAMainWin::uiRedo [private] |
Referenced by createCustomActions(), setupCustomUi(), and updateUndoRedoButtons().
QToolBar* CAMainWin::uiRepeatMarkToolBar [private] |
Referenced by createCustomActions(), setupCustomUi(), updateRepeatMarkToolBar(), and ~CAMainWin().
CAMenuToolButton* CAMainWin::uiRepeatMarkType [private] |
Referenced by createCustomActions(), setupCustomUi(), and updateRepeatMarkToolBar().
QFileDialog * CAMainWin::uiSaveDialog = 0 [static] |
QLineEdit* CAMainWin::uiSheetName [private] |
Referenced by createCustomActions(), on_uiSheetName_returnPressed(), setupCustomUi(), and updateSheetToolBar().
QToolBar* CAMainWin::uiSheetToolBar [private] |
Referenced by createCustomActions(), setupCustomUi(), and updateSheetToolBar().
CAMenuToolButton* CAMainWin::uiSlurType [private] |
Referenced by createCustomActions(), setupCustomUi(), and updateInsertToolBar().
QSpinBox* CAMainWin::uiStanzaNumber [private] |
Referenced by createCustomActions(), setupCustomUi(), and updateContextToolBar().
QAction* CAMainWin::uiStanzaNumberAction [private] |
Referenced by setupCustomUi(), and updateContextToolBar().
CAMenuToolButton* CAMainWin::uiTempoBeat [private] |
Referenced by createCustomActions(), setupCustomUi(), and updateTempoToolBar().
QLineEdit* CAMainWin::uiTempoBpm [private] |
Referenced by createCustomActions(), on_uiTempoBpm_returnPressed(), setupCustomUi(), and updateTempoToolBar().
QLabel* CAMainWin::uiTempoEquals [private] |
Referenced by createCustomActions(), and setupCustomUi().
QToolBar* CAMainWin::uiTempoToolBar [private] |
Referenced by createCustomActions(), setupCustomUi(), updateTempoToolBar(), and ~CAMainWin().
QSpinBox* CAMainWin::uiTimeSigBeat [private] |
QSpinBox* CAMainWin::uiTimeSigBeats [private] |
QLabel* CAMainWin::uiTimeSigSlash [private] |
Referenced by createCustomActions(), and setupCustomUi().
QToolBar* CAMainWin::uiTimeSigToolBar [private] |
Referenced by createCustomActions(), setupCustomUi(), updateTimeSigToolBar(), and ~CAMainWin().
CAMenuToolButton* CAMainWin::uiTimeSigType [private] |
| QSpinBox* CAMainWin::uiTupletActualNumber |
QAction* CAMainWin::uiTupletActualNumberAction [private] |
Referenced by setupCustomUi(), and updatePlayableToolBar().
QLabel* CAMainWin::uiTupletInsteadOf [private] |
Referenced by createCustomActions(), setupCustomUi(), and updatePlayableToolBar().
QAction* CAMainWin::uiTupletInsteadOfAction [private] |
Referenced by setupCustomUi(), and updatePlayableToolBar().
| QSpinBox* CAMainWin::uiTupletNumber |
QAction* CAMainWin::uiTupletNumberAction [private] |
Referenced by setupCustomUi(), and updatePlayableToolBar().
CAUndoToolButton* CAMainWin::uiUndo [private] |
Referenced by createCustomActions(), setupCustomUi(), and updateUndoRedoButtons().
QComboBox* CAMainWin::uiVoiceInstrument [private] |
Referenced by createCustomActions(), setupCustomUi(), and updateVoiceToolBar().
QLineEdit* CAMainWin::uiVoiceName [private] |
Referenced by createCustomActions(), on_uiVoiceName_returnPressed(), setupCustomUi(), and updateVoiceToolBar().
CALCDNumber* CAMainWin::uiVoiceNum [private] |
Referenced by createCustomActions(), currentVoice(), on_uiInsertPlayable_toggled(), on_uiLilyPondSource_triggered(), on_uiNewVoice_triggered(), on_uiRedo_toggled(), on_uiRemoveVoice_triggered(), on_uiUndo_toggled(), pasteAt(), scoreViewPortKeyPress(), scoreViewPortMousePress(), setMode(), setupCustomUi(), updatePlayableToolBar(), and updateVoiceToolBar().
CAMenuToolButton* CAMainWin::uiVoiceStemDirection [private] |
Referenced by createCustomActions(), setupCustomUi(), and updateVoiceToolBar().
QToolBar* CAMainWin::uiVoiceToolBar [private] |
Referenced by createCustomActions(), setupCustomUi(), updateVoiceToolBar(), and ~CAMainWin().
1.8.0