Examples of fileName()


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

          QFile f = new QFile(Global.getFileManager().getResDirPath(resGuid + new Integer(i).toString()+".png"));
        f.open(OpenModeFlag.WriteOnly);
        f.write(data.get(i));
        f.close();
        QDomElement newImage = doc.createElement("img");
        newImage.setAttribute("src", QUrl.fromLocalFile(f.fileName()).toString());
        enmedia.appendChild(newImage);
      }
      return true;
    }
      return false;
View Full Code Here

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

    URI fileURL = fileHandle.toURI();
    String localURL = fileURL.toString();
    QUrl url = new QUrl(localURL);
    QFile file = new QFile(selectedFile);
   
    logger.log(logger.EXTREME, "Adding to fileWatcher:"+file.fileName());
    fileWatcher.addPath(file.fileName());
       
        if (!QDesktopServices.openUrl(url)) {
          logger.log(logger.LOW, "Error opening file :" +url);
        }
View Full Code Here

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

    String localURL = fileURL.toString();
    QUrl url = new QUrl(localURL);
    QFile file = new QFile(selectedFile);
   
    logger.log(logger.EXTREME, "Adding to fileWatcher:"+file.fileName());
    fileWatcher.addPath(file.fileName());
       
        if (!QDesktopServices.openUrl(url)) {
          logger.log(logger.LOW, "Error opening file :" +url);
        }
  }
View Full Code Here

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

            out.writeBytes(binData.toByteArray());
            file.close();
             
            String whichOS = System.getProperty("os.name");
        if (whichOS.contains("Windows"))
              url.setUrl("file:///"+file.fileName());
            else
              url.setUrl("file://"+file.fileName());
     //       fileWatcher.removePath(file.fileName());
        logger.log(logger.EXTREME, "Adding file watcher " +file.fileName());
        fileWatcher.addPath(file.fileName());
View Full Code Here

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

             
            String whichOS = System.getProperty("os.name");
        if (whichOS.contains("Windows"))
              url.setUrl("file:///"+file.fileName());
            else
              url.setUrl("file://"+file.fileName());
     //       fileWatcher.removePath(file.fileName());
        logger.log(logger.EXTREME, "Adding file watcher " +file.fileName());
        fileWatcher.addPath(file.fileName());
           
            // If we can't open it, then prompt the user to save it.
View Full Code Here

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

        if (whichOS.contains("Windows"))
              url.setUrl("file:///"+file.fileName());
            else
              url.setUrl("file://"+file.fileName());
     //       fileWatcher.removePath(file.fileName());
        logger.log(logger.EXTREME, "Adding file watcher " +file.fileName());
        fileWatcher.addPath(file.fileName());
           
            // If we can't open it, then prompt the user to save it.
            if (!QDesktopServices.openUrl(url)) {
          logger.log(logger.EXTREME, "We can't handle this.  Where do we put it?");
View Full Code Here

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

              url.setUrl("file:///"+file.fileName());
            else
              url.setUrl("file://"+file.fileName());
     //       fileWatcher.removePath(file.fileName());
        logger.log(logger.EXTREME, "Adding file watcher " +file.fileName());
        fileWatcher.addPath(file.fileName());
           
            // If we can't open it, then prompt the user to save it.
            if (!QDesktopServices.openUrl(url)) {
          logger.log(logger.EXTREME, "We can't handle this.  Where do we put it?");
              QFileDialog dialog = new QFileDialog();
View Full Code Here

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

    currentNote.getResources().add(newRes);

    // do the actual insert into the note
    StringBuffer buffer = new StringBuffer(100);
    buffer.append("<img src=\"");
    buffer.append(tfile.fileName());
    buffer.append("\" en-tag=en-media type=\"image/jpeg\""
        +" hash=\""+Global.byteArrayToHexString(newRes.getData().getBodyHash()) +"\""
        +" guid=\"" +newRes.getGuid() +"\""
        +" onContextMenu=\"window.jambi.imageContextMenu(&amp." +tfile.fileName() +"&amp.);\""
        + " />");
View Full Code Here

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

    buffer.append("<img src=\"");
    buffer.append(tfile.fileName());
    buffer.append("\" en-tag=en-media type=\"image/jpeg\""
        +" hash=\""+Global.byteArrayToHexString(newRes.getData().getBodyHash()) +"\""
        +" guid=\"" +newRes.getGuid() +"\""
        +" onContextMenu=\"window.jambi.imageContextMenu(&amp." +tfile.fileName() +"&amp.);\""
        + " />");
   
    browser.page().mainFrame().evaluateJavaScript(
        script_start + buffer + script_end);
View Full Code Here

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

//      if (mimeType.equalsIgnoreCase("image/jpg"))
//        mimeType = "image/jpeg";
      buffer.append("\" en-tag=\"en-media\" type=\"" + mimeType +"\""
          +" hash=\""+Global.byteArrayToHexString(newRes.getData().getBodyHash()) +"\""
          +" guid=\"" +newRes.getGuid() +"\""
          +" onContextMenu=\"window.jambi.imageContextMenu(&apos;" +tfile.fileName() +"&apos;);\""
          + " />");
      buffer.append(script_end);
      browser.page().mainFrame().evaluateJavaScript(buffer.toString());
    }
    return;
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.