Examples of QGroupBox


Examples of com.trolltech.qt.gui.QGroupBox

    tformats.add("h:mm a - 6:13 pm");

   
    // Style sheet formats
    List<String> styles = QStyleFactory.keys();
    QGroupBox styleGroup = new QGroupBox(tr("GUI Style"));
    styleFormat = new QComboBox();       
    styleFormat.addItems(styles);
    styleFormat.activated.connect(this, "styleSelected(String)");
   
    standardPalette = new QCheckBox();
    standardPalette.setText(tr("Use standard palette"));
    standardPalette.clicked.connect(this, "standardPaletteChanged()");

    QFormLayout styleLayout = new QFormLayout();
    styleLayout.addWidget(styleFormat);
    styleLayout.addWidget(standardPalette);
   
    styleGroup.setLayout(styleLayout);

    QGroupBox tagBehaviorGroup = new QGroupBox(tr("Tag Behavior"));
    tagBehavior = new QComboBox();
    tagBehavior.addItem(tr("Do nothing"),"DoNothing");
    tagBehavior.addItem(tr("Count tags & do not hide inactive"),"NoHideInactiveCount");
    tagBehavior.addItem(tr("Count tags & hide inactive"),"HideInactiveCount");
    tagBehavior.addItem(tr("Color active tags"),"ColorActive");
   
    QFormLayout tagLayout = new QFormLayout();
    tagLayout.addWidget(tagBehavior);
    tagBehaviorGroup.setLayout(tagLayout);
   
   
   
    // Date/Time settings
    QGroupBox datetimeGroup = new QGroupBox(tr("Date/Time Format"));
    dateFormat = new QComboBox();       
    for (int i=0; i<dformats.size(); i++) {
      dateFormat.addItem(tr(dformats.get(i)));
    }
   
    timeFormat = new QComboBox();   
    for (int i=0; i<tformats.size(); i++) {
      timeFormat.addItem(tr(tformats.get(i)));
    }

    QFormLayout formatLayout = new QFormLayout();
    formatLayout.addWidget(dateFormat);
    formatLayout.addWidget(timeFormat);
    datetimeGroup.setLayout(formatLayout);
   
    mimicEvernote = new QCheckBox(tr("Mimic Evernote Selection Behavior (Requires Restart)"));
    showSplashScreen = new QCheckBox(tr("Show Splash Screen on Startup"));
    showTrayIcon = new QCheckBox(tr("Minimize To Tray"));
    minimizeOnClose = new QCheckBox(tr("Close To Tray"));
View Full Code Here

Examples of com.trolltech.qt.gui.QGroupBox

   
    font = Global.getDefaultFont();
    fontSize = Global.getDefaultFontSize();
   
    // Group Box
    QGroupBox fontGroup = new QGroupBox(tr("New Note Defaults"));
    QGridLayout fontLayout = new QGridLayout();
    overrideFonts = new QCheckBox(tr("Override Defaults"));
    overrideFonts.setCheckable(true);
    overrideFonts.setChecked(Global.overrideDefaultFont());
    overrideFonts.clicked.connect(this, "toggleFontOverride(Boolean)");
    fontLayout.addWidget(overrideFonts,1,2);
   
   
    // Fonts
    fontList = new QComboBox();       
    fontList.activated.connect(this, "fontSelected(String)");
    fontLayout.addWidget(new QLabel(tr("Font")),2,1);
    fontLayout.addWidget(fontList,2,2);
   
    // Font Sizes
    fontSizeList = new QComboBox();       
    fontLayout.addWidget(fontSizeList,3,2);
    fontSizeList.activated.connect(this, "fontSizeSelected(String)");
    fontLayout.addWidget(new QLabel(tr("Size")),3,1);
    fontGroup.setLayout(fontLayout);
    fontLayout.setColumnStretch(2, 100);
    toggleFontOverride(Global.overrideDefaultFont());
    loadFonts();
    loadSettings();
   
View Full Code Here

Examples of com.trolltech.qt.gui.QGroupBox

    msg1.setText(tr("There was an error with notebook ") +notebook
        +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"));
View Full Code Here

Examples of com.trolltech.qt.gui.QGroupBox

  private final QLineEdit proxyPassword;
 
  public ConfigConnectionPage(QWidget parent) {
   
    // Userid settings
    QGroupBox useridGroup = new QGroupBox(tr("Connection"));
   
    syncInterval = new QComboBox(this);
    syncTimes = new SyncTimes();
    syncInterval.addItems(syncTimes.stringValues());
   
    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);
   
    QGridLayout proxyLayout = new QGridLayout();
    proxyLayout.addWidget(proxyHostLabel,1,1);
    proxyLayout.addWidget(proxyHost,1,2);
    proxyLayout.addWidget(proxyPortLabel,2,1);
    proxyLayout.addWidget(proxyPort,2,2);
    proxyLayout.addWidget(proxyUseridLabel,3,1);
    proxyLayout.addWidget(proxyUserid,3,2);
    proxyLayout.addWidget(proxyPasswordLabel,4,1);
    proxyLayout.addWidget(proxyPassword,4,2);
       
    useridGroup.setLayout(useridLayout);
    proxyGroup.setLayout(proxyLayout);
   
    // Add everything together
    QVBoxLayout mainLayout = new QVBoxLayout();
    mainLayout.addWidget(useridGroup);
    mainLayout.addWidget(proxyGroup);
View Full Code Here

Examples of com.trolltech.qt.gui.QGroupBox

  QComboBox messageCombo;
  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);
    mainLayout.addWidget(cutGroup, 0,2);
View Full Code Here

Examples of com.trolltech.qt.gui.QGroupBox

  QComboBox messageCombo;
  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);
    mainLayout.addWidget(dateSubjectGroup);
View Full Code Here

Examples of com.trolltech.qt.gui.QGroupBox

 
  public ConfigIndexPage(QWidget parent) {
//    super(parent);
             
    // Recognition weight
    QGroupBox weightGroup = new QGroupBox(tr("Recognition"));
    QLabel weightLabel = new QLabel(tr("Minimum Recognition Weight"));
    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);
    mainLayout.addWidget(weightGroup);
View Full Code Here

Examples of com.trolltech.qt.gui.QGroupBox

    String dateTimeFormat = new String(fmt);
    SimpleDateFormat simple = new SimpleDateFormat(dateTimeFormat);
    StringBuilder endDate = new StringBuilder(simple.format(uploadLimitEnd));
   
    // Show limits
    QGroupBox limitGroup = new QGroupBox(tr("Account:"));

    QGridLayout textGrid = new QGridLayout();
    textGrid.addWidget(new QLabel(tr("User Name:")),1,1);
    textGrid.addWidget(new QLabel(userName), 1,2);
    textGrid.addWidget(new QLabel(tr("Account Type:")), 2,1);
    textGrid.addWidget(premium, 2, 2);
    textGrid.addWidget(new QLabel(tr("Limit:")), 3,1);
    textGrid.addWidget(new QLabel(uploadLimit.toString() +" MB"),3,2);
    textGrid.addWidget(new QLabel(tr("Uploaded In This Period:")), 4,1);
    if (uploadAmt > 0)
      textGrid.addWidget(new QLabel(uploadAmt.toString()+unit +" ("+pct+"%)"),4,2);
    else
      textGrid.addWidget(new QLabel(tr("Less than 1MB")),4,2);
    textGrid.addWidget(new QLabel(tr("Current Cycle Ends:")), 5,1);
    textGrid.addWidget(new QLabel(endDate.toString()),5,2);
    limitGroup.setLayout(textGrid);

    grid.addWidget(limitGroup, 1, 1);

    //UserAttributes attrib = Global.getUserAttributes();
    //QGridLayout attribGrid = new QGridLayout();
View Full Code Here

Examples of com.trolltech.qt.gui.QGroupBox

  QCheckBox reloadSharedNotebooks;
 
  public ConfigDebugPage(QWidget parent) {
    super(parent);
    // Server settings
    QGroupBox serverGroup =  new QGroupBox(tr("Server Configuration"));
    QLabel serverLabel = new QLabel(tr("Server"));
    serverCombo = new QComboBox();
    serverCombo.addItem("www.evernote.com");
    serverCombo.addItem("sandbox.evernote.com");
    disableUploads = new QCheckBox();
    disableUploads.setText(tr("Disable uploads to server"));

    QHBoxLayout serverLayout = new QHBoxLayout();
    serverLayout.addWidget(serverLabel);
    serverLayout.addWidget(serverCombo);
    serverLayout.addWidget(disableUploads);
    serverGroup.setLayout(serverLayout);

    QLabel messageLevelLabel = new QLabel(tr("Message Level"));
    messageCombo = new QComboBox();
    messageCombo.addItem(tr("Low"),"Low");
    messageCombo.addItem(tr("Medium"),"Medium");
    messageCombo.addItem(tr("High"),"High");
    messageCombo.addItem(tr("Extreme"),"Extreme");
   
    QHBoxLayout messageLayout = new QHBoxLayout();
    messageLayout.addWidget(messageLevelLabel);
    messageLayout.addWidget(messageCombo);
    messageLayout.setStretch(1, 100);
   
   
    QHBoxLayout databaseCacheLayout = new QHBoxLayout();
    databaseCache = new QSpinBox();
    databaseCacheLayout.addWidget(new QLabel(tr("Database Cache (MB) - Requires restart")));
    databaseCache.setMinimum(4);
    databaseCache.setMaximum(128);
    databaseCache.setValue(new Integer(Global.databaseCache)/1024);
    databaseCacheLayout.addWidget(databaseCache);
    databaseCacheLayout.setStretch(1, 100);
   
    QVBoxLayout mainLayout = new QVBoxLayout();
    mainLayout.addLayout(messageLayout);
    mainLayout.addLayout(databaseCacheLayout);
   
    QHBoxLayout thumbnailLayout = new QHBoxLayout();
    QLabel thumbnailLabel = new QLabel(tr("Enable Thumbnails (experimental)"));
    thumbnailLayout.addWidget(thumbnailLabel);
    enableThumbnails = new QCheckBox(this);
    thumbnailLayout.addWidget(enableThumbnails);
    mainLayout.addLayout(thumbnailLayout);
   
    mainLayout.addWidget(serverGroup);
   
    QGroupBox crlfGroup = new QGroupBox(tr("Carriage Return Fix"));
    String crlfMessage = new String(tr("Note: The carriage return is a test fix.  If you " +
    "enable it, it will do some modifications to the notes you view to try and" +
    " get the carriage returns to look correct.  This is due to the way that " +
    "the way Evernote 3.1 Windows client is dealing with carriage returns.  This fix"+
    "will try and correct this problem.  This fix is not permanent unless you edit a note.  If" +
    "you edit a note, this fix is PERMANENT and will be sent to Evernote on the next sync.  I haven't" +
    "had any issues with this, but please be aware of this condition."));
    carriageReturnFix = new QCheckBox(this);
    QVBoxLayout crlfLayout = new QVBoxLayout();
    carriageReturnFix.setText(tr("Enable Carriage Return Fix"));
    crlfLayout.addWidget(carriageReturnFix);
    crlfGroup.setLayout(crlfLayout);

    QGroupBox htmlGroup = new QGroupBox(tr("Android Note Fix"));
    String entitiesMessage = new String(tr("Note: This is an experimental fix to correct Unicode" +
        " notes created on Android Evernote clients."));
    htmlEntitiesFix = new QCheckBox(this);
    QVBoxLayout htmlLayout = new QVBoxLayout();
    htmlEntitiesFix.setText(tr("Enable Android Fix"));
    htmlLayout.addWidget(htmlEntitiesFix);
    htmlGroup.setLayout(htmlLayout);
   
    reloadSharedNotebooks = new QCheckBox(tr("Shared Notebooks"));
    QGroupBox refresh = new QGroupBox(tr("Special Refresh (WARNING - This can cause unsynchronized data loss)."));
    QVBoxLayout refreshLayout = new QVBoxLayout();
    refreshLayout.addWidget(reloadSharedNotebooks);
    refresh.setLayout(refreshLayout);
   
   
    QTextBrowser msg = new QTextBrowser(this);
    QTextBrowser htmlMsg = new QTextBrowser(this);
    msg.setText(crlfMessage);
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.