On Tuesday 31 July 2007 12:38, M. Donalies wrote:
> class NotationTrack
> {
> // I own these
> vector<NotationStaff*> m_staffs; // all belong to same Track
> NotePixmapFactory *m_npf;
> NotationTrackHLayout *m_hlayout;
> NotationTrackVLayout *m_vlayout;
> };
In my implementation, this is actually:
class NotationTrack
{
addStaff(NotationStaff *staff);
// parent view owns this
vector<NotationStaff*> m_staffs; // all belong to same Track
// I own these
NotePixmapFactory *m_npf;
NotationTrackHLayout *m_hlayout;
NotationTrackVLayout *m_vlayout;
TrackId m_trackId;
};
NotationTrack::addStaff(NotationStaff *staff)
{
// if already in m_staffs return
TrackId id = m_staffs->getSegment().getTrackId()
if (id != m_trackId) return;
m_staffs.push_back(staff);
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel