> Now some questions on how to properly organize the source code in order to
> not create a mess:
Thank you for that.
> 1:
>
> To quote from the wiki: "Of course, you don't see much real code using
> literal strings; the event types are generally just declared as string
> constants in various places (actually almost all in NotationTypes.h), but
> the property names are usually declared as constant PropertyName objects
> (in NotationTypes, BaseProperties or notationproperties, most usually)
> which is a class that's constructed from a string constant but interns to
> an integer for faster lookup, not that you need to deal with that at all.
> "
>
> So, where would be the best place to put it?
base/BaseProperties.
NotationProperties is for stuff that the notation editor computes, which
doesn't seem to be the case here. NotationTypes is for unpacking events
as more-specific types like notes and clefs.
> 2:
> I also introduced a new color, MemberOfParallelColour, in
> NotePixmapFactory in enum ColorType. This is then hardcoded in
> NotePixmapFactory::getCharacter as magenta. Is this ok or is there a
> better way to do this? Should this be configureable? Or is this too
> complicated?
I think that's ok.
> 3:
> The notes are colored now, but not the stems. How would I also change the
> color of the corresponding stem?
As Michael mentioned, that code has multiple layers of functionality for
historical reasons. I wouldn't worry about it.
Tom Breton (Tehom)
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel