pathLData.grabExcessHorizontalSpace = true;
pathLData.horizontalAlignment = GridData.FILL;
path.setLayoutData(pathLData);
}
{
simulationTypeCombo = new CCombo(colDer1, SWT.NONE);
GridData cCombo1LData = new GridData();
cCombo1LData.widthHint = 69;
cCombo1LData.heightHint = 17;
simulationTypeCombo.setLayoutData(cCombo1LData);
simulationTypeCombo.setItems(new String[] {Defines.VIRTUAL_SIMULATION_TEXT, Defines.REAL_SIMULATION_TEXT});
simulationTypeCombo.setLayoutDeferred(true);
simulationTypeCombo.setVisibleItemCount(3);
simulationTypeCombo.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_HAND));
simulationTypeCombo.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent evt) {
try
{
simulationTypeComboWidgetSelected(evt);
}
catch (EasyBotAppException e)
{
ErrorMessage.customMessage(e.getMessage(), ErrorMessage.ERROR_MESSAGE, getParent() );
}
}
});
}
}
{
colDer2 = new Composite(colDer, SWT.NONE);
FormLayout colDer2Layout = new FormLayout();
GridData colDer2LData = new GridData();
colDer2LData.verticalAlignment = GridData.FILL;
colDer2LData.grabExcessHorizontalSpace = true;
colDer2.setLayoutData(colDer2LData);
colDer2.setLayout(colDer2Layout);
{
exploreFiles = new Button(colDer2, SWT.PUSH | SWT.CENTER);
exploreFiles.setText("Explorar");
FormData button1LData = new FormData();
button1LData.width = 80;
button1LData.height = 21;
button1LData.right = new FormAttachment(312, 1000, 0);
button1LData.left = new FormAttachment(13, 1000, 0);
button1LData.bottom = new FormAttachment(1000, 1000, -65);
button1LData.top = new FormAttachment(236, 1000, 0);
exploreFiles.setLayoutData(button1LData);
exploreFiles
.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent evt) {
exploreFilesWidgetSelected(evt);
}
});
}
/*{
browseButton = new Button(colDer2, SWT.PUSH
| SWT.CENTER);
FormData browseButtonLData = new FormData();
browseButtonLData.width = 80;
browseButtonLData.height = 21;
browseButtonLData.right = new FormAttachment(311, 1000, 0);
browseButtonLData.left = new FormAttachment(13, 1000, 0);
browseButtonLData.bottom = new FormAttachment(1004, 1000, 0);
browseButtonLData.top = new FormAttachment(816, 1000, 0);
browseButton.setLayoutData(browseButtonLData);
browseButton.setText("Explorar");
browseButton.setVisible(false);
browseButton
.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(
SelectionEvent evt) {
browseButtonWidgetSelected(evt);
}
});
}*/
}
}
{
label2 = new Label(composite1, SWT.SEPARATOR
| SWT.HORIZONTAL);
GridData label2LData = new GridData();
label2LData.grabExcessHorizontalSpace = true;
label2LData.horizontalAlignment = GridData.FILL;
label2LData.horizontalSpan = 2;
label2LData.grabExcessVerticalSpace = true;
label2.setLayoutData(label2LData);
label2.setText("label2");
}
{
notas = new Composite(composite1, SWT.NONE);
GridLayout notasLayout = new GridLayout();
notasLayout.makeColumnsEqualWidth = true;
GridData notasLData = new GridData();
notasLData.grabExcessHorizontalSpace = true;
notasLData.horizontalAlignment = GridData.FILL;
notasLData.horizontalSpan = 2;
notas.setLayoutData(notasLData);
notas.setLayout(notasLayout);
{
label4 = new Label(notas, SWT.NONE);
label4.setText("Comentario:");
}
{
comentario = new Text(notas, SWT.MULTI | SWT.WRAP);
GridData ComentarioLData = new GridData();
ComentarioLData.grabExcessHorizontalSpace = true;
ComentarioLData.horizontalAlignment = GridData.CENTER;
ComentarioLData.widthHint = 541;
ComentarioLData.heightHint = 71;
comentario.setLayoutData(ComentarioLData);
comentario.setText("...");
comentario.setToolTipText("Comentario de la Simulaci�n");
}
}
{
label3 = new Label(composite1, SWT.SEPARATOR
| SWT.HORIZONTAL);
GridData label3LData = new GridData();
label3LData.grabExcessHorizontalSpace = true;
label3LData.horizontalAlignment = GridData.FILL;
label3LData.horizontalSpan = 2;
label3.setLayoutData(label3LData);
label3.setText("label3");
}
{
lenguetas = new Composite(composite1, SWT.EMBEDDED);
GridLayout lenguetasLayout = new GridLayout();
lenguetasLayout.verticalSpacing = 0;
lenguetasLayout.horizontalSpacing = 0;
lenguetasLayout.marginHeight = 0;
lenguetasLayout.marginWidth = 0;
GridData lenguetasLData = new GridData();
lenguetasLData.horizontalSpan = 2;
lenguetasLData.horizontalAlignment = GridData.FILL;
lenguetasLData.verticalAlignment = GridData.BEGINNING;
lenguetasLData.grabExcessHorizontalSpace = true;
lenguetasLData.heightHint = 249;
lenguetas.setLayoutData(lenguetasLData);
lenguetas.setLayout(lenguetasLayout);
lenguetas.setEnabled(false);
{
cTabFolder1 = new CTabFolder(lenguetas, SWT.NONE);
cTabFolder1.addSelectionListener(new SelectionListener(){
public void widgetSelected(SelectionEvent arg0) {
fillTable();
}
public void widgetDefaultSelected(SelectionEvent arg0) {
// TODO Auto-generated method stub
}
});
{
cTabItem1 = new CTabItem(cTabFolder1, SWT.NONE);
cTabItem1.setText("Robots");
{
listadoRobots = new Composite(
cTabFolder1,
SWT.NONE);
GridLayout listadoRobotsLayout = new GridLayout();
listadoRobotsLayout.makeColumnsEqualWidth = true;
listadoRobotsLayout.marginWidth = 0;
listadoRobotsLayout.marginHeight = 0;
listadoRobotsLayout.horizontalSpacing = 0;
listadoRobotsLayout.verticalSpacing = 0;
listadoRobots.setLayout(listadoRobotsLayout);
cTabItem1.setControl(listadoRobots);
{
barraRobots = new Composite(
listadoRobots,
SWT.NONE);
RowLayout barraRobotsLayout = new RowLayout(
org.eclipse.swt.SWT.HORIZONTAL);
GridData barraRobotsLData = new GridData();
barraRobotsLData.grabExcessHorizontalSpace = true;
barraRobotsLData.horizontalAlignment = GridData.FILL;
barraRobots.setLayoutData(barraRobotsLData);
barraRobots.setLayout(barraRobotsLayout);
{
RowData toolBarRobotLData = new RowData();
toolBarRobot = new ToolBar(
barraRobots,
SWT.FLAT);
toolBarRobot
.setLayoutData(toolBarRobotLData);
{
agregarRobot = new ToolItem(
toolBarRobot,
SWT.NONE);
agregarRobot
.setImage(SWTResourceManager
.getImage("resources/icons/icon24x24/enable/AIBO210-add.png"));
agregarRobot
.setToolTipText("Agregar robot");
agregarRobot.setEnabled(false);
agregarRobot
.setDisabledImage(SWTResourceManager
.getImage("resources/icons/icon24x24/disable/AIBO210-add-des.png"));
agregarRobot
.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(
SelectionEvent evt) {
addRobotWidgetSelected(evt);
}
});
}
{
eliminarRobot = new ToolItem(
toolBarRobot,
SWT.NONE);
eliminarRobot
.setToolTipText("Eliminar robot");
eliminarRobot
.setImage(SWTResourceManager
.getImage("resources/icons/icon24x24/enable/AIBO210-rem.png"));
eliminarRobot.setEnabled(false);
eliminarRobot
.setDisabledImage(SWTResourceManager
.getImage("resources/icons/icon24x24/disable/AIBO210-rem-des.png"));
eliminarRobot
.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(
SelectionEvent evt) {
remRobotWidgetSelected(evt);
}
});
}
{
copyRobot = new ToolItem(
toolBarRobot,
SWT.NONE);
copyRobot
.setToolTipText("Copiar robot");
copyRobot
.setImage(SWTResourceManager
.getImage("resources/icons/icon24x24/enable/AIBO210-copy.png"));
copyRobot.setEnabled(false);
copyRobot
.setDisabledImage(SWTResourceManager
.getImage("resources/icons/icon24x24/disable/AIBO210-copy-des.png"));
}
{
configRobot = new ToolItem(
toolBarRobot,
SWT.NONE);
configRobot
.setToolTipText("Propiedades del robot");
configRobot
.setImage(SWTResourceManager
.getImage("resources/icons/icon24x24/enable/Toolbar-_Applications.png"));
configRobot.setEnabled(false);
configRobot
.setDisabledImage(SWTResourceManager
.getImage("resources/icons/icon24x24/disable/Toolbar-_Applications-des.png"));
}
{
calibrarRobot = new ToolItem(
toolBarRobot,
SWT.NONE);
calibrarRobot
.setToolTipText("Calibrar robot");
calibrarRobot
.setImage(SWTResourceManager
.getImage("resources/icons/icon24x24/enable/System-ColorSync.png"));
calibrarRobot.setEnabled(false);
calibrarRobot
.setDisabledImage(SWTResourceManager
.getImage("resources/icons/icon24x24/disable/System-ColorSync-des.png"));
}
}
}
{
listaRobots = new Table(
listadoRobots,
SWT.SINGLE | SWT.FULL_SELECTION);
listaRobots.setHeaderVisible(true);
listaRobots.setLayoutDeferred(true);
GridData listaRobotsLData = new GridData();
listaRobotsLData.grabExcessHorizontalSpace = true;
listaRobotsLData.verticalAlignment = GridData.BEGINNING;
listaRobotsLData.heightHint = 143;
listaRobotsLData.horizontalAlignment = GridData.FILL;
listaRobots.setLayoutData(listaRobotsLData);
listaRobots.setLinesVisible(true);
listaRobots
.addMouseListener(new MouseAdapter() {
public void mouseDoubleClick(
MouseEvent evt) {
listaRobotsMouseDoubleClick(evt);
}
});
listaRobots
.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(
SelectionEvent evt) {
listaRobotsWidgetSelected(evt);
}
});
{
id = new TableColumn(
listaRobots,
SWT.NONE);
id.setText("Nombre");
id.setWidth(232);
}
{
estado = new TableColumn(
listaRobots,
SWT.CENTER);
estado.setText("Estado");
estado.setWidth(161);
}
{
fileNameColumn = new TableColumn(
listaRobots,
SWT.CENTER);
fileNameColumn
.setText("Archivo de Configuraci�n");
fileNameColumn.setWidth(280);
}
}
}
}
{
gps = new CTabItem(cTabFolder1, SWT.NONE);
gps.setText("Posicionamiento");
{
composite2 = new Composite(
cTabFolder1,
SWT.NONE);
GridLayout composite2Layout = new GridLayout();
composite2Layout.marginHeight = 0;
composite2Layout.numColumns = 2;
composite2Layout.marginTop = 7;
composite2Layout.marginWidth = 7;
composite2.setLayout(composite2Layout);
gps.setControl(composite2);
{
tituloGPS = new CLabel(composite2, SWT.NONE);
GridData tituloGPSLData = new GridData();
tituloGPSLData.horizontalSpan = 3;
tituloGPSLData.horizontalAlignment = GridData.FILL;
tituloGPS.setLayoutData(tituloGPSLData);
tituloGPS
.setText("Configuraci�n Sistema de Posicionamiento Global");
tituloGPS
.setImage(SWTResourceManager
.getImage("resources/icons/icon32x32/enable/Webcam Configuration.png"));
}
{
label7 = new Label(
composite2,
SWT.SEPARATOR | SWT.HORIZONTAL);
label7.setText("label7");
GridData label7LData = new GridData();
label7LData.grabExcessHorizontalSpace = true;
label7LData.horizontalSpan = 3;
label7LData.horizontalAlignment = GridData.FILL;
label7.setLayoutData(label7LData);
}
{
tipoGps = new Label(composite2, SWT.NONE);
tipoGps
.setText("Sistema de Posisionamiento");
}
{
gpsComboType = new CCombo(
composite2,
SWT.NONE);
GridData tipoGpsComboLData = new GridData();
tipoGpsComboLData.widthHint = 159;
tipoGpsComboLData.heightHint = 17;