Package com.trolltech.qt.gui

Examples of com.trolltech.qt.gui.QRadioButton


    errorLabel.setVisible(false);
    errorLabel.setStyleSheet("background-color: red;");
   
    QButtonGroup bGroup = new QButtonGroup();
    QLabel lSelectionTyp = new QLabel("Please choose what to select on the map:");
    QRadioButton waySelection = new QRadioButton("Way");
    waySelection.setChecked(true);
    waySelection.toggled.connect(this,"waySelectionToggled(boolean)");
    QRadioButton edgeSelection = new QRadioButton("Edge");
    edgeSelection.toggled.connect(this,"edgeSelectionToggled(boolean)");
    bGroup.addButton(waySelection);
    bGroup.addButton(edgeSelection);
    QBoxLayout selBox = new QBoxLayout(Direction.LeftToRight);
    selBox.addWidget(waySelection);
View Full Code Here


        +tr("\nThe most probable reason is that the owner of the notebook has revoked your authority to view it.\n\n")
        +tr("Below are the choices available to resolve this issue."));
    vLayout.addWidget(msg1);
   
    choiceGroup = new QGroupBox(this);
    doNothing = new QRadioButton(this);
    doNothing.setChecked(true);
    doNothing.setText(tr("Do nothing and ask me later."));
    deleteNotebook = new QRadioButton(this);
    deleteNotebook.setText(tr("Permanently delete this notebook & all notes"));
    convertToLocal = new QRadioButton(this);
    convertToLocal.setText(tr("Convert this notebook to a local notebook and keep all notes"));
    convertToShared = new QRadioButton(this);
    convertToShared.setText(tr("Convert this notebook to a shared notebook and keep all notes"));
   
    QVBoxLayout optionLayout = new QVBoxLayout();
    optionLayout.addWidget(doNothing);
    optionLayout.addWidget(deleteNotebook);
View Full Code Here

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

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

TOP

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

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.