Examples of filename()


Examples of com.trolltech.qt.core.QFile.fileName()

          QByteArray binData = new QByteArray(resBinary.getData().getBody());
          resBinary = null;
              out.writeBytes(binData.toByteArray());
              file.close();
              PDFPreview pdfPreview = new PDFPreview();
          goodPreview = pdfPreview.setupPreview(file.fileName(), appl,0);
          if (goodPreview) {
            QDomElement span = doc.createElement("span");
            QDomElement table = doc.createElement("table");
            span.setAttribute("pdfNavigationTable", "true");
            QDomElement tr = doc.createElement("tr");
View Full Code Here

Examples of com.trolltech.qt.core.QFile.fileName()

            QDomElement table = doc.createElement("table");
            span.setAttribute("pdfNavigationTable", "true");
            QDomElement tr = doc.createElement("tr");
            QDomElement td = doc.createElement("td");
            QDomElement left = doc.createElement("img");
            left.setAttribute("onMouseDown", "window.jambi.nextPage('" +file.fileName() +"')");
            left.setAttribute("onMouseDown", "window.jambi.nextPage('" +file.fileName() +"')");
            left.setAttribute("onMouseOver", "style.cursor='hand'");
            QDomElement right = doc.createElement("img");
            right.setAttribute("onMouseDown", "window.jambi.nextPage('" +file.fileName() +"')");
            left.setAttribute("onMouseDown", "window.jambi.previousPage('" +file.fileName() +"')");
View Full Code Here

Examples of com.trolltech.qt.core.QFile.fileName()

            span.setAttribute("pdfNavigationTable", "true");
            QDomElement tr = doc.createElement("tr");
            QDomElement td = doc.createElement("td");
            QDomElement left = doc.createElement("img");
            left.setAttribute("onMouseDown", "window.jambi.nextPage('" +file.fileName() +"')");
            left.setAttribute("onMouseDown", "window.jambi.nextPage('" +file.fileName() +"')");
            left.setAttribute("onMouseOver", "style.cursor='hand'");
            QDomElement right = doc.createElement("img");
            right.setAttribute("onMouseDown", "window.jambi.nextPage('" +file.fileName() +"')");
            left.setAttribute("onMouseDown", "window.jambi.previousPage('" +file.fileName() +"')");
            // NFC TODO: should these be file:// URLs?
View Full Code Here

Examples of com.trolltech.qt.core.QFile.fileName()

            QDomElement left = doc.createElement("img");
            left.setAttribute("onMouseDown", "window.jambi.nextPage('" +file.fileName() +"')");
            left.setAttribute("onMouseDown", "window.jambi.nextPage('" +file.fileName() +"')");
            left.setAttribute("onMouseOver", "style.cursor='hand'");
            QDomElement right = doc.createElement("img");
            right.setAttribute("onMouseDown", "window.jambi.nextPage('" +file.fileName() +"')");
            left.setAttribute("onMouseDown", "window.jambi.previousPage('" +file.fileName() +"')");
            // NFC TODO: should these be file:// URLs?
            left.setAttribute("src", Global.getFileManager().getImageDirPath("small_left.png"));
            right.setAttribute("src", Global.getFileManager().getImageDirPath("small_right.png"));
            right.setAttribute("onMouseOver", "style.cursor='hand'");
View Full Code Here

Examples of com.trolltech.qt.core.QFile.fileName()

            left.setAttribute("onMouseDown", "window.jambi.nextPage('" +file.fileName() +"')");
            left.setAttribute("onMouseDown", "window.jambi.nextPage('" +file.fileName() +"')");
            left.setAttribute("onMouseOver", "style.cursor='hand'");
            QDomElement right = doc.createElement("img");
            right.setAttribute("onMouseDown", "window.jambi.nextPage('" +file.fileName() +"')");
            left.setAttribute("onMouseDown", "window.jambi.previousPage('" +file.fileName() +"')");
            // NFC TODO: should these be file:// URLs?
            left.setAttribute("src", Global.getFileManager().getImageDirPath("small_left.png"));
            right.setAttribute("src", Global.getFileManager().getImageDirPath("small_right.png"));
            right.setAttribute("onMouseOver", "style.cursor='hand'");
           
View Full Code Here

Examples of com.trolltech.qt.core.QFile.fileName()

         tfile.close();
        
         // If we have recognition text, outline it
         addImageHilight(r.getGuid(), tfile);
        
        enmedia.setAttribute("src", QUrl.fromLocalFile(tfile.fileName()).toString());
          enmedia.setAttribute("en-tag", "en-media");
          enmedia.setNodeValue("");
          enmedia.setAttribute("guid", r.getGuid());
          enmedia.setTagName("img");
        }
View Full Code Here

Examples of com.trolltech.qt.core.QFile.fileName()

        }
//      }
      // Technically, we should do a file:// to have a proper url, but for some reason QWebPage hates
      // them and won't generate a thumbnail image properly if we use them.
//    enmedia.setAttribute("src", QUrl.fromLocalFile(tfile.fileName()).toString());
    enmedia.setAttribute("src", tfile.fileName().toString());
    enmedia.setAttribute("en-tag", "en-media");
    enmedia.setTagName("img");
    if (r != null && r.getAttributes() != null &&
        (r.getAttributes().getSourceURL() == null || !r.getAttributes().getSourceURL().toLowerCase().startsWith("http://latex.codecogs.com/gif.latex?")))
      enmedia.setAttribute("onContextMenu", "window.jambi.imageContextMenu('" +tfile.fileName()  +"');");
View Full Code Here

Examples of com.trolltech.qt.core.QFile.fileName()

    enmedia.setAttribute("src", tfile.fileName().toString());
    enmedia.setAttribute("en-tag", "en-media");
    enmedia.setTagName("img");
    if (r != null && r.getAttributes() != null &&
        (r.getAttributes().getSourceURL() == null || !r.getAttributes().getSourceURL().toLowerCase().startsWith("http://latex.codecogs.com/gif.latex?")))
      enmedia.setAttribute("onContextMenu", "window.jambi.imageContextMenu('" +tfile.fileName()  +"');");
    else {
      QDomElement newText = doc.createElement("a");
      enmedia.setAttribute("src", tfile.fileName().toString());
      enmedia.setAttribute("en-tag", "en-latex");
      newText.setAttribute("onMouseOver", "style.cursor='hand'");
View Full Code Here

Examples of com.trolltech.qt.core.QFile.fileName()

    if (r != null && r.getAttributes() != null &&
        (r.getAttributes().getSourceURL() == null || !r.getAttributes().getSourceURL().toLowerCase().startsWith("http://latex.codecogs.com/gif.latex?")))
      enmedia.setAttribute("onContextMenu", "window.jambi.imageContextMenu('" +tfile.fileName()  +"');");
    else {
      QDomElement newText = doc.createElement("a");
      enmedia.setAttribute("src", tfile.fileName().toString());
      enmedia.setAttribute("en-tag", "en-latex");
      newText.setAttribute("onMouseOver", "style.cursor='hand'");
      if (r!= null && r.getAttributes() != null && r.getAttributes().getSourceURL() != null)
        newText.setAttribute("title", r.getAttributes().getSourceURL());
      newText.setAttribute("href", "latex://"+tfile.fileName().toString());
View Full Code Here

Examples of com.trolltech.qt.core.QFile.fileName()

      enmedia.setAttribute("src", tfile.fileName().toString());
      enmedia.setAttribute("en-tag", "en-latex");
      newText.setAttribute("onMouseOver", "style.cursor='hand'");
      if (r!= null && r.getAttributes() != null && r.getAttributes().getSourceURL() != null)
        newText.setAttribute("title", r.getAttributes().getSourceURL());
      newText.setAttribute("href", "latex://"+tfile.fileName().toString());
      enmedia.parentNode().replaceChild(newText, enmedia);
      newText.appendChild(enmedia);

    }
    enmedia.setNodeValue("");
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.