Package com.trolltech.qt.gui

Examples of com.trolltech.qt.gui.QTreeWidgetItem.text()


    List<QTreeWidgetItem> selections = notebookTree.selectedItems();
    if (selections.size() == 0)
      return;
   
    currentSelection = selections.get(0)
    String guid = currentSelection.text(2);
    if (guid.equalsIgnoreCase(""))
      allNotebookSelected = true;
    if (guid.equalsIgnoreCase("STACK"))
      stackSelected = true;
View Full Code Here


        dialog = new SetIcon(icon, saveLastPath);
        dialog.setUseDefaultIcon(false);
      }
    } else {
      if (stackSelected) {
        icon = conn.getSystemIconTable().getIcon(currentSelection.text(0), "STACK");
      } else {
        icon = conn.getSystemIconTable().getIcon(currentSelection.text(0), "ALLNOTEBOOK");       
      }
      if (icon == null) {
        dialog = new SetIcon(currentIcon, saveLastPath);
View Full Code Here

      }
    } else {
      if (stackSelected) {
        icon = conn.getSystemIconTable().getIcon(currentSelection.text(0), "STACK");
      } else {
        icon = conn.getSystemIconTable().getIcon(currentSelection.text(0), "ALLNOTEBOOK");       
      }
      if (icon == null) {
        dialog = new SetIcon(currentIcon, saveLastPath);
        dialog.setUseDefaultIcon(true);
      } else {
View Full Code Here

    if (dialog.okPressed()) {
        saveLastPath = dialog.getPath();

      QIcon newIcon = dialog.getIcon();
      if (stackSelected) {
        conn.getSystemIconTable().setIcon(currentSelection.text(0), "STACK", newIcon, dialog.getFileType());
        if (newIcon == null) {
          newIcon = new QIcon(iconPath+"books2.png");
        }
        currentSelection.setIcon(0,newIcon);
        return;
View Full Code Here

        }
        currentSelection.setIcon(0,newIcon);
        return;
      }
      if (allNotebookSelected) {
        conn.getSystemIconTable().setIcon(currentSelection.text(0), "ALLNOTEBOOK", newIcon, dialog.getFileType());
        if (newIcon == null) {
          newIcon = new QIcon(iconPath+"notebook-green.png");
        }
        currentSelection.setIcon(0,newIcon);
        return;
View Full Code Here

          if (listManager.getNotebookIndex().get(i).getGuid().equals(guid)) {
            isPublished = listManager.getNotebookIndex().get(i).isPublished();
            found = true;
          }
        }
        newIcon = notebookTree.findDefaultIcon(guid, currentSelection.text(1), listManager.getLocalNotebooks(), isPublished);
      }
      currentSelection.setIcon(0, newIcon);
    }
 
  }
View Full Code Here

    List<QTreeWidgetItem> selections = tagTree.selectedItems();
    QTreeWidgetItem currentSelection = null;
    if (selections.size() > 0) {
      currentSelection = selections.get(0);
      edit.setParentTag(currentSelection.text(0));
    }

    edit.exec();
 
    if (!edit.okPressed())
View Full Code Here

    Tag newTag = new Tag();
    newTag.setUpdateSequenceNum(0);
    newTag.setGuid(randint);
    newTag.setName(edit.getTag());
    if (edit.getParentTag().isChecked()) {
      newTag.setParentGuid(currentSelection.text(2));
      newTag.setParentGuidIsSet(true);
      currentSelection.setExpanded(true);
    }
    conn.getTagTable().addTag(newTag, true);
    listManager.getTagIndex().add(newTag);
View Full Code Here

    TagEdit edit = new TagEdit();
    edit.setTitle("Edit Tag");
    List<QTreeWidgetItem> selections = tagTree.selectedItems();
    QTreeWidgetItem currentSelection;
    currentSelection = selections.get(0);
    edit.setTag(currentSelection.text(0));
    edit.setTagList(listManager.getTagIndex());
    edit.exec();
 
    if (!edit.okPressed())
      return;
View Full Code Here

    edit.exec();
 
    if (!edit.okPressed())
      return;
       
    String guid = currentSelection.text(2);
    currentSelection.setText(0,edit.getTag());
   
    for (int i=0; i<listManager.getTagIndex().size(); i++) {
      if (listManager.getTagIndex().get(i).getGuid().equals(guid)) {
        listManager.getTagIndex().get(i).setName(edit.getTag());
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.