Skip to content
Snippets Groups Projects
Commit bb51d009 authored by helene ortiz's avatar helene ortiz
Browse files

Implement code to enable/disable SimpleImage widget (to enable/disable

code of arrow buttons in SampleSequencer)
parent fd573c91
No related branches found
No related tags found
No related merge requests found
4.0.117 22/06/2021
-------
* Test if controllerCommandPlugin.getScanDynamicProperties() is not null before copy.
* Implement code to enable/disable SimpleImage widget (to enable/disable code of arrow buttons in SampleSequencer)
......
......@@ -31,6 +31,7 @@ public abstract class SimpleImage extends NomadWidget {
protected String imageVariableName;
protected int height = 0;
protected int width;
protected boolean enabled = true;
public SimpleImage(PContainer parent, String imageVariableName, int height) {
super(parent);
......@@ -56,10 +57,14 @@ public abstract class SimpleImage extends NomadWidget {
}
public void enable() {
// do nothing
enabled = true;
}
public void disable() {
// do nothing
enabled = false;
}
public boolean isEnabled() {
return enabled;
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment