Package com.trolltech.qt.gui

Examples of com.trolltech.qt.gui.QHBoxLayout


        "exposeToJavascript()");

    notebookBox.activated.connect(this, "notebookChanged()");
    resourceSignal = new NoteResourceSignal();
   
    QHBoxLayout tagLayout = new QHBoxLayout();
    v.addWidget(titleLabel, 0);
    notebookLayout.addRow(notebookLabel, notebookBox);
    tagLayout.addLayout(notebookLayout, 0);
    tagLayout.stretch(4);
    tagLayout.addWidget(tagLabel, 0);
    tagLayout.addWidget(tagEdit, 1);
    v.addLayout(tagLayout);

    QHBoxLayout urlLayout = new QHBoxLayout();
    urlLayout.addWidget(urlLabel, 0);
    urlLayout.addWidget(urlText, 0);
    v.addLayout(urlLayout);

    QHBoxLayout authorLayout = new QHBoxLayout();
    authorLayout.addWidget(authorLabel, 0);
    authorLayout.addWidget(authorText, 0);
    authorLayout.addWidget(geoBox);
    v.addLayout(authorLayout);

    dateLayout.addWidget(createdLabel, 0, 0);
    dateLayout.addWidget(createdDate, 0, 1);
    dateLayout.addWidget(createdTime, 0, 2);
View Full Code Here


    this.notebook = notebook;
   
    setLayout(mainLayout);
    subLayout.addWidget(search);
    subLayout.addWidget(bar);
    QHBoxLayout zoomLayout = new QHBoxLayout();
    zoomLabel = new QLabel(tr("Zoom:"));
    zoomLayout.addWidget(zoomLabel);
    zoomLayout.addWidget(zoom);
    zoomLayout.setStretch(1, 100);
    subLayout.addLayout(zoomLayout);
    mainLayout.addLayout(subLayout);
    mainLayout.addWidget(notebook);
    //setStyleSheet("QTreeView {border: 0.0em;}");
    mainLayout.setContentsMargins(0, 0, 0, 0);
View Full Code Here

  }
  @SuppressWarnings("unused")
  private void releaseNotes() {
    logger.log(logger.HIGH, "Entering NeverNote.releaseNotes");
    QDialog dialog = new QDialog(this);
    QHBoxLayout layout = new QHBoxLayout();
    QTextEdit textBox = new QTextEdit();
    layout.addWidget(textBox);
    textBox.setReadOnly(true);
    QFile file = new QFile(Global.getFileManager().getProgramDirPath("release.txt"));
    if (!file.open(new QIODevice.OpenMode(QIODevice.OpenModeFlag.ReadOnly,
                QIODevice.OpenModeFlag.Text)))
      return;
View Full Code Here

    newNoteWithTags = new QCheckBox(tr("Create New Notes With Selected Tags"));
    anyTagSelection = new QCheckBox(tr("Display Notes Matching Any Selected Tags"));
    includeTagChildren = new QCheckBox(tr("Include Children In Tag Selection"));
    displayRightToLeft = new QCheckBox(tr("Display Notes Right-To-Left"));
   
    QHBoxLayout startupNotebookLayout = new QHBoxLayout();
    startupNotebook = new QComboBox();
    startupNotebook.addItem(tr("All Notebooks"), "AllNotebooks");
    startupNotebook.addItem(tr("Default Notebook"), "DefaultNotebook");
    startupNotebookLayout.addWidget(new QLabel(tr("Startup Notebook")));
    startupNotebookLayout.addWidget(startupNotebook);
    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);
    mainLayout.addWidget(styleGroup);
View Full Code Here

    grid.addWidget(new QLabel(tr("Notebook")),1,0);
    grid.addWidget(books,1,1);
    grid.addWidget(new QLabel(tr("After Import")), 2,0);
    grid.addWidget(keep,2,1);
       
    QHBoxLayout buttonLayout = new QHBoxLayout();
    buttonLayout.addStretch(1);
    buttonLayout.addWidget(okButton);
    buttonLayout.addWidget(cancelButton);
    setWindowTitle(tr("Add Import Folder"))
       
     
    QVBoxLayout mainLayout = new QVBoxLayout();
    mainLayout.addLayout(grid);
View Full Code Here

    syncLinkedNotebookList.itemSelectionChanged.connect(this, "syncLinkedNotebookSelected()");
    ignoreLinkedNotebookList.itemSelectionChanged.connect(this, "ignoreLinkedNotebookSelected()");
    leftLinkedNotebookButton.clicked.connect(this, "toOpenLinkedNotebookList()");
    rightLinkedNotebookButton.clicked.connect(this, "toClosedLinkedNotebookList()");
   
    QHBoxLayout buttonLayout = new QHBoxLayout();
    buttonLayout.addStretch(1);
    buttonLayout.addWidget(okButton);
    buttonLayout.addWidget(cancelButton);
    setWindowTitle(tr("Open/Close Notebooks"));
   
    QHBoxLayout upperLayout = new QHBoxLayout();
    upperLayout.addLayout(openLayout);
    upperLayout.addLayout(middleLayout);
    upperLayout.addLayout(closeLayout);
   
    QHBoxLayout tagLayout = new QHBoxLayout();
    tagLayout.addLayout(openTagLayout);
    tagLayout.addLayout(middleTagLayout);
    tagLayout.addLayout(closeTagLayout);
   
    QHBoxLayout linkedNotebookLayout = new QHBoxLayout();
    linkedNotebookLayout.addLayout(openLinkedNotebookLayout);
    linkedNotebookLayout.addLayout(middleLinkedNotebookLayout);
    linkedNotebookLayout.addLayout(closeLinkedNotebookLayout);
   
    QVBoxLayout mainLayout = new QVBoxLayout();
    mainLayout.addLayout(upperLayout);
    mainLayout.addLayout(tagLayout);
    mainLayout.addLayout(linkedNotebookLayout);
View Full Code Here

    okPressed = false;
    setWindowTitle(tr("Upgrade Available"));
    setWindowIcon(new QIcon(iconPath+"nevernote.png"));
    QVBoxLayout grid = new QVBoxLayout();
    QGridLayout input = new QGridLayout();
    QHBoxLayout button = new QHBoxLayout();
    setLayout(grid);   
     
    QWebView page = new QWebView(this);
    page.setUrl(new QUrl(Global.getUpdateAnnounceUrl()));
   
    doNotRemindeMe = new QCheckBox();
    doNotRemindeMe.setText(tr("Automatically check for updates at startup"));
    input.addWidget(page,1,1);
    doNotRemindeMe.setChecked(true);
    input.addWidget(doNotRemindeMe,2,1);
   
    grid.addLayout(input);
   
    ok = new QPushButton("OK");
    ok.clicked.connect(this, "okButtonPressed()");

    button.addStretch();
    button.addWidget(ok);
    button.addStretch();
    grid.addLayout(button);   
  }
View Full Code Here

    cancelButton.clicked.connect(this, "close()");
   
    createIcons();
    contentsWidget.setCurrentRow(0);
   
    QHBoxLayout horizontalLayout = new QHBoxLayout();
    horizontalLayout.addWidget(contentsWidget);
    horizontalLayout.addWidget(pagesWidget,1);
   
    QHBoxLayout buttonLayout = new QHBoxLayout();
    buttonLayout.addStretch(1);
    buttonLayout.addWidget(okButton);
    buttonLayout.addWidget(cancelButton);
    setWindowTitle(tr("Settings"))
   
    QVBoxLayout mainLayout = new QVBoxLayout();
    mainLayout.addLayout(horizontalLayout);
    mainLayout.addSpacing(1);
View Full Code Here

    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);
View Full Code Here

    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);
   
    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);
View Full Code Here

TOP

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

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.