Package com.trolltech.qt.gui

Examples of com.trolltech.qt.gui.QPushButton


    selBox.addWidget(waySelection);
    selBox.addWidget(edgeSelection);
   
    edgesWidget = new QListWidget();
   
    QPushButton finishButton = new QPushButton("Finish");
    QPushButton selectButton = new QPushButton("Select");
    QPushButton cancelButton = new QPushButton("Cancel");
    finishButton.setDefault(true);
    finishButton.clicked.connect(this, "onButtonFinished()");
    selectButton.clicked.connect(this, "onButtonSelect()");
    cancelButton.clicked.connect(this, "onCancelButton()");
    QBoxLayout okCancelLayout = new QBoxLayout(Direction.RightToLeft);
View Full Code Here


    timeSpin.setMaximum(mm.getSimulationEndTime());

    gridLayout.addWidget(timeLabel, 4, 0, 1, 1, AlignmentFlag.AlignLeft);
    gridLayout.addWidget(timeSpin, 4, 1, 1, 1, AlignmentFlag.AlignRight);

    QPushButton okButton = new QPushButton("OK");
    okButton.clicked.connect(this, "onCreateButton()");
    gridLayout.addWidget(okButton, 5, 1, 1, 1, AlignmentFlag.AlignRight);

    gridLayout.setColumnStretch(0, 2);
    gridLayout.setColumnStretch(1, 3);
View Full Code Here

    tripGenerationWidget = createTripWidget();

    tabWidget.addTab(tripGenerationWidget, "Trips");
    tabWidget.addTab(routeGenerationWidget, "Routes");

    QPushButton okButton = new QPushButton("OK");
    okButton.pressed.connect(this, "onDialogOk()");

    layout.addWidget(selectLabel);
   
    layout.addWidget(tabWidget);
View Full Code Here

    QGridLayout gridLayout = new QGridLayout();
    gridLayout.addWidget(new QLabel("Record new Trips: "), 0, 0, 1, 2);

    tripWidget = new ListWidget(this);
    gridLayout.addWidget(tripWidget, 1, 0);
    QPushButton generateButton = new QPushButton("New");
    generateButton.clicked.connect(this, "onGenerateTripButton()");
    QPushButton editButton = new QPushButton("Edit");
    editButton.clicked.connect(this, "onEditTrip()");
    tripWidget.itemDoubleClicked.connect(this, "onEditTrip(QListWidgetItem)");
    QPushButton removeButton = new QPushButton("Remove");
    removeButton.clicked.connect(this, "onRemoveTrip()");
    tripWidget.onRemoveItem.connect(this, "onRemoveTrip(List)");
    QBoxLayout routeButtonBox = new QBoxLayout(Direction.TopToBottom);
    routeButtonBox.addWidget(generateButton);
    routeButtonBox.addWidget(editButton);
View Full Code Here

    gridLayout.addWidget(new QLabel("Record new Routes: "), 0, 0, 1, 2);

    routeWidget = new ListWidget(this);
    gridLayout.addWidget(routeWidget, 1, 0);

    QPushButton generateButton = new QPushButton("Record...");
    generateButton.clicked.connect(this, "onGenerateRouteButton()");
    QPushButton removeButton = new QPushButton("Remove");
    removeButton.clicked.connect(this, "onRemoveRoute()");
    routeWidget.onRemoveItem.connect(this, "onRemoveRoute(List)");
    QBoxLayout routeButtonBox = new QBoxLayout(Direction.TopToBottom);
    routeButtonBox.addWidget(generateButton);
    routeButtonBox.addWidget(removeButton);
    gridLayout.addItem(routeButtonBox, 1, 1, 1, 1, AlignmentFlag.AlignTop);

    gridLayout.addWidget(new QLabel("Add vehicles driving the routes: "),
        2, 0, 1, 2);

    vehicleWidget = new ListWidget(this);
    gridLayout.addWidget(vehicleWidget, 3, 0);

    QPushButton addVehicleButton = new QPushButton("Add Vehicle...");
    QPushButton deleteVehicleButton = new QPushButton("Remove");
    deleteVehicleButton.clicked.connect(this, "onRemoveVehicle()");
    vehicleWidget.onRemoveItem.connect(this, "onRemoveVehicle(List)");
    addVehicleButton.clicked.connect(this, "onAddVehicleButton()");
    QBoxLayout vehicleButtonBox = new QBoxLayout(Direction.TopToBottom);
    vehicleButtonBox.addWidget(addVehicleButton);
View Full Code Here

    ModelManager mm = ModelManager.getInstance();
    depTimeSpin.setMinimum(mm.getSimulationStartTime());
    depTimeSpin.setMaximum(mm.getSimulationEndTime());
    fromEdgeEdit = new QLineEdit();
    fromEdgeEdit.setEnabled(false);
    fromEdgeSelectButton = new QPushButton("Select");
    fromEdgeSelectButton.pressed.connect(this, "onFromNodeSelect()");
    toEdgeEdit = new QLineEdit();
    toEdgeEdit.setEnabled(false);
    toEdgeSelectButton = new QPushButton("Select");
    toEdgeSelectButton.pressed.connect(this, "onToNodeSelect()");
    typeCombo = new QComboBox();
    SumoManager sm = SumoManager.getInstance();
    List<SumoVehicleType> vTypes = sm.getVehicleTypes();
    for (SumoVehicleType v : vTypes) {
      typeCombo.addItem(v.getId());
    }
   
// _lg: this Dialog makes absoluteley no sense here
//    typeAddButton = new QPushButton("Add Vehicle Type");
//    typeAddButton.pressed.connect(this, "onTypeButtonSelect()");
    periodEdit = new QSpinBox();
    periodEdit.setMinimum(1);
    periodEdit.setMaximum(100000);
    periodEdit.setValue(1000);
    repnoEdit = new QSpinBox();
    repnoEdit.setValue(5);
    repnoEdit.setMinimum(0);
    repnoEdit.setMaximum(10000);

    QPushButton bOk = new QPushButton("OK");
    bOk.pressed.connect(this, "onOkButton()");
    bOk.setDefault(true);
    QPushButton bCancel = new QPushButton("Cancel");
    bCancel.pressed.connect(this, "onCancelButton()");
    QBoxLayout okCancelLayout = new QBoxLayout(Direction.RightToLeft);
    okCancelLayout.addWidget(bCancel, 0, AlignmentFlag.AlignRight);
    okCancelLayout.addWidget(bOk, 1, AlignmentFlag.AlignRight);
View Full Code Here

    evernoteLinkClicked = new Signal2<String,String>();
    titleLabel.setMaxLength(Constants.EDAM_NOTE_TITLE_LEN_MAX);
    urlText = new QLineEdit();
    authorText = new QLineEdit();
    geoBox = new QComboBox();
    urlLabel = new QPushButton();
    urlLabel.clicked.connect(this, "sourceUrlClicked()");
    authorLabel = new QLabel();
    conn = c;
   
    focusLost = new Signal0();
View Full Code Here

    return currentNote;
  }

  // New Editor Button
  private QPushButton newEditorButton(String name, String toolTip) {
    QPushButton button = new QPushButton();
//    QIcon icon = new QIcon(iconPath + name + ".gif");
    QIcon icon = new QIcon(iconPath + name + ".png");
    button.setIcon(icon);
    button.setToolTip(toolTip);
    button.clicked.connect(this, name + "Clicked()");
    return button;
  }
View Full Code Here

    setWindowIcon(new QIcon(iconPath+"folder.png"));
    okClicked = false;
    notebooks = n;
    record = w;
   
    okButton = new QPushButton();
    okButton.setText(tr("OK"));
    okButton.pressed.connect(this, "onClicked()");
   
    cancelButton = new QPushButton();
    cancelButton.setText(tr("Cancel"));
    cancelButton.pressed.connect(this, "onCancel()");
   
    QPushButton folderButton = new QPushButton();
    folderButton.setText(tr("Directory"));
    folderButton.clicked.connect(this, "folderButtonClicked()");
   
    directory = new QLabel();
    if (record != null)
      directory.setText(record.folder);
View Full Code Here

   
    syncLinkedNotebookList = new QListWidget();
    syncLinkedNotebookList.setSortingEnabled(true);
    syncLinkedNotebookList.setSelectionMode(QAbstractItemView.SelectionMode.MultiSelection);
   
    okButton = new QPushButton();
    okButton.setText(tr("OK"));
    okButton.pressed.connect(this, "onClicked()");
   
    cancelButton = new QPushButton();
    cancelButton.setText(tr("Cancel"));
    cancelButton.pressed.connect(this, "onCancel()");
   
    QVBoxLayout openLayout = new QVBoxLayout();
    openLayout.addWidget(new QLabel(tr("Synchronized Notebooks")));
    openLayout.addWidget(syncBookList);
   
    QVBoxLayout openTagLayout = new QVBoxLayout();
    openTagLayout.addWidget(new QLabel(tr("Synchronized Tags")));
    openTagLayout.addWidget(syncTagList);
   
    QVBoxLayout openLinkedNotebookLayout = new QVBoxLayout();
    linkedLabelLeft = new QLabel(tr("Synchronized Linked Notebooks"));
    openLinkedNotebookLayout.addWidget(linkedLabelLeft);
    openLinkedNotebookLayout.addWidget(syncLinkedNotebookList);
   
    rightButton = new QPushButton(this);
    rightButton.setIcon(new QIcon(iconPath+"forward.png"));
    leftButton = new QPushButton(this);
    leftButton.setIcon(new QIcon(iconPath+"back.png"));
    leftButton.setEnabled(false);
    rightButton.setEnabled(false);
   
    rightTagButton = new QPushButton(this);
    rightTagButton.setIcon(new QIcon(iconPath+"forward.png"));
    leftTagButton = new QPushButton(this);
    leftTagButton.setIcon(new QIcon(iconPath+"back.png"));
    leftTagButton.setEnabled(false);
    rightTagButton.setEnabled(false);
   
    rightLinkedNotebookButton = new QPushButton(this);
    rightLinkedNotebookButton.setIcon(new QIcon(iconPath+"forward.png"));
    leftLinkedNotebookButton = new QPushButton(this);
    leftLinkedNotebookButton.setIcon(new QIcon(iconPath+"back.png"));
    leftLinkedNotebookButton.setEnabled(false);
    rightLinkedNotebookButton.setEnabled(false);
   
    QVBoxLayout middleLayout = new QVBoxLayout();
View Full Code Here

TOP

Related Classes of com.trolltech.qt.gui.QPushButton

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.