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

RosegardenGUIDoc Class Reference

#include <rosegardenguidoc.h>

List of all members.

Detailed Description

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

The RosegardenGUIDoc class provides a document object that can be used in conjunction with the classes RosegardenGUIApp and RosegardenGUIView to create a document-view model for standard KDE applications based on KApplication and KTMainWindow. Thereby, the document object is created by the RosegardenGUIApp instance and contains the document structure with the according methods for manipulation of the document data by RosegardenGUIView objects. Also, RosegardenGUIDoc contains the methods for serialization of the document data from and to files.

RosegardenGUIDoc owns the Composition in the document.

Definition at line 78 of file rosegardenguidoc.h.

Public Slots

void slotAutoSave ()
void slotDocColoursChanged ()
void slotDocumentModified ()
void slotDocumentRestored ()
void slotDragPointerToPosition (Rosegarden::timeT)
void slotPreviewCancel ()
void slotSetLoop (Rosegarden::timeT s, Rosegarden::timeT e)
void slotSetPlayPosition (Rosegarden::timeT t)
void slotSetPointerPosition (Rosegarden::timeT)
void slotUpdateAllViews (RosegardenGUIView *sender)


void audioFileFinalized (Rosegarden::Segment *)
void devicesResyncd ()
void docColoursChanged ()
void documentModified (bool)
void loopChanged (Rosegarden::timeT, Rosegarden::timeT)
void loopDraggedToPosition (Rosegarden::timeT)
void newAudioRecordingSegment (Rosegarden::Segment *)
void newMIDIRecordingSegment (Rosegarden::Segment *)
void playPositionChanged (Rosegarden::timeT)
void pointerDraggedToPosition (Rosegarden::timeT)
void pointerPositionChanged (Rosegarden::timeT)
void recordMIDISegmentUpdated (Rosegarden::Segment *recordSegment, Rosegarden::timeT updatedFrom)
void stoppedAudioRecording ()
void stoppedMIDIRecording ()

Public Member Functions

void addOrphanedAudioFile (QString fileName)
void addRecordAudioSegment (Rosegarden::InstrumentId, Rosegarden::AudioFileId)
void addRecordMIDISegment (Rosegarden::TrackId)
void attachEditView (EditViewBase *)
void attachView (RosegardenGUIView *view)
void clearAllPlugins ()
void clearModifiedStatus ()
void clearStudio ()
void deleteEditViews ()
void detachEditView (EditViewBase *)
void detachView (RosegardenGUIView *view)
bool exportStudio (const QString &filename, std::vector< Rosegarden::DeviceId > devices=std::vector< Rosegarden::DeviceId >())
void finalizeAudioFile (Rosegarden::InstrumentId instrument)
const QString & getAbsFilePath () const
Rosegarden::AudioFileManager & 
getAudioFileManager () const
Rosegarden::AudioFileManager & getAudioFileManager ()
Rosegarden::RealTime getAudioPlayLatency ()
const AudioPreviewThread & getAudioPreviewThread () const
AudioPreviewThread & getAudioPreviewThread ()
Rosegarden::RealTime getAudioRecordLatency ()
unsigned int getAutoSavePeriod () const
Rosegarden::ClipboardgetClipboard ()
MultiViewCommandHistorygetCommandHistory ()
const Rosegarden::Composition & getComposition () const
Rosegarden::Composition & getComposition ()
Rosegarden::DocumentConfiguration & 
getConfiguration () const
Rosegarden::DocumentConfiguration & getConfiguration ()
QString getCurrentTimer ()
void getMappedDevice (Rosegarden::DeviceId id)
Rosegarden::AudioPluginManager * getPluginManager ()
Rosegarden::SequenceManager * getSequenceManager ()
const Rosegarden::Studio & getStudio () const
Rosegarden::Studio & getStudio ()
QStringList getTimers ()
const QString & getTitle () const
QList< RosegardenGUIView > & getViewList ()
void initialiseControllers ()
void initialiseStudio ()
void insertRecordedMidi (const Rosegarden::MappedComposition &mc)
bool isBeingDestroyed ()
bool isModified () const
bool isRegularDotRGFile ()
bool isSequencerRunning ()
void mergeDocument (RosegardenGUIDoc *doc, int options)
bool openDocument (const QString &filename, bool permanent=true, const char *format=0)
void prepareAudio ()
 RosegardenGUIDoc (QWidget *parent, Rosegarden::AudioPluginManager *audioPluginManager=0, bool skipAutoload=false, 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 (Rosegarden::timeT, Rosegarden::timeT)
void setPlayPosition (Rosegarden::timeT)
void setRecordStartTime (Rosegarden::timeT t)
void setTitle (const QString &_t)
void stopRecordingAudio ()
void stopRecordingMidi ()
void syncDevices ()
void updateAudioRecordLatency ()
void updateRecordingAudioSegments ()
void updateRecordingMIDISegment ()
 ~RosegardenGUIDoc ()

Static Public Attributes

static const unsigned int MinNbOfTracks = 64

Protected Types

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

Protected Member Functions

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

Protected Attributes

QString m_absFilePath
Rosegarden::AudioFileManager m_audioFileManager
AudioPreviewThread m_audioPreviewThread
Rosegarden::RealTime m_audioRecordLatency
bool m_autoSaved
int m_autoSavePeriod
bool m_beingDestroyed
Rosegarden::Composition m_composition
Rosegarden::DocumentConfiguration m_config
QList< EditViewBase > m_editViewList
bool m_modified
NoteOnMap m_noteOnEvents
std::vector< QString > m_orphanedAudioFiles
Rosegarden::AudioPluginManager * m_pluginManager
RecordingSegmentMap m_recordAudioSegments
RecordingSegmentMap m_recordMIDISegments
Rosegarden::timeT m_recordStartTime
Rosegarden::Studio m_studio
QString m_title
QList< RosegardenGUIViewm_viewList

Private Member Functions

RosegardenGUIDocoperator= (const RosegardenGUIDoc &doc)
 RosegardenGUIDoc (RosegardenGUIDoc *doc)


struct  NoteOnRec

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

Generated by  Doxygen 1.6.0   Back to index