On Thu, Jul 17, 2008 at 4:51 PM, D. Michael McIntyre <[EMAIL PROTECTED]> wrote: > I'm sure there's a precedent for getting the state of some GUI-level > configurable down in base/, but I can't think of anything off the top of my > head.
There is a precedent, but it is a precedent for configuration data that are stored in the document rather than in application settings -- see Configuration.h, and particularly the TransportMode configuration which was added relatively recently by Philippe Macaire. I can't however think of any examples of application settings that are used by classes in base, and I don't think therefore that we have any established way of doing that. Ingenuity may be called for. > 1) Do we want to remove the restriction on toolkit-specific classes in base/ > now that we have pretty much officially decided that there is no practical > way to ever port to anything other than QT? (We have a disagreement here > with Guillaume on the side of doing exactly that, and Chris and I both of the > idea that it's nothing short of madness to do so.) Well, to be fair I was the one who insisted on not using any Qt stuff in base in the first place -- not Guillaume. I don't feel as strongly about that as I used to, partly because it's obvious that the amount of stuff we have in base/ is now pretty small in comparison with everything else (e.g. we don't even have a proper Qt-free document class) and partly because we lose so much readability through pervasive use of things like qstrtostr(). But I think we need to either abandon the policy properly (making an effort to replace std::string with QString throughout, for example, and get rid of all the nasty hacks) or else stick to it. I don't think we should allow just the odd exception here and there; that would be the worst of both worlds. I do think this approach for segment labels is a good one, though. It's just that if we're sticking with the no-Qt-in-base policy, it'll need to have some slightly more roundabout mechanism for getting the preference in there (perhaps the document sets it on the composition and the segment queries it from that, or something). Chris ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Rosegarden-devel mailing list [email protected] - use the link below to unsubscribe https://lists.sourceforge.net/lists/listinfo/rosegarden-devel
