* @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();