On Wednesday 28 March 2007 21:56, Chris Cannam wrote: > On Wednesday 28 Mar 2007 20:50, Guillaume Laurent wrote: > > Ah, yes, well, making MatrixHLayout horizontal zoomable looks pretty > > bad here as well, so I guess I'll go for the TempoRuler-specific > > solution. > > I think maintaining a separate SimpleRulerScale in the matrix view that > is only used for reference by the rulers is probably the nicer of the > two approaches (the ones that I mentioned anyway). That way the ruler > itself wouldn't have to change, a single fix would work for any and all > rulers, and the hack would be localised to MatrixView which is where > the other zoom hacks are already.
I got the principle ok, but I don't know what to feed to SimpleRulerScale::setUnitsPerPixel(). Giving it the value of the zoom slider as is done in the main view produces a hugely wide ruler. -- Guillaume. http://telegraph-road.org ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Rosegarden-devel mailing list [email protected] - use the link below to unsubscribe https://lists.sourceforge.net/lists/listinfo/rosegarden-devel
