wip, minor changes to update build files to 2.2.7

This commit is contained in:
andreas schlegel 2018-09-22 11:47:14 +08:00
parent 075c8aef95
commit ef7c533212
6 changed files with 55 additions and 53 deletions

1
.gitignore vendored
View File

@ -10,5 +10,4 @@
.classpath .classpath
.project .project
.idea .idea
pom.xml
notes.md notes.md

View File

@ -11,15 +11,15 @@
<include name="core.jar"/> <include name="core.jar"/>
</fileset> </fileset>
</path> </path>
<property name="javaVersion" value="1.6"/> <property name="javaVersion" value="1.7"/>
<property name="author" value="Andreas Schlegel"/> <property name="author" value="Andreas Schlegel"/>
<property name="copyright" value="(c) 2006-2016"/> <property name="copyright" value="(c) 2006-2018"/>
<property name="libraryName" value="controlP5"/> <property name="libraryName" value="controlP5"/>
<property name="versionNumber" value="2.2.6"/> <property name="versionNumber" value="2.2.7"/>
<property name="yourLink" value="http://www.sojamo.de" /> <property name="yourLink" value="http://www.sojamo.de" />
<property name="keywords" value="gui, ui, controller, interface, user interface" /> <property name="keywords" value="gui, ui, controller, interface, user interface" />
<property name="tested:platform" value="osx, windows, linux" /> <property name="tested:platform" value="osx, windows, linux" />
<property name="tested:processingVersion" value="3.0.2" /> <property name="tested:processingVersion" value="3.3.6" />
<property name="tested:dependencies" value="none" /> <property name="tested:dependencies" value="none" />
<property name="source:host" value="github" /> <property name="source:host" value="github" />
<property name="source:url" value="https://github.com/sojamo/controlp5" /> <property name="source:url" value="https://github.com/sojamo/controlp5" />

View File

@ -23,7 +23,7 @@
<!-- #### (4) set the java version that should be used to compile your library. #### --> <!-- #### (4) set the java version that should be used to compile your library. #### -->
<property name="javaVersion" value="1.5"/> <property name="javaVersion" value="1.7"/>
@ -35,13 +35,13 @@
<property name="author" value="Andreas Schlegel"/> <property name="author" value="Andreas Schlegel"/>
<!-- #### (6) which copyright? edit value. #### --> <!-- #### (6) which copyright? edit value. #### -->
<property name="copyright" value="(c) 2010"/> <property name="copyright" value="(c) 2018"/>
<!-- #### (7) give your library a name. edit value. #### --> <!-- #### (7) give your library a name. edit value. #### -->
<property name="libraryName" value="controlP5"/> <property name="libraryName" value="controlP5"/>
<!-- #### (8) give your library a name. edit value. #### --> <!-- #### (8) give your library a name. edit value. #### -->
<property name="versionNumber" value="2.1.5"/> <property name="versionNumber" value="2.2.7"/>
<!-- #### (9) your contact url. edit value. #### --> <!-- #### (9) your contact url. edit value. #### -->
<property name="yourLink" value="http://www.sojamo.de" /> <property name="yourLink" value="http://www.sojamo.de" />
@ -59,9 +59,9 @@
<property name="tested:dependencies" value="none" /> <property name="tested:dependencies" value="none" />
<!-- #### (14) where can the source code be found? edit value. #### --> <!-- #### (14) where can the source code be found? edit value. #### -->
<property name="source:host" value="google code" /> <property name="source:host" value="github" />
<property name="source:url" value="controlp5" /> <property name="source:url" value="controlp5" />
<property name="source:repository" value="http://code.google.com/p/controlp5/source/browse/" /> <property name="source:repository" value="https://github.com/sojamo/controlp5" />
@ -143,7 +143,10 @@
<fileset dir="src"/> <fileset dir="src"/>
</copy> </copy>
--> -->
<!--
<copy file="src-js/controlP5.js" tofile="${dist}/library/controlP5.js" overwrite="true" /> <copy file="src-js/controlP5.js" tofile="${dist}/library/controlP5.js" overwrite="true" />
-->
<!-- copy the jar file to processing's libraries --> <!-- copy the jar file to processing's libraries -->
<mkdir dir="${processing}/${libraryName}" /> <mkdir dir="${processing}/${libraryName}" />

View File

@ -1,5 +1,5 @@
for d in $HOME/Documents/workspace/controlp5/examples/**/*/; do for d in $HOME/Documents/git/controlp5/examples/**/*/; do
# echo "$d" # echo "$d"
java -cp .:../distribution/tmp/controlP5/library/controlP5.jar:$HOME/Documents/workspace/libs/core.jar:./addons/AddMethodList AddMethodList $d java -cp .:../distribution/tmp/controlP5/library/controlP5.jar:$HOME/Documents/git/libs/core.jar:./addons/AddMethodList AddMethodList $d
processing-java --sketch="$d" --output=/tmp/processing-test --force --build processing-java --sketch="$d" --output=/tmp/processing-test --force --build
done done

View File

@ -38,7 +38,7 @@ paragraph = Includes interface elements such as slider, button, knob, toggle, te
# is used to compare different versions of the same library, and # is used to compare different versions of the same library, and
# check if an update is available. You should think of it as a # check if an update is available. You should think of it as a
# counter, counting the total number of releases you've had. # counter, counting the total number of releases you've had.
version = 85 # This must be parsable as an int version = 87 # This must be parsable as an int
# The version as the user will see it. If blank, the version attribute will be used here # The version as the user will see it. If blank, the version attribute will be used here
prettyVersion = 2.2.6 # This is treated as a String prettyVersion = 2.2.7 # This is treated as a String

View File

@ -2,9 +2,9 @@ package controlP5;
/** /**
* controlP5 is a processing gui library. * controlP5 is a processing gui library.
* *
* 2006-2015 by Andreas Schlegel * 2006-2015 by Andreas Schlegel
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License * modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1 * as published by the Free Software Foundation; either version 2.1
@ -13,16 +13,16 @@ package controlP5;
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details. * Lesser General Public License for more details.
* *
* You should have received a copy of the GNU Lesser General * You should have received a copy of the GNU Lesser General
* Public License along with this library; if not, write to the * Public License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place, Suite 330, * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307 USA * Boston, MA 02111-1307 USA
* *
* @author Andreas Schlegel (http://www.sojamo.de) * @author Andreas Schlegel (http://www.sojamo.de)
* @modified ##date## * @modified ##date##
* @version ##version## * @version ##version##
* *
*/ */
import java.io.File; import java.io.File;
@ -62,7 +62,7 @@ import controlP5.ControlWindow.Pointer;
* All addController-Methods are located inside the * All addController-Methods are located inside the
* ControlP5Base class. * ControlP5Base class.
* </p> * </p>
* *
* @see controlP5.ControlP5Base * @see controlP5.ControlP5Base
* @example use/ControlP5basics * @example use/ControlP5basics
*/ */
@ -96,7 +96,7 @@ public class ControlP5 extends ControlP5Base {
/** /**
* @exclude * @exclude
*/ */
@ControlP5.Invisible public static final String VERSION = "2.2.6";// "##version##"; @ControlP5.Invisible public static final String VERSION = "2.2.7";// "##version##";
/** /**
* @exclude * @exclude
@ -136,7 +136,7 @@ public class ControlP5 extends ControlP5Base {
* from version 0.7.2 onwards shortcuts are disabled by * from version 0.7.2 onwards shortcuts are disabled by
* default. shortcuts can be enabled using * default. shortcuts can be enabled using
* controlP5.enableShortcuts(); * controlP5.enableShortcuts();
* *
* @see #enableShortcuts() * @see #enableShortcuts()
*/ */
protected boolean isShortcuts = false; protected boolean isShortcuts = false;
@ -148,7 +148,7 @@ public class ControlP5 extends ControlP5Base {
/** /**
* Create a new instance of controlP5. * Create a new instance of controlP5.
* *
* @param theParent PApplet * @param theParent PApplet
*/ */
public ControlP5( final PApplet theParent ) { public ControlP5( final PApplet theParent ) {
@ -270,7 +270,7 @@ public class ControlP5 extends ControlP5Base {
* By default event originating from tabs are disabled, * By default event originating from tabs are disabled,
* use setTabEventsActive(true) to receive controlEvents * use setTabEventsActive(true) to receive controlEvents
* when tabs are clicked. * when tabs are clicked.
* *
* @param theFlag * @param theFlag
*/ */
public void setTabEventsActive( boolean theFlag ) { public void setTabEventsActive( boolean theFlag ) {
@ -285,7 +285,7 @@ public class ControlP5 extends ControlP5Base {
* of auto intialization, call * of auto intialization, call
* setAutoInitialization(false) right after initializing * setAutoInitialization(false) right after initializing
* controlP5 and before creating any controller. * controlP5 and before creating any controller.
* *
* @param theFlag boolean * @param theFlag boolean
*/ */
public void setAutoInitialization( boolean theFlag ) { public void setAutoInitialization( boolean theFlag ) {
@ -301,7 +301,7 @@ public class ControlP5 extends ControlP5Base {
* controlP5.setAutoDraw(false). now you can call * controlP5.setAutoDraw(false). now you can call
* controlP5.draw() any time whenever controllers should * controlP5.draw() any time whenever controllers should
* be drawn into the sketch. * be drawn into the sketch.
* *
* @param theFlag boolean * @param theFlag boolean
*/ */
public void setAutoDraw( boolean theFlag ) { public void setAutoDraw( boolean theFlag ) {
@ -317,7 +317,7 @@ public class ControlP5 extends ControlP5Base {
/** /**
* check if the autoDraw function for the main window is * check if the autoDraw function for the main window is
* enabled(true) or disabled(false). * enabled(true) or disabled(false).
* *
* @return boolean * @return boolean
*/ */
public boolean isAutoDraw( ) { public boolean isAutoDraw( ) {
@ -325,7 +325,7 @@ public class ControlP5 extends ControlP5Base {
} }
/** /**
* *
* @see controlP5.ControlBroadcaster * @see controlP5.ControlBroadcaster
*/ */
public ControlBroadcaster getControlBroadcaster( ) { public ControlBroadcaster getControlBroadcaster( ) {
@ -419,7 +419,7 @@ public class ControlP5 extends ControlP5Base {
/** /**
* TODO * TODO
* *
* @exclude * @exclude
*/ */
public void addControlsFor( Object theObject ) { public void addControlsFor( Object theObject ) {
@ -452,7 +452,7 @@ public class ControlP5 extends ControlP5Base {
* accessing Controllers by name is not guaranteed. the * accessing Controllers by name is not guaranteed. the
* rule here is last come last serve, existing * rule here is last come last serve, existing
* Controllers with the same name will be overridden. * Controllers with the same name will be overridden.
* *
* @param theController ControllerInterface * @param theController ControllerInterface
* @return ControlP5 * @return ControlP5
*/ */
@ -520,7 +520,7 @@ public class ControlP5 extends ControlP5Base {
/** /**
* Returns a List of all controllers currently * Returns a List of all controllers currently
* registered. * registered.
* *
* @return List<ControllerInterface<?>> * @return List<ControllerInterface<?>>
*/ */
public List< ControllerInterface< ? >> getAll( ) { public List< ControllerInterface< ? >> getAll( ) {
@ -539,7 +539,7 @@ public class ControlP5 extends ControlP5Base {
* } * }
* </pre></code> Here the foreground color of all Bangs * </pre></code> Here the foreground color of all Bangs
* is changed to yellow. * is changed to yellow.
* *
* @param <T> * @param <T>
* @param theClass A class that extends * @param theClass A class that extends
* ControllerInterface, which applies to all * ControllerInterface, which applies to all
@ -590,11 +590,11 @@ public class ControlP5 extends ControlP5Base {
/** /**
* removes a controller by instance. * removes a controller by instance.
* *
* TODO Fix this. this only removes the reference to a * TODO Fix this. this only removes the reference to a
* controller from the controller map but not its * controller from the controller map but not its
* children, fatal for controller groups! * children, fatal for controller groups!
* *
* @param theController ControllerInterface * @param theController ControllerInterface
*/ */
protected void remove( ControllerInterface< ? > theController ) { protected void remove( ControllerInterface< ? > theController ) {
@ -604,7 +604,7 @@ public class ControlP5 extends ControlP5Base {
/** /**
* removes a controlP5 element such as a controller, * removes a controlP5 element such as a controller,
* group, or tab by name. * group, or tab by name.
* *
* @param theString String * @param theString String
*/ */
public void remove( String theName ) { public void remove( String theName ) {
@ -726,7 +726,7 @@ public class ControlP5 extends ControlP5Base {
/** /**
* call draw() from your program when autoDraw is * call draw() from your program when autoDraw is
* disabled. * disabled.
* *
* @exclude * @exclude
*/ */
@ControlP5.Invisible public void draw( ) { @ControlP5.Invisible public void draw( ) {
@ -805,7 +805,7 @@ public class ControlP5 extends ControlP5Base {
/** /**
* adds a Canvas to the default sketch window. * adds a Canvas to the default sketch window.
* *
* @see controlP5.Canvas * @see controlP5.Canvas
*/ */
public ControlP5 addCanvas( Canvas theCanvas ) { public ControlP5 addCanvas( Canvas theCanvas ) {
@ -900,7 +900,7 @@ public class ControlP5 extends ControlP5Base {
/** /**
* Checks if controllers are generally moveable * Checks if controllers are generally moveable
* *
*/ */
public boolean isMoveable( ) { public boolean isMoveable( ) {
return isMoveable; return isMoveable;
@ -909,7 +909,7 @@ public class ControlP5 extends ControlP5Base {
/** /**
* Saves the current values of controllers into a * Saves the current values of controllers into a
* default properties file * default properties file
* *
* @see controlP5.ControllerProperties * @see controlP5.ControllerProperties
*/ */
public boolean saveProperties( ) { public boolean saveProperties( ) {
@ -919,7 +919,7 @@ public class ControlP5 extends ControlP5Base {
/** /**
* Saves the current values of controllers into a file, * Saves the current values of controllers into a file,
* the filepath is given by parameter theFilePath. * the filepath is given by parameter theFilePath.
* *
* @see controlP5.ControllerProperties * @see controlP5.ControllerProperties
*/ */
public boolean saveProperties( String theFilePath ) { public boolean saveProperties( String theFilePath ) {
@ -933,7 +933,7 @@ public class ControlP5 extends ControlP5Base {
/** /**
* Loads properties from a default properties file and * Loads properties from a default properties file and
* changes values of controllers accordingly. * changes values of controllers accordingly.
* *
* @see controlP5.ControllerProperties * @see controlP5.ControllerProperties
* @return * @return
*/ */
@ -945,7 +945,7 @@ public class ControlP5 extends ControlP5Base {
* Loads properties from a properties file and changes * Loads properties from a properties file and changes
* the values of controllers accordingly, the filepath * the values of controllers accordingly, the filepath
* is given by parameter theFilePath. * is given by parameter theFilePath.
* *
* @param theFilePath * @param theFilePath
* @return * @return
*/ */
@ -953,7 +953,7 @@ public class ControlP5 extends ControlP5Base {
String path = theFilePath.endsWith( _myProperties.format.getExtension( ) ) ? theFilePath : theFilePath + "." + _myProperties.format.getExtension( ); String path = theFilePath.endsWith( _myProperties.format.getExtension( ) ) ? theFilePath : theFilePath + "." + _myProperties.format.getExtension( );
path = checkPropertiesPath( path ); path = checkPropertiesPath( path );
File f = new File( path); File f = new File( path);
if ( f.exists( ) ) { if ( f.exists( ) ) {
return _myProperties.load( path ); return _myProperties.load( path );
} }
@ -992,7 +992,7 @@ public class ControlP5 extends ControlP5Base {
/** /**
* Returns the current version of controlP5 * Returns the current version of controlP5
* *
* @return String * @return String
*/ */
public String version( ) { public String version( ) {
@ -1001,7 +1001,7 @@ public class ControlP5 extends ControlP5Base {
/** /**
* shows all controllers and tabs in your sketch. * shows all controllers and tabs in your sketch.
* *
* @see controlP5.ControlP5#isVisible() * @see controlP5.ControlP5#isVisible()
* @see controlP5.ControlP5#hide() * @see controlP5.ControlP5#hide()
*/ */
@ -1018,7 +1018,7 @@ public class ControlP5 extends ControlP5Base {
/** /**
* returns true or false according to the current * returns true or false according to the current
* visibility flag. * visibility flag.
* *
* @see controlP5.ControlP5#show() * @see controlP5.ControlP5#show()
* @see controlP5.ControlP5#hide() * @see controlP5.ControlP5#hide()
*/ */
@ -1038,7 +1038,7 @@ public class ControlP5 extends ControlP5Base {
/** /**
* hide all controllers and tabs inside your sketch * hide all controllers and tabs inside your sketch
* window. * window.
* *
* @see controlP5.ControlP5#show() * @see controlP5.ControlP5#show()
* @see controlP5.ControlP5#isVisible() * @see controlP5.ControlP5#isVisible()
*/ */
@ -1048,7 +1048,7 @@ public class ControlP5 extends ControlP5Base {
/** /**
* forces all controllers to update. * forces all controllers to update.
* *
* @see controlP5.ControlP5#isUpdate() * @see controlP5.ControlP5#isUpdate()
* @see controlP5.ControlP5#setUpdate() * @see controlP5.ControlP5#setUpdate()
*/ */
@ -1059,7 +1059,7 @@ public class ControlP5 extends ControlP5Base {
/** /**
* checks if automatic updates are enabled. By default * checks if automatic updates are enabled. By default
* this is true. * this is true.
* *
* @see controlP5.ControlP5#update() * @see controlP5.ControlP5#update()
* @see controlP5.ControlP5#setUpdate(boolean) * @see controlP5.ControlP5#setUpdate(boolean)
* @return * @return
@ -1071,7 +1071,7 @@ public class ControlP5 extends ControlP5Base {
/** /**
* changes the update behavior according to parameter * changes the update behavior according to parameter
* theFlag * theFlag
* *
* @see controlP5.ControlP5#update() * @see controlP5.ControlP5#update()
* @see controlP5.ControlP5#isUpdate() * @see controlP5.ControlP5#isUpdate()
* @param theFlag * @param theFlag
@ -1113,7 +1113,7 @@ public class ControlP5 extends ControlP5Base {
/** /**
* disables shortcuts such as alt-h for hiding/showing * disables shortcuts such as alt-h for hiding/showing
* controllers * controllers
* *
*/ */
public void disableShortcuts( ) { public void disableShortcuts( ) {
isShortcuts = false; isShortcuts = false;
@ -1213,7 +1213,7 @@ public class ControlP5 extends ControlP5Base {
* therefore dispose() is disabled when running ing * therefore dispose() is disabled when running ing
* applet mode. TODO implement better dispose handling * applet mode. TODO implement better dispose handling
* for applets. * for applets.
* *
* @exclude * @exclude
*/ */
public void dispose( ) { public void dispose( ) {
@ -1452,4 +1452,4 @@ public class ControlP5 extends ControlP5Base {
@Retention( RetentionPolicy.RUNTIME ) @interface Layout { @Retention( RetentionPolicy.RUNTIME ) @interface Layout {
} }
} }