Package com.trolltech.qt.gui

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


   
    if (guid.equalsIgnoreCase("STACK")) {
      conn.getNotebookTable().renameStacks(currentSelection.text(0), edit.getNotebook());
      for (int j=0; j<listManager.getNotebookIndex().size(); j++) {
        if (listManager.getNotebookIndex().get(j).getStack() != null &&
          listManager.getNotebookIndex().get(j).getStack().equalsIgnoreCase(currentSelection.text(0)))
            listManager.getNotebookIndex().get(j).setStack(edit.getNotebook());
      }
      conn.getNotebookTable().renameStacks(currentSelection.text(0), edit.getNotebook());
      currentSelection.setText(0, edit.getNotebook());
      return;
View Full Code Here


      for (int j=0; j<listManager.getNotebookIndex().size(); j++) {
        if (listManager.getNotebookIndex().get(j).getStack() != null &&
          listManager.getNotebookIndex().get(j).getStack().equalsIgnoreCase(currentSelection.text(0)))
            listManager.getNotebookIndex().get(j).setStack(edit.getNotebook());
      }
      conn.getNotebookTable().renameStacks(currentSelection.text(0), edit.getNotebook());
      currentSelection.setText(0, edit.getNotebook());
      return;
    }
   
    updateListNotebookName(currentSelection.text(0), edit.getNotebook());
View Full Code Here

      conn.getNotebookTable().renameStacks(currentSelection.text(0), edit.getNotebook());
      currentSelection.setText(0, edit.getNotebook());
      return;
    }
   
    updateListNotebookName(currentSelection.text(0), edit.getNotebook());
    currentSelection.setText(0, edit.getNotebook());
   
    for (int i=0; i<listManager.getNotebookIndex().size(); i++) {
      if (listManager.getNotebookIndex().get(i).getGuid().equals(guid)) {
        listManager.getNotebookIndex().get(i).setName(edit.getNotebook());
View Full Code Here

  @SuppressWarnings("unused")
  private void publishNotebook() {
    List<QTreeWidgetItem> selections = notebookTree.selectedItems();
    QTreeWidgetItem currentSelection;
    currentSelection = selections.get(0);
    String guid = currentSelection.text(2);

    if (guid.equalsIgnoreCase("STACK") || guid.equalsIgnoreCase(""))
      return;
   
    Notebook n = null;
View Full Code Here

  @SuppressWarnings("unused")
  private void shareNotebook() {
    List<QTreeWidgetItem> selections = notebookTree.selectedItems();
    QTreeWidgetItem currentSelection;
    currentSelection = selections.get(0);
    String guid = currentSelection.text(2);

    if (guid.equalsIgnoreCase("STACK") || guid.equalsIgnoreCase(""))
      return;
   
    Notebook n = null;;
View Full Code Here

    // Check if any notes have this notebook
    List<QTreeWidgetItem> selections = notebookTree.selectedItems();
        for (int i=0; i<selections.size(); i++) {
          QTreeWidgetItem currentSelection;
        currentSelection = selections.get(i);
        String guid = currentSelection.text(2);
        if (!guid.equalsIgnoreCase("STACK")) {
          notebooksFound = true;
          for (int j=0; j<listManager.getNoteIndex().size(); j++) {
            String noteGuid = listManager.getNoteIndex().get(j).getNotebookGuid();
            if (noteGuid.equals(guid)) {
View Full Code Here

   
    // If confirmed, delete the notebook
        for (int i=selections.size()-1; i>=0; i--) {
          QTreeWidgetItem currentSelection;
        currentSelection = selections.get(i);
        String guid = currentSelection.text(2);
        if (currentSelection.text(2).equalsIgnoreCase("STACK")) {
             conn.getNotebookTable().renameStacks(currentSelection.text(0), "");
             listManager.renameStack(currentSelection.text(0), "");
        } else {
          conn.getNotebookTable().expungeNotebook(guid, true);
View Full Code Here

    // If confirmed, delete the notebook
        for (int i=selections.size()-1; i>=0; i--) {
          QTreeWidgetItem currentSelection;
        currentSelection = selections.get(i);
        String guid = currentSelection.text(2);
        if (currentSelection.text(2).equalsIgnoreCase("STACK")) {
             conn.getNotebookTable().renameStacks(currentSelection.text(0), "");
             listManager.renameStack(currentSelection.text(0), "");
        } else {
          conn.getNotebookTable().expungeNotebook(guid, true);
          listManager.deleteNotebook(guid);
View Full Code Here

        for (int i=selections.size()-1; i>=0; i--) {
          QTreeWidgetItem currentSelection;
        currentSelection = selections.get(i);
        String guid = currentSelection.text(2);
        if (currentSelection.text(2).equalsIgnoreCase("STACK")) {
             conn.getNotebookTable().renameStacks(currentSelection.text(0), "");
             listManager.renameStack(currentSelection.text(0), "");
        } else {
          conn.getNotebookTable().expungeNotebook(guid, true);
          listManager.deleteNotebook(guid);
        }
View Full Code Here

          QTreeWidgetItem currentSelection;
        currentSelection = selections.get(i);
        String guid = currentSelection.text(2);
        if (currentSelection.text(2).equalsIgnoreCase("STACK")) {
             conn.getNotebookTable().renameStacks(currentSelection.text(0), "");
             listManager.renameStack(currentSelection.text(0), "");
        } else {
          conn.getNotebookTable().expungeNotebook(guid, true);
          listManager.deleteNotebook(guid);
        }
        }
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.