cleanup WarnGen dialog
This commit is contained in:
parent
caf036f8ad
commit
d91f18d7b6
1 changed files with 9 additions and 34 deletions
|
@ -466,32 +466,6 @@ public class WarngenDialog extends CaveSWTDialog implements
|
||||||
startTimeTimer();
|
startTimeTimer();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @param mainComposite
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*
|
|
||||||
private void createRedrawBoxGroup(Composite mainComposite) {
|
|
||||||
|
|
||||||
Group redrawBox = new Group(mainComposite, SWT.NONE);
|
|
||||||
|
|
||||||
GridLayout gl = new GridLayout(1, false);
|
|
||||||
gl.verticalSpacing = 2;
|
|
||||||
gl.marginHeight = 1;
|
|
||||||
redrawBox.setLayout(gl);
|
|
||||||
redrawBox.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1,
|
|
||||||
1));
|
|
||||||
|
|
||||||
Composite redrawFrom = new Composite(redrawBox, SWT.NONE);
|
|
||||||
int columns = debug ? 4 : 3;
|
|
||||||
redrawFrom.setLayout(new GridLayout(columns, false));
|
|
||||||
redrawFrom.setLayoutData(new GridData(SWT.DEFAULT, SWT.FILL, false,
|
|
||||||
true));
|
|
||||||
|
|
||||||
createRedrawFromControls(redrawFrom);
|
|
||||||
}
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
private void createTimeRangeGroup(Composite mainComposite) {
|
private void createTimeRangeGroup(Composite mainComposite) {
|
||||||
|
|
||||||
Group timeRange = new Group(mainComposite, SWT.NONE);
|
Group timeRange = new Group(mainComposite, SWT.NONE);
|
||||||
|
@ -676,6 +650,10 @@ public class WarngenDialog extends CaveSWTDialog implements
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param mainComposite
|
||||||
|
*/
|
||||||
private void createRedrawBoxGroup(Composite mainComposite) {
|
private void createRedrawBoxGroup(Composite mainComposite) {
|
||||||
|
|
||||||
Group redrawBox = new Group(mainComposite, SWT.NONE);
|
Group redrawBox = new Group(mainComposite, SWT.NONE);
|
||||||
|
@ -696,6 +674,10 @@ public class WarngenDialog extends CaveSWTDialog implements
|
||||||
createRedrawFromControls(redrawFrom);
|
createRedrawFromControls(redrawFrom);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param redrawFrom
|
||||||
|
*/
|
||||||
private void createRedrawFromControls(Composite redrawFrom) {
|
private void createRedrawFromControls(Composite redrawFrom) {
|
||||||
fromTrack = new Button(redrawFrom, SWT.PUSH);
|
fromTrack = new Button(redrawFrom, SWT.PUSH);
|
||||||
fromTrack.setText("Track");
|
fromTrack.setText("Track");
|
||||||
|
@ -753,9 +735,6 @@ public class WarngenDialog extends CaveSWTDialog implements
|
||||||
backupTrackEditComp.setLayoutData(new GridData(SWT.FILL, SWT.FILL,
|
backupTrackEditComp.setLayoutData(new GridData(SWT.FILL, SWT.FILL,
|
||||||
true, true, 1, 1));
|
true, true, 1, 1));
|
||||||
|
|
||||||
backupTrackEditComp.setBackground(Display.
|
|
||||||
getCurrent().getSystemColor(SWT.COLOR_TRANSPARENT));
|
|
||||||
|
|
||||||
restartBtn = new Button(backupTrackEditComp, SWT.PUSH);
|
restartBtn = new Button(backupTrackEditComp, SWT.PUSH);
|
||||||
restartBtn.setText("Reset");
|
restartBtn.setText("Reset");
|
||||||
GridData gd = new GridData(SWT.CENTER, SWT.CENTER, true, true);
|
GridData gd = new GridData(SWT.CENTER, SWT.CENTER, true, true);
|
||||||
|
@ -781,10 +760,6 @@ public class WarngenDialog extends CaveSWTDialog implements
|
||||||
trackGroup.setLayoutData(new GridData(SWT.DEFAULT, SWT.FILL, false,
|
trackGroup.setLayoutData(new GridData(SWT.DEFAULT, SWT.FILL, false,
|
||||||
true));
|
true));
|
||||||
trackGroup.setBackgroundMode(SWT.INHERIT_NONE);
|
trackGroup.setBackgroundMode(SWT.INHERIT_NONE);
|
||||||
/*
|
|
||||||
trackGroup.setBackground(Display.
|
|
||||||
getCurrent().getSystemColor(SWT.COLOR_LIST_BACKGROUND));
|
|
||||||
*/
|
|
||||||
|
|
||||||
oneStorm = new Button(trackGroup, SWT.RADIO);
|
oneStorm = new Button(trackGroup, SWT.RADIO);
|
||||||
oneStorm.setText("Single Storm");
|
oneStorm.setText("Single Storm");
|
||||||
|
|
Loading…
Add table
Reference in a new issue