Re: [Swingosc-devel] patch for EZ behaviour
Brought to you by:
sciss
From: Sciss <co...@sc...> - 2009-04-12 16:34:57
|
hi marije, there is a lot of problems with your diff, mainly because you are reverting a lot of class files to previous versions and thereby undoing a lot of recent changes and fixes! - first, in the build.xml script: "/usr/share/java/ant-contrib-1.0b3.jar"/ that doesn't look like it will help many people, unless they have exactly the same version installed... does it do any harm if that jar file is not there? - in JSCView.sc you are undoing the fixes to JSCTopView (absoluteBounds and the fix for relativeOrigin_( false )) : /** - * @version 0.61, 11-Apr-09 + * @version 0.61, 13-Jan-09 * @author Hanns Holger Rutz */ JSCContainerView : JSCView { // abstract class @@ -330,8 +330,6 @@ }); } - absoluteBounds { ^this.bounds } - - prBoundsReadOnly { - if( scBounds.isNil, { - // need to revalidate bounds - scBounds = jinsets.addTo( jBounds ); - }); - ^scBounds; - } - same with JSCDragView: - var <>interpretDroppedStrings = false; + var <>interpretDroppedStrings = true; - ... and JSCTextField open { arg path; - var file; - if( path.beginsWith( "SC://" ), { - path = Help.findHelpFile( path.copyToEnd( 5 )); - }, { - path = path.absolutePath; + Platform.case(\windows, { + if(path[1]==$:){ + // Windows path styles "C:\blah" will need an extra slash at start + path = "/" ++ path + }; + path = path.tr($\\, $/); }); - server.sendMsg( '/method', this.id, \setPage, '[', '/methodr', '[', '/new', "java.io.File", path, ']', 'toURL', ']' ); + path = path.replace( ' ', '%20' ); + + if ( path.contains( "SC://"), { + path = Help.findHelpFile( path.asRelativePath( "SC:/") ); + }); + + if ( path.contains( "://" ).not, { + if ( path.first.asString != "/" ) { path = String.scDir +/+ path; }; + path = "file://"++path; + }); + this.openURL( path ); } your patch will try to revert to old behaviour. this is wrong in all cases. again: please work with the most recent class files! please just adjust the increment / scroll etc. methods. - there is more cases, e.g. JSCEnvelopeView, where you have been working with an obsolete version. your diff will remove the additions and fixes to JSCEnvelopeView. so if you go again from the latest class files and apply the new scroll / increment methods, i think it's ok + good! ciao, -sciss- Am 12.04.2009 um 04:50 schrieb nescivi: > Hiho, > > attached is a diff with all the improvements Alberto made to improve > and provide a consistent behaviour of using arrow keys and key > modifiers to control sliders, knobs, number boxes, range sliders and > so on. > > ok to commit? > > this patch will make everything behave the same as in Cocoa. > > sincerely, > Marije<ezbehaviour.diff>---------------------------------------------- > -------------------------------- > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm- > com_______________________________________________ > Swingosc-devel mailing list > Swi...@li... > https://lists.sourceforge.net/lists/listinfo/swingosc-devel |