Examples of QIcon


Examples of com.trolltech.qt.gui.QIcon

      List<NTreeWidgetItem> index = new ArrayList<NTreeWidgetItem>();
         
      //Clear out the tree & reload
      clear();
      String iconPath = new String("classpath:cx/fbn/nevernote/icons/");
    QIcon icon = new QIcon(iconPath+"search.png");
     
       for (int i=0; i<tempList.size(); i++) {
         search = tempList.get(i);
         NTreeWidgetItem child = new NTreeWidgetItem();
      child.setText(0, search.getName());
View Full Code Here

Examples of com.trolltech.qt.gui.QIcon

 
  public TrashTreeWidget() {
      trashCount =  0;
      setProperty("hideTree", true);
      iconPath = new String("classpath:cx/fbn/nevernote/icons/");
        trashIcon = new QIcon(iconPath+"trash.png");
        trashFullIcon = new QIcon(iconPath+"trash-full.png");
        header().hide();
        //setMaximumHeight(30);
        setMinimumHeight(30);
  }
View Full Code Here

Examples of com.trolltech.qt.gui.QIcon

      logger.log(logger.EXTREME, "Error finding saved search icon.");
    if (!query.next() || query.getBlob(0) == null)
      return null;
   
    QByteArray blob = new QByteArray(query.getBlob(0));
    QIcon icon = new QIcon(QPixmap.fromImage(QImage.fromData(blob)));
    return icon;
  }
View Full Code Here

Examples of com.trolltech.qt.gui.QIcon

      logger.log(logger.EXTREME, "Error executing SavedSearch getAllIcons select.");
    while (query.next()) {
      if (query.getBlob(1) != null) {
        String guid = query.valueString(0);
        QByteArray blob = new QByteArray(query.getBlob(1));
        QIcon icon = new QIcon(QPixmap.fromImage(QImage.fromData(blob)));
        values.put(guid, icon);
      }
    }
    return values;
  }
View Full Code Here

Examples of com.trolltech.qt.gui.QIcon

    icons = i;
  }
 
  public QIcon findDefaultIcon(String guid, String name, List<String> localBooks, boolean isPublished) {
      String iconPath = new String("classpath:cx/fbn/nevernote/icons/");
      QIcon blueIcon = new QIcon(iconPath+"notebook-blue.png");
      QIcon greenIcon = new QIcon(iconPath+"notebook-green.png");
      QIcon redIcon = new QIcon(iconPath+"notebook-red.png");
      QIcon yellowIcon = new QIcon(iconPath+"notebook-yellow.png");
      QIcon orangeIcon = new QIcon(iconPath+"notebook-orange.png");
   
    if (localBooks.contains(guid) &&
      (name.equalsIgnoreCase("Conflicting Changes") ||
       name.equalsIgnoreCase("Conflicting Changes (Local)")))
        return redIcon;
View Full Code Here

Examples of com.trolltech.qt.gui.QIcon

      book = books.get(i);
      child = new NTreeWidgetItem();
      child.setChildIndicatorPolicy(ChildIndicatorPolicy.DontShowIndicatorWhenChildless);
      child.setText(0, book.getName());
        if (icons != null && !icons.containsKey(book.getGuid())) {
          QIcon icon = findDefaultIcon(book.getGuid(), book.getName(), localBooks, book.isPublished());
          child.setIcon(0, icon);
        } else {
          child.setIcon(0, icons.get(book.getGuid()));
        }
        child.setTextAlignment(1, ra.value());
        child.setText(2, book.getGuid());
        if (book.getStack() == null || book.getStack().equalsIgnoreCase(""))
          addTopLevelItem(child);
        else {
          String stackName = book.getStack();
          QTreeWidgetItem parent;
          if (!stacks.containsKey(stackName)) {
            parent = createStackIcon(stackName, ra);
            addTopLevelItem(parent);
            stacks.put(stackName, parent);
          } else
            parent = stacks.get(stackName);
          parent.addChild(child);
         
        }
      }

      sortItems(0, SortOrder.AscendingOrder);
      if (Global.mimicEvernoteInterface) {
          String iconPath = new String("classpath:cx/fbn/nevernote/icons/");
          QIcon allIcon = db.getSystemIconTable().getIcon("All Notebooks", "ALLNOTEBOOK");
         
          if (allIcon == null)
            allIcon = new QIcon(iconPath+"notebook-green.png");
         
        child = new NTreeWidgetItem();
        child.setIcon(0, allIcon);
        child.setText(0, tr("All Notebooks"));
        child.setText(2, "");
View Full Code Here

Examples of com.trolltech.qt.gui.QIcon

  }
 

  private QTreeWidgetItem createStackIcon(String stackName, Qt.Alignment ra) {
    String iconPath = new String("classpath:cx/fbn/nevernote/icons/");
    QIcon stackIcon;
    stackIcon = db.getSystemIconTable().getIcon(stackName, "STACK");
   
    if (stackIcon == null)
      stackIcon = new QIcon(iconPath+"books2.png");
    QTreeWidgetItem parent = new QTreeWidgetItem();
    stacks.put(stackName, parent);
    parent.setText(0, stackName);
    parent.setIcon(0, stackIcon);
    parent.setText(2, "STACK");
View Full Code Here

Examples of com.trolltech.qt.gui.QIcon

    urlLabel.setVisible(false);
    urlText.setVisible(false);
    authorLabel.setVisible(false);
   
    geoBox.setVisible(false);
    geoBox.addItem(new QIcon(iconPath+"globe.png"), "");
    geoBox.addItem(new String(tr("Set")));
    geoBox.addItem(new String(tr("Clear")));
    geoBox.addItem(new String(tr("View On Map")));
    geoBox.activated.connect(this, "geoBoxChanged()");
   
View Full Code Here

Examples of com.trolltech.qt.gui.QIcon

  // New Editor Button
  private QPushButton newEditorButton(String name, String toolTip) {
    QPushButton button = new QPushButton();
//    QIcon icon = new QIcon(iconPath + name + ".gif");
    QIcon icon = new QIcon(iconPath + name + ".png");
    button.setIcon(icon);
    button.setToolTip(toolTip);
    button.clicked.connect(this, name + "Clicked()");
    return button;
  }
View Full Code Here

Examples of com.trolltech.qt.gui.QIcon

  }
  // New Editor Button
  private QToolButton newToolButton(String name, String toolTip) {
    QToolButton button = new QToolButton();
//    QIcon icon = new QIcon(iconPath + name + ".gif");
    QIcon icon = new QIcon(iconPath + name + ".png");
    button.setIcon(icon);
    button.setToolTip(toolTip);
    button.clicked.connect(this, name + "Clicked()");
    return button;
  }
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.