Examples of QSpinBox


Examples of com.trolltech.qt.gui.QSpinBox

    gridLayout.addWidget(vehicleTypeLabel, 3, 0, 1, 1, AlignmentFlag.AlignLeft);
    gridLayout.addWidget(vehicleTypeCombo, 3, 1, 1, 1, AlignmentFlag.AlignRight);

    QLabel timeLabel = new QLabel("Dep.-Time:");
    timeSpin = new QSpinBox();
    timeSpin.setValue(0);
    ModelManager mm = ModelManager.getInstance();
    timeSpin.setMinimum(mm.getSimulationStartTime());
    timeSpin.setMaximum(mm.getSimulationEndTime());
View Full Code Here

Examples of com.trolltech.qt.gui.QSpinBox

    QLabel vTypeLabel = new QLabel("Vehicle Type:");
    QLabel periodLabel = new QLabel("Emit interval:");
    QLabel repnoLabel = new QLabel("Replication number:");

    idText = new QLineEdit("Trip" + new Random().nextInt());
    depTimeSpin = new QSpinBox();
    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");
View Full Code Here

Examples of com.trolltech.qt.gui.QSpinBox

    startupNotebookLayout.addStretch();
 
   
    QHBoxLayout autoSaveLayout = new QHBoxLayout();
    autoSaveLayout.addWidget(new QLabel(tr("Automatic Save Interval (in Minutes)")));
    autoSaveInterval = new QSpinBox();
    autoSaveLayout.addWidget(autoSaveInterval);
    autoSaveInterval.setMaximum(1440);
    autoSaveInterval.setMinimum(0);
   
    QVBoxLayout mainLayout = new QVBoxLayout(this);
View Full Code Here

Examples of com.trolltech.qt.gui.QSpinBox

    QLabel proxyHostLabel = new QLabel(tr("Host"));
    QLabel proxyPortLabel = new QLabel(tr("Port"));
    QLabel proxyUseridLabel = new QLabel(tr("Userid"));
    QLabel proxyPasswordLabel = new QLabel(tr("Password"));
    proxyHost = new QLineEdit();
    proxyPort = new QSpinBox();
    proxyUserid = new QLineEdit();
    proxyPassword = new QLineEdit();
    proxyPassword.setEchoMode(QLineEdit.EchoMode.Password);
   
    proxyHost.setText(Global.getProxyValue("url"));
View Full Code Here

Examples of com.trolltech.qt.gui.QSpinBox

      setupShortcut(searchShortcut, "Focus_Search");
      searchShortcut.activated.connect(this, "focusSearch()");
       
      quotaBar = new QuotaProgressBar();
      // Setup the zoom
      zoomSpinner = new QSpinBox();
      zoomSpinner.setMinimum(10);
      zoomSpinner.setMaximum(1000);
      zoomSpinner.setAccelerated(true);
      zoomSpinner.setSingleStep(10);
      zoomSpinner.setValue(100);
View Full Code Here

Examples of com.trolltech.qt.gui.QSpinBox

//    super(parent);
             
    // Recognition weight
    QGroupBox weightGroup = new QGroupBox(tr("Recognition"));
    QLabel weightLabel = new QLabel(tr("Minimum Recognition Weight"));
    weightSpinner = new QSpinBox();
    weightSpinner.setRange(1,100);
    weightSpinner.setSingleStep(1);
    weightSpinner.setValue(Global.getRecognitionWeight());
   
    QHBoxLayout weightLayout = new QHBoxLayout();
    weightLayout.addWidget(weightLabel);
    weightLayout.addWidget(weightSpinner);
    weightGroup.setLayout(weightLayout);
   
    // Local attachment indexing
    QGroupBox attachmentGroup = new QGroupBox(tr("Content"));
    indexBody = new QCheckBox(tr("Index Note Body"));
    indexBody.setChecked(Global.indexNoteBody());
    indexTitle = new QCheckBox(tr("Index Note Title"));
    indexTitle.setChecked(Global.indexNoteTitle());
    indexAttachmentsLocally = new QCheckBox(tr("Index Attachments Locally"));
    indexAttachmentsLocally.setChecked(Global.indexAttachmentsLocally());
    indexImageRecognition = new QCheckBox(tr("Index Image Recognition"));
    indexImageRecognition.setChecked(Global.indexImageRecognition());
   
    automaticWildcard = new QCheckBox(tr("Automatically Wildcard All Searches"));
    automaticWildcard.setChecked(Global.automaticWildcardSearches());
   
    specialStrip = new QLineEdit();
    specialStrip.setText(Global.getSpecialIndexCharacters());
   
    QVBoxLayout attachmentLayout = new QVBoxLayout();
    attachmentLayout.addWidget(indexBody);
    attachmentLayout.addWidget(indexTitle);
    attachmentLayout.addWidget(indexAttachmentsLocally);
    attachmentLayout.addWidget(indexImageRecognition);
    attachmentLayout.addWidget(automaticWildcard);
   
    QHBoxLayout specialCharLayout = new QHBoxLayout();
    specialCharLayout.addWidget(new QLabel(tr("Special Word Characters")));
    specialCharLayout.addWidget(specialStrip);
    attachmentLayout.addLayout(specialCharLayout);
    attachmentGroup.setLayout(attachmentLayout);

    // Index sleep interval
    QGroupBox sleepGroup = new QGroupBox(tr("Index Interval"));
    QLabel sleepLabel = new QLabel(tr("Seconds between looking for unindexed notes"));
    sleepSpinner = new QSpinBox();
    sleepSpinner.setRange(30,600);
    sleepSpinner.setSingleStep(1);
    sleepSpinner.setValue(Global.getIndexThreadSleepInterval());

    QHBoxLayout sleepLayout = new QHBoxLayout();
View Full Code Here

Examples of com.trolltech.qt.gui.QSpinBox

   
    width = new QLineEdit("80");
    widthValidator = new QIntValidator(0,100, this);
    width.setValidator(widthValidator);
    width.textChanged.connect(this, "validateWidth()");
    rows = new QSpinBox();
    cols = new QSpinBox();
    rows.setMaximum(30);
    rows.setMinimum(1);
    cols.setMaximum(30);
    cols.setMinimum(1);
   
View Full Code Here

Examples of com.trolltech.qt.gui.QSpinBox

    messageLayout.addWidget(messageCombo);
    messageLayout.setStretch(1, 100);
   
   
    QHBoxLayout databaseCacheLayout = new QHBoxLayout();
    databaseCache = new QSpinBox();
    databaseCacheLayout.addWidget(new QLabel(tr("Database Cache (MB) - Requires restart")));
    databaseCache.setMinimum(4);
    databaseCache.setMaximum(128);
    databaseCache.setValue(new Integer(Global.databaseCache)/1024);
    databaseCacheLayout.addWidget(databaseCache);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.