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

Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes

Rosegarden::BasicCommand Class Reference

#include <BasicCommand.h>

Inheritance diagram for Rosegarden::BasicCommand:
Inheritance graph
Collaboration diagram for Rosegarden::BasicCommand:
Collaboration graph

List of all members.

Public Member Functions

virtual void execute ()
timeT getEndTime ()
virtual QString getName () const
virtual timeT getRelayoutEndTime ()
virtual SegmentgetSegment ()
timeT getStartTime ()
virtual EventSelectiongetSubsequentSelection ()
 events selected after command; 0 if no change / no meaningful selection
virtual void setName (QString name)
virtual void unexecute ()

Protected Member Functions

 BasicCommand (const QString &name, Segment &segment, timeT start, timeT end, bool bruteForceRedoRequired=false)
virtual void beginExecute ()
virtual void modifySegment ()=0

Protected Attributes

QString m_name

Private Member Functions

timeT calculateEndTime (timeT given, Segment &segment)
timeT calculateStartTime (timeT given, Segment &segment)
void copyFrom (Segment *)
void copyTo (Segment *)

Private Attributes

bool m_doBruteForceRedo
timeT m_endTime
Segment m_savedEvents
timeT m_startTime

Detailed Description

BasicCommand is an abstract subclass of Command that manages undo, redo and notification of changes within a contiguous region of a single Rosegarden Segment, by brute force. When a subclass of BasicCommand executes, it stores a copy of the events that are modified by the command, ready to be restored verbatim on undo.

Definition at line 43 of file BasicCommand.h.

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

Generated by  Doxygen 1.6.0   Back to index