def METHOD_NAME(self, filename):
    self.filename = filename
    fp = open(filename, "r")
    # First, figure out file size
    fp.readline()
    number_lines = 0
    while 1:
        line = fp.readline()
        if not line: break
        number_lines += 1
    fp.seek(0)
    # Create progress bar
    progress_bar = QtGui.QProgressDialog("Load Files...",
                                         "Abort Load",
                                         0,
                                         number_lines,
                                         self)
    progress_bar.setWindowModality(QtCore.Qt.WindowModal)
    self.directory = os.path.dirname(filename)
    file_number = 1
    while 1:
        if progress_bar.wasCanceled(): break
        image_name = fp.readline().rstrip()
        if not image_name: break
        image_dict = pickle.load(open(self.directory + "/" + image_name))
        a_image_item = viewImageItem(0, 0, 0, 0, "na", 1.0, 0.0)
        a_image_item.setState(image_dict)
        self.image_items.append(a_image_item)
        self.scene.addItem(a_image_item)
        self.centerOn(a_image_item.x_pix, a_image_item.y_pix)
        self.updateSceneRect(a_image_item.x_pix, a_image_item.y_pix)
        progress_bar.setValue(file_number)
        file_number += 1
    progress_bar.close()
    fp.close()