Examples of QLabel


Examples of com.trolltech.qt.gui.QLabel

  public DatabaseStatus() {
    setWindowTitle(tr("Current Database Status"));
    setWindowIcon(new QIcon(iconPath+"database.png"));
    QGridLayout grid = new QGridLayout();
    setLayout(grid);
    noteCount = new QLabel();
    indexNeeded = new QLabel();
    syncNeeded = new QLabel();
    notebookCount = new QLabel();
    tagCount = new QLabel();
    savedSearchCount = new QLabel();   
    resourceCount = new QLabel();
    resourceIndexNeeded = new QLabel();
    indexCount = new QLabel();
   
    grid.addWidget(new QLabel(tr("Notebooks:")), 0,0);
    grid.addWidget(notebookCount, 0,1);
   
    grid.addWidget(new QLabel(tr("Tags:")), 1,0);
    grid.addWidget(tagCount, 1,1);
   
    grid.addWidget(new QLabel(tr("Total Notes:")), 2,0);
    grid.addWidget(noteCount, 2,1);
   
    grid.addWidget(new QLabel(tr("Unsynchronized Notes:")), 3,0);
    grid.addWidget(syncNeeded, 3, 1);
   
    grid.addWidget(new QLabel(tr("Unindexed Notes:")), 4,0);
    grid.addWidget(indexNeeded, 4, 1);
       
    grid.addWidget(new QLabel(tr("Attachments/Images:")), 5,0);
    grid.addWidget(resourceCount, 5,1);

    grid.addWidget(new QLabel(tr("Unindexed Attachments/Images:")), 6,0);
    grid.addWidget(resourceIndexNeeded, 6, 1);

    grid.addWidget(new QLabel(tr("Saved Searches:")),7,0);
    grid.addWidget(savedSearchCount, 7,1);
   
    grid.addWidget(new QLabel(tr("Words In Index")), 8,0);
    grid.addWidget(indexCount, 8,1);
     
    QGridLayout buttonLayout = new QGridLayout();
    ok = new QPushButton(tr("OK"));
    ok.clicked.connect(this, "okPushed()");
View Full Code Here

Examples of com.trolltech.qt.gui.QLabel

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

Examples of com.trolltech.qt.gui.QLabel

    // Setup window layout, title, & icon
    setWindowTitle(tr("Account Information"));
    setWindowIcon(new QIcon(new QIcon(iconPath+"account.png")));
    QGridLayout grid = new QGridLayout();
    setLayout(grid);
    QLabel premium;
    if (Global.isPremium())
      premium = new QLabel(tr("Premium"));
    else
      premium = new QLabel(tr("Free"));
   
    String userName = Global.username;
   
    // calculate the upload amount
    Long uploadAmt = Global.getUploadAmount();
    Long uploadLimit = Global.getUploadLimit();
    Long uploadLimitEnd = Global.getUploadLimitEnd();
    Long pct;
    if (uploadLimit > 0)
      pct = uploadAmt*100 / uploadLimit;
    else
      pct = new Long(0);
    String unit = tr(" Bytes");
   
    if (uploadAmt > 0) {
      uploadAmt = uploadAmt/1024;
      unit = tr(" KB");
    }
    if (uploadAmt >= 1024) {
      uploadAmt = uploadAmt / 1024;
      unit = tr(" MB");
    }
    if (uploadLimit > 0)
      uploadLimit = uploadLimit/1024/1024;
 
    //showing only date need
    String fmt = Global.getDateFormat() /* + " " + Global.getTimeFormat()*/;
    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();
View Full Code Here

Examples of com.trolltech.qt.gui.QLabel

    QGridLayout msgGrid = new QGridLayout();
    QGridLayout button = new QGridLayout();
    setLayout(grid);
   
   
    hint = new QLabel("");
    password = new QLineEdit("");
    password.setEchoMode(QLineEdit.EchoMode.Password);
    password2 = new QLineEdit("");
    password2.setEchoMode(QLineEdit.EchoMode.Password);
   
   
    input.addWidget(new QLabel(tr("Password")), 1,1);
    input.addWidget(password, 1, 2);
    input.addWidget(new QLabel(tr("Verify")), 2,1);
    input.addWidget(password2, 2, 2);
   
    permanent = new QCheckBox();
    permanent.setText(tr("Permanently Decrypt"));
    input.addWidget(permanent,3,2);

    remember = new QCheckBox();
    remember.setText(tr("Remember For This Session"));
    input.addWidget(remember,4,2);
   
    input.setContentsMargins(10, 10,  -10, -10);
    grid.addLayout(input, 1,1);
   
    msgGrid.addWidget(new QLabel(tr("Hint: ")), 1,1);
    msgGrid.addWidget(hint, 1, 2);
    msgGrid.addWidget(new QLabel(""), 1,3);
    msgGrid.setColumnStretch(3, 100);
    error = new QLabel();
    msgGrid.addWidget(error, 2, 2);
    grid.addLayout(msgGrid, 2, 1);   
   
    ok = new QPushButton("OK");
    ok.clicked.connect(this, "okButtonPressed()");
View Full Code Here

Examples of com.trolltech.qt.gui.QLabel

    QGridLayout grid = new QGridLayout();
    setLayout(grid);
   
    QGridLayout textLayout = new QGridLayout();
    notebook = new QLineEdit();
    notebookLabel = new QLabel(tr("Notebook Name"));
    textLayout.addWidget(notebookLabel, 1,1);
    textLayout.addWidget(notebook, 1, 2);
    textLayout.setContentsMargins(10, 10,-10, -10);
    grid.addLayout(textLayout,1,1);
   
View Full Code Here

Examples of com.trolltech.qt.gui.QLabel

    insertHyperlink = insert;
   
   
    url = new QLineEdit("");
   
    input.addWidget(new QLabel(tr("Url")), 1,1);
    input.addWidget(url, 1, 2);
    input.setContentsMargins(10, 10,  -10, -10);
    grid.addLayout(input, 1,1);
     
    ok = new QPushButton(tr("OK"));
View Full Code Here

Examples of com.trolltech.qt.gui.QLabel

    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.QLabel

    setWindowIcon(new QIcon(iconPath+"tag.png"));
    setLayout(grid);
   
    QGridLayout textGrid = new QGridLayout();
    tag = new QLineEdit();
    textGrid.addWidget(new QLabel(tr("Tag Name")), 1,1);
    textGrid.addWidget(tag, 1, 2);
   
    textGrid.setContentsMargins(10, 10,-10, -10);
    grid.addLayout(textGrid,1,1);
View Full Code Here

Examples of com.trolltech.qt.gui.QLabel

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

Examples of com.trolltech.qt.gui.QLabel

    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);
       
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.