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

Rosegarden::NoteInserter Class Reference

#include <NoteInserter.h>

Inheritance diagram for Rosegarden::NoteInserter:

Rosegarden::NotationTool Rosegarden::EditTool Rosegarden::BaseTool Rosegarden::RestInserter

List of all members.

Detailed Description

This tool will insert notes on mouse click events

Definition at line 45 of file NoteInserter.h.

Public Slots

void slotSetAccidental (Accidental, bool follow)
 Set the accidental for the notes which will be inserted.
void slotSetDots (unsigned int dots)
 Set the nb of dots the inserted note will have.
void slotSetNote (Note::Type)
 Set the type of note (quaver, breve...) which will be inserted.


void showContextHelp (const QString &)

Public Member Functions

virtual QString getCurrentContextHelp () const
Note getCurrentNote ()
virtual void handleEventRemoved (Event *)
virtual void handleLeftButtonPress (timeT, int height, int staffNo, QMouseEvent *, ViewElement *el)
virtual void handleMidButtonPress (timeT time, int height, int staffNo, QMouseEvent *, ViewElement *)
virtual void handleMouseDoubleClick (timeT time, int height, int staffNo, QMouseEvent *, ViewElement *)
virtual int handleMouseMove (timeT time, int height, QMouseEvent *)
virtual void handleMousePress (timeT time, int height, int staffNo, QMouseEvent *event, ViewElement *)
virtual void handleMouseRelease (timeT time, int height, QMouseEvent *)
virtual void handleRightButtonPress (timeT time, int height, int staffNo, QMouseEvent *, ViewElement *)
void insertNote (Segment &segment, timeT insertionTime, int pitch, Accidental accidental, bool suppressPreview=false)
 Insert a note as if the user has clicked at the given time & pitch.
virtual void ready ()
virtual void showMenu ()
virtual void stow ()

Static Public Attributes

static const QString ToolName = "noteinserter"

Protected Slots

void slotDoubleFlat ()
void slotDoubleSharp ()
void slotEraseSelected ()
void slotFlat ()
void slotFollowAccidental ()
void slotNatural ()
void slotNoAccidental ()
void slotRestsSelected ()
void slotSelectSelected ()
void slotSharp ()
void slotToggleAutoBeam ()
void slotToggleDot ()

Protected Member Functions

virtual void clearContextHelp ()
virtual void clearPreview ()
virtual bool computeLocationAndPreview (QMouseEvent *e)
virtual void createMenu (QString rcFileName)
virtual void createMenu ()
virtual EventdoAddCommand (Segment &, timeT time, timeT endTime, const Note &, int pitch, Accidental)
timeT getOffsetWithinRest (int staffNo, const NotationElementList::iterator &, double &canvasX)
int getOttavaShift (Segment &segment, timeT time)
virtual bool hasMenu ()
 NoteInserter (const QString &menuName, NotationView *)
 this ctor is used by RestInserter
 NoteInserter (NotationView *)
virtual void setContextHelp (const QString &help)
void setRCFileName (QString rcfilename)
virtual void showPreview ()

Protected Attributes

Accidental m_accidental
bool m_autoBeam
bool m_clickHappened
int m_clickHeight
double m_clickInsertX
int m_clickPitch
int m_clickStaffNo
int m_clickSubordering
timeT m_clickTime
QString m_contextHelp
NoteStyleName m_defaultStyle
bool m_followAccidental
Accidental m_lastAccidental
bool m_matrixInsertType
QPopupMenu * m_menu
QString m_menuName
unsigned int m_noteDots
Note::Type m_noteType
KXMLGUIFactory * m_parentFactory
EditView * m_parentView
QString m_rcFileName
float m_targetSubordering

Static Protected Attributes

static const char * m_actionsAccidental [][4]


class NotationToolBox

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

Generated by  Doxygen 1.6.0   Back to index