Package com.trolltech.qt.gui

Examples of com.trolltech.qt.gui.QVBoxLayout


  // Constructor
  public LogFileDialog(List<String> l) {
    setWindowTitle(tr("Application Logs"));
    logs = l;
    setWindowIcon(new QIcon(iconPath+"notebook-green.png"));
    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);
       
    textField = new QTextEdit(this);
    main.addWidget(textField);
   
    fileCombo.addItem(tr("Message Log"), "MessageLog");
    fileCombo.addItem(tr("Application Log"), "NeverNoteLog");
    fileCombo.addItem(tr("Synchronization Log"), "SyncLog");
    fileCombo.addItem(tr("Save Log"), "SaveLog");
View Full Code Here


    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);
   
    sortOrder.addItem(tr("Newest to oldest"), false);
    sortOrder.addItem(tr("Oldest to newest"), true);
   
    textEditLayout.addLayout(orderLayout);
   
    cancelButton = new QPushButton();
    cancelButton.setText(tr("Cancel"));
    cancelButton.pressed.connect(this, "onCancel()");
   
    stopButton = new QPushButton(tr("Stop Sharing"));
    stopButton.setVisible(false);
    stopButton.clicked.connect(this, "stopPublishing()");
   
    QHBoxLayout buttonLayout = new QHBoxLayout();
    buttonLayout.addStretch(1);
    buttonLayout.addWidget(stopButton);
    buttonLayout.addWidget(okButton);
    buttonLayout.addWidget(cancelButton);
    setWindowTitle(tr("Share A Notebook With The World"))
   
    QVBoxLayout mainLayout = new QVBoxLayout();
    mainLayout.addLayout(textEditLayout);
    mainLayout.addSpacing(1);
    mainLayout.addLayout(buttonLayout);
    setLayout(mainLayout);

    if (n.isPublished()) {
      Publishing p = n.getPublishing();
      this.url.setText(p.getUri());
View Full Code Here

    setIgnoreInternetAddresses(Global.getSpellSetting(Configuration.SPELL_IGNOREINTERNETADDRESSES));
    setIgnoreMixedCase(Global.getSpellSetting(Configuration.SPELL_IGNOREMIXEDCASE));
    setIgnoreUpperCase(Global.getSpellSetting(Configuration.SPELL_IGNOREUPPERCASE));
    setIgnoreSentenceCapitalization(Global.getSpellSetting(Configuration.SPELL_IGNORESENTENCECAPITALIZATION));
   
    QVBoxLayout mainLayout = new QVBoxLayout();
    mainLayout.addWidget(ignoreDigitWords);
    mainLayout.addWidget(ignoreInternetAddresses);
    mainLayout.addWidget(ignoreMixedCase);
    mainLayout.addWidget(ignoreUpperCase);
    mainLayout.addWidget(ignoreSentenceCapitalization);
    mainLayout.addStretch(1);
    setLayout(mainLayout);
  }
View Full Code Here

    buttonLayout.addStretch(1);
    buttonLayout.addWidget(okButton);
    buttonLayout.addWidget(cancelButton);
    setWindowTitle(tr("Note Tags"))
   
    QVBoxLayout mainLayout = new QVBoxLayout();
    mainLayout.addLayout(horizontalLayout);
    mainLayout.addLayout(addLayout);
    //mainLayout.addStretch(1);
    mainLayout.addSpacing(1);
    mainLayout.addLayout(buttonLayout);
    setLayout(mainLayout);
   
    if (allTags != null) {
      for (int i=0; i<allTags.size(); i++) {
        tags.add(allTags.get(i).getName());
View Full Code Here

 
  public PreviewDialog(QWidget parent) {
   
    QWidget masterLabel = new QWidget();
   
    QVBoxLayout subLayout = new QVBoxLayout();
    setMouseTracking(true);
   
    PreviewImage imageLabel = new PreviewImage(masterLabel);
    imageLabel.ID = "Number 1";
        QImage image = new QImage(Global.getFileManager().getResDirPath("thumbnail.png"));
        imageLabel.setPixmap(QPixmap.fromImage(image).scaled(400, 400));
        subLayout.addWidget(imageLabel);

    PreviewImage imageLabel2 = new PreviewImage(masterLabel);
    imageLabel2.ID = "Number 2";
    QImage image2 = new QImage(Global.getFileManager().getResDirPath("thumbnail.png"));
        imageLabel2.setPixmap(QPixmap.fromImage(image2).scaled(400,400));
        subLayout.addWidget(imageLabel2);
        masterLabel.setLayout(subLayout);

        QScrollArea scrollArea = new QScrollArea();
        scrollArea.setWidget(masterLabel);
   
    QPushButton okButton = new QPushButton(tr("OK"));
    okButton.clicked.connect(this, "okPushed()");
    ;
   
    QVBoxLayout verticalLayout = new QVBoxLayout();
    verticalLayout.addWidget(scrollArea);
   
    QHBoxLayout buttonLayout = new QHBoxLayout();
    buttonLayout.addStretch(1);
    buttonLayout.addWidget(okButton);
    setWindowTitle(tr("Note Preview"))
   
    QVBoxLayout mainLayout = new QVBoxLayout();
    mainLayout.addLayout(verticalLayout);
    mainLayout.addSpacing(1);
    mainLayout.addLayout(buttonLayout);
    setLayout(mainLayout);

  }
View Full Code Here

    syncLayout.addWidget(showSynchronized);
    syncLayout.addWidget(hideSynchronized);
    syncLayout.setStretch(1, 100);
    synchronizedGroup.setLayout(syncLayout);
   
    QVBoxLayout mainLayout = new QVBoxLayout();
    mainLayout.addWidget(dateCreatedGroup);
    mainLayout.addWidget(dateChangedGroup);
    mainLayout.addWidget(dateSubjectGroup);
    mainLayout.addWidget(notebookGroup);
    mainLayout.addWidget(tagsGroup);
    mainLayout.addWidget(sourceUrlGroup);
    mainLayout.addWidget(authorGroup);
    mainLayout.addWidget(synchronizedGroup);
    mainLayout.addStretch(1);
    setLayout(mainLayout);
  }
View Full Code Here

    deleteButton = new QPushButton();
    deleteButton.setText(tr("Delete"));
    deleteButton.setEnabled(false);
    deleteButton.clicked.connect(this, "deletePressed()");
   
    QVBoxLayout editLayout = new QVBoxLayout();
    editLayout.addWidget(addButton);
    editLayout.addWidget(deleteButton);
   
    QHBoxLayout listLayout = new QHBoxLayout();
    listLayout.addLayout(horizontalLayout);
    listLayout.addLayout(editLayout);
   
    QVBoxLayout mainLayout = new QVBoxLayout();
    if (syncRunner.authToken == null) {
      QLabel msg = new QLabel(tr("You must be connected to make changes."));
      mainLayout.addWidget(msg);
    }
    mainLayout.addLayout(listLayout);
    mainLayout.addSpacing(1);
    mainLayout.addLayout(buttonLayout);
    setLayout(mainLayout);
   
    table.setColumnWidth(0, 160);
    resize(500, 200);
    load();
View Full Code Here

    deleteButton = new QPushButton();
    deleteButton.setText(tr("Delete"));
    deleteButton.setEnabled(false);
    deleteButton.clicked.connect(this, "deletePressed()");
   
    QVBoxLayout editLayout = new QVBoxLayout();
    editLayout.addWidget(addButton);
    editLayout.addWidget(editButton);
    editLayout.addWidget(deleteButton);
   
    QHBoxLayout listLayout = new QHBoxLayout();
    listLayout.addLayout(horizontalLayout);
    listLayout.addLayout(editLayout);
   
    QVBoxLayout mainLayout = new QVBoxLayout();
    mainLayout.addLayout(listLayout);
    mainLayout.addSpacing(1);
    mainLayout.addLayout(buttonLayout);
    setLayout(mainLayout);

//    QTableWidgetItem dir = new QTableWidgetItem();
//    QTableWidgetItem book = new QTableWidgetItem();
   
View Full Code Here

    warning.setText(tr("Please synchronize with Evernote before proceeding.\n\n" +
        "In order to use this feature you need to synchronize with Evernote.  After synchronizing" +
        " the necessary information will be saved so you won't need to do it again.  \n\n"
        +"If you don't wish to use Evernote's then please check the option at the bottom."));
   
    QVBoxLayout mainLayout = new QVBoxLayout();
    mainLayout.addWidget(warning);
    mainLayout.addWidget(neverSynchronize);
    mainLayout.addWidget(neverSynchronize);
    QHBoxLayout okLayout = new QHBoxLayout();
    okButton.clicked.connect(this, "okClicked()");
    okLayout.addWidget(new QLabel(""));
    okLayout.addWidget(okButton);
    okLayout.addWidget(new QLabel(""));
    okLayout.setStretch(0, 10);
    okLayout.setStretch(2, 10);
   
    mainLayout.addLayout(okLayout);
    setLayout(mainLayout);
  }
View Full Code Here

    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();
    sleepLayout.addWidget(sleepLabel);
    sleepLayout.addWidget(sleepSpinner);
    sleepGroup.setLayout(sleepLayout);
   
    // Regular Expressions for word parsing
    QGroupBox regexGroup = new QGroupBox(tr("Word Parse"));
    QLabel regexLabel = new QLabel(tr("Regular Expression"));
    regexEdit = new QLineEdit();
    regexEdit.setText(Global.getWordRegex());

    QHBoxLayout regexLayout = new QHBoxLayout();
    regexLayout.addWidget(regexLabel);
    regexLayout.addWidget(regexEdit);   
    regexGroup.setLayout(regexLayout);
   
   
    QVBoxLayout mainLayout = new QVBoxLayout();
    mainLayout.addWidget(sleepGroup);
    mainLayout.addWidget(weightGroup);
    mainLayout.addWidget(attachmentGroup);
    mainLayout.addWidget(regexGroup);
    mainLayout.addStretch(1);
    setLayout(mainLayout);


  }
View Full Code Here

TOP

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

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.