.getFont("Tahoma",
8, 1,
false,
false));
{
cLabel4 = new CLabel(
composite12,
SWT.SHADOW_NONE);
cLabel4
.setFont(SWTResourceManager
.getFont(
"Tahoma",
9, 1,
false,
false));
cLabel4
.setText("Explorador de Componentes");
cLabel4
.setImage(SWTResourceManager
.getImage("resources/icons/icon32x32/enable/draw.png"));
cLabel4
.setForeground(SWTResourceManager
.getColor(91,
91, 91));
}
}
{
label23 = new Label(composite11,
SWT.SEPARATOR
| SWT.HORIZONTAL);
label23.setText("label21");
GridData label23LData = new GridData();
label23LData.horizontalAlignment = GridData.FILL;
label23LData.grabExcessHorizontalSpace = true;
label23.setLayoutData(label23LData);
}
{
GridData tree1LData = new GridData();
tree1LData.verticalAlignment = GridData.FILL;
tree1LData.horizontalAlignment = GridData.FILL;
tree1LData.grabExcessVerticalSpace = true;
tree1LData.grabExcessHorizontalSpace = true;
worldTree = new Tree(composite11,
SWT.NONE);
worldTree.setLayoutData(tree1LData);
worldTree
.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(
SelectionEvent evt) {
worldTreeWidgetSelected(evt);
}
});
{
rootItem = new TreeItem(
worldTree, SWT.NONE);
rootItem.setText("World");
rootItem
.setImage(SWTResourceManager
.getImage("resources/icons/icon24x24/enable/earth.png"));
}
}
}
{
label15 = new Label(composite10,
SWT.SEPARATOR | SWT.HORIZONTAL);
GridData label15LData = new GridData();
label15LData.grabExcessHorizontalSpace = true;
label15LData.horizontalAlignment = GridData.FILL;
label15.setLayoutData(label15LData);
label15.setText("label15");
}
}
{
label9 = new Label(leftTopPannel,
SWT.SEPARATOR | SWT.VERTICAL);
GridData label9LData = new GridData(
SWT.RIGHT, SWT.FILL, false, true);
label9.setLayoutData(label9LData);
label9.setText("label9");
}
}
{
leftMiddlePannel = new Composite(sashForm3,
SWT.NONE);
GridLayout composite1Layout = new GridLayout();
composite1Layout.numColumns = 3;
composite1Layout.verticalSpacing = 0;
composite1Layout.marginWidth = 0;
composite1Layout.marginHeight = 0;
composite1Layout.horizontalSpacing = 0;
leftMiddlePannel.setLayout(composite1Layout);
leftMiddlePannel.setSize(505, 100);
{
label19 = new Label(leftMiddlePannel,
SWT.SEPARATOR | SWT.VERTICAL);
GridData label19LData = new GridData();
label19LData.grabExcessVerticalSpace = true;
label19LData.verticalAlignment = GridData.FILL;
label19.setLayoutData(label19LData);
label19.setText("label19");
}
{
neuronalNetTableComposite = new Composite(
leftMiddlePannel, SWT.NONE);
GridLayout composite12Layout = new GridLayout();
composite12Layout.makeColumnsEqualWidth = true;
composite12Layout.horizontalSpacing = 0;
composite12Layout.marginHeight = 0;
composite12Layout.marginWidth = 0;
composite12Layout.verticalSpacing = 0;
GridData composite12LData = new GridData(
SWT.FILL, SWT.TOP, true, false);
composite12LData.heightHint = 200;
neuronalNetTableComposite
.setLayoutData(composite12LData);
neuronalNetTableComposite
.setLayout(composite12Layout);
{
label20 = new Label(
neuronalNetTableComposite,
SWT.SEPARATOR | SWT.HORIZONTAL);
GridData label20LData = new GridData();
label20LData.grabExcessHorizontalSpace = true;
label20LData.horizontalAlignment = GridData.FILL;
label20.setLayoutData(label20LData);
label20.setText("label20");
}
{
composite5 = new Composite(
neuronalNetTableComposite,
SWT.NONE);
FillLayout composite5Layout1 = new FillLayout(
org.eclipse.swt.SWT.HORIZONTAL);
composite5.setLayout(composite5Layout1);
GridData composite5LData1 = new GridData();
composite5
.setLayoutData(composite5LData1);
composite5.setFont(SWTResourceManager
.getFont("Tahoma", 8, 1, false,
false));
{
cLabel3 = new CLabel(composite5,
SWT.SHADOW_NONE);
cLabel3.setFont(SWTResourceManager
.getFont("Tahoma", 9, 1,
false, false));
cLabel3.setText("Redes neuronales");
cLabel3
.setImage(SWTResourceManager
.getImage("resources/icons/icon32x32/enable/neuron.png"));
cLabel3
.setForeground(SWTResourceManager
.getColor(91, 91,
91));
}
}
{
label21 = new Label(
neuronalNetTableComposite,
SWT.SEPARATOR | SWT.HORIZONTAL);
GridData label21LData = new GridData();
label21LData.grabExcessHorizontalSpace = true;
label21LData.horizontalAlignment = GridData.FILL;
label21.setLayoutData(label21LData);
label21.setText("label21");
}
{
GridData toolBar4LData = new GridData();
toolBar4LData.grabExcessHorizontalSpace = true;
toolBar4LData.horizontalAlignment = GridData.FILL;
toolBar4LData.verticalAlignment = GridData.FILL;
toolBar4 = new ToolBar(
neuronalNetTableComposite,
SWT.FLAT);
toolBar4.setLayoutData(toolBar4LData);
{
newNeuronalNetButton = new ToolItem(
toolBar4, SWT.NONE);
newNeuronalNetButton
.setImage(SWTResourceManager
.getImage("resources/icons/icon24x24/enable/db-create.png"));
newNeuronalNetButton
.setToolTipText("Crear red");
newNeuronalNetButton
.setEnabled(true);
newNeuronalNetButton
.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(
SelectionEvent evt) {
newNeuronalNetWidgetSelected(evt);
}
});
}
{
loadNeuronalNetButton = new ToolItem(
toolBar4, SWT.NONE);
loadNeuronalNetButton
.setImage(SWTResourceManager
.getImage("resources/icons/icon24x24/enable/db-add.png"));
loadNeuronalNetButton
.setDisabledImage(SWTResourceManager
.getImage("resources/icons/icon24x24/disable/db-add-des.png"));
loadNeuronalNetButton
.setToolTipText("Agregar red");
loadNeuronalNetButton
.setEnabled(true);
loadNeuronalNetButton
.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(
SelectionEvent evt) {
loadNeuronalNetWidgetSelected(evt);
}
});
}
{
deleteNeuronalNetButton = new ToolItem(
toolBar4, SWT.NONE);
deleteNeuronalNetButton
.setImage(SWTResourceManager
.getImage("resources/icons/icon24x24/enable/db-remove.png"));
deleteNeuronalNetButton
.setToolTipText("Eliminar Red");
deleteNeuronalNetButton
.setDisabledImage(SWTResourceManager
.getImage("resources/icons/icon24x24/disable/db-remove-des.png"));
deleteNeuronalNetButton
.setEnabled(false);
deleteNeuronalNetButton
.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(
SelectionEvent evt) {
deleteNeuronalNetWidgetSelected(evt);
}
});
}
}
{
label13 = new Label(
neuronalNetTableComposite,
SWT.SEPARATOR | SWT.HORIZONTAL);
GridData label13LData = new GridData();
label13LData.grabExcessHorizontalSpace = true;
label13LData.horizontalAlignment = GridData.FILL;
label13.setLayoutData(label13LData);
label13.setText("label13");
}
{
composite4 = new Composite(
neuronalNetTableComposite,
SWT.NONE);
GridLayout composite4Layout = new GridLayout();
composite4Layout.makeColumnsEqualWidth = true;
GridData composite4LData = new GridData();
composite4LData.verticalAlignment = GridData.FILL;
composite4LData.horizontalAlignment = GridData.FILL;
composite4LData.grabExcessHorizontalSpace = true;
composite4LData.grabExcessVerticalSpace = true;
composite4
.setLayoutData(composite4LData);
composite4.setLayout(composite4Layout);
{
GridData Table1LData = new GridData();
Table1LData.grabExcessVerticalSpace = true;
Table1LData.horizontalAlignment = GridData.FILL;
Table1LData.verticalAlignment = GridData.FILL;
Table1LData.grabExcessHorizontalSpace = true;
neuronalNetTable = new Table(
composite4,
SWT.SINGLE
| SWT.FULL_SELECTION
| SWT.EMBEDDED);
neuronalNetTable
.setLayoutData(Table1LData);
neuronalNetTable
.setLinesVisible(true);
neuronalNetTable
.setHeaderVisible(true);
neuronalNetTable.setItemCount(0);
neuronalNetTable
.setLayoutDeferred(true);
neuronalNetTable
.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(
SelectionEvent evt) {
neuronalNetWidgetSelected(evt);
}
});
neuronalNetTable.addListener(
SWT.MouseDoubleClick,
new Listener() {
public void handleEvent(
Event event) {
if (neuronalNetTable
.getSelectionIndex() != -1) {
selectNeuronalNet(neuronalNetTable
.getSelectionIndex());
}
}
});
{
neuronalNetTableColumnName = new TableColumn(
neuronalNetTable,
SWT.NONE);
neuronalNetTableColumnName
.setText("Nombre");
neuronalNetTableColumnName
.setWidth(130);
}
{
neuronalNetTableColumnPath = new TableColumn(
neuronalNetTable,
SWT.NONE);
neuronalNetTableColumnPath
.setText("Ruta");
neuronalNetTableColumnPath
.setWidth(169);
}
{
neuronalNetTableColumnDescription = new TableColumn(
neuronalNetTable,
SWT.NONE);
neuronalNetTableColumnDescription
.setText("Descripci�n");
neuronalNetTableColumnDescription
.setWidth(106);
}
{
neuronalNetTableColumnType = new TableColumn(
neuronalNetTable,
SWT.NONE);
neuronalNetTableColumnType
.setText("Tipo");
neuronalNetTableColumnType
.setWidth(106);
}
{
neuronalNetTableColumnSelected = new TableColumn(
neuronalNetTable,
SWT.NONE);
neuronalNetTableColumnSelected
.setText("Seleccionada");
neuronalNetTableColumnSelected
.setWidth(106);
}
}
}
{
label18 = new Label(
neuronalNetTableComposite,
SWT.SEPARATOR | SWT.HORIZONTAL);
GridData label18LData = new GridData();
label18LData.grabExcessHorizontalSpace = true;
label18LData.horizontalAlignment = GridData.FILL;
label18.setLayoutData(label18LData);
label18.setText("label18");
}
}
{
label12 = new Label(leftMiddlePannel,
SWT.SEPARATOR | SWT.VERTICAL);
GridData label12LData = new GridData();
label12LData.grabExcessVerticalSpace = true;
label12LData.verticalAlignment = GridData.FILL;
label12.setLayoutData(label12LData);
label12.setText("label12");
}
}
{
leftBottonPannel = new Composite(sashForm3,
SWT.NONE);
GridLayout composite5Layout = new GridLayout();
composite5Layout.numColumns = 3;
composite5Layout.verticalSpacing = 0;
composite5Layout.marginWidth = 0;
composite5Layout.marginHeight = 0;
composite5Layout.horizontalSpacing = 0;
leftBottonPannel.setLayout(composite5Layout);
leftBottonPannel.setSize(505, 200);
{
label19 = new Label(leftBottonPannel,
SWT.SEPARATOR | SWT.VERTICAL);
GridData label19LData = new GridData();
label19LData.grabExcessVerticalSpace = true;
label19LData.verticalAlignment = GridData.FILL;
label19.setLayoutData(label19LData);
label19.setText("label19");
}
{
simulationTableComposite = new Composite(
leftBottonPannel, SWT.NONE);
GridLayout composite12Layout = new GridLayout();
composite12Layout.makeColumnsEqualWidth = true;
composite12Layout.horizontalSpacing = 0;
composite12Layout.marginHeight = 0;
composite12Layout.marginWidth = 0;
composite12Layout.verticalSpacing = 0;
GridData composite12LData = new GridData(
SWT.FILL, SWT.TOP, true, false);
simulationTableComposite
.setLayoutData(composite12LData);
simulationTableComposite
.setLayout(composite12Layout);
{
label20 = new Label(
simulationTableComposite,
SWT.SEPARATOR | SWT.HORIZONTAL);
GridData label20LData = new GridData();
label20LData.grabExcessHorizontalSpace = true;
label20LData.horizontalAlignment = GridData.FILL;
label20.setLayoutData(label20LData);
label20.setText("label20");
}
{
composite5 = new Composite(
simulationTableComposite,
SWT.NONE);
FillLayout composite5Layout1 = new FillLayout(
org.eclipse.swt.SWT.HORIZONTAL);
composite5.setLayout(composite5Layout1);
GridData composite5LData1 = new GridData();
composite5
.setLayoutData(composite5LData1);
composite5.setFont(SWTResourceManager
.getFont("Tahoma", 8, 1, false,
false));
{
cLabel3 = new CLabel(composite5,
SWT.SHADOW_NONE);
cLabel3.setFont(SWTResourceManager
.getFont("Tahoma", 9, 1,
false, false));
cLabel3.setText("Simulaciones");
cLabel3
.setImage(SWTResourceManager
.getImage("resources/icons/icon32x32/enable/iCandy_Junior-060.png"));
cLabel3
.setForeground(SWTResourceManager
.getColor(91, 91,
91));
}
}
{
label21 = new Label(
simulationTableComposite,
SWT.SEPARATOR | SWT.HORIZONTAL);
GridData label21LData = new GridData();
label21LData.grabExcessHorizontalSpace = true;
label21LData.horizontalAlignment = GridData.FILL;
label21.setLayoutData(label21LData);
label21.setText("label21");
}
{
GridData toolBar4LData = new GridData();
toolBar4LData.grabExcessHorizontalSpace = true;
toolBar4LData.horizontalAlignment = GridData.FILL;
toolBar4LData.verticalAlignment = GridData.FILL;
toolBar4 = new ToolBar(
simulationTableComposite,
SWT.FLAT);
toolBar4.setLayoutData(toolBar4LData);
{
newSimulationButton = new ToolItem(
toolBar4, SWT.NONE);
newSimulationButton
.setImage(SWTResourceManager
.getImage("resources/icons/icon24x24/enable/db-add.png"));
newSimulationButton
.setDisabledImage(SWTResourceManager
.getImage("resources/icons/icon24x24/disable/db-add-des.png"));
newSimulationButton
.setToolTipText("Nueva Simulaci�n");
newSimulationButton
.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(
SelectionEvent evt) {
newSimulationWidgetSelected(evt);
}
});
}
{
loadSimulationButton = new ToolItem(
toolBar4, SWT.NONE);
loadSimulationButton
.setImage(SWTResourceManager
.getImage("resources/icons/icon24x24/enable/db-upload.png"));
loadSimulationButton
.setToolTipText("Cargar Simulaci�n");
loadSimulationButton
.setEnabled(false);
loadSimulationButton
.setDisabledImage(SWTResourceManager
.getImage("resources/icons/icon24x24/disable/db-upload-des.png"));
loadSimulationButton
.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(
SelectionEvent evt) {
loadSimulationWidgetSelected(evt);
}
});
}
{
deleteSimulationButton = new ToolItem(
toolBar4, SWT.NONE);
deleteSimulationButton
.setImage(SWTResourceManager
.getImage("resources/icons/icon24x24/enable/db-remove.png"));
deleteSimulationButton
.setToolTipText("Eliminar Simulaci�n");
deleteSimulationButton
.setDisabledImage(SWTResourceManager
.getImage("resources/icons/icon24x24/disable/db-remove-des.png"));
deleteSimulationButton
.setEnabled(false);
deleteSimulationButton
.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(
SelectionEvent evt) {
deleteSimulationWidgetSelected(evt);
}
});
}
}
{
label13 = new Label(
simulationTableComposite,
SWT.SEPARATOR | SWT.HORIZONTAL);
GridData label13LData = new GridData();
label13LData.grabExcessHorizontalSpace = true;
label13LData.horizontalAlignment = GridData.FILL;
label13.setLayoutData(label13LData);
label13.setText("label13");
}
{
composite4 = new Composite(
simulationTableComposite,
SWT.NONE);
GridLayout composite4Layout = new GridLayout();
composite4Layout.makeColumnsEqualWidth = true;
GridData composite4LData = new GridData();
composite4LData.verticalAlignment = GridData.FILL;
composite4LData.horizontalAlignment = GridData.FILL;
composite4LData.grabExcessHorizontalSpace = true;
composite4LData.grabExcessVerticalSpace = true;
composite4
.setLayoutData(composite4LData);
composite4.setLayout(composite4Layout);
{
GridData Table1LData = new GridData();
Table1LData.grabExcessVerticalSpace = true;
Table1LData.horizontalAlignment = GridData.FILL;
Table1LData.verticalAlignment = GridData.FILL;
Table1LData.grabExcessHorizontalSpace = true;
simulationTable = new Table(
composite4,
SWT.SINGLE
| SWT.FULL_SELECTION
| SWT.EMBEDDED);
simulationTable
.setLayoutData(Table1LData);
simulationTable
.setLinesVisible(true);
simulationTable
.setHeaderVisible(true);
simulationTable.setItemCount(2);
simulationTable
.setLayoutDeferred(true);
simulationTable
.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(
SelectionEvent evt) {
simulationTableWidgetSelected(evt);
}
});
{
simulationTableColumnName = new TableColumn(
simulationTable,
SWT.NONE);
simulationTableColumnName
.setText("Nombre");
simulationTableColumnName
.setWidth(130);
}
{
simulationTableColumnDuration = new TableColumn(
simulationTable,
SWT.NONE);
simulationTableColumnDuration
.setText("Duraci�n");
simulationTableColumnDuration
.setWidth(87);
}
{
simulationTableColumnPath = new TableColumn(
simulationTable,
SWT.NONE);
simulationTableColumnPath
.setText("Ruta");
simulationTableColumnPath
.setWidth(169);
}
{
simulationTableColumnDescription = new TableColumn(
simulationTable,
SWT.NONE);
simulationTableColumnDescription
.setText("Descripci�n");
simulationTableColumnDescription
.setWidth(106);
}
}
{
}
}
{
label18 = new Label(
simulationTableComposite,
SWT.SEPARATOR | SWT.HORIZONTAL);
GridData label18LData = new GridData();
label18LData.grabExcessHorizontalSpace = true;
label18LData.horizontalAlignment = GridData.FILL;
label18.setLayoutData(label18LData);
label18.setText("label18");
}
}
{
label12 = new Label(leftBottonPannel,
SWT.SEPARATOR | SWT.VERTICAL);
GridData label12LData = new GridData();
label12LData.grabExcessVerticalSpace = true;
label12LData.verticalAlignment = GridData.FILL;
label12.setLayoutData(label12LData);
label12.setText("label12");
}
}
}
}
{
sashForm2 = new SashForm(sashForm1, SWT.VERTICAL
| SWT.V_SCROLL);
GridData sashForm2LData = new GridData();
sashForm2LData.grabExcessVerticalSpace = true;
sashForm2LData.grabExcessHorizontalSpace = true;
sashForm2LData.horizontalAlignment = GridData.FILL;
sashForm2LData.verticalAlignment = GridData.FILL;
sashForm2.setLayoutData(sashForm2LData);
{
rigthTopPannel = new Composite(sashForm2, SWT.NONE);
GridLayout composite11Layout = new GridLayout();
composite11Layout.verticalSpacing = 0;
composite11Layout.marginWidth = 0;
composite11Layout.marginHeight = 0;
composite11Layout.horizontalSpacing = 0;
composite11Layout.numColumns = 3;
rigthTopPannel.setLayout(composite11Layout);
{
label14 = new Label(rigthTopPannel,
SWT.SEPARATOR | SWT.VERTICAL);
GridData label14LData = new GridData();
label14LData.grabExcessVerticalSpace = true;
label14LData.verticalAlignment = GridData.FILL;
label14.setLayoutData(label14LData);
label14.setText("label14");
}
{
simulationPanel = new Composite(rigthTopPannel,
SWT.NONE);
GridLayout composite4Layout = new GridLayout();
composite4Layout.horizontalSpacing = 0;
composite4Layout.marginHeight = 0;
composite4Layout.verticalSpacing = 0;
composite4Layout.marginWidth = 0;
composite4Layout.makeColumnsEqualWidth = true;
GridData simulationPanelLData = new GridData();
simulationPanelLData.grabExcessHorizontalSpace = true;
simulationPanelLData.grabExcessVerticalSpace = true;
simulationPanelLData.horizontalAlignment = GridData.FILL;
simulationPanelLData.verticalAlignment = GridData.FILL;
simulationPanelLData.horizontalSpan = 0;
simulationPanel
.setLayoutData(simulationPanelLData);
simulationPanel.setLayout(composite4Layout);
{
label7 = new Label(simulationPanel,
SWT.SEPARATOR | SWT.HORIZONTAL);
GridData label7LData = new GridData();
label7LData.grabExcessHorizontalSpace = true;
label7LData.horizontalAlignment = GridData.FILL;
label7LData.verticalAlignment = GridData.BEGINNING;
label7.setLayoutData(label7LData);
label7.setText("label7");
}
{
composite7 = new Composite(simulationPanel,
SWT.NONE);
GridLayout composite7Layout = new GridLayout();
composite7Layout.horizontalSpacing = 0;
composite7Layout.marginHeight = 0;
composite7Layout.marginWidth = 0;
composite7Layout.numColumns = 3;
composite7Layout.verticalSpacing = 0;
GridData composite7LData = new GridData();
composite7LData.grabExcessHorizontalSpace = true;
composite7LData.horizontalAlignment = GridData.FILL;
composite7.setLayoutData(composite7LData);
composite7.setLayout(composite7Layout);
{
cLabel2 = new CLabel(composite7,
SWT.SHADOW_NONE);
cLabel2.setFont(SWTResourceManager
.getFont("Tahoma", 9, 1, false,
false));
cLabel2
.setText("Vista Representaci�n 2D");
cLabel2
.setImage(SWTResourceManager
.getImage("resources/icons/icon32x32/enable/Toolbar-_Public.png"));
cLabel2
.setForeground(SWTResourceManager
.getColor(91, 91, 91));
GridData cLabel2LData = new GridData();
cLabel2LData.verticalAlignment = GridData.FILL;
cLabel2LData.horizontalAlignment = GridData.FILL;
cLabel2LData.grabExcessHorizontalSpace = true;
cLabel2LData.grabExcessVerticalSpace = true;
cLabel2.setLayoutData(cLabel2LData);
}
{
displaySchematicView = new Button(
composite7, SWT.RADIO
| SWT.LEFT);
displaySchematicView
.setText("Vista Esquematica");
displaySchematicView.setSelection(true);
displaySchematicView.setEnabled(false);
}
{
displayRealView = new Button(
composite7, SWT.RADIO
| SWT.LEFT);
displayRealView.setText("Vista Real");
displayRealView.setSelection(false);
displayRealView.setEnabled(false);
}
}
{
label6 = new Label(simulationPanel,
SWT.SEPARATOR | SWT.HORIZONTAL);
GridData label6LData = new GridData();
label6LData.grabExcessHorizontalSpace = true;
label6LData.horizontalAlignment = GridData.FILL;
label6LData.verticalAlignment = GridData.BEGINNING;
label6.setLayoutData(label6LData);
label6.setText("label6");
}
{
composite8 = new Composite(simulationPanel,
SWT.NONE);
FillLayout composite8Layout = new FillLayout(
org.eclipse.swt.SWT.HORIZONTAL);
GridData composite8LData = new GridData();
composite8LData.horizontalAlignment = GridData.FILL;
composite8LData.grabExcessHorizontalSpace = true;
composite8LData.verticalAlignment = GridData.FILL;
composite8LData.grabExcessVerticalSpace = true;
composite8.setLayoutData(composite8LData);
composite8.setLayout(composite8Layout);
{
sceneCanvas = new Canvas(composite8,
SWT.BORDER | SWT.NO_BACKGROUND);
sceneCanvas
.addPaintListener(new PaintListener() {
public void paintControl(
PaintEvent evt) {
sceneCanvasPaintControl(evt);
}
});
}
}
{
label2 = new Label(simulationPanel,
SWT.SEPARATOR | SWT.HORIZONTAL);
GridData label2LData = new GridData();
label2LData.horizontalAlignment = GridData.FILL;
label2LData.verticalAlignment = GridData.END;
label2LData.grabExcessHorizontalSpace = true;
label2.setLayoutData(label2LData);
label2.setText("label2");
}
{
composite9 = new Composite(simulationPanel,
SWT.NONE);
GridLayout composite9Layout = new GridLayout();
composite9Layout.numColumns = 7;
composite9Layout.verticalSpacing = 0;
composite9Layout.marginWidth = 0;
composite9Layout.marginHeight = 0;
GridData composite9LData = new GridData();
composite9LData.horizontalAlignment = GridData.FILL;
composite9LData.grabExcessHorizontalSpace = true;
composite9LData.verticalAlignment = GridData.FILL;
composite9.setLayoutData(composite9LData);
composite9.setLayout(composite9Layout);
{
playControls = new ToolBar(composite9,
SWT.FLAT);
GridData toolBar2LData = new GridData();
toolBar2LData.horizontalAlignment = GridData.FILL;
toolBar2LData.grabExcessVerticalSpace = true;
playControls
.setLayoutData(toolBar2LData);
{
playButton = new ToolItem(
playControls, SWT.NONE);
playButton
.setToolTipText("Ejecutar");
playButton.setWidth(32);
playButton
.setImage(SWTResourceManager
.getImage("resources/icons/icon24x24/enable/play.png"));
playButton
.setDisabledImage(SWTResourceManager
.getImage("resources/icons/icon24x24/disable/play-despng.png"));
playButton.setEnabled(false);
playButton
.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(
SelectionEvent evt) {
playButtonWidgetSelected(evt);
}
});
}
{
pauseButton = new ToolItem(
playControls, SWT.NONE);
pauseButton
.setToolTipText("Pausar");
pauseButton
.setImage(SWTResourceManager
.getImage("resources/icons/icon24x24/enable/play-pause.png"));
pauseButton
.setDisabledImage(SWTResourceManager
.getImage("resources/icons/icon24x24/disable/play-pause-des.png"));
pauseButton.setEnabled(false);
pauseButton
.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(
SelectionEvent evt) {
pauseButtonWidgetSelected(evt);
}
});
}
{
stopButton = new ToolItem(
playControls, SWT.NONE);
stopButton
.setToolTipText("Detener");
stopButton
.setImage(SWTResourceManager
.getImage("resources/icons/icon24x24/enable/play-stop.png"));
stopButton
.setDisabledImage(SWTResourceManager
.getImage("resources/icons/icon24x24/disable/play-stop-des.png"));
stopButton.setEnabled(false);
stopButton
.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(
SelectionEvent evt) {
stopButtonWidgetSelected(evt);
}
});
}
{
recButton = new ToolItem(
playControls, SWT.NONE);
recButton
.setToolTipText("Comenzar Grabaci�n");
recButton
.setImage(SWTResourceManager
.getImage("resources/icons/icon24x24/enable/play-rec.png"));
recButton
.setDisabledImage(SWTResourceManager
.getImage("resources/icons/icon24x24/disable/play-rec-des.png"));
recButton.setEnabled(false);
recButton
.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(
SelectionEvent evt) {
recButtonWidgetSelected(evt);
}
});
}
{
new ToolItem(playControls,
SWT.SEPARATOR);
// separator = new
// ToolItem(playControls,
// SWT.SEPARATOR);
// toolItem1.setText("toolItem1");
}
}
{
cSpeedTitle = new CLabel(composite9,
SWT.NONE);
cSpeedTitle.setText("Velocidad");
GridData cSpeedTitleLData = new GridData();
cSpeedTitle
.setLayoutData(cSpeedTitleLData);
cSpeedTitle
.setImage(SWTResourceManager
.getImage("resources/icons/icon24x24/enable/clock_hands24x24.png"));
}
{
GridData speedControlLData = new GridData();
speedControlLData.widthHint = 183;
speedControlLData.heightHint = 42;
speedControl = new Scale(composite9,
SWT.NONE);
speedControl
.setLayoutData(speedControlLData);
speedControl
.setMinimum(Defines.MIN_SPEED_PERCENT);
speedControl
.setMaximum(Defines.MAX_SPEED_PERCENT);
speedControl.setSelection(100);
speedControl
.setToolTipText("Velocidad de Reproducci�n");
speedControl.setEnabled(false);
speedControl
.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(
SelectionEvent evt) {
double percent = speedControl
.getSelection() / 100.0;
Simulation.getCurrent().setShell(getShell());
Simulation
.getCurrent()
.setStepTime(
(long) (Defines.DEFAULT_STEP_TIME / percent));
speedLabel
.setText(formatter
.format(100.0 * percent)
+ "%");
}
});
}
{
speedLabel = new Label(composite9,
SWT.NONE);
speedLabel.setText("100%");
speedLabel.setFont(SWTResourceManager
.getFont("Tahoma", 9, 1, false,
false));
speedLabel
.setToolTipText("Velocidad de Reproducci�n");
}
{
speedReset = new Button(composite9,
SWT.PUSH | SWT.CENTER);
speedReset.setText("Reset");
speedReset.setEnabled(false);
speedReset
.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(
SelectionEvent evt) {
Simulation
.getCurrent()
.setStepTime(
Defines.DEFAULT_STEP_TIME);
speedControl
.setSelection(100);
speedLabel
.setText("100%");
}
});
}
}
{
label3 = new Label(simulationPanel,
SWT.SEPARATOR | SWT.HORIZONTAL);
GridData label3LData = new GridData();
label3LData.grabExcessHorizontalSpace = true;
label3LData.horizontalAlignment = GridData.FILL;
label3.setLayoutData(label3LData);
label3.setText("label3");
}
}
{
GridData label22LData = new GridData();
label22LData.verticalAlignment = GridData.FILL;
label22LData.horizontalAlignment = GridData.END;
label22LData.grabExcessVerticalSpace = true;
label22 = new Label(rigthTopPannel,
SWT.SEPARATOR);
label22.setLayoutData(label22LData);
}
}
{
rightBottonPannel = new Composite(sashForm2,
SWT.NONE);
GridLayout composite5Layout = new GridLayout();
composite5Layout.horizontalSpacing = 0;
composite5Layout.marginHeight = 0;
composite5Layout.marginWidth = 0;
composite5Layout.verticalSpacing = 0;
composite5Layout.numColumns = 3;
rightBottonPannel.setLayout(composite5Layout);
rightBottonPannel.setSize(506, 360);
{
label11 = new Label(rightBottonPannel,
SWT.SEPARATOR | SWT.VERTICAL);
GridData label11LData = new GridData();
label11LData.grabExcessVerticalSpace = true;
label11LData.verticalAlignment = GridData.FILL;
label11.setLayoutData(label11LData);
label11.setText("label11");
}
{
propertiesPannel = new Composite(
rightBottonPannel, SWT.NONE);
GridLayout composite11Layout = new GridLayout();
composite11Layout.marginWidth = 0;
composite11Layout.verticalSpacing = 0;
composite11Layout.marginHeight = 0;
composite11Layout.horizontalSpacing = 0;
composite11Layout.makeColumnsEqualWidth = true;
GridData composite11LData = new GridData();
composite11LData.verticalAlignment = GridData.FILL;
composite11LData.horizontalAlignment = GridData.FILL;
composite11LData.grabExcessHorizontalSpace = true;
composite11LData.grabExcessVerticalSpace = true;
propertiesPannel
.setLayoutData(composite11LData);
propertiesPannel.setLayout(composite11Layout);
{
label4 = new Label(propertiesPannel,
SWT.SEPARATOR | SWT.HORIZONTAL);
GridData label4LData = new GridData();
label4LData.grabExcessHorizontalSpace = true;
label4LData.horizontalAlignment = GridData.FILL;
label4.setLayoutData(label4LData);
label4.setText("label4");
}
{
composite6 = new Composite(
propertiesPannel, SWT.NONE);
FillLayout composite6Layout = new FillLayout(
org.eclipse.swt.SWT.HORIZONTAL);
GridData composite6LData = new GridData();
composite6.setLayoutData(composite6LData);
composite6.setLayout(composite6Layout);
composite6.setFont(SWTResourceManager
.getFont("Tahoma", 8, 1, false,
false));
{
cLabel1 = new CLabel(composite6,
SWT.SHADOW_NONE);
cLabel1.setText("Propiedades");
cLabel1
.setImage(SWTResourceManager
.getImage("resources/icons/icon32x32/enable/Toolbar_Customize.png"));