Examples of QHBoxLayout


Examples of com.trolltech.qt.gui.QHBoxLayout

  public ConfigShowEditorButtonsPage(QWidget parent) {
    super(parent);

    // Undo Button
    QGroupBox undoGroup =  new QGroupBox(tr("Undo"));
    QHBoxLayout undoLayout = new QHBoxLayout();
    showUndo = new QRadioButton(tr("Show"));
    hideUndo = new QRadioButton(tr("Hide"));
    undoLayout.addWidget(showUndo);
    undoLayout.addWidget(hideUndo);
    undoLayout.setStretch(1, 100);
    undoGroup.setLayout(undoLayout);


    // Redo Button
    QGroupBox redoGroup =  new QGroupBox(tr("Redo"));
    QHBoxLayout redoLayout = new QHBoxLayout();
    showRedo = new QRadioButton(tr("Show"));
    hideRedo = new QRadioButton(tr("Hide"));
    redoLayout.addWidget(showRedo);
    redoLayout.addWidget(hideRedo);
    redoLayout.setStretch(1, 100);
    redoGroup.setLayout(redoLayout);


    // Paste button
    QGroupBox pasteGroup =  new QGroupBox(tr("Paste"));
    QHBoxLayout pasteLayout = new QHBoxLayout();
    showPaste = new QRadioButton(tr("Show"));
    hidePaste = new QRadioButton(tr("Hide"));
    pasteLayout.addWidget(showPaste);
    pasteLayout.addWidget(hidePaste);
    pasteLayout.setStretch(1, 100);
    pasteGroup.setLayout(pasteLayout);

    // Copy button
    QGroupBox copyGroup =  new QGroupBox(tr("Copy"));
    QHBoxLayout copyLayout = new QHBoxLayout();
    showCopy = new QRadioButton(tr("Show"));
    hideCopy = new QRadioButton(tr("Hide"));
    copyLayout.addWidget(showCopy);
    copyLayout.addWidget(hideCopy);
    copyLayout.setStretch(1, 100);
    copyGroup.setLayout(copyLayout);

   
    // Cut Button
    QGroupBox cutGroup =  new QGroupBox(tr("Cut"));
    QHBoxLayout cutLayout = new QHBoxLayout();
    showCut = new QRadioButton(tr("Show"));
    hideCut = new QRadioButton(tr("Hide"));
    cutLayout.addWidget(showCut);
    cutLayout.addWidget(hideCut);
    cutLayout.setStretch(1, 100);
    cutGroup.setLayout(cutLayout);

    // Notebook Column
    QGroupBox underlineGroup =  new QGroupBox(tr("Underline"));
    QHBoxLayout underlineLayout = new QHBoxLayout();
    showUnderline = new QRadioButton(tr("Show"));
    hideUnderline = new QRadioButton(tr("Hide"));
    underlineLayout.addWidget(showUnderline);
    underlineLayout.addWidget(hideUnderline);
    underlineLayout.setStretch(1, 100);
    underlineGroup.setLayout(underlineLayout);

    // Bold Button
    QGroupBox boldGroup =  new QGroupBox(tr("Bold"));
    QHBoxLayout boldLayout = new QHBoxLayout();
    showBold = new QRadioButton(tr("Show"));
    hideBold = new QRadioButton(tr("Hide"));
    boldLayout.addWidget(showBold);
    boldLayout.addWidget(hideBold);
    boldLayout.setStretch(1, 100);
    boldGroup.setLayout(boldLayout);


    // Italic Button
    QGroupBox italicGroup =  new QGroupBox(tr("Italic"));
    QHBoxLayout italicLayout = new QHBoxLayout();
    showItalic = new QRadioButton(tr("Show"));
    hideItalic = new QRadioButton(tr("Hide"));
    italicLayout.addWidget(showItalic);
    italicLayout.addWidget(hideItalic);
    italicLayout.setStretch(1, 100);
    italicGroup.setLayout(italicLayout);

    // Strikethrough Button
    QGroupBox strikethroughGroup =  new QGroupBox(tr("Strikethrough"));
    QHBoxLayout strikethroughLayout = new QHBoxLayout();
    showStrikethrough = new QRadioButton(tr("Show"));
    hideStrikethrough = new QRadioButton(tr("Hide"));
    strikethroughLayout.addWidget(showStrikethrough);
    strikethroughLayout.addWidget(hideStrikethrough);
    strikethroughLayout.setStretch(1, 100);
    strikethroughGroup.setLayout(strikethroughLayout);


    // Hline Button
    QGroupBox hlineGroup =  new QGroupBox(tr("Horizontal Line"));
    QHBoxLayout hlineLayout = new QHBoxLayout();
    showHline = new QRadioButton(tr("Show"));
    hideHline = new QRadioButton(tr("Hide"));
    hlineLayout.addWidget(showHline);
    hlineLayout.addWidget(hideHline);
    hlineLayout.setStretch(1, 100);
    hlineGroup.setLayout(hlineLayout);

    // Outdent Button
    QGroupBox outdentGroup =  new QGroupBox(tr("Outdent"));
    QHBoxLayout outdentLayout = new QHBoxLayout();
    showOutdent = new QRadioButton(tr("Show"));
    hideOutdent = new QRadioButton(tr("Hide"));
    outdentLayout.addWidget(showOutdent);
    outdentLayout.addWidget(hideOutdent);
    outdentLayout.setStretch(1, 100);
    outdentGroup.setLayout(outdentLayout);

    // Indent Button
    QGroupBox indentGroup =  new QGroupBox(tr("Indent"));
    QHBoxLayout indentLayout = new QHBoxLayout();
    showIndent = new QRadioButton(tr("Show"));
    hideIndent = new QRadioButton(tr("Hide"));
    indentLayout.addWidget(showIndent);
    indentLayout.addWidget(hideIndent);
    indentLayout.setStretch(1, 100);
    indentGroup.setLayout(indentLayout);

    // Bullet List Button
    QGroupBox bulletListGroup =  new QGroupBox(tr("Bullet List"));
    QHBoxLayout bulletListLayout = new QHBoxLayout();
    showBulletList = new QRadioButton(tr("Show"));
    hideBulletList = new QRadioButton(tr("Hide"));
    bulletListLayout.addWidget(showBulletList);
    bulletListLayout.addWidget(hideBulletList);
    bulletListLayout.setStretch(1, 100);
    bulletListGroup.setLayout(bulletListLayout);

    // Number List Button
    QGroupBox numberListGroup =  new QGroupBox(tr("Numbered List"));
    QHBoxLayout numberListLayout = new QHBoxLayout();
    showNumberList = new QRadioButton(tr("Show"));
    hideNumberList = new QRadioButton(tr("Hide"));
    numberListLayout.addWidget(showNumberList);
    numberListLayout.addWidget(hideNumberList);
    numberListLayout.setStretch(1, 100);
    numberListGroup.setLayout(numberListLayout);

    // Font drop down list
    QGroupBox fontGroup =  new QGroupBox(tr("Fonts"));
    QHBoxLayout fontLayout = new QHBoxLayout();
    showFont = new QRadioButton(tr("Show"));
    hideFont = new QRadioButton(tr("Hide"));
    fontLayout.addWidget(showFont);
    fontLayout.addWidget(hideFont);
    fontLayout.setStretch(1, 100);
    fontGroup.setLayout(fontLayout);

    // Font sizes drop down list
    QGroupBox fontSizeGroup =  new QGroupBox(tr("Font Size"));
    QHBoxLayout fontSizeLayout = new QHBoxLayout();
    showFontSize = new QRadioButton(tr("Show"));
    hideFontSize = new QRadioButton(tr("Hide"));
    fontSizeLayout.addWidget(showFontSize);
    fontSizeLayout.addWidget(hideFontSize);
    fontSizeLayout.setStretch(1, 100);
    fontSizeGroup.setLayout(fontSizeLayout);
   
    // Font color button
    QGroupBox fontColorGroup =  new QGroupBox(tr("Font Color"));
    QHBoxLayout fontColorLayout = new QHBoxLayout();
    showFontColor = new QRadioButton(tr("Show"));
    hideFontColor = new QRadioButton(tr("Hide"));
    fontColorLayout.addWidget(showFontColor);
    fontColorLayout.addWidget(hideFontColor);
    fontColorLayout.setStretch(1, 100);
    fontColorGroup.setLayout(fontColorLayout);
   
    // highlight button
    QGroupBox fontHighlightGroup =  new QGroupBox(tr("Text Highlight"));
    QHBoxLayout fontHighlightLayout = new QHBoxLayout();
    showFontHighlight = new QRadioButton(tr("Show"));
    hideFontHighlight = new QRadioButton(tr("Hide"));
    fontHighlightLayout.addWidget(showFontHighlight);
    fontHighlightLayout.addWidget(hideFontHighlight);
    fontHighlightLayout.setStretch(1, 100);
    fontHighlightGroup.setLayout(fontHighlightLayout);
       
    // Align Left
    QGroupBox alignLeftGroup =  new QGroupBox(tr("Align Left"));
    QHBoxLayout alignLeftLayout = new QHBoxLayout();
    showAlignLeft = new QRadioButton(tr("Show"));
    hideAlignLeft = new QRadioButton(tr("Hide"));
    alignLeftLayout.addWidget(showAlignLeft);
    alignLeftLayout.addWidget(hideAlignLeft);
    alignLeftLayout.setStretch(1, 100);
    alignLeftGroup.setLayout(alignLeftLayout);
   
    // Align Center
    QGroupBox alignCenterGroup =  new QGroupBox(tr("Align Center"));
    QHBoxLayout alignCenterLayout = new QHBoxLayout();
    showAlignCenter = new QRadioButton(tr("Show"));
    hideAlignCenter = new QRadioButton(tr("Hide"));
    alignCenterLayout.addWidget(showAlignCenter);
    alignCenterLayout.addWidget(hideAlignCenter);
    alignCenterLayout.setStretch(1, 100);
    alignCenterGroup.setLayout(alignCenterLayout);
   
    // Align Right
    QGroupBox alignRightGroup =  new QGroupBox(tr("Align Right"));
    QHBoxLayout alignRightLayout = new QHBoxLayout();
    showAlignRight = new QRadioButton(tr("Show"));
    hideAlignRight = new QRadioButton(tr("Hide"));
    alignRightLayout.addWidget(showAlignRight);
    alignRightLayout.addWidget(hideAlignRight);
    alignRightLayout.setStretch(1, 100);
    alignRightGroup.setLayout(alignRightLayout);
   
    QGridLayout mainLayout = new QGridLayout();
    mainLayout.addWidget(undoGroup, 0,0);
    mainLayout.addWidget(redoGroup, 0,1);
View Full Code Here

Examples of com.trolltech.qt.gui.QHBoxLayout

    newTag.textChanged.connect(this, "newTagTextChanged()");
    newTagButton = new QPushButton(tr("Add"));
    newTagButton.setEnabled(false);
    newTagButton.clicked.connect(this, "addTag()");
   
    QHBoxLayout addLayout = new QHBoxLayout();
    addLayout.addWidget(newTag);
    addLayout.setStretch(0, 10);
    addLayout.addWidget(newTagButton);
   
    if (!permitNew) {
      newTagButton.setVisible(false);
      newTag.setVisible(false);
    }
   
    okButton = new QPushButton();
    okButton.setText(tr("OK"));
    okButton.pressed.connect(this, "onClicked()");
   
    cancelButton = new QPushButton();
    cancelButton.setText(tr("Cancel"));
    cancelButton.pressed.connect(this, "onCancel()");
   
    QHBoxLayout horizontalLayout = new QHBoxLayout();
    horizontalLayout.addWidget(tagList);
   
    QHBoxLayout buttonLayout = new QHBoxLayout();
    buttonLayout.addStretch(1);
    buttonLayout.addWidget(okButton);
    buttonLayout.addWidget(cancelButton);
    setWindowTitle(tr("Note Tags"))
   
    QVBoxLayout mainLayout = new QVBoxLayout();
    mainLayout.addLayout(horizontalLayout);
    mainLayout.addLayout(addLayout);
View Full Code Here

Examples of com.trolltech.qt.gui.QHBoxLayout

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

Examples of com.trolltech.qt.gui.QHBoxLayout

  public ConfigShowColumnsPage(QWidget parent) {
    super(parent);

    // Date Created Column
    QGroupBox dateCreatedGroup =  new QGroupBox(tr("Date Created"));
    QHBoxLayout dateCreatedLayout = new QHBoxLayout();
    showDateCreated = new QRadioButton(tr("Show"));
    hideDateCreated = new QRadioButton(tr("Hide"));
    dateCreatedLayout.addWidget(showDateCreated);
    dateCreatedLayout.addWidget(hideDateCreated);
    dateCreatedLayout.setStretch(1, 100);
    dateCreatedGroup.setLayout(dateCreatedLayout);


    // Subject Date Column
    QGroupBox dateSubjectGroup =  new QGroupBox(tr("Subject Date"));
    QHBoxLayout dateSubjectLayout = new QHBoxLayout();
    showDateSubject = new QRadioButton(tr("Show"));
    hideDateSubject = new QRadioButton(tr("Hide"));
    dateSubjectLayout.addWidget(showDateSubject);
    dateSubjectLayout.addWidget(hideDateSubject);
    dateSubjectLayout.setStretch(1, 100);
    dateSubjectGroup.setLayout(dateSubjectLayout);


    // Title Column
    QGroupBox sourceUrlGroup =  new QGroupBox(tr("Source URL"));
    QHBoxLayout sourceUrlLayout = new QHBoxLayout();
    sourceUrlShow = new QRadioButton(tr("Show"));
    sourceUrlHide = new QRadioButton(tr("Hide"));
    sourceUrlLayout.addWidget(sourceUrlShow);
    sourceUrlLayout.addWidget(sourceUrlHide);
    sourceUrlLayout.setStretch(1, 100);
    sourceUrlGroup.setLayout(sourceUrlLayout);

    // Author Column
    QGroupBox authorGroup =  new QGroupBox(tr("Author"));
    QHBoxLayout authorLayout = new QHBoxLayout();
    showAuthor = new QRadioButton(tr("Show"));
    hideAuthor = new QRadioButton(tr("Hide"));
    authorLayout.addWidget(showAuthor);
    authorLayout.addWidget(hideAuthor);
    authorLayout.setStretch(1, 100);
    authorGroup.setLayout(authorLayout);

   
    // Date Changed Column
    QGroupBox dateChangedGroup =  new QGroupBox(tr("Date Changed"));
    QHBoxLayout dateChangedLayout = new QHBoxLayout();
    showDateChanged = new QRadioButton(tr("Show"));
    hideDateChanged = new QRadioButton(tr("Hide"));
    dateChangedLayout.addWidget(showDateChanged);
    dateChangedLayout.addWidget(hideDateChanged);
    dateChangedLayout.setStretch(1, 100);
    dateChangedGroup.setLayout(dateChangedLayout);

    // Notebook Column
    QGroupBox notebookGroup =  new QGroupBox(tr("Notebook"));
    QHBoxLayout notebookLayout = new QHBoxLayout();
    showNotebook = new QRadioButton(tr("Show"));
    hideNotebook = new QRadioButton(tr("Hide"));
    notebookLayout.addWidget(showNotebook);
    notebookLayout.addWidget(hideNotebook);
    notebookLayout.setStretch(1, 100);
    notebookGroup.setLayout(notebookLayout);

    // Tags Column
    QGroupBox tagsGroup =  new QGroupBox(tr("Tags"));
    QHBoxLayout tagsLayout = new QHBoxLayout();
    showTags = new QRadioButton(tr("Show"));
    hideTags = new QRadioButton(tr("Hide"));
    tagsLayout.addWidget(showTags);
    tagsLayout.addWidget(hideTags);
    tagsLayout.setStretch(1, 100);
    tagsGroup.setLayout(tagsLayout);

    // Synchronized Column
    QGroupBox synchronizedGroup =  new QGroupBox(tr("Synchronized Indicator"));
    QHBoxLayout syncLayout = new QHBoxLayout();
    showSynchronized = new QRadioButton(tr("Show"));
    hideSynchronized = new QRadioButton(tr("Hide"));
    syncLayout.addWidget(showSynchronized);
    syncLayout.addWidget(hideSynchronized);
    syncLayout.setStretch(1, 100);
    synchronizedGroup.setLayout(syncLayout);
   
    QVBoxLayout mainLayout = new QVBoxLayout();
    mainLayout.addWidget(dateCreatedGroup);
    mainLayout.addWidget(dateChangedGroup);
View Full Code Here

Examples of com.trolltech.qt.gui.QHBoxLayout

    notebooks = conn.getSharedNotebookTable().getForNotebook(n.getGuid());
    okButton = new QPushButton();
    okButton.setText(tr("OK"));
    okButton.pressed.connect(this, "onClicked()");
   
    QHBoxLayout horizontalLayout = new QHBoxLayout();
    QHBoxLayout buttonLayout = new QHBoxLayout();
    buttonLayout.addStretch(1);
    buttonLayout.addWidget(okButton);
    setWindowTitle(tr("Share Notebook \"") +notebook.getName() + tr("\" With Others"))
   
    table = new QTableWidget(notebooks.size(),3);
    List<String> headers = new ArrayList<String>();
    headers.add(tr("Email"));
    headers.add(tr("Access"));
    headers.add(tr("Login Required"));
    table.setHorizontalHeaderLabels(headers);
    table.verticalHeader().setVisible(false);
    table.setAlternatingRowColors(true);
    table.setSelectionBehavior(SelectionBehavior.SelectRows);
    table.setSelectionMode(SelectionMode.SingleSelection);
    table.itemSelectionChanged.connect(this, "tableSelection()");
    horizontalLayout.addWidget(table);
   
   
    addButton = new QPushButton();
    addButton.setText(tr("Add"));
    addButton.clicked.connect(this, "addPressed()");
   
    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);
View Full Code Here

Examples of com.trolltech.qt.gui.QHBoxLayout

   
    cancelButton = new QPushButton();
    cancelButton.setText(tr("Cancel"));
    cancelButton.pressed.connect(this, "onCancel()");
   
    QHBoxLayout horizontalLayout = new QHBoxLayout();
    QHBoxLayout buttonLayout = new QHBoxLayout();
    buttonLayout.addStretch(1);
    buttonLayout.addWidget(okButton);
    buttonLayout.addWidget(cancelButton);
    setWindowTitle(tr("Auto Import Folders"))
   
    table = new QTableWidget(records.size(),3);
    List<String> headers = new ArrayList<String>();
    headers.add(tr("Directory"));
    headers.add(tr("Target Notebook"));
    headers.add(tr("Keep"));
    table.setHorizontalHeaderLabels(headers);
    table.verticalHeader().setVisible(false);
    table.setAlternatingRowColors(true);
    table.setSelectionBehavior(SelectionBehavior.SelectRows);
    table.setSelectionMode(SelectionMode.SingleSelection);
    table.itemSelectionChanged.connect(this, "tableSelection()");
    horizontalLayout.addWidget(table);
   
   
    addButton = new QPushButton();
    addButton.setText(tr("Add"));
    addButton.clicked.connect(this, "addPressed()");
   
    editButton = new QPushButton();
    editButton.setText(tr("Edit"));
    editButton.setEnabled(false);
    editButton.clicked.connect(this, "editPressed()");
   
    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);
View Full Code Here

Examples of com.trolltech.qt.gui.QHBoxLayout

   
    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

Examples of com.trolltech.qt.gui.QHBoxLayout

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

Examples of com.trolltech.qt.gui.QHBoxLayout

    setWindowIcon(new QIcon(iconPath+"notebook-green.png"));
    QVBoxLayout main = new QVBoxLayout();
    setLayout(main);
    historyCombo = new QComboBox(this);
   
    QHBoxLayout comboLayout = new QHBoxLayout();
    comboLayout.addWidget(new QLabel(tr("History Date:")));
    comboLayout.addWidget(historyCombo);
    comboLayout.addStretch(100);
   
    main.addLayout(comboLayout);
       
    conn = c;
    browser = new BrowserWindow(conn);
    main.addWidget(browser);
    browser.titleLabel.setVisible(false);
    browser.notebookBox.setVisible(false);
    browser.hideButtons();
    browser.tagEdit.setVisible(false);
    browser.tagLabel.setVisible(false);
   
    QHBoxLayout buttonLayout = new QHBoxLayout();
    buttonLayout.addStretch(100);
    restore = new QPushButton(tr("Restore Note"));
    restore.clicked.connect(this, "restorePushed()");
   
    restoreAsNew = new QPushButton(tr("Restore As New Note"));
    restoreAsNew.clicked.connect(this, "restoreAsNewPushed()");
    QPushButton cancel = new QPushButton(tr("Cancel"));
    cancel.clicked.connect(this, "cancelPressed()");
   
    buttonLayout.addWidget(restore);
    buttonLayout.addWidget(restoreAsNew);
    buttonLayout.addWidget(cancel);
    main.addLayout(buttonLayout);
   
    browser.getBrowser().setContextMenuPolicy(ContextMenuPolicy.NoContextMenu);
    tempFiles = new ArrayList<QTemporaryFile>();
    logger = l;
View Full Code Here

Examples of com.trolltech.qt.gui.QHBoxLayout

    QVBoxLayout closeLayout = new QVBoxLayout();
    closeLayout.addWidget(new QLabel(tr("Merge Into")));
    newTag = new QComboBox();
    closeLayout.addWidget(newTag);
   
    QHBoxLayout buttonLayout = new QHBoxLayout();
    buttonLayout.addStretch(1);
    buttonLayout.addWidget(okButton);
    buttonLayout.addWidget(cancelButton);
    setWindowTitle(tr("Open/Close Notebooks"));
   
    QHBoxLayout upperLayout = new QHBoxLayout();
    upperLayout.addLayout(middleLayout);
    upperLayout.addLayout(closeLayout);
   
    QVBoxLayout mainLayout = new QVBoxLayout();
    mainLayout.addLayout(upperLayout);
    //mainLayout.addStretch(1);
    mainLayout.addSpacing(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.