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

CAMainWin Class Reference

List of all members.


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

Copyright (c) 2006-2008, Reinhard Katzmann, Matevž Jekovec, Canorus development team All Rights Reserved. See AUTHORS for a complete list of authors.

Licensed under the GNU GENERAL PUBLIC LICENSE. See COPYING for details.

Canorus supports multiple main windows pointing to the same document or separated document.

Canorus uses multiple inheritance approach. See http://doc.trolltech.com/4.2/designer-using-a-component.html#the-multiple-inheritance-approach Class members having _ prefix are general private properties. Private attributes with ui prefix are GUI-only widgets objects created in Qt designer or manually.

See also:
CAViewPort, CACanorus

Definition at line 6 of file plugins_swig.h.


Public Types

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

Public Slots

void on_uiUsersGuide_triggered ()

Public Member Functions

void addSheet (CASheet *s)
 CAMainWin (QMainWindow *oParent=0)
void clearUI ()
void copySelection (CAScoreViewPort *v)
CAContextcurrentContext ()
CAScoreViewPortcurrentScoreViewPort ()
CASheetcurrentSheet ()
CASheetcurrentSheet ()
CAStaffcurrentStaff ()
CAViewPortcurrentViewPort ()
CAViewPortContainercurrentViewPortContainer ()
CAVoicecurrentVoice ()
void deleteSelection (CAScoreViewPort *v, bool deleteSyllable, bool deleteNotes, bool undo)
CADocumentdocument ()
QFileDialog * exportDialog ()
QDockWidget * helpDock ()
CAHelpBrowser * helpWidget ()
QFileDialog * importDialog ()
void insertMusElementAt (const QPoint coords, CAScoreViewPort *v)
CAMidiRecorderView * midiRecorderView ()
CAMode mode ()
CAMusElementFactorymusElementFactory ()
void newDocument ()
CADocumentopenDocument (CADocument *doc)
CADocumentopenDocument (const QString &fileName)
void pasteAt (const QPoint coords, CAScoreViewPort *v)
void rebuildUI (bool repaint=true)
void rebuildUI (CASheet *sheet, bool repaint=true)
bool rebuildUILock ()
void removeSheet (CASheet *s)
void removeViewPort (CAViewPort *v)
CAResourceViewresourceView ()
QAction * resourceViewAction ()
void restartTimeEditedTime ()
bool saveDocument (QString fileName)
void setDocument (CADocument *document)
void setMidiRecorderView (CAMidiRecorderView *v)
void updateWindowTitle ()
QList< CAViewPort * > viewPortList ()

Public Attributes

CAPyConsolepyConsole
CAPyConsoleInterface * pyConsoleIface
QSpinBox * uiTupletActualNumber
QSpinBox * uiTupletNumber
CAMenuToolButtonuiTupletType

Static Public Attributes

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

Private Slots

void closeEvent (QCloseEvent *event)
void floatViewPortClosed (CAViewPort *)
void keyPressEvent (QKeyEvent *)
void on_uiAboutCanorus_triggered ()
void on_uiAboutQt_triggered ()
void on_uiAnimatedScroll_toggled (bool)
void on_uiArticulationType_toggled (bool, int)
void on_uiAssociatedVoice_activated (int)
void on_uiBarlineType_toggled (bool, int)
void on_uiCanorusMLSource_triggered ()
void on_uiClefOffset_valueChanged (int)
void on_uiClefType_toggled (bool, int)
void on_uiCloseCurrentView_triggered ()
void on_uiCloseDocument_triggered ()
void on_uiContextName_returnPressed ()
void on_uiContextProperties_triggered ()
void on_uiContextType_toggled (bool, int)
void on_uiCopy_triggered ()
void on_uiCut_triggered ()
void on_uiDocumentProperties_triggered ()
void on_uiDynamicCustomText_returnPressed ()
void on_uiDynamicText_toggled (bool, int)
void on_uiDynamicVolume_valueChanged (int)
void on_uiEditMode_toggled (bool)
void on_uiExportDocument_triggered ()
void on_uiExportToPdf_triggered ()
void on_uiFermataType_toggled (bool, int)
void on_uiFinger_toggled (bool checked, int t)
void on_uiFingeringOriginal_toggled (bool checked)
void on_uiFMChordArea_toggled (bool, int)
void on_uiFMEllipse_toggled (bool)
void on_uiFMFunction_toggled (bool, int)
void on_uiFMTonicDegree_toggled (bool, int)
void on_uiFullscreen_toggled (bool)
void on_uiHiddenRest_toggled (bool checked)
void on_uiImportDocument_triggered ()
void on_uiInsertFM_toggled (bool)
void on_uiInsertKeySig_toggled (bool)
void on_uiInsertPlayable_toggled (bool)
void on_uiInsertSyllable_toggled (bool)
void on_uiInstrumentChange_activated (int)
void on_uiInvertSelection_triggered ()
void on_uiKeySig_activated (int)
void on_uiLilyPondSource_triggered ()
void on_uiLockScrollPlayback_toggled (bool)
void on_uiMarkType_toggled (bool, int)
void on_uiMidiRecorder_triggered ()
void on_uiNewDocument_triggered ()
void on_uiNewSheet_triggered ()
void on_uiNewViewport_triggered ()
void on_uiNewVoice_triggered ()
void on_uiNewWindow_triggered ()
void on_uiNoteStemDirection_toggled (bool, int)
void on_uiOpenDocument_triggered ()
void on_uiOpenRecent_aboutToShow ()
void on_uiPaste_triggered ()
void on_uiPlayableLength_toggled (bool, int)
void on_uiPlayFromSelection_toggled (bool)
void on_uiRedo_toggled (bool, int)
void on_uiRemoveContext_triggered ()
void on_uiRemoveSheet_triggered ()
void on_uiRemoveVoice_triggered ()
void on_uiRepeatMarkType_toggled (bool, int)
void on_uiResourceView_toggled (bool)
bool on_uiSaveDocument_triggered ()
bool on_uiSaveDocumentAs_triggered ()
void on_uiScoreView_triggered ()
void on_uiSelectAll_triggered ()
void on_uiSelectMode_toggled (bool)
void on_uiSettings_triggered ()
void on_uiSheetName_returnPressed ()
void on_uiSheetProperties_triggered ()
void on_uiSlurType_toggled (bool, int)
void on_uiSplitHorizontally_triggered ()
void on_uiSplitVertically_triggered ()
void on_uiStanzaNumber_valueChanged (int)
void on_uiTabWidget_currentChanged (int)
void on_uiTempoBeat_toggled (bool, int)
void on_uiTempoBpm_returnPressed ()
void on_uiTimeSigBeat_valueChanged (int)
void on_uiTimeSigBeats_valueChanged (int)
void on_uiTimeSigType_toggled (bool, int)
void on_uiTranspose_triggered ()
void on_uiTupletActualNumber_valueChanged (int)
void on_uiTupletNumber_valueChanged (int)
void on_uiTupletType_toggled (bool, int)
void on_uiUndo_toggled (bool, int)
void on_uiUnsplitAll_triggered ()
void on_uiVoiceInstrument_activated (int)
void on_uiVoiceName_returnPressed ()
void on_uiVoiceNum_valChanged (int)
void on_uiVoiceProperties_triggered ()
void on_uiVoiceStemDirection_toggled (bool, int)
void on_uiZoomToFit_triggered ()
void on_uiZoomToHeight_triggered ()
void on_uiZoomToSelection_triggered ()
void on_uiZoomToWidth_triggered ()
void onMidiInEvent (QVector< unsigned char > message)
void onRepaintTimerTimeout ()
void onScoreViewPortSelectionChanged ()
void onTextEditKeyPressEvent (QKeyEvent *)
void onTimeEditedTimerTimeout ()
void onUiOpenRecentDocumentTriggered ()
void playbackFinished ()
void scoreViewPortDoubleClick (QMouseEvent *e, const QPoint coords)
void scoreViewPortKeyPress (QKeyEvent *e)
void scoreViewPortMouseMove (QMouseEvent *e, const QPoint coords)
void scoreViewPortMousePress (QMouseEvent *e, const QPoint coords)
void scoreViewPortMouseRelease (QMouseEvent *e, const QPoint coords)
void scoreViewPortTripleClick (QMouseEvent *e, const QPoint coords)
void scoreViewPortWheel (QWheelEvent *e, const QPoint coords)
void sourceViewPortCommit (QString inputString)
void viewPortClicked ()

Private Member Functions

void createCustomActions ()
bool handleUnsavedChanges ()
void initViewPort (CAViewPort *)
void playImmediately (QList< CAMusElement * > elements)
void setCurrentViewPort (CAViewPort *viewPort)
void setCurrentViewPortContainer (CAViewPortContainer *vpc)
void setMode (CAMode mode)
void setRebuildUILock (bool l)
void setupCustomUi ()
bool stopPlayback ()
void updateClefToolBar ()
void updateContextToolBar ()
void updateDynamicToolBar ()
void updateFermataToolBar ()
void updateFingeringToolBar ()
void updateFMToolBar ()
void updateInsertToolBar ()
void updateInstrumentToolBar ()
void updateKeySigToolBar ()
void updatePlayableToolBar ()
void updateRepeatMarkToolBar ()
void updateSheetToolBar ()
void updateTempoToolBar ()
void updateTimeSigToolBar ()
void updateToolBars ()
void updateUndoRedoButtons ()
void updateVoiceToolBar ()

Private Attributes

bool _animatedScroll
CAViewPort_currentViewPort
CAViewPortContainer_currentViewPortContainer
CADocument_document
CAKeybdInput_keybdInput
bool _lockScrollPlayback
CAMidiRecorderView * _midiRecorderView
CAMode _mode
CAMusElementFactory_musElementFactory
CAPlayback_playback
CAViewPort_playbackViewPort
CAExport_poExp
CAPrintCtl * _poPrintCtl
CAPreviewCtl * _poPrintPreviewCtl
QList< CADrawableMusElement * > _prePlaybackSelection
bool _rebuildUILock
QTimer * _repaintTimer
CAResourceView_resourceView
QHash< CAViewPortContainer
*, CASheet * > 
_sheetMap
unsigned int _timeEditedTime
QTimer _timeEditedTimer
CATransposeView * _transposeView
QList< CAViewPortContainer * > _viewPortContainerList
QList< CAViewPort * > _viewPortList
int oldUiClefOffsetValue
CAMenuToolButtonuiArticulationType
QComboBox * uiAssociatedVoice
QAction * uiAssociatedVoiceAction
CAMenuToolButtonuiBarlineType
QSpinBox * uiClefOffset
QToolBar * uiClefToolBar
CAMenuToolButtonuiClefType
QLineEdit * uiContextName
QToolBar * uiContextToolBar
CAMenuToolButtonuiContextType
QLineEdit * uiDynamicCustomText
CAMenuToolButtonuiDynamicText
QToolBar * uiDynamicToolBar
QSpinBox * uiDynamicVolume
QToolBar * uiFermataToolBar
CAMenuToolButtonuiFermataType
CAMenuToolButtonuiFinger
QCheckBox * uiFingeringOriginal
QToolBar * uiFingeringToolBar
CAMenuToolButtonuiFMChordArea
CAMenuToolButtonuiFMFunction
QComboBox * uiFMKeySig
CAMenuToolButtonuiFMTonicDegree
QToolBar * uiFMToolBar
QDockWidget * uiHelpDock
CAHelpBrowser * uiHelpWidget
QActionGroup * uiInsertGroup
QToolBar * uiInsertToolBar
QComboBox * uiInstrumentChange
QToolBar * uiInstrumentToolBar
QComboBox * uiKeySig
QToolBar * uiKeySigToolBar
CAMenuToolButtonuiMarkType
CAMenuToolButtonuiNoteAccs
CAMenuToolButtonuiNoteStemDirection
CAMenuToolButtonuiPlayableLength
QToolBar * uiPlayableToolBar
QDockWidget * uiPyConsoleDock
CAUndoToolButton * uiRedo
QToolBar * uiRepeatMarkToolBar
CAMenuToolButtonuiRepeatMarkType
QLineEdit * uiSheetName
QToolBar * uiSheetToolBar
CAMenuToolButtonuiSlurType
QSpinBox * uiStanzaNumber
QAction * uiStanzaNumberAction
CAMenuToolButtonuiTempoBeat
QLineEdit * uiTempoBpm
QLabel * uiTempoEquals
QToolBar * uiTempoToolBar
QSpinBox * uiTimeSigBeat
QSpinBox * uiTimeSigBeats
QLabel * uiTimeSigSlash
QToolBar * uiTimeSigToolBar
CAMenuToolButtonuiTimeSigType
QAction * uiTupletActualNumberAction
QLabel * uiTupletInsteadOf
QAction * uiTupletInsteadOfAction
QAction * uiTupletNumberAction
CAUndoToolButton * uiUndo
QComboBox * uiVoiceInstrument
QLineEdit * uiVoiceName
CALCDNumber * uiVoiceNum
CAMenuToolButtonuiVoiceStemDirection
QToolBar * uiVoiceToolBar

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

Generated by  Doxygen 1.6.0   Back to index