~ubuntu-branches/ubuntu/karmic/rosegarden/karmic

« back to all changes in this revision

Viewing changes to src/base/Composition.h

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Ebner
  • Date: 2008-05-02 00:33:44 UTC
  • mfrom: (1.1.7 upstream) (6.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080502003344-67vbfhgqx2yl0ksi
Tags: 1:1.7.0-1ubuntu1
* Merge from Debian unstable. (LP: #225849) Remaining Ubuntu changes:
  - Add usr/share/doc/kde/HTML to rosegarden-data, to provide online
    help documentation.
  - Change fftw3-dev to libfftw3-dev.
  - Update maintainer field as per spec.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
    Rosegarden
5
5
    A sequencer and musical notation editor.
6
6
 
7
 
    This program is Copyright 2000-2007
 
7
    This program is Copyright 2000-2008
8
8
        Guillaume Laurent   <glaurent@telegraph-road.org>,
9
9
        Chris Cannam        <cannam@all-day-breakfast.com>,
10
10
        Richard Bown        <bownie@bownie.com>
136
136
    void resetTrackIdAndPosition(TrackId oldId, TrackId newId, int position);
137
137
 
138
138
    TrackId getMinTrackId() const;
139
 
 
140
139
    TrackId getMaxTrackId() const;
141
140
 
142
141
    const recordtrackcontainer &getRecordTracks() const { return m_recordTracks; }
292
291
     */
293
292
    bool weakDetachSegment(Segment*);
294
293
 
 
294
    /**
 
295
     * Get the largest number of segments that "overlap" at any one
 
296
     * time on the given track.  I have given this function a nice
 
297
     * long name to make it feel important.
 
298
     */
 
299
    int getMaxContemporaneousSegmentsOnTrack(TrackId track) const;
 
300
 
 
301
    /**
 
302
     * Retrieve a "vertical" index for this segment within its track.
 
303
     * Currently this is based on studying the way that segments on
 
304
     * the track overlap and returning the lowest integer such that no
 
305
     * prior starting segment that overlaps with this one would use
 
306
     * the same integer.  In future this could use proper voice
 
307
     * ordering.
 
308
     */
 
309
    int getSegmentVoiceIndex(const Segment *) const;
 
310
 
295
311
 
296
312
    //////
297
313
    //
932
948
    void notifySegmentEventsTimingChanged(Segment *s, timeT delay, RealTime rtDelay) const;
933
949
    void notifySegmentTransposeChanged(Segment *s, int transpose) const;
934
950
    void notifySegmentTrackChanged(Segment *s, TrackId oldId, TrackId newId) const;
935
 
    void notifySegmentEndMarkerChange(Segment *s, bool shorten) const;
 
951
    void notifySegmentStartChanged(Segment *, timeT);
 
952
    void notifySegmentEndMarkerChange(Segment *s, bool shorten);
936
953
    void notifyEndMarkerChange(bool shorten) const;
937
954
    void notifyTrackChanged(Track*) const;
938
955
    void notifyTrackDeleted(TrackId) const;
1043
1060
                                         int /* transpose */) { }
1044
1061
 
1045
1062
    /**
 
1063
     * Called when the segment's start time has changed
 
1064
     */
 
1065
    virtual void segmentStartChanged(const Composition *, Segment *,
 
1066
                                     timeT /* newStartTime */) { }
 
1067
 
 
1068
    /**
1046
1069
     * Called when the segment's end marker time has changed
1047
1070
     */
1048
1071
    virtual void segmentEndMarkerChanged(const Composition *, Segment *,