Package cx.fbn.nevernote.gui

Examples of cx.fbn.nevernote.gui.ExternalBrowse


   
    // Close down external windows
    Collection<ExternalBrowse> windows = externalWindows.values();
    Iterator<ExternalBrowse> iterator = windows.iterator();
    while (iterator.hasNext()) {
      ExternalBrowse browser = iterator.next();
      browser.windowClosing.disconnect();
      browser.close();
    }
   
   
    externalFileEditedSaver();
    if (Global.isConnected && Global.synchronizeOnClose()) {
View Full Code Here


        return;
      }
      Note note = conn.getNoteTable().getNote(guid, true, true, false, true, true);
      // We have a new external editor to create
      QIcon appIcon = new QIcon(iconPath+"nevernote.png");
      ExternalBrowse newBrowser = new ExternalBrowse(conn);
      newBrowser.setWindowIcon(appIcon);
      externalWindows.put(guid, newBrowser);
      showEditorButtons(newBrowser.getBrowserWindow());
      loadNoteBrowserInformation(newBrowser.getBrowserWindow(), guid, note);
      setupBrowserWindowListeners(newBrowser.getBrowserWindow(), false);
      newBrowser.windowClosing.connect(this, "externalWindowClosing(String)");
      //newBrowser.getBrowserWindow().noteSignal.titleChanged.connect(this, "externalWindowTitleEdited(String, String)");
      newBrowser.getBrowserWindow().noteSignal.tagsChanged.connect(this, "externalWindowTagsEdited(String, List)");
      newBrowser.contentsChanged.connect(this, "saveNoteExternalBrowser(String, String, Boolean, BrowserWindow)");
      newBrowser.getBrowserWindow().blockApplication.connect(this, "blockApplication(BrowserWindow)");
      newBrowser.getBrowserWindow().unblockApplication.connect(this, "unblockApplication()");

      browserWindow.noteSignal.tagsChanged.connect(newBrowser, "updateTags(String, List)");
      browserWindow.noteSignal.titleChanged.connect(newBrowser, "updateTitle(String, String)");
      browserWindow.noteSignal.notebookChanged.connect(newBrowser, "updateNotebook(String, String)");
     
      newBrowser.show();
    }
View Full Code Here

   
    // Find if the note is being edited externally.  If it is, update it.
    if (externalWindows.containsKey(currentNoteGuid)) {
      QTextCodec codec = QTextCodec.codecForName("UTF-8");
          QByteArray unicode =  codec.fromUnicode(browserWindow.getContent());
      ExternalBrowse window = externalWindows.get(currentNoteGuid);
        window.getBrowserWindow().setContent(unicode);
    }
   
    // If the note is dirty, then it is unsynchronized by default.
    if (noteDirty)
      return;
View Full Code Here

          currentNote.setGuid(newGuid);
        currentNoteGuid = newGuid;
      }
      
      if (externalWindows.containsKey(oldGuid)) {
         ExternalBrowse b = externalWindows.get(oldGuid);
         externalWindows.remove(oldGuid);
         b.getBrowserWindow().getNote().setGuid(newGuid);
         externalWindows.put(newGuid, b);
       }

      for (int i=0; i<listManager.getNoteIndex().size(); i++) {
        if (listManager.getNoteIndex().get(i).getGuid().equals(newGuid)) {
View Full Code Here

TOP

Related Classes of cx.fbn.nevernote.gui.ExternalBrowse

Copyright © 2018 www.massapicom. 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.