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

MatrixView Class Reference

#include <matrixview.h>

Inheritance diagram for MatrixView:

List of all members.


Detailed Description

Matrix ("Piano Roll") View

Note: we currently display only one staff

Definition at line 76 of file matrixview.h.


Public Slots

void closeWindow ()
virtual void slotActiveItemPressed (QMouseEvent *, QCanvasItem *)
void slotAddControlRuler (int)
void slotAddTempo ()
void slotAddTimeSignature ()
void slotChangeHorizontalZoom (int)
void slotClearControlRulerItem ()
void slotClearLoop ()
void slotClearSelection ()
virtual void slotCloseWindow ()
virtual void slotCompositionStateUpdate ()
void slotDoubleSpeed ()
void slotDrawPropertyLine ()
virtual void slotEditCopy ()
virtual void slotEditCut ()
void slotEditDelete ()
virtual void slotEditPaste ()
void slotEraseControlRulerItem ()
void slotEraseSelected ()
void slotExtendSelectionBackward (bool bar)
void slotExtendSelectionBackward ()
void slotExtendSelectionBackwardBar ()
void slotExtendSelectionForward (bool bar)
void slotExtendSelectionForward ()
void slotExtendSelectionForwardBar ()
void slotFilterSelection ()
void slotFlipBackwards ()
void slotFlipForwards ()
void slotHalfSpeed ()
void slotHoveredOverAbsoluteTimeChanged (unsigned int)
void slotHoveredOverKeyChanged (unsigned int)
void slotHoveredOverNoteChanged (int evPitch, bool haveEvent, Rosegarden::timeT evTime)
void slotInsertableNoteEventReceived (int pitch, int velocity, bool noteOn)
 Note-on or note-off received asynchronously -- as above.
void slotInsertableNoteOffReceived (int pitch, int velocity)
 Note-off received asynchronously -- consider step-by-step editing.
void slotInsertableNoteOnReceived (int pitch, int velocity)
 Note-on received asynchronously -- consider step-by-step editing.
void slotInsertControlRulerItem ()
void slotInsertNoteFromAction ()
void slotInstrumentLevelsChanged (Rosegarden::InstrumentId, const Rosegarden::LevelInfo &)
void slotJogLeft ()
void slotJogRight ()
void slotJumpBackward ()
void slotJumpCursorToPlayback ()
 cursor moves
void slotJumpForward ()
void slotJumpPlaybackToCursor ()
void slotJumpToEnd ()
void slotJumpToStart ()
void slotKeyPressed (unsigned int y, bool repeating)
void slotKeyReleased (unsigned int y, bool repeating)
void slotKeySelected (unsigned int y, bool repeating)
void slotMouseMoved (Rosegarden::timeT time, int pitch, QMouseEvent *)
void slotMousePressed (Rosegarden::timeT time, int pitch, QMouseEvent *, MatrixElement *)
 Canvas actions slots.
void slotMouseReleased (Rosegarden::timeT time, int pitch, QMouseEvent *)
void slotMoveSelected ()
void slotNewSelection ()
virtual void slotOpenInEventList ()
virtual void slotOpenInMatrix ()
virtual void slotOpenInNotation ()
virtual void slotOpenInPercussionMatrix ()
void slotPaintSelected ()
 edition tools
void slotPreviewSelection ()
void slotQuantizeSelection (int)
void slotRemoveControlRuler (QWidget *)
void slotRemoveTriggers ()
void slotRescale ()
void slotResizeSelected ()
void slotSelectAll ()
void slotSelectAllProperties ()
void slotSelectSelected ()
virtual void slotSetInsertCursorPosition (Rosegarden::timeT position)
void slotSetInsertCursorPosition (Rosegarden::timeT position, bool scroll)
void slotSetPointerPosition (Rosegarden::timeT time, bool scroll)
void slotSetPointerPosition (Rosegarden::timeT time)
void slotSetSegmentDuration ()
void slotSetSegmentStartTime ()
void slotSetSnap (Rosegarden::timeT)
void slotSetSnapFromAction ()
void slotSetSnapFromIndex (int)
void slotSetVelocities ()
virtual void slotShowControllerEventsRuler ()
virtual void slotShowPropertyControlRuler ()
virtual void slotShowVelocityControlRuler ()
void slotStartControlLineItem ()
void slotStateChanged (const QString &, bool noReverse)
virtual void slotStatusHelpMsg (const QString &text)
virtual void slotStatusMsg (const QString &text)
virtual void slotStepBackward ()
void slotStepByStepTargetRequested (QObject *)
 The given QObject has originated a step-by-step-editing request.
virtual void slotStepForward ()
virtual void slotTestClipboard ()
void slotToggleChordsRuler ()
 settings
virtual void slotToggleSolo ()
virtual void slotToggleStatusBar ()
void slotToggleStepByStep ()
void slotToggleTempoRuler ()
virtual void slotToggleToolBar ()
void slotToggleTracking ()
void slotTransformsCollapseNotes ()
void slotTransformsLegato ()
void slotTransformsQuantize ()
 transforms
void slotTransformsRepeatQuantize ()
void slotTranspose ()
void slotTransposeDown ()
void slotTransposeDownOctave ()
void slotTransposeUp ()
void slotTransposeUpOctave ()
void slotTriggerSegment ()
void slotUpdateInsertModeStatus ()
 status stuff
void slotVelocityDown ()
void slotVelocityUp ()
void slotVerticalScrollPianoKeyboard (int y)
void slotZoomIn ()
void slotZoomOut ()

Signals

void changeTempo (Rosegarden::timeT, Rosegarden::tempoT, Rosegarden::tempoT, TempoDialog::TempoDialogAction)
void editTimeSignature (Rosegarden::timeT)
void editTriggerSegment (int)
void fastForwardPlayback ()
void fastForwardPlaybackToEnd ()
void jumpPlaybackTo (Rosegarden::timeT)
void openInEventList (std::vector< Rosegarden::Segment * >)
void openInMatrix (std::vector< Rosegarden::Segment * >)
void openInNotation (std::vector< Rosegarden::Segment * >)
void openInPercussionMatrix (std::vector< Rosegarden::Segment * >)
void panic ()
void play ()
void rewindPlayback ()
void rewindPlaybackToBeginning ()
void saveFile ()
void selectTrack (int)
void stepByStepTargetRequested (QObject *)
void stop ()
void toggleSolo (bool)
void usedSelection ()
void windowActivated ()

Public Member Functions

ActiveItemactiveItem ()
virtual void addCommandToHistory (KCommand *)
unsigned int addPropertyViewRuler (const Rosegarden::PropertyName &property)
virtual bool applyLayout (int staffNo=-1, Rosegarden::timeT startTime=0, Rosegarden::timeT endTime=0)
QCanvas * canvas ()
QAccel * getAccelerators ()
virtual MultiViewCommandHistorygetCommandHistory ()
Rosegarden::EventSelectiongetCurrentSelection ()
RosegardenGUIDocgetDocument ()
const RosegardenGUIDocgetDocument () const
Rosegarden::MidiKeyMapping * getKeyMapping ()
RosegardenCanvasViewgetRawCanvasView ()
Rosegarden::SnapGrid getSnapGrid ()
MatrixStaff * getStaff (const Rosegarden::Segment &segment)
MatrixStaff * getStaff (int i)
EditToolBoxgetToolBox ()
std::string getViewLocalPropertyPrefix ()
double getXbyInverseWorldMatrix (double value)
double getXbyWorldMatrix (double value)
virtual void handleEventRemoved (Rosegarden::Event *event)
QPoint inverseMapPoint (const QPoint &p)
bool isDrumMode ()
bool isInChordMode ()
 MatrixView (RosegardenGUIDoc *doc, std::vector< Rosegarden::Segment * > segments, QWidget *parent, bool drumMode)
void playNote (const Rosegarden::Segment &segment, int pitch, int velocity=-1)
void playNote (Rosegarden::Event *event)
void readjustCanvasSize ()
virtual void readjustViewSize (QSize newSize, bool exact=false)
virtual void refreshSegment (Rosegarden::Segment *segment, Rosegarden::timeT startTime=0, Rosegarden::timeT endTime=0)
bool removePropertyViewRuler (unsigned int number)
void repaintRulers ()
void scrollToTime (Rosegarden::timeT t)
void setActiveItem (ActiveItem *i)
void setCanvasCursor (const QCursor &cursor)
virtual void setCurrentSelection (Rosegarden::EventSelection *s, bool preview=false, bool redrawNow=false)
void setSingleSelectedEvent (Rosegarden::Segment &segment, Rosegarden::Event *event, bool preview=false, bool redrawNow=false)
void setSingleSelectedEvent (int staffNo, Rosegarden::Event *event, bool preview=false, bool redrawNow=false)
virtual void updateView ()

Static Public Attributes

static const char *const ConfigGroup = "Matrix Options"

Protected Slots

void slotCanvasBottomWidgetHeightChanged (int newHeight)
void slotCheckTrackAssignments ()
virtual void slotConfigure ()
void slotDockParametersBack ()
virtual void slotEditKeys ()
virtual void slotEditToolbars ()
void slotParametersClosed ()
void slotParametersDockedBack (KDockWidget *, KDockWidget::DockPosition)
void slotPercussionSetChanged (Rosegarden::Instrument *)
virtual void slotUpdateToolbars ()

Protected Member Functions

void addControlRuler (ControlRuler *ruler)
void addPropertyBox (QWidget *)
void addRuler (QWidget *)
bool canPreviewAnotherNote ()
virtual void closeEvent (QCloseEvent *e)
int computePostLayoutWidth ()
void createInsertPitchActionMenu ()
void extendKeyMapping ()
ControlRulerfindRuler (const Rosegarden::ControlParameter &controller, int &index)
ControlRulerfindRuler (Rosegarden::PropertyName propertyName, int &index)
QVBox * getBottomWidget ()
virtual MatrixCanvasView * getCanvasView ()
QWidget * getCentralWidget ()
int getConfigDialogPageIndex ()
ControlRulergetCurrentControlRuler ()
Rosegarden::Device * getCurrentDevice ()
virtual Rosegarden::Segment * getCurrentSegment ()
virtual Rosegarden::StaffgetCurrentStaff ()
virtual Rosegarden::RulerScalegetHLayout ()
virtual Rosegarden::timeT getInsertionTime (Rosegarden::Clef &clef, Rosegarden::Key &key)
virtual Rosegarden::timeT getInsertionTime ()
bool getMinMaxPitches (int &minPitch, int &maxPitch)
int getPitchFromNoteInsertAction (QString actionName, Rosegarden::Accidental &acc, const Rosegarden::Clef &clef, const Rosegarden::Key &key)
QString getRCFileName ()
bool getSegmentsOnlyRestsAndClefs ()
KToggleAction * getToggleAction (const QString &actionName)
 Convenience function around actionCollection()->action().
virtual QSize getViewSize ()
void initActionsToolbar ()
void initSegmentRefreshStatusIds ()
virtual void initStatusBar ()
void initZoomToolbar ()
bool isCompositionModified ()
bool isInCtor ()
ControllerEventsRulermakeControllerEventRuler (const Rosegarden::ControlParameter *controller=0)
PropertyControlRulermakePropertyControlRuler (Rosegarden::PropertyName propertyName)
std::string makeViewLocalPropertyPrefix ()
virtual void paintEvent (QPaintEvent *e)
virtual void readOptions ()
void setBottomBarButtons (BarButtons *)
virtual void setCanvasView (RosegardenCanvasView *cv)
void setCompositionModified (bool)
void setConfigDialogPageIndex (int p)
void setControlRulersCurrentSegment ()
void setControlRulersZoom (QWMatrix)
void setOutOfCtor ()
void setRCFileName (QString s)
void setRewFFwdToAutoRepeat ()
void setTool (EditTool *)
void setTopBarButtons (BarButtons *)
virtual void setupActions (QString rcFileName, bool haveClipboard=true)
virtual void setupActions ()
void setupAddControlRulerMenu ()
bool setupControllerTabs ()
virtual void setViewSize (QSize)
void showPropertyControlRuler (Rosegarden::PropertyName propertyName)
virtual void slotSaveOptions ()
virtual void toggleWidget (QWidget *widget, const QString &toggleActionName)
virtual void updateBottomWidgetGeometry ()
void updateControlRulers (bool updateHPos=false)
virtual void updateQuantizeCombo ()
virtual void updateViewCaption ()
virtual void windowActivationChange (bool)

Protected Attributes

QAccel * m_accelerators
ActiveItemm_activeItem
BarButtonsm_bottomBarButtons
QVBox * m_bottomBox
MatrixCanvasView * m_canvasView
QFrame * m_centralFrame
ChordNameRulerm_chordNameRuler
unsigned int m_compositionRefreshStatusId
KConfig * m_config
int m_configDialogPageIndex
QVBoxLayout * m_controlBox
ControlRulerm_controlRuler
KTabWidget * m_controlRulers
Rosegarden::EventSelectionm_currentEventSelection
 The current selection of Events (for cut/copy/paste).
QWMatrix m_currentRulerZoomMatrix
RosegardenGUIDocm_doc
KDockWidget * m_dockLeft
bool m_dockVisible
bool m_drumMode
Rosegarden::MidiByte m_firstNote
QGridLayout * m_grid
bool m_havePendingPaintEvent
MatrixHLayout m_hlayout
QLabel * m_hoveredOverAbsoluteTime
QLabel * m_hoveredOverNoteName
ZoomSlider< double > * m_hZoomSlider
bool m_inCtor
QLabel * m_insertModeLabel
Rosegarden::timeT m_lastEndMarkerTime
Rosegarden::MidiByte m_lastNote
Rosegarden::MidiKeyMapping * m_localMapping
unsigned int m_mainCol
KDockWidget * m_mainDockWidget
bool m_needUpdate
InstrumentParameterBoxm_parameterBox
std::vector< std::pair< int,
int > > 
m_pendingInsertableNotes
QPaintEvent * m_pendingPaintEvent
QDeferScrollViewm_pianoView
PitchRuler * m_pitchRuler
bool m_playTracking
int m_previousEvPitch
std::vector< std::pair
< PropertyViewRuler
*, PropertyBox * > > 
m_propertyViewRulers
std::vector< Rosegarden::timeT > m_quantizations
KComboBox * m_quantizeCombo
QString m_rcFileName
QVBoxLayout * m_rulerBox
std::vector
< Rosegarden::Segment * > 
m_segments
std::vector< unsigned int > m_segmentsRefreshStatusIds
Rosegarden::PropertyName m_selectedProperty
QLabel * m_selectionCounter
Rosegarden::SnapGridm_snapGrid
KComboBox * m_snapGridCombo
std::vector< Rosegarden::timeT > m_snapValues
std::vector< MatrixStaff * > m_staffs
QWidget * m_tempoRuler
EditViewTimeSigNotifier * m_timeSigNotifier
EditToolm_tool
EditToolBoxm_toolBox
BarButtonsm_topBarButtons
std::string m_viewLocalPropertyPrefix
int m_viewNumber
MatrixVLayout m_vlayout
ZoomSlider< double > * m_vZoomSlider
QLabel * m_zoomLabel

Static Protected Attributes

static const unsigned int CANVASVIEW_ROW = TOPBARBUTTONS_ROW + 1
static const unsigned int CONTROLRULER_ROW = CANVASVIEW_ROW + 1
static const unsigned int CONTROLS_ROW = 0
static bool m_inPaintEvent = false
static std::set< int > m_viewNumberPool
static const unsigned int RULERS_ROW = CONTROLS_ROW + 1
static const unsigned int TOPBARBUTTONS_ROW = RULERS_ROW + 1

Friends

class MatrixSelector

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

Generated by  Doxygen 1.6.0   Back to index