Skip to content

Commit

Permalink
Minor tweaks to window sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
euphy committed Jun 25, 2017
1 parent d74881f commit 9307c4e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 15 deletions.
4 changes: 2 additions & 2 deletions SerialPortWindow.pde
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ControlFrameSimple addSerialPortControlFrame(String theName, int theWidth, int t

ScrollableList sl = p.cp5().addScrollableList("dropdown_serialPort")
.setPosition(10, 10)
.setSize(150, 100)
.setSize(150, 450)
.setBarHeight(20)
.setItemHeight(20)
.plugTo(this, "dropdown_serialPort");
Expand All @@ -53,7 +53,7 @@ ControlFrameSimple addSerialPortControlFrame(String theName, int theWidth, int t
// set the value of the actual control
sl.setValue(portNo);

sl.setOpen(false);
sl.setOpen(true);
return p;
}

Expand Down
2 changes: 1 addition & 1 deletion controlsActionsWindows.pde
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ String DRAW_PIXELS_WINDOW_NAME = "drawPixelsWindow";
String DRAW_WRITING_WINDOW_NAME = "drawWritingWindow";

void button_mode_serialPortDialog() {
ControlFrameSimple cf = addSerialPortControlFrame("Serial Port", 200, 200, 20, 240, color( 100 ) );
ControlFrameSimple cf = addSerialPortControlFrame("Serial Port", 200, 500, 20, 240, color( 100 ) );
}

void button_mode_machineStoreDialog() {
Expand Down
8 changes: 2 additions & 6 deletions drawing.pde
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,7 @@ void sendRequestMachineSize()
void sendMachineSpec()
{
// ask for input to get the new machine size
String command = CMD_CHANGEMACHINENAME+newMachineName+",END";
addToCommandQueue(command);
command = CMD_CHANGEMACHINESIZE+getDisplayMachine().inMM(getDisplayMachine().getWidth())+","+getDisplayMachine().inMM(getDisplayMachine().getHeight())+",END";
String command = CMD_CHANGEMACHINESIZE+getDisplayMachine().inMM(getDisplayMachine().getWidth())+","+getDisplayMachine().inMM(getDisplayMachine().getHeight())+",END";
addToCommandQueue(command);
command = CMD_CHANGEMACHINEMMPERREV+int(getDisplayMachine().getMMPerRev())+",END";
addToCommandQueue(command);
Expand Down Expand Up @@ -969,6 +967,4 @@ void sendStopSwirling()
void sendDrawRandomSprite(String spriteFilename)
{
addToCommandQueue(CMD_DRAW_RANDOM_SPRITE+","+spriteFilename+",100,500,END");
}


}
13 changes: 7 additions & 6 deletions polargraphcontroller.pde
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ import java.awt.BorderLayout;
import java.lang.reflect.Method;

int majorVersionNo = 2;
int minorVersionNo = 4;
int buildNo = 2;
int minorVersionNo = 5;
int buildNo = 0;

String programTitle = "Polargraph Controller v" + majorVersionNo + "." + minorVersionNo + " build " + buildNo;
ControlP5 cp5;
Expand Down Expand Up @@ -565,6 +565,7 @@ void setup()
RG.init(this);
loadFromPropertiesFile();

size(200, 200);
size(windowWidth, windowHeight);
this.cp5 = new ControlP5(this);
initTabs();
Expand Down Expand Up @@ -651,10 +652,10 @@ void addEventListeners()
public void componentResized(ComponentEvent event)
{
windowResized();
// if (event.getSource()==frame)
// {
// windowResized();
// }
if (event.getSource()==frame)
{
windowResized();
}
}
}
);
Expand Down

0 comments on commit 9307c4e

Please sign in to comment.