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

Classes | Public Slots | Signals | Public Member Functions | Static Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions

Rosegarden::RosegardenDocument Class Reference

#include <RosegardenDocument.h>

Collaboration diagram for Rosegarden::RosegardenDocument:
Collaboration graph

List of all members.


struct  NoteOnRec

Public Slots

void slotAutoSave ()
void slotDocColoursChanged ()
void slotDocumentModified ()
void slotDocumentRestored ()
void slotSetLoop (timeT s, timeT e)
void slotSetPointerPosition (timeT)
void slotUpdateAllViews (RosegardenMainViewWidget *sender)


void audioFileFinalized (Segment *)
void devicesResyncd ()
void docColoursChanged ()
void documentModified (bool)
void loopChanged (timeT, timeT)
void makeTrackVisible (int trackPosition)
void newAudioRecordingSegment (Segment *)
void newMIDIRecordingSegment (Segment *)
void playPositionChanged (timeT)
void pointerPositionChanged (timeT)
void recordMIDISegmentUpdated (Segment *recordSegment, timeT updatedFrom)
void stoppedAudioRecording ()
void stoppedMIDIRecording ()

Public Member Functions

void addOrphanedDerivedAudioFile (QString fileName)
void addOrphanedRecordedAudioFile (QString fileName)
void addRecordAudioSegment (InstrumentId, AudioFileId)
void addRecordMIDISegment (TrackId)
void attachEditView (EditViewBase *)
void attachView (RosegardenMainViewWidget *view)
void checkSequencerTimer ()
void clearAllPlugins ()
void clearModifiedStatus ()
void clearStudio ()
void deleteEditViews ()
void detachEditView (EditViewBase *)
void detachView (RosegardenMainViewWidget *view)
bool exportStudio (const QString &filename, QString &errMsg, std::vector< DeviceId > devices=std::vector< DeviceId >())
void finalizeAudioFile (InstrumentId instrument)
const QString & getAbsFilePath () const
AudioFileManagergetAudioFileManager ()
const AudioFileManagergetAudioFileManager () const
RealTime getAudioPlayLatency ()
AudioPreviewThreadgetAudioPreviewThread ()
const AudioPreviewThreadgetAudioPreviewThread () const
RealTime getAudioRecordLatency ()
unsigned int getAutoSavePeriod () const
ClipboardgetClipboard ()
const CompositiongetComposition () const
CompositiongetComposition ()
DocumentConfigurationgetConfiguration ()
const DocumentConfigurationgetConfiguration () const
QString getCurrentTimer ()
AudioPluginManagergetPluginManager ()
timeT getQuickMarkerTime ()
SequenceManagergetSequenceManager ()
StudiogetStudio ()
const StudiogetStudio () const
QStringList getTimers ()
const QString & getTitle () const
< RosegardenMainViewWidget * > & 
getViewList ()
void initialiseControllers ()
void initialiseStudio ()
void insertRecordedMidi (const MappedEventList &mc)
bool isBeingDestroyed ()
bool isModified () const
bool isRegularDotRGFile ()
bool isSequencerRunning ()
void jumpToQuickMarker ()
void mergeDocument (RosegardenDocument *doc, int options)
void notifyAudioFileRemoval (AudioFileId id)
bool openDocument (const QString &filename, bool permanent=true, bool squelch=false, const char *format=0)
void prepareAudio ()
 RosegardenDocument (QWidget *parent, AudioPluginManager *audioPluginManager=0, bool skipAutoload=false, bool clearCommandHistory=true, const char *name=0)
bool saveDocument (const QString &filename, QString &errMsg, bool autosave=false)
bool saveIfModified ()
void setAbsFilePath (const QString &filename)
void setCurrentTimer (QString)
void setLoop (timeT, timeT)
void setQuickMarker ()
void setRecordStartTime (timeT t)
void setTitle (const QString &_t)
void stopPlaying ()
void stopRecordingAudio ()
void stopRecordingMidi ()
void updateAudioRecordLatency ()
void updateRecordingAudioSegments ()
void updateRecordingMIDISegment ()
 ~RosegardenDocument ()

Static Public Attributes

static const unsigned int MinNbOfTracks

Protected Types

typedef std::map< int, PitchMapChanMap
typedef std::map< int, ChanMapNoteOnMap
typedef std::vector< NoteOnRecNoteOnRecSet
typedef std::map< int,
typedef std::map< InstrumentId,
Segment * > 

Protected Member Functions

bool deleteOrphanedAudioFiles (bool documentWillNotBeSaved)
QString getAutoSaveFileName ()
void insertRecordedEvent (Event *ev, int device, int channel, bool isNoteOn)
bool isAutoSaved () const
void newDocument ()
void performAutoload ()
NoteOnRecSetreplaceRecordedEvent (NoteOnRecSet &rec_vec, Event *fresh)
bool saveDocumentActual (const QString &filename, QString &errMsg, bool autosave=false)
void saveSegment (QTextStream &, Segment *, ProgressDialog *, long totalNbOfEvents, long &count, QString extraAttributes=QString::null)
void setAutoSaved (bool s)
void setModified (bool m=true)
void storeNoteOnEvent (Segment *s, Segment::iterator it, int device, int channel)
void transposeRecordedSegment (Segment *s)
bool xmlParse (QString fileContents, QString &errMsg, ProgressDialog *progress, bool permanent, bool &cancelled)

Protected Attributes

QString m_absFilePath
AudioFileManager m_audioFileManager
AudioPreviewThread m_audioPreviewThread
RealTime m_audioRecordLatency
bool m_autoSaved
int m_autoSavePeriod
bool m_beingDestroyed
bool m_clearCommandHistory
Composition m_composition
DocumentConfiguration m_config
QList< EditViewBase * > m_editViewList
bool m_modified
NoteOnMap m_noteOnEvents
std::vector< QString > m_orphanedDerivedAudioFiles
std::vector< QString > m_orphanedRecordedAudioFiles
timeT m_quickMarkerTime
RecordingSegmentMap m_recordAudioSegments
RecordingSegmentMap m_recordMIDISegments
timeT m_recordStartTime
Studio m_studio
QString m_title
QList< RosegardenMainViewWidget * > m_viewList

Private Member Functions

RosegardenDocumentoperator= (const RosegardenDocument &doc)
 RosegardenDocument (RosegardenDocument *doc)

Detailed Description

RosegardenDocument provides a document object for a document-view model.

The RosegardenDocument class provides a document object that can be used in conjunction with the classes RosegardenMainWindow and RosegardenMainViewWidget to create a document-view model based on QApplication and QMainWindow. Thereby, the document object is created by the RosegardenMainWindow instance and contains the document structure with related methods for manipulation of the document data by RosegardenMainViewWidget objects. Also, RosegardenDocument contains the methods for serialization of the document data from and to files.

RosegardenDocument owns the Composition in the document.

Definition at line 80 of file RosegardenDocument.h.

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

Generated by  Doxygen 1.6.0   Back to index