Examples of selectedFiles()


Examples of com.trolltech.qt.gui.QFileDialog.selectedFiles()

      saveLastPath = fd.selectedFiles().get(0);
      saveLastPath = saveLastPath.substring(0,saveLastPath.lastIndexOf("/"));

    setMessage(tr("Restoring database"));
      ImportData noteReader = new ImportData(conn, true);
      noteReader.importData(fd.selectedFiles().get(0));
     
      if (noteReader.lastError != 0) {
        setMessage(noteReader.getErrorMessage());
        logger.log(logger.LOW, "Restore problem: " +noteReader.lastError);
        waitCursor(false);
View Full Code Here

Examples of com.trolltech.qt.gui.QFileDialog.selectedFiles()

    fd.setConfirmOverwrite(true);
    fd.setWindowTitle(tr("Backup Database"));
    fd.setFilter(tr("NixNote Export (*.nnex);;All Files (*.*)"));
    fd.setAcceptMode(AcceptMode.AcceptSave);
    fd.setDirectory(System.getProperty("user.home"));
    if (fd.exec() == 0 || fd.selectedFiles().size() == 0) {
      return;
    }
   
   
      waitCursor(true);
View Full Code Here

Examples of com.trolltech.qt.gui.QFileDialog.selectedFiles()

     
    if (selectedNoteGUIDs.size() == 0 && !currentNoteGuid.equals(""))
      selectedNoteGUIDs.add(currentNoteGuid);
   
      ExportData noteWriter = new ExportData(conn, false, selectedNoteGUIDs);
      String fileName = fd.selectedFiles().get(0);

      if (!fileName.endsWith(".nnex"))
        fileName = fileName +".nnex";
      noteWriter.exportData(fileName);
      setMessage(tr("Export completed."));
View Full Code Here

Examples of com.trolltech.qt.gui.QFileDialog.selectedFiles()

    fd.setAcceptMode(AcceptMode.AcceptOpen);
    if (saveLastPath == null || saveLastPath.equals(""))
      fd.setDirectory(System.getProperty("user.home"));
    else
      fd.setDirectory(saveLastPath);
    if (fd.exec() == 0 || fd.selectedFiles().size() == 0) {
      return;
    }
   
   
      waitCursor(true);
View Full Code Here

Examples of com.trolltech.qt.gui.QFileDialog.selectedFiles()

      saveNote();
     
    if (selectedNoteGUIDs.size() == 0 && !currentNoteGuid.equals(""))
      selectedNoteGUIDs.add(currentNoteGuid);
   
      String fileName = fd.selectedFiles().get(0);
//      saveLastPath.substring(0,fileName.lastIndexOf("/"));

      if (fileName.endsWith(".nnex")) {
          ImportData noteReader = new ImportData(conn, false);
        if (selectedNotebookGUIDs != null && selectedNotebookGUIDs.size() > 0)
View Full Code Here

Examples of com.trolltech.qt.gui.QFileDialog.selectedFiles()

    fd.setAcceptMode(AcceptMode.AcceptOpen);
    if (path == null || path.equals(""))
      fd.setDirectory(Global.getFileManager().getImageDirPath(""));
    else
      fd.setDirectory(path);
    if (fd.exec() == 0 || fd.selectedFiles().size() == 0) {
      return;
    }
   
    this.path = fd.selectedFiles().get(0);
    this.path = path.substring(0,path.lastIndexOf("/"));
View Full Code Here

Examples of com.trolltech.qt.gui.QFileDialog.selectedFiles()

      fd.setDirectory(path);
    if (fd.exec() == 0 || fd.selectedFiles().size() == 0) {
      return;
    }
   
    this.path = fd.selectedFiles().get(0);
    this.path = path.substring(0,path.lastIndexOf("/"));
    ok.setEnabled(true);
    String path = fd.selectedFiles().get(0);
    iconButton.setIcon(new QIcon(path));
    iconButton.setSizePolicy(Policy.Fixed, Policy.Fixed);
View Full Code Here

Examples of com.trolltech.qt.gui.QFileDialog.selectedFiles()

    }
   
    this.path = fd.selectedFiles().get(0);
    this.path = path.substring(0,path.lastIndexOf("/"));
    ok.setEnabled(true);
    String path = fd.selectedFiles().get(0);
    iconButton.setIcon(new QIcon(path));
    iconButton.setSizePolicy(Policy.Fixed, Policy.Fixed);
  }
 
  public void setUseDefaultIcon(boolean val) {
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.