Examples of QProgressDialog


Examples of com.trolltech.qt.gui.QProgressDialog

   * @param fileName Name of the XDL file to load.
   */
  private void internalOpenDesign(String fileName){
    currOpenFileName = fileName;
    String shortFileName = fileName.substring(fileName.lastIndexOf('/')+1);
    QProgressDialog progress = new QProgressDialog("Loading "+currOpenFileName+"...", "", 0, 100, this);
    progress.setWindowTitle("Load Progress");
    progress.setWindowModality(WindowModality.WindowModal);
    progress.setCancelButton(null);
    progress.show();
    progress.setValue(0)
    progress.setValue(10);
    design = new Design();
    progress.setValue(20);
    design.loadXDLFile(fileName);
    progress.setValue(50);
    device = design.getDevice();
    we = design.getWireEnumerator();
    progress.setValue(70);
    progress.setValue(80);
    progress.setValue(90);
    setWindowTitle(shortFileName + " - " + title);
    progress.setValue(100);
    statusBar().showMessage(currOpenFileName + " loaded.", 2000);
    tileWindow.setDesign(design);
    netWindow.loadCurrentDesignData();
    instanceWindow.loadCurrentDesignData();
    moduleWindow.loadCurrentDesignData();
View Full Code Here

Examples of com.trolltech.qt.gui.QProgressDialog

    Object data = qmIndex.data(ItemDataRole.AccessibleDescriptionRole);
    if( data != null){
      if(currPartName.equals(data))
        return;
      currPartName = (String) data;
      QProgressDialog progress = new QProgressDialog("Loading "+currPartName.toUpperCase()+"...", "", 0, 100, this);
      progress.setWindowTitle("Load Progress");
      progress.setWindowModality(WindowModality.WindowModal);
      progress.setCancelButton(null);
      progress.show();
      progress.setValue(10);
     
      device = FileTools.loadDevice(currPartName);
      progress.setValue(100);
      scene.setDevice(device);
      statusLabel.setText("Loaded: "+currPartName.toUpperCase());

     
    }
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.