Examples of QLabel


Examples of com.trolltech.qt.gui.QLabel

    autoLogin = new QCheckBox("Automatic Connect");
    synchronizeDeletedContents = new QCheckBox("Synchronze Deleted Note Content");
    synchronizeOnClose = new QCheckBox("Synchronize On Shutdown (only if connected)");
   
    QGroupBox proxyGroup = new QGroupBox("Proxy Settings");
    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"));
    String portString = Global.getProxyValue("port");
    Integer port = new Integer(80);
    try {
      port = new Integer(portString.trim());
    } catch (Exception e) {
    }

    proxyPort.setMinimum(1);
    proxyPort.setMaximum(65565);
    proxyPort.setValue(port);
    proxyUserid.setText(Global.getProxyValue("userid"));
    proxyPassword.setText(Global.getProxyValue("password"));
   
    if (!proxyHost.text().trim().equals("") && proxyPort.text().trim().equals(""))
      proxyPort.setValue(80);
   
   
    QFormLayout useridLayout = new QFormLayout();
    useridLayout.addWidget(new QLabel(tr("Syncronization Interval")));
    useridLayout.addWidget(syncInterval);
    useridLayout.addWidget(autoLogin);
    useridLayout.addWidget(synchronizeOnClose);
    useridLayout.addWidget(synchronizeDeletedContents);
   
View Full Code Here

Examples of com.trolltech.qt.gui.QLabel

    forward = new QCheckBox();
    backward = new QCheckBox();
    caseSensitive = new QCheckBox();

    QGridLayout textGrid = new QGridLayout();
    textGrid.addWidget(new QLabel(tr("Text")), 1,1);
    textGrid.addWidget(text, 1, 2);
    grid.addLayout(textGrid, 1, 1);
   
    QGridLayout opt = new QGridLayout();
    opt.addWidget(new QLabel(tr("Case Sensitive")), 1,1);
    opt.addWidget(caseSensitive, 1, 2);
    opt.addWidget(new QLabel(tr("Forward")), 2,1);
    opt.addWidget(forward, 2, 2);
    opt.addWidget(new QLabel(tr("Backward")), 3,1);
    opt.addWidget(backward, 3, 2);
    opt.addWidget(new QLabel(tr("Wrap")), 4,1);
    opt.addWidget(wrap, 4, 2);
    opt.setContentsMargins(10, 10,  -10, -10);
    grid.addLayout(opt,2,1);
   
    forward.clicked.connect(this, "forwardClicked()");
View Full Code Here

Examples of com.trolltech.qt.gui.QLabel

    QVBoxLayout main = new QVBoxLayout();
    setLayout(main);
    fileCombo = new QComboBox(this);
   
    QHBoxLayout comboLayout = new QHBoxLayout();
    comboLayout.addWidget(new QLabel(tr("Log File:")));
    comboLayout.addWidget(fileCombo);
    comboLayout.addStretch(100);
    fileCombo.currentIndexChanged.connect(this, "indexChanged(Integer)");
   
    main.addLayout(comboLayout);
View Full Code Here

Examples of com.trolltech.qt.gui.QLabel

    okButton.setText(tr("OK"));
    okButton.pressed.connect(this, "onClicked()");
   
    userid = "sysrabt";
   
    urlLabel = new QLabel("http://"+url +tr("/pub/") +userid + tr("/"));
    QHBoxLayout urlLayout = new QHBoxLayout();
    urlLayout.addWidget(urlLabel);
    this.url = new QLineEdit();
    this.url.textChanged.connect(this, "urlEdited()");
    urlLayout.addWidget(this.url);
   
    QVBoxLayout textEditLayout = new QVBoxLayout();
    textEditLayout.addWidget(new QLabel(tr("Notebook: ") +n.getName()));
    textEditLayout.addWidget(new QLabel(tr("Public URL")));
    textEditLayout.addLayout(urlLayout);
    textEditLayout.addWidget(new QLabel(tr("Description")));
    description = new QTextEdit();
    textEditLayout.addWidget(description);
   
    sortedBy = new QComboBox(this);
    sortOrder = new QComboBox(this);
    QHBoxLayout orderLayout = new QHBoxLayout();
    orderLayout.addWidget(new QLabel(tr("Sort By")));
    Qt.Alignment right = new Qt.Alignment();
    right.set(Qt.AlignmentFlag.AlignRight);
    orderLayout.setAlignment(right);
    orderLayout.addWidget(sortedBy);
    orderLayout.addSpacing(50);
    orderLayout.addWidget(new QLabel(tr("Sort Order")));
    orderLayout.addWidget(sortOrder);
   
    sortedBy.addItem(tr("Date Created"), NoteSortOrder.CREATED);
    sortedBy.addItem(tr("Date Updated"), NoteSortOrder.UPDATED);
   
View Full Code Here

Examples of com.trolltech.qt.gui.QLabel

    QDoubleValidator altVal = new QDoubleValidator(-9999.0,9999.0,4,altitude);
    altVal.setNotation(Notation.StandardNotation);
    altitude.setValidator(altVal);

   
    passwordGrid.addWidget(new QLabel(tr("Longitude")), 1,1);
    passwordGrid.addWidget(longitude, 1, 2);
    passwordGrid.addWidget(new QLabel(tr("Latitude")), 2,1);
    passwordGrid.addWidget(latitude, 2, 2);
    passwordGrid.addWidget(new QLabel(tr("Altitude")), 3,1);
    passwordGrid.addWidget(altitude, 3, 2);
    passwordGrid.setContentsMargins(10, 10,  -10, -10);
    grid.addLayout(passwordGrid,1,1);
   
    ok = new QPushButton(tr("OK"));
View Full Code Here

Examples of com.trolltech.qt.gui.QLabel

    password.setEchoMode(QLineEdit.EchoMode.Password);
    password2 = new QLineEdit("");
    password2.setEchoMode(QLineEdit.EchoMode.Password);
   
   
    input.addWidget(new QLabel(tr("Password")), 1,1);
    input.addWidget(password, 1, 2);
    input.addWidget(new QLabel(tr("Verify")), 2,1);
    input.addWidget(password2, 2, 2);
    input.addWidget(new QLabel(tr("Hint")), 3,1);
    input.addWidget(hint, 3, 2);
    input.setContentsMargins(10, 10,  -10, -10);
    grid.addLayout(input, 1,1);
   
    error = new QLabel();
    msgGrid.addWidget(error, 1, 1);
    grid.addLayout(msgGrid, 2, 1);
   
    ok = new QPushButton(tr("OK"));
    ok.clicked.connect(this, "okButtonPressed()");
View Full Code Here

Examples of com.trolltech.qt.gui.QLabel

      //toolBar.addSeparator();
      //toolBar.addWidget(new QLabel(tr("  Search:")));
      //toolBar.addWidget(searchField);
      QSizePolicy sizePolicy = new QSizePolicy();
      sizePolicy.setHorizontalPolicy(Policy.MinimumExpanding);
      QLabel spacer = new QLabel("");
      spacer.setSizePolicy(sizePolicy);
      toolBar.addWidget(spacer);
      //searchField.setInsertPolicy(InsertPolicy.InsertAtTop);

      //searchClearButton = toolBar.addAction("Search Clear");
      //QIcon searchClearIcon = new QIcon(iconPath+"searchclear.png");
View Full Code Here

Examples of com.trolltech.qt.gui.QLabel

     
    grid = new QGridLayout();
    setLayout(grid);
   
   
    picture = new QLabel();
/*   
    QLabel left = new QLabel();
    QLabel right = new QLabel();
   
    grid.addWidget(left, 0,0);
View Full Code Here

Examples of com.trolltech.qt.gui.QLabel

    setLayout(grid);
   
    QGridLayout textGrid = new QGridLayout();
    stack = new QComboBox();
    stack.setEditable(true);
    textGrid.addWidget(new QLabel(tr("Stack Name")), 1,1);
    textGrid.addWidget(stack, 1, 2);
    textGrid.setContentsMargins(10, 10,-10, -10);
    grid.addLayout(textGrid,1,1);
   
    QGridLayout buttonGrid = new QGridLayout();
View Full Code Here

Examples of com.trolltech.qt.gui.QLabel

    QGridLayout grid = new QGridLayout();
    setLayout(grid);
    QGridLayout suggestionGrid = new QGridLayout();
    QGridLayout buttonGrid = new QGridLayout();
   
    currentWord = new QLabel(misspelledWord);
    replacementWord = new QLineEdit();
    suggestions = new QListWidget();
   
    replacementWord.textChanged.connect(this, "validateInput()");
    suggestions.itemSelectionChanged.connect(this, "replacementChosen()");
   
    suggestionGrid.addWidget(currentWord, 1, 1);
    suggestionGrid.addWidget(new QLabel(tr("Suggestion")), 2,1);
    suggestionGrid.addWidget(replacementWord, 3, 1);
    suggestionGrid.addWidget(suggestions,4,1);
    suggestionGrid.setContentsMargins(10, 10,  -10, -10);
    grid.addLayout(suggestionGrid,1,1);
   
    replace = new QPushButton(tr("Replace"));
    ignore = new QPushButton(tr("Ignore"));
    ignoreAll = new QPushButton(tr("Ignore All"));
    addToDictionary = new QPushButton(tr("Add To Dictionary"));
    replace.clicked.connect(this, "replaceButtonPressed()");
    ignore.clicked.connect(this, "ignoreButtonPressed()");
    ignoreAll.clicked.connect(this, "ignoreAllButtonPressed()");
    addToDictionary.clicked.connect(this, "addToDictionaryButtonPressed()");
    QPushButton cancel = new QPushButton(tr("Cancel"));
    cancel.clicked.connect(this, "cancelButtonPressed()");
    suggestionGrid.addWidget(replace, 1, 2);
    suggestionGrid.addWidget(ignore, 2, 2);
    suggestionGrid.addWidget(ignoreAll,3,2);
    suggestionGrid.addWidget(addToDictionary,4,2);
    suggestionGrid.setAlignment(addToDictionary, AlignmentFlag.AlignTop);
    buttonGrid.addWidget(new QLabel(), 1,1);
    buttonGrid.addWidget(cancel, 1,2);
    buttonGrid.addWidget(new QLabel(), 1,3);
    buttonGrid.setColumnStretch(1, 10);
    buttonGrid.setColumnStretch(3, 10);
    grid.addLayout(buttonGrid,2,1);
  }
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.