Canorus 0.0
Public Types | Public Slots | Public Member Functions | Public Attributes | Static Public Attributes | Private Slots | Private Member Functions | Private Attributes | Friends | List of all members
CAMainWin Class Reference

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, Views, plugin menus) are generated manually in-code. More...

#include <plugins_swig.h>

Inheritance diagram for CAMainWin:
Inheritance graph
[legend]

Public Types

enum  CAMode {
  NoDocumentMode , ProgressMode , InsertMode , EditMode ,
  ReadOnlyMode
}
 

Public Slots

void on_uiUsersGuide_triggered ()
 

Public Member Functions

 CAMainWin ()
 
CASheetcurrentSheet ()
 
 CAMainWin (QMainWindow *oParent=0)
 
 ~CAMainWin ()
 
void clearUI ()
 
void rebuildUI (CASheet *sheet, bool repaint=true)
 
void rebuildUI (bool repaint=true)
 
bool rebuildUILock ()
 
void updateWindowTitle ()
 
void newDocument ()
 
void addSheet (CASheet *s)
 
void removeSheet (CASheet *s)
 
bool insertMusElementAt (const QPoint coords, CAScoreView *v)
 
void restartTimeEditedTime ()
 
void deleteSelection (CAScoreView *v, bool deleteSyllable, bool deleteNotes, bool undo)
 
void copySelection (CAScoreView *v)
 
void pasteAt (const QPoint coords, CAScoreView *v)
 
CADocumentopenDocument (const QString &fileName)
 
CADocumentopenDocument (CADocument *doc)
 
bool saveDocument (QString fileName)
 
void setMode (CAMode mode, const QString &oModeHash)
 
CAMode mode ()
 
QFileDialog * exportDialog ()
 
QFileDialog * importDialog ()
 
CAResourceViewresourceView ()
 
QActionresourceViewAction ()
 
CAMidiRecorderViewmidiRecorderView ()
 
void setMidiRecorderView (CAMidiRecorderView *v)
 
CAViewcurrentView ()
 
void removeView (CAView *v)
 
const QList< CAView * > & viewList () const
 
CAScoreViewcurrentScoreView ()
 
CASheetcurrentSheet ()
 
CAStaffcurrentStaff ()
 
CAContextcurrentContext ()
 
void setCurrentVoice (CAVoice *)
 
CAVoicecurrentVoice ()
 
CAViewContainercurrentViewContainer ()
 
CADocumentdocument ()
 
void setDocument (CADocument *document)
 
bool isInsertKeySigChecked ()
 
QDockWidgethelpDock ()
 
CAMusElementFactorymusElementFactory ()
 

Public Attributes

CAPyConsoleInterfacepyConsoleIface
 
CAPyConsolepyConsole
 
CAMenuToolButtonuiTupletType
 
QSpinBox * uiTupletNumber
 
QSpinBox * uiTupletActualNumber
 

Static Public Attributes

static QFileDialog * uiSaveDialog = nullptr
 
static QFileDialog * uiOpenDialog = nullptr
 
static QFileDialog * uiExportDialog = nullptr
 
static QFileDialog * uiImportDialog = nullptr
 

Private Slots

void closeEvent (QCloseEvent *event)
 
void on_uiNewDocument_triggered ()
 
void on_uiOpenDocument_triggered ()
 
bool on_uiSaveDocument_triggered ()
 
bool on_uiSaveDocumentAs_triggered ()
 
void on_uiCloseDocument_triggered ()
 
void on_uiExportDocument_triggered ()
 
void on_uiImportDocument_triggered ()
 
void on_uiExportToPdf_triggered ()
 
void on_uiOpenRecent_aboutToShow ()
 
void onUiOpenRecentDocumentTriggered ()
 
void on_uiUndo_toggled (bool, int)
 
void on_uiRedo_toggled (bool, int)
 
void on_uiCopy_triggered ()
 
void on_uiCut_triggered ()
 
void on_uiPaste_triggered ()
 
void on_uiSelectAll_triggered ()
 
void on_uiInvertSelection_triggered ()
 
void on_uiDocumentProperties_triggered ()
 
void on_uiEditMode_toggled (bool)
 
void on_uiNewSheet_triggered ()
 
void on_uiNewVoice_triggered ()
 
void on_uiContextType_toggled (bool, int)
 
void on_uiClefType_toggled (bool, int)
 
void on_uiTimeSigType_toggled (bool, int)
 
void on_uiBarlineType_toggled (bool, int)
 
void on_uiInsertPlayable_toggled (bool)
 
void on_uiSlurType_toggled (bool, int)
 
void on_uiMarkType_toggled (bool, int)
 
void on_uiArticulationType_toggled (bool, int)
 
void on_uiInsertSyllable_toggled (bool)
 
void on_uiInsertFBM_toggled (bool)
 
void on_uiInsertFM_toggled (bool)
 
void on_uiFullscreen_toggled (bool)
 
void on_uiLockScrollPlayback_toggled (bool)
 
void on_uiZoomToSelection_triggered ()
 
void on_uiZoomToFit_triggered ()
 
void on_uiZoomToWidth_triggered ()
 
void on_uiZoomToHeight_triggered ()
 
void on_uiScoreView_triggered ()
 
void on_uiLilyPondSource_triggered ()
 
void on_uiCanorusMLSource_triggered ()
 
void on_uiResourceView_toggled (bool)
 
void on_uiShowRuler_toggled (bool)
 
void on_uiRemoveSheet_triggered ()
 
void on_uiSheetName_returnPressed ()
 
void on_uiSheetProperties_triggered ()
 
void on_uiContextName_returnPressed ()
 
void on_uiRemoveContext_triggered ()
 
void on_uiStanzaNumber_valueChanged (int)
 
void on_uiAssociatedVoice_activated (int)
 
void on_uiContextProperties_triggered ()
 
void on_uiPlayFromSelection_toggled (bool)
 
void on_uiPlayableLength_toggled (bool, int)
 
void on_uiTupletType_toggled (bool, int)
 
void on_uiTupletNumber_valueChanged (int)
 
void on_uiTupletActualNumber_valueChanged (int)
 
void on_uiNoteStemDirection_toggled (bool, int)
 
void on_uiHiddenRest_toggled (bool checked)
 
void onMidiInEvent (QVector< unsigned char > message)
 
void on_uiTimeSigBeats_valueChanged (int)
 
void on_uiTimeSigBeat_valueChanged (int)
 
void on_uiClefOffset_valueChanged (int)
 
void onTextEditKeyPressEvent (QKeyEvent *)
 
void confirmTextEdit (CAScoreView *v, CATextEdit *textEdit, CAMusElement *elt)
 
void on_uiFMFunction_toggled (bool, int)
 
void on_uiFMChordArea_toggled (bool, int)
 
void on_uiFMTonicDegree_toggled (bool, int)
 
void on_uiFMEllipse_toggled (bool)
 
void on_uiFBMNumber_toggled (bool, int)
 
void on_uiFBMAccs_toggled (bool, int)
 
void on_uiDynamicText_toggled (bool, int)
 
void on_uiDynamicVolume_valueChanged (int)
 
void on_uiDynamicCustomText_returnPressed ()
 
void on_uiInstrumentChange_activated (int)
 
void on_uiFermataType_toggled (bool, int)
 
void on_uiRepeatMarkType_toggled (bool, int)
 
void on_uiFinger_toggled (bool checked, int t)
 
void on_uiFingeringOriginal_toggled (bool checked)
 
void on_uiTempoBeat_toggled (bool, int)
 
void on_uiTempoBpm_returnPressed ()
 
void on_uiSettings_triggered ()
 
void on_uiTranspose_triggered ()
 
void on_uiJumpTo_triggered ()
 
void on_uiMidiRecorder_triggered ()
 
void on_uiVoiceNum_valChanged (int)
 
void on_uiVoiceName_returnPressed ()
 
void on_uiVoiceInstrument_activated (int)
 
void on_uiRemoveVoice_triggered ()
 
void on_uiVoiceStemDirection_toggled (bool, int)
 
void on_uiVoiceProperties_triggered ()
 
void on_uiSplitHorizontally_triggered ()
 
void on_uiSplitVertically_triggered ()
 
void on_uiUnsplitAll_triggered ()
 
void on_uiCloseCurrentView_triggered ()
 
void on_uiNewView_triggered ()
 
void on_uiNewWindow_triggered ()
 
void on_uiAboutCanorus_triggered ()
 
void on_uiAboutQt_triggered ()
 
void keyPressEvent (QKeyEvent *)
 
void on_uiTabWidget_currentChanged (int)
 
void on_uiTabWidget_CANewTab ()
 
void on_uiTabWidget_CAMoveTab (int from, int to)
 
void viewClicked ()
 
void scoreViewMousePress (QMouseEvent *e, const QPoint coords)
 
void scoreViewMouseMove (QMouseEvent *e, const QPoint coords)
 
void scoreViewMouseRelease (QMouseEvent *e, const QPoint coords)
 
void scoreViewDoubleClick (QMouseEvent *e, const QPoint coords)
 
void scoreViewTripleClick (QMouseEvent *e, const QPoint coords)
 
void scoreViewWheel (QWheelEvent *e, const QPoint coords)
 
void scoreViewKeyPress (QKeyEvent *e)
 
void sourceViewCommit (QString inputString)
 
void floatViewClosed (CAView *)
 
void onTimeEditedTimerTimeout ()
 
void playbackFinished ()
 
void onScoreViewSelectionChanged ()
 
void onRepaintTimerTimeout ()
 
void onImportDone (int status)
 
void onExportDone (int status)
 

Private Member Functions

void playImmediately (QList< CAMusElement * > elements)
 
void setMode (CAMode mode)
 
QString createModeHash ()
 
void setCurrentView (CAView *view)
 
void setCurrentViewContainer (CAViewContainer *vpc)
 
void setRebuildUILock (bool l)
 
bool stopPlayback ()
 
bool handleUnsavedChanges ()
 
void createCustomActions ()
 
void setupCustomUi ()
 
void initView (CAView *)
 
void updateUndoRedoButtons ()
 
void updateToolBars ()
 
void updateSheetToolBar ()
 
void updateContextToolBar ()
 
void updateVoiceToolBar ()
 
void updateInsertToolBar ()
 
void updatePlayableToolBar ()
 
void updateTimeSigToolBar ()
 
void updateClefToolBar ()
 
void updateFBMToolBar ()
 
void updateFMToolBar ()
 
void updateDynamicToolBar ()
 
void updateInstrumentToolBar ()
 
void updateTempoToolBar ()
 
void updateFermataToolBar ()
 
void updateRepeatMarkToolBar ()
 
void updateFingeringToolBar ()
 

Private Attributes

CADocument_document
 
CAMode _mode
 
CAPreviewCtl_poPrintPreviewCtl
 
CAPrintCtl_poPrintCtl
 
CAExport_poExp
 
CAResourceView_resourceView
 
CATransposeView_transposeView
 
CAJumpToView_jumpToView
 
CAMidiRecorderView_midiRecorderView
 
QStatusBar_permanentStatusBar
 
CAMainWinProgressCtl _mainWinProgressCtl
 
CAViewContainer_currentViewContainer
 
QList< CAViewContainer * > _viewContainerList
 
QList< CAView * > _viewList
 
QHash< CAViewContainer *, CASheet * > _sheetMap
 
QHash< QString, int > _modeHash
 
int _iNumAllowed
 
CAView_currentView
 
CAView_playbackView
 
QList< CADrawableMusElement * > _prePlaybackSelection
 
QTimer * _repaintTimer
 
bool _rebuildUILock
 
CAPlayback_playback
 
QTimer _timeEditedTimer
 
unsigned int _timeEditedTime
 
CAMusElementFactory_musElementFactory
 
CANoteChecker _noteChecker
 
CAKeybdInput_keybdInput
 
CAUndoToolButtonuiUndo
 
CAUndoToolButtonuiRedo
 
QToolBar * uiInsertToolBar
 
QActionGroup * uiInsertGroup
 
CAMenuToolButtonuiContextType
 
CAMenuToolButtonuiClefType
 
CAMenuToolButtonuiTimeSigType
 
CAMenuToolButtonuiBarlineType
 
CAMenuToolButtonuiMarkType
 
CAMenuToolButtonuiArticulationType
 
QToolBar * uiSheetToolBar
 
QLineEdituiSheetName
 
QToolBar * uiContextToolBar
 
QLineEdituiContextName
 
QSpinBox * uiStanzaNumber
 
QActionuiStanzaNumberAction
 
QComboBox * uiAssociatedVoice
 
QActionuiAssociatedVoiceAction
 
QToolBar * uiVoiceToolBar
 
CALCDNumberuiVoiceNum
 
QLineEdituiVoiceName
 
QComboBox * uiVoiceInstrument
 
CAMenuToolButtonuiVoiceStemDirection
 
QToolBar * uiPlayableToolBar
 
CAMenuToolButtonuiPlayableLength
 
CAMenuToolButtonuiNoteAccs
 
CAMenuToolButtonuiSlurType
 
QActionuiTupletNumberAction
 
QLabel * uiTupletInsteadOf
 
QActionuiTupletInsteadOfAction
 
QActionuiTupletActualNumberAction
 
CAMenuToolButtonuiNoteStemDirection
 
CAActionStorageactionStorage
 
CAKeySignatureUI_poKeySignatureUI
 
QToolBar * uiClefToolBar
 
QSpinBox * uiClefOffset
 
int oldUiClefOffsetValue
 
QToolBar * uiTimeSigToolBar
 
QSpinBox * uiTimeSigBeats
 
QLabel * uiTimeSigSlash
 
QSpinBox * uiTimeSigBeat
 
QToolBar * uiFBMToolBar
 
CAMenuToolButtonuiFBMNumber
 
CAMenuToolButtonuiFBMAccs
 
QToolBar * uiFMToolBar
 
CAMenuToolButtonuiFMFunction
 
CAMenuToolButtonuiFMChordArea
 
CAMenuToolButtonuiFMTonicDegree
 
QComboBox * uiFMKeySig
 
QToolBar * uiDynamicToolBar
 
CAMenuToolButtonuiDynamicText
 
QSpinBox * uiDynamicVolume
 
QLineEdituiDynamicCustomText
 
QToolBar * uiInstrumentToolBar
 
QComboBox * uiInstrumentChange
 
QToolBar * uiTempoToolBar
 
CAMenuToolButtonuiTempoBeat
 
QLabel * uiTempoEquals
 
QLineEdituiTempoBpm
 
QToolBar * uiFermataToolBar
 
CAMenuToolButtonuiFermataType
 
QToolBar * uiRepeatMarkToolBar
 
CAMenuToolButtonuiRepeatMarkType
 
QToolBar * uiFingeringToolBar
 
CAMenuToolButtonuiFinger
 
QCheckBox * uiFingeringOriginal
 
QDockWidgetuiPyConsoleDock
 
QDockWidgetuiHelpDock
 

Friends

class CAMainWinProgressCtl
 
class CAActionDelegate
 
class CAActionStorage
 

Detailed Description

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, Views, plugin menus) are generated manually in-code.

Copyright (c) 2006-2016, 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.

See also
CAView, CACanorus

Member Enumeration Documentation

◆ CAMode

Enumerator
NoDocumentMode 
ProgressMode 
InsertMode 
EditMode 
ReadOnlyMode 

Constructor & Destructor Documentation

◆ CAMainWin() [1/2]

CAMainWin::CAMainWin ( )
inline

References NULL, and pyConsoleIface.

Referenced by on_uiNewWindow_triggered().

Here is the caller graph for this function:

◆ CAMainWin() [2/2]

CAMainWin::CAMainWin ( QMainWindow oParent = 0)

◆ ~CAMainWin()

CAMainWin::~CAMainWin ( )

Member Function Documentation

◆ addSheet()

void CAMainWin::addSheet ( CASheet s)

This adds a tab to tabWidget and creates a single score View of the sheet. It does not add the sheet to the document.

References _sheetMap, _viewContainerList, CAViewContainer::addView(), initView(), CASheet::name(), setCurrentViewContainer(), and updateToolBars().

Referenced by onImportDone(), and rebuildUI().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clearUI()

void CAMainWin::clearUI ( )

Deletes all Views (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, _viewList, and setCurrentView().

Referenced by closeEvent(), newDocument(), on_uiCloseDocument_triggered(), openDocument(), rebuildUI(), and sourceViewCommit().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ closeEvent

void CAMainWin::closeEvent ( QCloseEvent *  event)
privateslot

References clearUI(), and handleUnsavedChanges().

Here is the call graph for this function:

◆ confirmTextEdit

void CAMainWin::confirmTextEdit ( CAScoreView v,
CATextEdit textEdit,
CAMusElement elt 
)
privateslot

◆ copySelection()

void CAMainWin::copySelection ( CAScoreView v)

◆ createCustomActions()

void CAMainWin::createCustomActions ( )
private

References CAArticulation::Accent, CAMenuToolButton::addButton(), CAClef::Alto, CAClef::Baritone, CAClef::Bass, CAMark::BookMark, CAArticulation::Breath, 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, CAContext::FiguredBassContext, CAMark::Fingering, CAFingering::First, CAArticulation::Flageolet, CAFingering::Fourth, CADynamic::fp, CAClef::French, CAContext::FunctionMarkContext, CAPlayableLength::Half, CAPlayableLength::HundredTwentyEighth, CAFunctionMark::II, CAFunctionMark::III, CAMark::InstrumentChange, CAMidiDevice::instrumentNames(), CAFunctionMark::IV, CAFunctionMark::K, CAFunctionMark::L, CAFingering::LHeel, CAArticulation::LinePrall, CAFermata::LongFermata, CAFingering::LToe, CAContext::LyricsContext, CAArticulation::Marcato, CAClef::Mezzosoprano, CADynamic::mf, CAArticulation::Mordent, CADynamic::mp, CAFunctionMark::N, CAFermata::NormalFermata, oldUiClefOffsetValue, CAArticulation::Open, CADynamic::p, CAMark::Pedal, CASlur::PhrasingSlurType, CAKeySignatureUI::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, uiFBMAccs, uiFBMNumber, uiFBMToolBar, uiFermataToolBar, uiFermataType, uiFinger, uiFingeringOriginal, uiFingeringToolBar, uiFMChordArea, uiFMFunction, uiFMKeySig, uiFMTonicDegree, uiFMToolBar, uiHelpDock, uiInsertToolBar, uiInstrumentChange, uiInstrumentToolBar, 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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createModeHash()

QString CAMainWin::createModeHash ( )
private

Create hash to allow changing the current mode from priviledged (ui/ctl) objects

References _iNumAllowed, and _modeHash.

Referenced by setupCustomUi().

Here is the caller graph for this function:

◆ currentContext()

CAContext * CAMainWin::currentContext ( )

◆ currentScoreView()

CAScoreView * CAMainWin::currentScoreView ( )
inline

References currentView().

Referenced by CAPlugin::callAction(), currentVoice(), insertMusElementAt(), CAKeybdInput::midiInEventToScore(), newDocument(), on_uiClefOffset_valueChanged(), on_uiCopy_triggered(), on_uiCut_triggered(), on_uiDynamicCustomText_returnPressed(), on_uiDynamicText_toggled(), on_uiDynamicVolume_valueChanged(), on_uiFBMAccs_toggled(), on_uiFBMNumber_toggled(), 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(), CAKeySignatureCtl::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(), onImportDone(), CAKeybdInput::onMidiInEvent(), onTextEditKeyPressEvent(), openDocument(), pasteAt(), scoreViewKeyPress(), scoreViewMousePress(), setCurrentVoice(), setMode(), updateClefToolBar(), updateContextToolBar(), updateDynamicToolBar(), updateFBMToolBar(), updateFermataToolBar(), updateFingeringToolBar(), updateFMToolBar(), updateInstrumentToolBar(), CAKeySignatureUI::updateKeySigToolBar(), updatePlayableToolBar(), updateRepeatMarkToolBar(), updateSheetToolBar(), updateTempoToolBar(), updateTimeSigToolBar(), and updateVoiceToolBar().

Here is the call graph for this function:

◆ currentSheet() [1/2]

CASheet * CAMainWin::currentSheet ( )
inline

Returns the currently selected sheet in the current view or 0, if no such view exists.

References NULL.

Referenced by CAPlugin::callAction(), confirmTextEdit(), copySelection(), insertMusElementAt(), CAKeybdInput::midiInEventToScore(), on_uiAssociatedVoice_activated(), on_uiClefOffset_valueChanged(), on_uiContextName_returnPressed(), on_uiDynamicCustomText_returnPressed(), on_uiDynamicText_toggled(), on_uiDynamicVolume_valueChanged(), on_uiExportDocument_triggered(), on_uiFBMAccs_toggled(), on_uiFBMNumber_toggled(), 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_uiJumpTo_triggered(), CAKeySignatureCtl::on_uiKeySig_activated(), on_uiMidiRecorder_triggered(), on_uiNewVoice_triggered(), on_uiNoteStemDirection_toggled(), on_uiPlayableLength_toggled(), on_uiPlayFromSelection_toggled(), CAPreviewCtl::on_uiPrintPreview_triggered(), on_uiRedo_toggled(), on_uiRemoveContext_triggered(), on_uiRemoveSheet_triggered(), on_uiRemoveVoice_triggered(), on_uiRepeatMarkType_toggled(), on_uiSheetName_returnPressed(), on_uiSheetProperties_triggered(), on_uiTabWidget_CAMoveTab(), 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(), pasteAt(), CAPrintCtl::printDocument(), scoreViewKeyPress(), updateContextToolBar(), and updateInsertToolBar().

◆ currentSheet() [2/2]

CASheet * CAMainWin::currentSheet ( )

◆ currentStaff()

CAStaff * CAMainWin::currentStaff ( )
inline

References CAContext::contextType(), currentContext(), and CAContext::Staff.

Referenced by on_uiLilyPondSource_triggered(), and on_uiNewVoice_triggered().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ currentView()

CAView * CAMainWin::currentView ( )
inline

◆ currentViewContainer()

CAViewContainer * CAMainWin::currentViewContainer ( )
inline

◆ currentVoice()

CAVoice * CAMainWin::currentVoice ( )

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 currentScoreView(), and CAScoreView::selectedVoice().

Referenced by insertMusElementAt(), CAKeybdInput::midiInEventToScore(), on_uiRedo_toggled(), on_uiRemoveVoice_triggered(), on_uiUndo_toggled(), on_uiVoiceInstrument_activated(), on_uiVoiceName_returnPressed(), on_uiVoiceProperties_triggered(), on_uiVoiceStemDirection_toggled(), scoreViewKeyPress(), and updateVoiceToolBar().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ deleteSelection()

void CAMainWin::deleteSelection ( CAScoreView 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 _noteChecker, _playback, CATuplet::addNote(), CATuplet::assignTimes(), CAMark::associatedElement(), CANoteChecker::checkSheet(), CAFunctionMark::clear(), CASyllable::clear(), CAScoreView::clearSelection(), CARest::composeRests(), CAMusElement::context(), CAUndo::createUndoCommand(), CAPlayback::curPlaying(), document(), CAMusElement::FiguredBassMark, CAMusElement::FunctionMark, CAStaff::getChord(), CAVoice::insert(), CANote::isPartOfChord(), CAVoice::lyricsContextList(), CAMusElement::Mark, CAMusElement::musElementType(), CAVoice::next(), CAVoice::nextPlayable(), CARest::Normal, CASlur::noteEnd(), CASlur::noteStart(), CAFiguredBassMark::numbers(), CAPlayable::playableLength(), CAPlayableLength::playableLengthToTimeLength(), CAUndo::pushUndoCommand(), CACanorus::rebuildUI(), CALyricsContext::remove(), CAFiguredBassContext::remove(), CAFunctionMarkContext::remove(), CAVoice::remove(), CATuplet::removeNote(), CAFiguredBassMark::removeNumber(), CAFiguredBassContext::repositFiguredBassMarks(), CAFunctionMarkContext::repositFunctions(), CALyricsContext::repositSyllables(), CAMusElement::Rest, CAScoreView::selection(), CACanorus::settings(), CAPlayable::setTuplet(), CAScoreView::sheet(), CAMusElement::Slur, CAPlayable::staff(), CAPlayback::stopNow(), CAMusElement::Syllable, CAMusElement::timeEnd(), CAMusElement::timeLength(), CAMusElement::timeStart(), CAMusElement::Tuplet, CAPlayable::tuplet(), CACanorus::undo(), and CAPlayable::voice().

Referenced by on_uiCut_triggered(), and scoreViewKeyPress().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ document()

CADocument * CAMainWin::document ( )
inline

References _document.

Referenced by confirmTextEdit(), createCustomActions(), deleteSelection(), 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_uiFBMAccs_toggled(), on_uiFBMNumber_toggled(), 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_uiJumpTo_triggered(), CAKeySignatureCtl::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_uiRemoveSheet_triggered(), on_uiRemoveVoice_triggered(), on_uiRepeatMarkType_toggled(), on_uiSaveDocument_triggered(), on_uiSaveDocumentAs_triggered(), on_uiSettings_triggered(), on_uiSheetName_returnPressed(), on_uiStanzaNumber_valueChanged(), on_uiTabWidget_CAMoveTab(), on_uiTabWidget_CANewTab(), 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(), onImportDone(), onScoreViewSelectionChanged(), openDocument(), pasteAt(), rebuildUI(), saveDocument(), scoreViewKeyPress(), scoreViewMousePress(), scoreViewMouseRelease(), setDocument(), sourceViewCommit(), updateSheetToolBar(), updateToolBars(), updateUndoRedoButtons(), updateWindowTitle(), and ~CAMainWin().

◆ exportDialog()

QFileDialog * CAMainWin::exportDialog ( )
inline

References uiExportDialog.

Referenced by CAPluginManager::endElement().

Here is the caller graph for this function:

◆ floatViewClosed

void CAMainWin::floatViewClosed ( CAView v)
privateslot

Called when a floating view port is closed

References currentView(), currentViewContainer(), and setCurrentView().

Referenced by on_uiNewView_triggered().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ handleUnsavedChanges()

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(), on_uiOpenDocument_triggered(), and onUiOpenRecentDocumentTriggered().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ helpDock()

QDockWidget * CAMainWin::helpDock ( )
inline

References uiHelpDock.

◆ importDialog()

QFileDialog * CAMainWin::importDialog ( )
inline

References uiImportDialog.

Referenced by CAPluginManager::endElement().

Here is the caller graph for this function:

◆ initView()

void CAMainWin::initView ( CAView v)
private

Links the newly created View with the main window:

  • Adds the View to the View list
  • Connects its signals to main windows' slots.
  • Sets the icon, focus policy and sets the focus.
  • Sets the currentView but not currentViewContainer

References _viewList, mode(), onScoreViewSelectionChanged(), onTextEditKeyPressEvent(), CAView::ScoreView, scoreViewDoubleClick(), scoreViewKeyPress(), scoreViewMouseMove(), scoreViewMousePress(), scoreViewMouseRelease(), scoreViewTripleClick(), scoreViewWheel(), setCurrentView(), setMode(), CAView::SourceView, sourceViewCommit(), viewClicked(), and CAView::viewType().

Referenced by addSheet(), on_uiCanorusMLSource_triggered(), on_uiLilyPondSource_triggered(), on_uiNewView_triggered(), on_uiScoreView_triggered(), on_uiSplitHorizontally_triggered(), and on_uiSplitVertically_triggered().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ insertMusElementAt()

bool CAMainWin::insertMusElementAt ( const QPoint  coords,
CAScoreView v 
)

This method places the currently prepared music element in CAMusElementFactory to the staff or voice, dependent on the music element type and the View coordinates.

Returns
True, if a new element of any kind was inserted; False, if an element was just edited or not handled at all.

References _noteChecker, CATuplet::actualNumber(), CASettings::animatedScroll(), CAMusElement::Barline, CADrawableStaff::calculatePitch(), CANoteChecker::checkSheet(), CAMusElement::Clef, CARest::composeRests(), CAMusElementFactory::configureBarline(), CAMusElementFactory::configureClef(), CAMusElementFactory::configureFiguredBassNumber(), CAMusElementFactory::configureFunctionMark(), CAMusElementFactory::configureKeySignature(), CAMusElementFactory::configureMark(), CAMusElementFactory::configureNote(), CAMusElementFactory::configureRest(), CAMusElementFactory::configureSlur(), CAMusElementFactory::configureTimeSignature(), CAVoice::containsPitch(), CADrawableContext::context(), CAContext::contextType(), CAUndo::createUndoCommand(), CAScoreView::currentContext(), currentScoreView(), currentSheet(), currentVoice(), CANote::diatonicPitch(), document(), CAMusElementFactory::emptyMusElem(), CAContext::FiguredBassContext, CAMusElement::FiguredBassMark, CAFiguredBassContext::figuredBassMarkAtTimeStart(), CAMusElement::FunctionMark, CAContext::FunctionMarkContext, CANote::getChord(), CASheet::getChord(), CAVoice::getNoteList(), CAVoice::insert(), CAPlayable::isFirstInTuplet(), CANote::isPartOfChord(), CAMusElement::isPlayable(), CAMusElement::KeySignature, CAVoice::lastTimeEnd(), CAMusElement::Mark, CAMusElement::MidiNote, CADrawableMusElement::musElement(), musElementFactory(), CAScoreView::musElementsAt(), CAMusElement::musElementType(), CAScoreView::nearestLeftElement(), CAScoreView::nearestRightElement(), CAVoice::next(), CARest::Normal, CAMusElement::Note, CATuplet::noteList(), CATuplet::number(), CANote::phrasingSlurEnd(), CANote::phrasingSlurStart(), CASlur::PhrasingSlurType, CAStaff::placeAutoBar(), CAPlayableLength::playableLengthToTimeLength(), playImmediately(), CAUndo::pushUndoCommand(), CACanorus::rebuildUI(), CAVoice::remove(), CAMusElement::Rest, CAScoreView::selection(), CAScoreView::selectMElement(), CAScoreView::setDrawShadowNoteAccs(), CAMusElementFactory::setMusElement(), CAMusElementFactory::setNoteExtraAccs(), CAScoreView::setShadowNoteLength(), CACanorus::settings(), CAScoreView::setWorldX(), CAScoreView::sheet(), CAMusElement::Slur, CANote::slurEnd(), CANote::slurStart(), CAMusElementFactory::slurType(), CASlur::SlurType, CAMusElement::Syllable, CAStaff::synchronizeVoices(), CANote::tieStart(), CASlur::TieType, CAMusElement::timeEnd(), CAMusElement::timeLength(), CAMusElement::TimeSignature, CAMusElement::timeStart(), CAMusElement::Tuplet, CAPlayable::tuplet(), uiTupletActualNumber, uiTupletNumber, uiTupletType, CAMusElement::Undefined, CACanorus::undo(), CAScoreView::updateHelpers(), CAPlayable::voice(), CADrawable::width(), CAScoreView::worldWidth(), CAScoreView::worldX(), and CADrawable::xPos().

Referenced by on_uiSlurType_toggled(), and scoreViewMousePress().

Here is the caller graph for this function:

◆ isInsertKeySigChecked()

bool CAMainWin::isInsertKeySigChecked ( )
inline

Referenced by CAKeySignatureUI::updateKeySigToolBar().

Here is the caller graph for this function:

◆ keyPressEvent

void CAMainWin::keyPressEvent ( QKeyEvent *  e)
privateslot

Main window's key press event.

See also
viewKeyPressEvent()

◆ midiRecorderView()

CAMidiRecorderView * CAMainWin::midiRecorderView ( )
inline

References _midiRecorderView.

◆ mode()

CAMode CAMainWin::mode ( )
inline

◆ musElementFactory()

CAMusElementFactory * CAMainWin::musElementFactory ( )
inline

References _musElementFactory.

Referenced by insertMusElementAt(), CAKeybdInput::midiInEventToScore(), on_uiArticulationType_toggled(), on_uiBarlineType_toggled(), on_uiClefOffset_valueChanged(), on_uiClefType_toggled(), on_uiContextType_toggled(), on_uiDynamicCustomText_returnPressed(), on_uiDynamicText_toggled(), on_uiDynamicVolume_valueChanged(), on_uiFBMAccs_toggled(), on_uiFBMNumber_toggled(), 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_uiInsertFBM_toggled(), on_uiInsertFM_toggled(), CAKeySignatureCtl::on_uiInsertKeySig_toggled(), on_uiInsertPlayable_toggled(), on_uiInstrumentChange_activated(), CAKeySignatureCtl::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(), scoreViewKeyPress(), scoreViewMouseMove(), scoreViewMousePress(), setMode(), updateClefToolBar(), updateDynamicToolBar(), updateFBMToolBar(), updateFermataToolBar(), updateFingeringToolBar(), updateFMToolBar(), updateInstrumentToolBar(), CAKeySignatureUI::updateKeySigToolBar(), updatePlayableToolBar(), updateRepeatMarkToolBar(), updateTempoToolBar(), and updateTimeSigToolBar().

◆ newDocument()

void CAMainWin::newDocument ( )

◆ on_uiAboutCanorus_triggered

void CAMainWin::on_uiAboutCanorus_triggered ( )
privateslot

◆ on_uiAboutQt_triggered

void CAMainWin::on_uiAboutQt_triggered ( )
privateslot

◆ on_uiArticulationType_toggled

void CAMainWin::on_uiArticulationType_toggled ( bool  checked,
int  buttonId 
)
privateslot

◆ on_uiAssociatedVoice_activated

void CAMainWin::on_uiAssociatedVoice_activated ( int  idx)
privateslot

Sets the associated voice of the current lyrics context.

References CAUndo::createUndoCommand(), currentContext(), currentSheet(), document(), CAContext::LyricsContext, CAUndo::pushUndoCommand(), CACanorus::rebuildUI(), CACanorus::undo(), and CASheet::voiceList().

Here is the call graph for this function:

◆ on_uiBarlineType_toggled

void CAMainWin::on_uiBarlineType_toggled ( bool  checked,
int  buttonId 
)
privateslot

◆ on_uiCanorusMLSource_triggered

void CAMainWin::on_uiCanorusMLSource_triggered ( )
privateslot

Shows the current score in CanorusML syntax in a new or the current View.

References CAViewContainer::addView(), currentViewContainer(), document(), and initView().

Here is the call graph for this function:

◆ on_uiClefOffset_valueChanged

void CAMainWin::on_uiClefOffset_valueChanged ( int  newOffset)
privateslot

◆ on_uiClefType_toggled

void CAMainWin::on_uiClefType_toggled ( bool  checked,
int  buttonId 
)
privateslot

◆ on_uiCloseCurrentView_triggered

void CAMainWin::on_uiCloseCurrentView_triggered ( )
privateslot

References _viewList, currentView(), currentViewContainer(), setCurrentView(), CAViewContainer::unsplit(), and viewList().

Here is the call graph for this function:

◆ on_uiCloseDocument_triggered

void CAMainWin::on_uiCloseDocument_triggered ( )
privateslot

◆ on_uiContextName_returnPressed

void CAMainWin::on_uiContextName_returnPressed ( )
privateslot

◆ on_uiContextProperties_triggered

void CAMainWin::on_uiContextProperties_triggered ( )
privateslot

Brings up the properties dialog.

References CAPropertiesDialog::contextProperties(), and currentContext().

Here is the call graph for this function:

◆ on_uiContextType_toggled

void CAMainWin::on_uiContextType_toggled ( bool  checked,
int   
)
privateslot

References InsertMode, musElementFactory(), setMode(), CAMusElementFactory::setMusElementType(), and CAMusElement::Undefined.

Here is the call graph for this function:

◆ on_uiCopy_triggered

void CAMainWin::on_uiCopy_triggered ( )
privateslot

Action on Edit->Copy.

References copySelection(), and currentScoreView().

Here is the call graph for this function:

◆ on_uiCut_triggered

void CAMainWin::on_uiCut_triggered ( )
privateslot

◆ on_uiDocumentProperties_triggered

void CAMainWin::on_uiDocumentProperties_triggered ( )
privateslot

Brings up the properties dialog.

References document(), and CAPropertiesDialog::documentProperties().

Here is the call graph for this function:

◆ on_uiDynamicCustomText_returnPressed

void CAMainWin::on_uiDynamicCustomText_returnPressed ( )
privateslot

◆ on_uiDynamicText_toggled

void CAMainWin::on_uiDynamicText_toggled ( bool  checked,
int  t 
)
privateslot

◆ on_uiDynamicVolume_valueChanged

void CAMainWin::on_uiDynamicVolume_valueChanged ( int  vol)
privateslot

◆ on_uiEditMode_toggled

void CAMainWin::on_uiEditMode_toggled ( bool  checked)
privateslot

References EditMode, and setMode().

Here is the call graph for this function:

◆ on_uiExportDocument_triggered

void CAMainWin::on_uiExportDocument_triggered ( )
privateslot

◆ on_uiExportToPdf_triggered

void CAMainWin::on_uiExportToPdf_triggered ( )
privateslot

Called when Export directly to PDF action is clicked.

References on_uiExportDocument_triggered(), CAFileFormats::PDF_FILTER, and uiExportDialog.

Here is the call graph for this function:

◆ on_uiFBMAccs_toggled

void CAMainWin::on_uiFBMAccs_toggled ( bool  checked,
int  buttonId 
)
privateslot

◆ on_uiFBMNumber_toggled

void CAMainWin::on_uiFBMNumber_toggled ( bool  checked,
int  buttonId 
)
privateslot

◆ on_uiFermataType_toggled

void CAMainWin::on_uiFermataType_toggled ( bool  checked,
int  t 
)
privateslot

◆ on_uiFinger_toggled

void CAMainWin::on_uiFinger_toggled ( bool  checked,
int  t 
)
privateslot

◆ on_uiFingeringOriginal_toggled

void CAMainWin::on_uiFingeringOriginal_toggled ( bool  checked)
privateslot

◆ on_uiFMChordArea_toggled

void CAMainWin::on_uiFMChordArea_toggled ( bool  checked,
int  buttonId 
)
privateslot

◆ on_uiFMEllipse_toggled

void CAMainWin::on_uiFMEllipse_toggled ( bool  checked)
privateslot

◆ on_uiFMFunction_toggled

void CAMainWin::on_uiFMFunction_toggled ( bool  checked,
int  buttonId 
)
privateslot

◆ on_uiFMTonicDegree_toggled

void CAMainWin::on_uiFMTonicDegree_toggled ( bool  checked,
int  buttonId 
)
privateslot

◆ on_uiFullscreen_toggled

void CAMainWin::on_uiFullscreen_toggled ( bool  checked)
privateslot

◆ on_uiHiddenRest_toggled

void CAMainWin::on_uiHiddenRest_toggled ( bool  checked)
privateslot

◆ on_uiImportDocument_triggered

void CAMainWin::on_uiImportDocument_triggered ( )
privateslot

◆ on_uiInsertFBM_toggled

void CAMainWin::on_uiInsertFBM_toggled ( bool  checked)
privateslot

◆ on_uiInsertFM_toggled

void CAMainWin::on_uiInsertFM_toggled ( bool  checked)
privateslot

◆ on_uiInsertPlayable_toggled

void CAMainWin::on_uiInsertPlayable_toggled ( bool  checked)
privateslot

◆ on_uiInsertSyllable_toggled

void CAMainWin::on_uiInsertSyllable_toggled ( bool  checked)
privateslot

References InsertMode, and setMode().

Here is the call graph for this function:

◆ on_uiInstrumentChange_activated

void CAMainWin::on_uiInstrumentChange_activated ( int  index)
privateslot

◆ on_uiInvertSelection_triggered

void CAMainWin::on_uiInvertSelection_triggered ( )
privateslot

References currentView(), and CAView::ScoreView.

Here is the call graph for this function:

◆ on_uiJumpTo_triggered

void CAMainWin::on_uiJumpTo_triggered ( )
privateslot

References _jumpToView, currentSheet(), document(), and CAJumpToView::show().

Here is the call graph for this function:

◆ on_uiLilyPondSource_triggered

void CAMainWin::on_uiLilyPondSource_triggered ( )
privateslot

◆ on_uiLockScrollPlayback_toggled

void CAMainWin::on_uiLockScrollPlayback_toggled ( bool  val)
privateslot

References CASettings::setLockScrollPlayback(), and CACanorus::settings().

Here is the call graph for this function:

◆ on_uiMarkType_toggled

void CAMainWin::on_uiMarkType_toggled ( bool  checked,
int  buttonId 
)
privateslot

◆ on_uiMidiRecorder_triggered

void CAMainWin::on_uiMidiRecorder_triggered ( )
privateslot

◆ on_uiNewDocument_triggered

void CAMainWin::on_uiNewDocument_triggered ( )
privateslot

References newDocument().

Here is the call graph for this function:

◆ on_uiNewSheet_triggered

void CAMainWin::on_uiNewSheet_triggered ( )
privateslot

Adds a new empty sheet.

References CADocument::addSheet(), CAUndo::createUndoCommand(), document(), CAUndo::pushUndoCommand(), CACanorus::rebuildUI(), stopPlayback(), and CACanorus::undo().

Referenced by on_uiTabWidget_CANewTab().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ on_uiNewView_triggered

void CAMainWin::on_uiNewView_triggered ( )
privateslot

◆ on_uiNewVoice_triggered

void CAMainWin::on_uiNewVoice_triggered ( )
privateslot

◆ on_uiNewWindow_triggered

void CAMainWin::on_uiNewWindow_triggered ( )
privateslot

Creates a new main window sharing the current document.

References CAMainWin(), document(), rebuildUI(), and setDocument().

Here is the call graph for this function:

◆ on_uiNoteStemDirection_toggled

void CAMainWin::on_uiNoteStemDirection_toggled ( bool  checked,
int  id 
)
privateslot

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(), currentScoreView(), currentSheet(), document(), EditMode, InsertMode, mode(), musElementFactory(), CAUndo::pushUndoCommand(), CACanorus::rebuildUI(), CAScoreView::selection(), CAMusElementFactory::setNoteStemDirection(), CANote::setStemDirection(), and CACanorus::undo().

Here is the call graph for this function:

◆ on_uiOpenDocument_triggered

void CAMainWin::on_uiOpenDocument_triggered ( )
privateslot

References handleUnsavedChanges(), openDocument(), and uiOpenDialog.

Here is the call graph for this function:

◆ on_uiOpenRecent_aboutToShow

void CAMainWin::on_uiOpenRecent_aboutToShow ( )
privateslot

References onUiOpenRecentDocumentTriggered(), and CACanorus::recentDocumentList().

Here is the call graph for this function:

◆ on_uiPaste_triggered

void CAMainWin::on_uiPaste_triggered ( )
privateslot

Action on Edit->Paste.

References currentScoreView(), and pasteAt().

Here is the call graph for this function:

◆ on_uiPlayableLength_toggled

void CAMainWin::on_uiPlayableLength_toggled ( bool  checked,
int  buttonId 
)
privateslot

◆ on_uiPlayFromSelection_toggled

void CAMainWin::on_uiPlayFromSelection_toggled ( bool  checked)
privateslot

◆ on_uiRedo_toggled

void CAMainWin::on_uiRedo_toggled ( bool  ,
int  row 
)
privateslot

◆ on_uiRemoveContext_triggered

void CAMainWin::on_uiRemoveContext_triggered ( )
privateslot

Removes the current context from the sheet and all its contents.

References CAUndo::createUndoCommand(), currentContext(), currentSheet(), document(), CAContext::name(), CAUndo::pushUndoCommand(), CACanorus::rebuildUI(), CASheet::removeContext(), CAContext::sheet(), stopPlayback(), and CACanorus::undo().

Here is the call graph for this function:

◆ on_uiRemoveSheet_triggered

void CAMainWin::on_uiRemoveSheet_triggered ( )
privateslot

Removes the sheet, all its contents and rebuilds the GUI.

References CAUndo::createUndoCommand(), currentSheet(), document(), CAUndo::pushUndoCommand(), CACanorus::rebuildUI(), removeSheet(), CADocument::removeSheet(), stopPlayback(), and CACanorus::undo().

Here is the call graph for this function:

◆ on_uiRemoveVoice_triggered

void CAMainWin::on_uiRemoveVoice_triggered ( )
privateslot

◆ on_uiRepeatMarkType_toggled

void CAMainWin::on_uiRepeatMarkType_toggled ( bool  checked,
int  t 
)
privateslot

◆ on_uiResourceView_toggled

void CAMainWin::on_uiResourceView_toggled ( bool  checked)
privateslot

Toggles the visibility of the resource view window.

References _resourceView.

◆ on_uiSaveDocument_triggered

bool CAMainWin::on_uiSaveDocument_triggered ( )
privateslot

Calls the save document method or save as, if the document doesn't exist yet. Returns True, if the document was saved; False otherwise.

References document(), on_uiSaveDocumentAs_triggered(), and saveDocument().

Referenced by handleUnsavedChanges().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ on_uiSaveDocumentAs_triggered

bool CAMainWin::on_uiSaveDocumentAs_triggered ( )
privateslot

Calls the save document method. Returns True, if the document was saved; False otherwise.

References document(), saveDocument(), and uiSaveDialog.

Referenced by on_uiSaveDocument_triggered().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ on_uiScoreView_triggered

void CAMainWin::on_uiScoreView_triggered ( )
privateslot

Adds a new score View to default View container.

References _sheetMap, CAViewContainer::addView(), currentViewContainer(), initView(), and CAScoreView::rebuild().

Here is the call graph for this function:

◆ on_uiSelectAll_triggered

void CAMainWin::on_uiSelectAll_triggered ( )
privateslot

References currentView(), CAView::ScoreView, CAView::SourceView, and CAView::viewType().

Here is the call graph for this function:

◆ on_uiSettings_triggered

void CAMainWin::on_uiSettings_triggered ( )
privateslot

◆ on_uiSheetName_returnPressed

void CAMainWin::on_uiSheetName_returnPressed ( )
privateslot

◆ on_uiSheetProperties_triggered

void CAMainWin::on_uiSheetProperties_triggered ( )
privateslot

Brings up properties dialog.

References currentSheet(), and CAPropertiesDialog::sheetProperties().

Here is the call graph for this function:

◆ on_uiShowRuler_toggled

void CAMainWin::on_uiShowRuler_toggled ( bool  checked)
privateslot

Toggles the visibility of the ruler.

References CASettings::setShowRuler(), CACanorus::settings(), and CASettings::writeSettings().

Here is the call graph for this function:

◆ on_uiSlurType_toggled

void CAMainWin::on_uiSlurType_toggled ( bool  checked,
int  buttonId 
)
privateslot

◆ on_uiSplitHorizontally_triggered

void CAMainWin::on_uiSplitHorizontally_triggered ( )
privateslot

References currentViewContainer(), initView(), and CAViewContainer::splitHorizontally().

Here is the call graph for this function:

◆ on_uiSplitVertically_triggered

void CAMainWin::on_uiSplitVertically_triggered ( )
privateslot

References currentViewContainer(), initView(), and CAViewContainer::splitVertically().

Here is the call graph for this function:

◆ on_uiStanzaNumber_valueChanged

void CAMainWin::on_uiStanzaNumber_valueChanged ( int  stanzaNumber)
privateslot

Sets the stanza number of the current lyrics context.

References CAUndo::createUndoCommand(), currentContext(), document(), CAContext::LyricsContext, CAUndo::pushUndoCommand(), and CACanorus::undo().

Here is the call graph for this function:

◆ on_uiTabWidget_CAMoveTab

void CAMainWin::on_uiTabWidget_CAMoveTab ( int  from,
int  to 
)
privateslot

Changes the sheet order in the document. This function is usually called when the user double clicks outside the tabs space.

References CAUndo::createUndoCommand(), currentSheet(), document(), CAUndo::pushUndoCommand(), CACanorus::rebuildUI(), CADocument::sheetList(), and CACanorus::undo().

Here is the call graph for this function:

◆ on_uiTabWidget_CANewTab

void CAMainWin::on_uiTabWidget_CANewTab ( )
privateslot

Appends a new sheet to the document. This function is usually called when the user double clicks outside the tabs space.

References document(), and on_uiNewSheet_triggered().

Here is the call graph for this function:

◆ on_uiTabWidget_currentChanged

void CAMainWin::on_uiTabWidget_currentChanged ( int  )
privateslot

Called when the current sheet is switched in the tab widget.

Warning
This method is only called when the index of the selected tab changes. If you remove the current tab and the next selected tab gets the same index, this slot isn't called!

References currentView(), currentViewContainer(), setCurrentView(), setCurrentViewContainer(), and updateToolBars().

Here is the call graph for this function:

◆ on_uiTempoBeat_toggled

void CAMainWin::on_uiTempoBeat_toggled ( bool  checked,
int  t 
)
privateslot

◆ on_uiTempoBpm_returnPressed

void CAMainWin::on_uiTempoBpm_returnPressed ( )
privateslot

◆ on_uiTimeSigBeat_valueChanged

void CAMainWin::on_uiTimeSigBeat_valueChanged ( int  beat)
privateslot

◆ on_uiTimeSigBeats_valueChanged

void CAMainWin::on_uiTimeSigBeats_valueChanged ( int  beats)
privateslot

◆ on_uiTimeSigType_toggled

void CAMainWin::on_uiTimeSigType_toggled ( bool  checked,
int  buttonId 
)
privateslot

◆ on_uiTranspose_triggered

void CAMainWin::on_uiTranspose_triggered ( )
privateslot

References _transposeView, document(), and CATransposeView::show().

Here is the call graph for this function:

◆ on_uiTupletActualNumber_valueChanged

void CAMainWin::on_uiTupletActualNumber_valueChanged ( int  value)
privateslot

References musElementFactory(), and CAMusElementFactory::setTupletActualNumber().

Here is the call graph for this function:

◆ on_uiTupletNumber_valueChanged

void CAMainWin::on_uiTupletNumber_valueChanged ( int  value)
privateslot

References musElementFactory(), and CAMusElementFactory::setTupletNumber().

Here is the call graph for this function:

◆ on_uiTupletType_toggled

void CAMainWin::on_uiTupletType_toggled ( bool  checked,
int  type 
)
privateslot

◆ on_uiUndo_toggled

void CAMainWin::on_uiUndo_toggled ( bool  ,
int  row 
)
privateslot

◆ on_uiUnsplitAll_triggered

void CAMainWin::on_uiUnsplitAll_triggered ( )
privateslot

References _viewList, currentView(), currentViewContainer(), setCurrentView(), and CAViewContainer::unsplitAll().

Here is the call graph for this function:

◆ on_uiUsersGuide_triggered

void CAMainWin::on_uiUsersGuide_triggered ( )
slot

References CACanorus::help(), and CAHelpCtl::showUsersGuide().

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ on_uiVoiceInstrument_activated

void CAMainWin::on_uiVoiceInstrument_activated ( int  index)
privateslot

◆ on_uiVoiceName_returnPressed

void CAMainWin::on_uiVoiceName_returnPressed ( )
privateslot

Gets the current voice and sets its name.

References CAUndo::createUndoCommand(), currentSheet(), currentVoice(), document(), CAUndo::pushUndoCommand(), CACanorus::rebuildUI(), CAVoice::setName(), uiVoiceName, and CACanorus::undo().

Here is the call graph for this function:

◆ on_uiVoiceNum_valChanged

void CAMainWin::on_uiVoiceNum_valChanged ( int  voiceNr)
privateslot

Called when a user changes the current voice number.

References currentContext(), currentScoreView(), setCurrentVoice(), and CAContext::Staff.

Here is the call graph for this function:

◆ on_uiVoiceProperties_triggered

void CAMainWin::on_uiVoiceProperties_triggered ( )
privateslot

Brings up the properties dialog.

References currentVoice(), and CAPropertiesDialog::voiceProperties().

Here is the call graph for this function:

◆ on_uiVoiceStemDirection_toggled

void CAMainWin::on_uiVoiceStemDirection_toggled ( bool  checked,
int  direction 
)
privateslot

◆ on_uiZoomToFit_triggered

void CAMainWin::on_uiZoomToFit_triggered ( )
privateslot

References _currentView, CAView::ScoreView, and CAView::viewType().

Here is the call graph for this function:

◆ on_uiZoomToHeight_triggered

void CAMainWin::on_uiZoomToHeight_triggered ( )
privateslot

References _currentView, CAView::ScoreView, and CAView::viewType().

Here is the call graph for this function:

◆ on_uiZoomToSelection_triggered

void CAMainWin::on_uiZoomToSelection_triggered ( )
privateslot

References _currentView, CASettings::animatedScroll(), CAView::ScoreView, CACanorus::settings(), and CAView::viewType().

Here is the call graph for this function:

◆ on_uiZoomToWidth_triggered

void CAMainWin::on_uiZoomToWidth_triggered ( )
privateslot

References _currentView, CAView::ScoreView, and CAView::viewType().

Here is the call graph for this function:

◆ onExportDone

void CAMainWin::onExportDone ( int  status)
privateslot

◆ onImportDone

void CAMainWin::onImportDone ( int  status)
privateslot

◆ onMidiInEvent

void CAMainWin::onMidiInEvent ( QVector< unsigned char >  message)
privateslot

References _keybdInput, and CAKeybdInput::onMidiInEvent().

Referenced by CAMainWin().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onRepaintTimerTimeout

void CAMainWin::onRepaintTimerTimeout ( )
privateslot

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

References _playback, _playbackView, CAScoreView::addToSelection(), CASettings::animatedScroll(), CAScoreView::clearSelection(), CAPlayback::curPlaying(), CASettings::lockScrollPlayback(), CAMusElement::Note, CACanorus::settings(), CAScoreView::setWorldX(), CAScoreView::worldWidth(), CAScoreView::worldX(), and CADrawable::xPos().

Referenced by on_uiPlayFromSelection_toggled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onScoreViewSelectionChanged

void CAMainWin::onScoreViewSelectionChanged ( )
privateslot

Called when selection in score Views is changed.

References CAPluginManager::action(), and document().

Referenced by initView().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onTextEditKeyPressEvent

void CAMainWin::onTextEditKeyPressEvent ( QKeyEvent *  e)
privateslot

Function called when user types the text of the syllable or hits control keys.

The following behaviour is implemented:

  • alphanumeric keys are pressed - writes text
  • spacebar is pressed - creates the current syllable and jumps to the next syllable
  • return is pressed - creates the current syllable and hides the syllable edit widget
  • left key is pressed - if cursorPosition()==0, jumps to the previous syllable
  • right key is pressed - if cursorPosition()==length(), same as spacebar
  • escape key is pressed - hides the syllable edit and cancels any changes to syllable

References CASettings::animatedScroll(), confirmTextEdit(), CAScoreView::createTextEdit(), currentScoreView(), CASettings::finaleLyricsBehaviour(), CASyllable::lyricsContext(), CAMusElement::musElementType(), CALyricsContext::next(), CALyricsContext::previous(), CAScoreView::removeTextEdit(), CAScoreView::selection(), CAScoreView::selectMElement(), CASyllable::setHyphenStart(), CACanorus::settings(), CAScoreView::setWorldX(), CAMusElement::Syllable, CAScoreView::textEdit(), CAScoreView::worldWidth(), CAScoreView::worldX(), and CADrawable::xPos().

Referenced by initView().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onTimeEditedTimerTimeout

void CAMainWin::onTimeEditedTimerTimeout ( )
privateslot

Called every second when timeEditedTimer has timeout. Increases the locally stored time the document is being edited.

References _timeEditedTime.

Referenced by CAMainWin().

Here is the caller graph for this function:

◆ onUiOpenRecentDocumentTriggered

void CAMainWin::onUiOpenRecentDocumentTriggered ( )
privateslot

References handleUnsavedChanges(), openDocument(), CACanorus::recentDocumentList(), and CACanorus::removeRecentDocument().

Referenced by on_uiOpenRecent_aboutToShow().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ openDocument() [1/2]

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 _noteChecker, CANoteChecker::checkSheet(), clearUI(), CAUndo::createUndoStack(), currentScoreView(), CAUndo::deleteUndoStack(), document(), EditMode, CADocument::fileName(), CACanorus::insertRecentDocument(), CACanorus::mainWinCount(), rebuildUI(), CAScoreView::selectContext(), setDocument(), setMode(), CACanorus::settings(), CADocument::sheetList(), stopPlayback(), CACanorus::undo(), and updateToolBars().

Here is the call graph for this function:

◆ openDocument() [2/2]

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 _mainWinProgressCtl, CAFileFormats::CAN_FILTER, CAFileFormats::CANORUSML_FILTER, CAImport::importDocument(), CAImport::importedDocument(), onImportDone(), CAImport::setStreamFromFile(), CAMainWinProgressCtl::startProgress(), stopPlayback(), and uiSaveDialog.

Referenced by on_uiOpenDocument_triggered(), onImportDone(), onUiOpenRecentDocumentTriggered(), CAAutoRecovery::openRecovery(), and CACanorus::parseOpenFileArguments().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pasteAt()

void CAMainWin::pasteAt ( const QPoint  coords,
CAScoreView v 
)

Backend for Edit->Paste.

References CASheet::addContext(), CAFunctionMarkContext::addEmptyFunction(), CALyricsContext::addEmptySyllable(), CALyricsContext::addSyllable(), CAScoreView::addToSelection(), CAStaff::addVoice(), CAScoreView::clearSelection(), CAPlayable::clone(), CASyllable::clone(), CASlur::clone(), CATuplet::clone(), CAMusElement::clone(), CADrawableContext::context(), CAMusElement::context(), CASheet::contextList(), CAContext::contextType(), CAUndo::createUndoCommand(), currentContext(), CAScoreView::currentContext(), currentScoreView(), currentSheet(), document(), CAContext::FiguredBassContext, CAContext::FunctionMarkContext, CALCDNumber::getRealValue(), CASheet::insertContextAfter(), CAMusElement::isPlayable(), CAContext::LyricsContext, CADrawableMusElement::musElement(), CAMusElement::musElementType(), CAScoreView::nearestRightElement(), CAMusElement::Note, CASlur::noteEnd(), CATuplet::noteList(), CANote::phrasingSlurEnd(), CANote::phrasingSlurStart(), CASlur::PhrasingSlurType, CAUndo::pushUndoCommand(), CACanorus::rebuildUI(), CAFunctionMarkContext::repositFunctions(), CALyricsContext::repositSyllables(), CAScoreView::setLastMousePressCoordsAfter(), CANote::setPhrasingSlurStart(), CANote::setSlurStart(), CANote::setTieEnd(), CANote::setTieStart(), CAMusElement::setTimeStart(), CAContext::sheet(), CAScoreView::sheet(), CANote::slurEnd(), CANote::slurStart(), CASlur::SlurType, CASlur::slurType(), CAContext::Staff, CAVoice::staff(), CASheet::staffList(), CALyricsContext::syllableList(), CAStaff::synchronizeVoices(), CANote::tieEnd(), CANote::tieStart(), CASlur::TieType, CAMusElement::timeLength(), CAMusElement::timeStart(), CAPlayable::tuplet(), uiVoiceNum, CACanorus::undo(), and CAStaff::voiceList().

Referenced by on_uiPaste_triggered().

Here is the caller graph for this function:

◆ playbackFinished

void CAMainWin::playbackFinished ( )
privateslot

Called when playback is finished or interrupted by the user. It stops the playback, closes ports etc.

References _playback, _playbackView, _prePlaybackSelection, _repaintTimer, CAMidiDevice::closeOutputPort(), CACanorus::midiDevice(), mode(), and setMode().

Referenced by on_uiPlayFromSelection_toggled(), and playImmediately().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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.

See also
CASettings::_playInsertedNotes

References _playback, CACanorus::midiDevice(), playbackFinished(), CAPlayback::playImmediately(), and CACanorus::settings().

Referenced by insertMusElementAt(), and scoreViewKeyPress().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rebuildUI() [1/2]

void CAMainWin::rebuildUI ( bool  repaint = true)

Rebuilds the GUI from data.

This method is called eg. when multiple Views share the same data and a change has been made (eg. a note pitch has changed or a new element added). Views content is repositioned and redrawn (CAEngraver creates CADrawable elements for every score View, sources are updated in source Views etc.).

This method in comparison to CAMainWin::rebuildUI(CASheet *s, bool repaint) rebuilds the whole GUI from scratch and creates new Views for the sheets. This method is called for example when a new document is created or opened.

If repaint is True (default) the rebuilt Views are also repainted. If False, Views 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, _viewList, addSheet(), CAScoreView::checkScrollBars(), clearUI(), document(), CAResourceView::rebuildUi(), rebuildUILock(), CAView::ScoreView, setRebuildUILock(), CADocument::sheetList(), updateToolBars(), and updateWindowTitle().

Here is the call graph for this function:

◆ rebuildUI() [2/2]

void CAMainWin::rebuildUI ( CASheet sheet,
bool  repaint = true 
)

Rebuilds the GUI from data.

This method is called eg. when multiple Views share the same data and a change has been made (eg. a note pitch has changed or a new element added). Views content is repositioned and redrawn (CAEngraver creates CADrawable elements for every score View, sources are updated in source Views etc.).

sheet argument is a pointer to the data sheet where the change occured. This way only Views showing the given sheet are updated which speeds up the process. If sheet argument is null, all Views are rebuilt, but the Views contents, number and locations remain the same.

If repaint is True (default) the rebuilt Views are also repainted. If False, Views 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, _viewList, clearUI(), document(), CAResourceView::rebuildUi(), rebuildUILock(), CAView::ScoreView, setRebuildUILock(), CADocument::sheetList(), updateToolBars(), and updateWindowTitle().

Referenced by newDocument(), on_uiCloseDocument_triggered(), on_uiNewWindow_triggered(), and openDocument().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rebuildUILock()

bool CAMainWin::rebuildUILock ( )
inline

References _rebuildUILock.

Referenced by rebuildUI().

Here is the caller graph for this function:

◆ removeSheet()

void CAMainWin::removeSheet ( CASheet sheet)

Removes the sheet from the GUI and deletes the Views and View containers and tabs pointing to the given sheet.

References _sheetMap, CAViewContainer::currentView(), CASourceView::lyricsContext(), CAView::ScoreView, setCurrentView(), setCurrentViewContainer(), CAContext::sheet(), CAView::SourceView, CAVoice::staff(), viewList(), and CASourceView::voice().

Referenced by on_uiRemoveSheet_triggered().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ removeView()

void CAMainWin::removeView ( CAView v)
inline

References _viewList.

◆ resourceView()

CAResourceView * CAMainWin::resourceView ( )
inline

References _resourceView.

◆ resourceViewAction()

QAction * CAMainWin::resourceViewAction ( )
inline

◆ restartTimeEditedTime()

void CAMainWin::restartTimeEditedTime ( )
inline

References _timeEditedTime.

Referenced by CAMainWin(), and newDocument().

Here is the caller graph for this function:

◆ saveDocument()

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, document(), CAExport::exportDocument(), CACanorus::insertRecentDocument(), CAExport::readableStatus(), CACanorus::restartTimeEditedTimes(), CADocument::setDateLastModified(), CADocument::setFileName(), CADocument::setModified(), CAExport::setStreamToFile(), CADocument::setTimeEdited(), CAFile::status(), uiSaveDialog, updateWindowTitle(), and CAExport::wait().

Referenced by on_uiSaveDocument_triggered(), and on_uiSaveDocumentAs_triggered().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ scoreViewDoubleClick

void CAMainWin::scoreViewDoubleClick ( QMouseEvent *  e,
const QPoint  coords 
)
privateslot

Processes the mouse double click event. Currently this selects the current bar.

See also
CAScoreView::selectAllCurBar()

References EditMode, and mode().

Referenced by initView().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ scoreViewKeyPress

void CAMainWin::scoreViewKeyPress ( QKeyEvent *  e)
privateslot

Processes the key press event e. Any action happened in any of the Views are always linked to its main window slots.

See also
CAScoreView::keyPressEvent(), scoreViewMousePress(), scoreViewMouseMove(), scoreViewWheel()

References CADiatonicPitch::accs(), CAMusElementFactory::addNoteAccs(), CAMusElementFactory::addNoteExtraAccs(), CAMusElementFactory::addPlayableDotted(), CASettings::animatedScroll(), CAPlayableLength::Breve, CAPlayable::calculateTimeLength(), CAScoreView::clearSelection(), CARest::composeRests(), CADrawableContext::context(), CASheet::contextList(), CAContext::contextType(), CAUndo::createUndoCommand(), currentContext(), CAScoreView::currentContext(), currentScoreView(), currentSheet(), currentVoice(), deleteSelection(), CAKeySignature::diatonicKey(), CANote::diatonicPitch(), document(), CAPlayableLength::dotted(), CADrawableMusElement::drawableMusElementType(), CADrawableMusElement::DrawableNote, EditMode, CAPlayableLength::Eighth, CANote::getChord(), 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(), CAMusElementFactory::playableLength(), CAPlayable::playableLength(), playImmediately(), CAUndo::pushUndoCommand(), CAPlayableLength::Quarter, CACanorus::rebuildUI(), CAVoice::remove(), CAMusElement::Rest, CAScoreView::selectContext(), CAScoreView::selection(), CAScoreView::selectMElement(), CAScoreView::selectNextMusElement(), CAScoreView::selectPrevMusElement(), CAScoreView::setCurrentContext(), CAMenuToolButton::setCurrentId(), setCurrentView(), CANote::setDiatonicPitch(), CAPlayableLength::setDotted(), CAScoreView::setDrawShadowNoteAccs(), CALCDNumber::setRealValue(), CAScoreView::setShadowNoteAccs(), CAScoreView::setShadowNoteLength(), CACanorus::settings(), CAScoreView::setWorldX(), CAContext::sheet(), CAScoreView::sheet(), CABarline::Single, CAPlayableLength::Sixteenth, CAPlayableLength::SixtyFourth, CAContext::Staff, CAPlayable::staff(), CAVoice::staff(), CAMusElementFactory::subNoteAccs(), CAMusElementFactory::subNoteExtraAccs(), CAStaff::synchronizeVoices(), CAPlayableLength::ThirtySecond, CAMusElement::timeLength(), CAMusElement::timeStart(), uiPlayableLength, uiVoiceNum, CACanorus::undo(), CAScoreView::updateHelpers(), updateToolBars(), CAPlayable::voice(), CASheet::voiceList(), CAStaff::voiceList(), CAVoice::voiceNumber(), CAPlayableLength::Whole, CAScoreView::worldWidth(), and CAScoreView::worldX().

Referenced by initView().

Here is the caller graph for this function:

◆ scoreViewMouseMove

void CAMainWin::scoreViewMouseMove ( QMouseEvent *  e,
const QPoint  coords 
)
privateslot

◆ scoreViewMousePress

void CAMainWin::scoreViewMousePress ( QMouseEvent *  e,
const QPoint  coords 
)
privateslot

Processes the mouse press event e with world coordinates coords. Any action happened in any of the Views are always linked to these main window slots.

See also
CAScoreView::mousePressEvent(), scoreViewMouseMove(), scoreViewWheel(), scoreViewKeyPress()

References CAPluginManager::action(), CAScoreView::addToSelection(), CAMark::BookMark, CAScoreView::clearSelection(), CAScoreView::clearSelectionRegionList(), confirmTextEdit(), CADrawableContext::context(), CAMusElement::context(), CASheet::contextList(), CAContext::contextType(), CAScoreView::createTextEdit(), CAUndo::createUndoCommand(), CAScoreView::currentContext(), CAToolButton::currentId(), currentScoreView(), document(), CADrawableMusElement::drawableContext(), EditMode, CAContext::FiguredBassContext, CAContext::FunctionMarkContext, CADrawable::height(), CASheet::insertContextAfter(), InsertMode, insertMusElementAt(), CAMusElement::isPlayable(), CAContext::LyricsContext, mode(), CADrawableMusElement::musElement(), musElementFactory(), CAScoreView::musElementsAt(), CAMusElement::musElementType(), CAScoreView::nearestUpContext(), NoDocumentMode, CAMusElement::Note, ProgressMode, CAUndo::pushUndoCommand(), ReadOnlyMode, CACanorus::rebuildUI(), CAScoreView::removeFromSelection(), CAScoreView::removeTextEdit(), CAScoreView::resizeDirection(), CAMusElement::Rest, CAScoreView::selectCElement(), CAScoreView::selectContext(), CAScoreView::selection(), CAScoreView::setCurrentContext(), CALCDNumber::setMax(), CAMusElementFactory::setMusElementType(), CALCDNumber::setRealValue(), CAScoreView::setShadowNoteLength(), CAScoreView::sheet(), CAMusElement::Slur, CAContext::Staff, CASheet::staffList(), CAMark::Text, CAScoreView::textEdit(), CAScoreView::textEditVisible(), CAMusElement::timeEnd(), CAMusElement::timeStart(), CAPlayable::tuplet(), uiContextType, uiMarkType, uiVoiceNum, CADrawable::Undefined, CACanorus::undo(), CAScoreView::updateHelpers(), updateToolBars(), CASheet::voiceList(), CAStaff::voiceList(), CADrawable::width(), CADrawable::xPos(), and CADrawable::yPos().

Referenced by initView().

Here is the caller graph for this function:

◆ scoreViewMouseRelease

void CAMainWin::scoreViewMouseRelease ( QMouseEvent *  e,
const QPoint  coords 
)
privateslot

◆ scoreViewTripleClick

void CAMainWin::scoreViewTripleClick ( QMouseEvent *  e,
const QPoint  coords 
)
privateslot

Processes the mouse triple click event. Currently this selects the current line.

See also
CAScoreView::selectAllCurContext()

References EditMode, and mode().

Referenced by initView().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ scoreViewWheel

void CAMainWin::scoreViewWheel ( QWheelEvent *  e,
const QPoint  coords 
)
privateslot

Processes the mouse wheel event e with coordinates coords. Any action happened in any of the Views are always linked to its main window slots.

See also
CAScoreView::wheelEvent(), scoreViewMousePress(), scoreViewMouseMove(), scoreViewKeyPress()

References CASettings::animatedScroll(), setCurrentView(), CACanorus::settings(), CAScoreView::setWorldX(), CAScoreView::setWorldY(), CAScoreView::setZoom(), CAScoreView::worldX(), CAScoreView::worldY(), and CAScoreView::zoom().

Referenced by initView().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setCurrentView()

void CAMainWin::setCurrentView ( CAView view)
inlineprivate

◆ setCurrentViewContainer()

void CAMainWin::setCurrentViewContainer ( CAViewContainer vpc)
inlineprivate

References _currentViewContainer.

Referenced by addSheet(), on_uiTabWidget_currentChanged(), and removeSheet().

Here is the caller graph for this function:

◆ setCurrentVoice()

void CAMainWin::setCurrentVoice ( CAVoice v)

Sets the currently selected voice and update toolbars and helpers accordingly.

References currentScoreView(), CAScoreView::selectContext(), CAScoreView::setSelectedVoice(), CAVoice::staff(), CAScoreView::updateHelpers(), and updateVoiceToolBar().

Referenced by on_uiRedo_toggled(), on_uiUndo_toggled(), and on_uiVoiceNum_valChanged().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setDocument()

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 sourceViewCommit().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setMidiRecorderView()

void CAMainWin::setMidiRecorderView ( CAMidiRecorderView v)
inline

References _midiRecorderView.

◆ setMode() [1/2]

void CAMainWin::setMode ( CAMode  mode)
private

◆ setMode() [2/2]

void CAMainWin::setMode ( CAMode  mode,
const QString &  oModeHash 
)

◆ setRebuildUILock()

void CAMainWin::setRebuildUILock ( bool  l)
inlineprivate

References _rebuildUILock.

Referenced by CAMainWin(), and rebuildUI().

Here is the caller graph for this function:

◆ setupCustomUi()

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.).

Todo:
When Qt Designer have support for setting the visibility property, do this in Qt Designer already! -Matevz

References _musElementFactory, _poKeySignatureUI, _poPrintCtl, _poPrintPreviewCtl, CAArticulation::Accent, actionStorage, CAActionStorage::addWinActions(), createModeHash(), CAKeySignatureUI::ctl(), CAMark::Dynamic, CABarline::End, CADynamic::mf, CAPlayableLength::Quarter, CAMenuToolButton::setCurrentId(), CAToolButton::setDefaultAction(), CAUndoToolButton::setDefaultAction(), CACanorus::settings(), CAContext::Staff, CANote::StemPreferred, CAActionStorage::storeActionsFromMainWindow(), CAFunctionMark::T, CASlur::TieType, CAClef::Treble, uiArticulationType, uiAssociatedVoice, uiAssociatedVoiceAction, uiBarlineType, uiClefOffset, uiClefToolBar, uiClefType, uiContextName, uiContextToolBar, uiContextType, uiDynamicCustomText, uiDynamicText, uiDynamicToolBar, uiDynamicVolume, uiFBMAccs, uiFBMNumber, uiFBMToolBar, uiFermataToolBar, uiFermataType, uiFinger, uiFingeringOriginal, uiFingeringToolBar, uiFMChordArea, uiFMFunction, uiFMKeySig, uiFMTonicDegree, uiFMToolBar, uiHelpDock, uiInsertGroup, uiInsertToolBar, uiInstrumentChange, uiInstrumentToolBar, uiMarkType, uiNoteStemDirection, uiPlayableLength, uiPlayableToolBar, uiPyConsoleDock, uiRedo, uiRepeatMarkToolBar, uiRepeatMarkType, uiSheetName, uiSheetToolBar, uiSlurType, uiStanzaNumber, uiStanzaNumberAction, uiTempoBeat, uiTempoBpm, uiTempoEquals, uiTempoToolBar, uiTimeSigBeat, uiTimeSigBeats, uiTimeSigSlash, uiTimeSigToolBar, uiTimeSigType, uiTupletActualNumber, uiTupletActualNumberAction, uiTupletInsteadOf, uiTupletInsteadOfAction, uiTupletNumber, uiTupletNumberAction, uiTupletType, uiUndo, uiVoiceInstrument, uiVoiceName, uiVoiceNum, uiVoiceStemDirection, and uiVoiceToolBar.

Referenced by CAMainWin().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sourceViewCommit

void CAMainWin::sourceViewCommit ( QString  inputString)
privateslot

◆ stopPlayback()

bool CAMainWin::stopPlayback ( )
inlineprivate

◆ updateClefToolBar()

void CAMainWin::updateClefToolBar ( )
private

Shows/Hides the clef properties tool bar according to the current state.

References currentScoreView(), EditMode, InsertMode, mode(), musElementFactory(), CAClef::offset(), CAClef::offsetToReadable(), CAScoreView::selection(), uiClefOffset, uiClefToolBar, and uiClefType.

Referenced by updateToolBars().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateContextToolBar()

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(), currentScoreView(), currentSheet(), EditMode, CAContext::FiguredBassContext, CAContext::FunctionMarkContext, CAContext::LyricsContext, mode(), CAContext::name(), CAContext::Staff, CALyricsContext::stanzaNumber(), uiAssociatedVoice, uiAssociatedVoiceAction, uiContextName, uiContextToolBar, uiStanzaNumber, uiStanzaNumberAction, and CASheet::voiceList().

Referenced by updateToolBars().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateDynamicToolBar()

void CAMainWin::updateDynamicToolBar ( )
private

Shows/Hides the dynamic marks properties tool bar according to the current state.

References CAToolButton::currentId(), currentScoreView(), CAMark::Dynamic, CADynamic::dynamicTextFromString(), EditMode, InsertMode, mode(), musElementFactory(), CAScoreView::selection(), CAMenuToolButton::setCurrentId(), CADynamic::text(), uiDynamicCustomText, uiDynamicText, uiDynamicToolBar, uiDynamicVolume, uiMarkType, and CADynamic::volume().

Referenced by updateToolBars().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateFBMToolBar()

void CAMainWin::updateFBMToolBar ( )
private

Shows/Hides the figured bass mark properties tool bar according to the current state.

References CAFiguredBassMark::accs(), currentScoreView(), EditMode, InsertMode, mode(), musElementFactory(), CAScoreView::selection(), CAMenuToolButton::setCurrentId(), uiFBMAccs, uiFBMNumber, and uiFBMToolBar.

Referenced by updateToolBars().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateFermataToolBar()

void CAMainWin::updateFermataToolBar ( )
private

Shows/Hides the fermata properties tool bar according to the current state.

References CAToolButton::currentId(), currentScoreView(), EditMode, CAMark::Fermata, CAFermata::fermataType(), InsertMode, mode(), musElementFactory(), CAScoreView::selection(), CAMenuToolButton::setCurrentId(), uiFermataToolBar, uiFermataType, and uiMarkType.

Referenced by updateToolBars().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateFingeringToolBar()

void CAMainWin::updateFingeringToolBar ( )
private

Shows/Hides the fingering properties tool bar according to the current state.

References CAToolButton::currentId(), currentScoreView(), EditMode, CAFingering::finger(), CAMark::Fingering, InsertMode, CAFingering::isOriginal(), mode(), musElementFactory(), CAScoreView::selection(), CAMenuToolButton::setCurrentId(), uiFinger, uiFingeringOriginal, uiFingeringToolBar, and uiMarkType.

Referenced by updateToolBars().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateFMToolBar()

void CAMainWin::updateFMToolBar ( )
private

◆ updateInsertToolBar()

void CAMainWin::updateInsertToolBar ( )
private

Shows/Hides music elements which cannot be placed in the selected context.

References CAContext::contextType(), currentContext(), currentSheet(), CAContext::FiguredBassContext, CAContext::FunctionMarkContext, CAContext::LyricsContext, CAContext::Staff, uiArticulationType, uiBarlineType, uiClefType, uiInsertToolBar, uiMarkType, uiSlurType, and uiTimeSigType.

Referenced by updateToolBars().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateInstrumentToolBar()

void CAMainWin::updateInstrumentToolBar ( )
private

Shows/Hides the instrument marks properties tool bar according to the current state.

References CAToolButton::currentId(), currentScoreView(), EditMode, InsertMode, CAInstrumentChange::instrument(), CAMark::InstrumentChange, mode(), musElementFactory(), CAScoreView::selection(), uiInstrumentChange, uiInstrumentToolBar, and uiMarkType.

Referenced by updateToolBars().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updatePlayableToolBar()

void CAMainWin::updatePlayableToolBar ( )
private

◆ updateRepeatMarkToolBar()

void CAMainWin::updateRepeatMarkToolBar ( )
private

Shows/Hides the repeat mark properties tool bar according to the current state.

References CAToolButton::currentId(), currentScoreView(), EditMode, InsertMode, mode(), musElementFactory(), CAMark::RepeatMark, CARepeatMark::repeatMarkType(), CAScoreView::selection(), CAMenuToolButton::setCurrentId(), uiMarkType, uiRepeatMarkToolBar, uiRepeatMarkType, CARepeatMark::Volta, and CARepeatMark::voltaNumber().

Referenced by updateToolBars().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateSheetToolBar()

void CAMainWin::updateSheetToolBar ( )
private

Shows sheet tool bar if nothing selected. Otherwise hides it.

References CAScoreView::currentContext(), currentScoreView(), document(), CASheet::name(), CAScoreView::selection(), CAScoreView::sheet(), uiSheetName, and uiSheetToolBar.

Referenced by updateToolBars().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateTempoToolBar()

void CAMainWin::updateTempoToolBar ( )
private

Shows/Hides the tempo marks properties tool bar according to the current state.

References CATempo::beat(), CATempo::bpm(), CAToolButton::currentId(), currentScoreView(), CAPlayableLength::dotted(), EditMode, InsertMode, mode(), musElementFactory(), CAPlayableLength::musicLength(), CAScoreView::selection(), CAMenuToolButton::setCurrentId(), CAMark::Tempo, uiMarkType, uiTempoBeat, uiTempoBpm, and uiTempoToolBar.

Referenced by updateToolBars().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateTimeSigToolBar()

void CAMainWin::updateTimeSigToolBar ( )
private

Shows/Hides the time signature properties tool bar according to the current state.

References CATimeSignature::beat(), CATimeSignature::beats(), currentScoreView(), EditMode, InsertMode, mode(), musElementFactory(), CAScoreView::selection(), uiTimeSigBeat, uiTimeSigBeats, uiTimeSigToolBar, and uiTimeSigType.

Referenced by updateToolBars().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateToolBars()

void CAMainWin::updateToolBars ( )
private

◆ updateUndoRedoButtons()

void CAMainWin::updateUndoRedoButtons ( )
private

Enables or Disabled undo/redo buttons if there are undo/redo commands on the undo stack.

See also
CACanorus::undoStack()

References document(), uiRedo, uiUndo, and CACanorus::undo().

Referenced by updateToolBars().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateVoiceToolBar()

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(), currentScoreView(), currentVoice(), EditMode, CALCDNumber::getRealValue(), InsertMode, CAVoice::midiProgram(), mode(), CAVoice::name(), CAMenuToolButton::setCurrentId(), CALCDNumber::setMax(), CAContext::Staff, CAVoice::stemDirection(), uiVoiceInstrument, uiVoiceName, uiVoiceNum, uiVoiceStemDirection, uiVoiceToolBar, and CAStaff::voiceList().

Referenced by setCurrentVoice(), and updateToolBars().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateWindowTitle()

void CAMainWin::updateWindowTitle ( )

References document().

Referenced by rebuildUI(), and saveDocument().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ viewClicked

void CAMainWin::viewClicked ( )
privateslot

General View mouse press event. Sets it as the current view port.

See also
scoreViewMousePress()

References currentView(), currentViewContainer(), CAViewContainer::setCurrentView(), and setCurrentView().

Referenced by initView().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ viewList()

const QList< CAView * > & CAMainWin::viewList ( ) const
inline

References _viewList.

Referenced by on_uiCloseCurrentView_triggered(), and removeSheet().

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ CAActionDelegate

friend class CAActionDelegate
friend

◆ CAActionStorage

friend class CAActionStorage
friend

Referenced by CAMainWin().

◆ CAMainWinProgressCtl

friend class CAMainWinProgressCtl
friend

Member Data Documentation

◆ _currentView

CAView* CAMainWin::_currentView
private

◆ _currentViewContainer

CAViewContainer* CAMainWin::_currentViewContainer
private

◆ _document

CADocument * CAMainWin::_document
private

Pointer to the main window's document it represents. Null if no document opened.

See also
document()

Referenced by document(), and setDocument().

◆ _iNumAllowed

int CAMainWin::_iNumAllowed
private

Referenced by CAMainWin(), createModeHash(), and setMode().

◆ _jumpToView

CAJumpToView* CAMainWin::_jumpToView
private

Referenced by CAMainWin(), and on_uiJumpTo_triggered().

◆ _keybdInput

CAKeybdInput* CAMainWin::_keybdInput
private

Referenced by CAMainWin(), and onMidiInEvent().

◆ _mainWinProgressCtl

CAMainWinProgressCtl CAMainWin::_mainWinProgressCtl
private

◆ _midiRecorderView

CAMidiRecorderView* CAMainWin::_midiRecorderView
private

◆ _mode

CAMode CAMainWin::_mode
private

Main window's current mode (Select mode, Edit mode, Playback mode, Insert mode etc.).

See also
CAMode, mode(), setMode()

Referenced by mode(), and setMode().

◆ _modeHash

QHash<QString, int> CAMainWin::_modeHash
private

Referenced by createModeHash(), and setMode().

◆ _musElementFactory

CAMusElementFactory* CAMainWin::_musElementFactory
private

◆ _noteChecker

CANoteChecker CAMainWin::_noteChecker
private

◆ _permanentStatusBar

QStatusBar* CAMainWin::_permanentStatusBar
private

Referenced by CAMainWin().

◆ _playback

CAPlayback* CAMainWin::_playback
private

◆ _playbackView

CAView * CAMainWin::_playbackView
private

View needed to be updated when playback is active.

Referenced by on_uiPlayFromSelection_toggled(), onRepaintTimerTimeout(), and playbackFinished().

◆ _poExp

CAExport* CAMainWin::_poExp
private

◆ _poKeySignatureUI

CAKeySignatureUI* CAMainWin::_poKeySignatureUI
private

Referenced by setupCustomUi(), and updateToolBars().

◆ _poPrintCtl

CAPrintCtl* CAMainWin::_poPrintCtl
private

Referenced by setupCustomUi(), and ~CAMainWin().

◆ _poPrintPreviewCtl

CAPreviewCtl* CAMainWin::_poPrintPreviewCtl
private

Referenced by setupCustomUi(), and ~CAMainWin().

◆ _prePlaybackSelection

QList<CADrawableMusElement*> CAMainWin::_prePlaybackSelection
private

◆ _rebuildUILock

bool CAMainWin::_rebuildUILock
private

Lock to avoid recursive rebuilds of the GUI Views.

Referenced by rebuildUILock(), and setRebuildUILock().

◆ _repaintTimer

QTimer* CAMainWin::_repaintTimer
private

◆ _resourceView

CAResourceView* CAMainWin::_resourceView
private

◆ _sheetMap

QHash<CAViewContainer*, CASheet*> CAMainWin::_sheetMap
private

◆ _timeEditedTime

unsigned int CAMainWin::_timeEditedTime
private

◆ _timeEditedTimer

QTimer CAMainWin::_timeEditedTimer
private

Referenced by CAMainWin().

◆ _transposeView

CATransposeView* CAMainWin::_transposeView
private

◆ _viewContainerList

QList<CAViewContainer *> CAMainWin::_viewContainerList
private

Referenced by addSheet().

◆ _viewList

QList< CAView * > CAMainWin::_viewList
private

List of all available Views for any sheet in this main window.

Referenced by clearUI(), initView(), on_uiCloseCurrentView_triggered(), on_uiUnsplitAll_triggered(), rebuildUI(), removeView(), setMode(), sourceViewCommit(), and viewList().

◆ actionStorage

CAActionStorage* CAMainWin::actionStorage
private

Referenced by CAMainWin(), and setupCustomUi().

◆ oldUiClefOffsetValue

int CAMainWin::oldUiClefOffsetValue
private

◆ pyConsole

CAPyConsole* CAMainWin::pyConsole

Referenced by createCustomActions().

◆ pyConsoleIface

CAPyConsoleInterface * CAMainWin::pyConsoleIface

◆ uiArticulationType

CAMenuToolButton* CAMainWin::uiArticulationType
private

◆ uiAssociatedVoice

QComboBox* CAMainWin::uiAssociatedVoice
private

◆ uiAssociatedVoiceAction

QAction* CAMainWin::uiAssociatedVoiceAction
private

◆ uiBarlineType

CAMenuToolButton* CAMainWin::uiBarlineType
private

◆ uiClefOffset

QSpinBox* CAMainWin::uiClefOffset
private

◆ uiClefToolBar

QToolBar* CAMainWin::uiClefToolBar
private

◆ uiClefType

CAMenuToolButton* CAMainWin::uiClefType
private

◆ uiContextName

QLineEdit* CAMainWin::uiContextName
private

◆ uiContextToolBar

QToolBar* CAMainWin::uiContextToolBar
private

◆ uiContextType

CAMenuToolButton* CAMainWin::uiContextType
private

◆ uiDynamicCustomText

QLineEdit* CAMainWin::uiDynamicCustomText
private

◆ uiDynamicText

CAMenuToolButton* CAMainWin::uiDynamicText
private

◆ uiDynamicToolBar

QToolBar* CAMainWin::uiDynamicToolBar
private

◆ uiDynamicVolume

QSpinBox* CAMainWin::uiDynamicVolume
private

◆ uiExportDialog

QFileDialog * CAMainWin::uiExportDialog = nullptr
static

◆ uiFBMAccs

CAMenuToolButton* CAMainWin::uiFBMAccs
private

◆ uiFBMNumber

CAMenuToolButton* CAMainWin::uiFBMNumber
private

◆ uiFBMToolBar

QToolBar* CAMainWin::uiFBMToolBar
private

◆ uiFermataToolBar

QToolBar* CAMainWin::uiFermataToolBar
private

◆ uiFermataType

CAMenuToolButton* CAMainWin::uiFermataType
private

◆ uiFinger

CAMenuToolButton* CAMainWin::uiFinger
private

◆ uiFingeringOriginal

QCheckBox* CAMainWin::uiFingeringOriginal
private

◆ uiFingeringToolBar

QToolBar* CAMainWin::uiFingeringToolBar
private

◆ uiFMChordArea

CAMenuToolButton* CAMainWin::uiFMChordArea
private

◆ uiFMFunction

CAMenuToolButton* CAMainWin::uiFMFunction
private

◆ uiFMKeySig

QComboBox* CAMainWin::uiFMKeySig
private

◆ uiFMTonicDegree

CAMenuToolButton* CAMainWin::uiFMTonicDegree
private

◆ uiFMToolBar

QToolBar* CAMainWin::uiFMToolBar
private

◆ uiHelpDock

QDockWidget* CAMainWin::uiHelpDock
private

◆ uiImportDialog

QFileDialog * CAMainWin::uiImportDialog = nullptr
static

◆ uiInsertGroup

QActionGroup* CAMainWin::uiInsertGroup
private

Referenced by setupCustomUi(), and ~CAMainWin().

◆ uiInsertToolBar

QToolBar* CAMainWin::uiInsertToolBar
private

◆ uiInstrumentChange

QComboBox* CAMainWin::uiInstrumentChange
private

◆ uiInstrumentToolBar

QToolBar* CAMainWin::uiInstrumentToolBar
private

◆ uiMarkType

CAMenuToolButton* CAMainWin::uiMarkType
private

◆ uiNoteAccs

CAMenuToolButton* CAMainWin::uiNoteAccs
private

◆ uiNoteStemDirection

CAMenuToolButton* CAMainWin::uiNoteStemDirection
private

◆ uiOpenDialog

QFileDialog * CAMainWin::uiOpenDialog = nullptr
static

◆ uiPlayableLength

CAMenuToolButton* CAMainWin::uiPlayableLength
private

◆ uiPlayableToolBar

QToolBar* CAMainWin::uiPlayableToolBar
private

◆ uiPyConsoleDock

QDockWidget* CAMainWin::uiPyConsoleDock
private

◆ uiRedo

CAUndoToolButton* CAMainWin::uiRedo
private

◆ uiRepeatMarkToolBar

QToolBar* CAMainWin::uiRepeatMarkToolBar
private

◆ uiRepeatMarkType

CAMenuToolButton* CAMainWin::uiRepeatMarkType
private

◆ uiSaveDialog

QFileDialog * CAMainWin::uiSaveDialog = nullptr
static

◆ uiSheetName

QLineEdit* CAMainWin::uiSheetName
private

◆ uiSheetToolBar

QToolBar* CAMainWin::uiSheetToolBar
private

◆ uiSlurType

CAMenuToolButton* CAMainWin::uiSlurType
private

◆ uiStanzaNumber

QSpinBox* CAMainWin::uiStanzaNumber
private

◆ uiStanzaNumberAction

QAction* CAMainWin::uiStanzaNumberAction
private

◆ uiTempoBeat

CAMenuToolButton* CAMainWin::uiTempoBeat
private

◆ uiTempoBpm

QLineEdit* CAMainWin::uiTempoBpm
private

◆ uiTempoEquals

QLabel* CAMainWin::uiTempoEquals
private

◆ uiTempoToolBar

QToolBar* CAMainWin::uiTempoToolBar
private

◆ uiTimeSigBeat

QSpinBox* CAMainWin::uiTimeSigBeat
private

◆ uiTimeSigBeats

QSpinBox* CAMainWin::uiTimeSigBeats
private

◆ uiTimeSigSlash

QLabel* CAMainWin::uiTimeSigSlash
private

◆ uiTimeSigToolBar

QToolBar* CAMainWin::uiTimeSigToolBar
private

◆ uiTimeSigType

CAMenuToolButton* CAMainWin::uiTimeSigType
private

◆ uiTupletActualNumber

QSpinBox* CAMainWin::uiTupletActualNumber

◆ uiTupletActualNumberAction

QAction* CAMainWin::uiTupletActualNumberAction
private

◆ uiTupletInsteadOf

QLabel* CAMainWin::uiTupletInsteadOf
private

◆ uiTupletInsteadOfAction

QAction* CAMainWin::uiTupletInsteadOfAction
private

◆ uiTupletNumber

QSpinBox* CAMainWin::uiTupletNumber

◆ uiTupletNumberAction

QAction* CAMainWin::uiTupletNumberAction
private

◆ uiTupletType

CAMenuToolButton* CAMainWin::uiTupletType

◆ uiUndo

CAUndoToolButton* CAMainWin::uiUndo
private

◆ uiVoiceInstrument

QComboBox* CAMainWin::uiVoiceInstrument
private

◆ uiVoiceName

QLineEdit* CAMainWin::uiVoiceName
private

◆ uiVoiceNum

CALCDNumber* CAMainWin::uiVoiceNum
private

◆ uiVoiceStemDirection

CAMenuToolButton* CAMainWin::uiVoiceStemDirection
private

◆ uiVoiceToolBar

QToolBar* CAMainWin::uiVoiceToolBar
private

The documentation for this class was generated from the following files: