extension for file dialog
@@ -254,6 +254,7 @@ class DatasetDialog(QtGui.QDialog):
self.setModal(False)
self.layout = QtGui.QGridLayout()
self.checks = []
+ self.closebuttons = []
self.colorselection = []
self.colordisp_all = []
self.intensitysettings = []
@@ -264,10 +265,12 @@ class DatasetDialog(QtGui.QDialog):
self.layout.addWidget(QtGui.QLabel("Color"), 1, 1)
self.layout.addWidget(QtGui.QLabel("#"), 1, 2)
self.layout.addWidget(QtGui.QLabel("Rel. Intensity"), 1, 3)
+ self.layout.addWidget(QtGui.QLabel("Close"), 1, 4)
self.wbackground.stateChanged.connect(self.update_viewport)
def add_entry(self, path):
c = QtGui.QCheckBox(path)
+ p = QtGui.QPushButton('x')
currentline = len(self.layout)
colordrop = QtGui.QComboBox(self)
colordrop.setEditable(True)
@@ -299,6 +302,7 @@ class DatasetDialog(QtGui.QDialog):
self.layout.addWidget(colordrop, currentline, 1)
self.layout.addWidget(colordisp, currentline, 2)
self.layout.addWidget(intensity, currentline, 3)
+ self.layout.addWidget(p, currentline, 4)
self.intensitysettings.append(intensity)
self.colorselection.append(colordrop)
@@ -329,6 +333,13 @@ class DatasetDialog(QtGui.QDialog):
)
self.colordisp_all[n].setPalette(palette)
+ self.closebuttons.append(p)
+ p.clicked.connect(self.close_file)
+
+ def close_file(self):
+ print(self.sender)
+ # TODO call close routine
+
def update_viewport(self):
if self.window.view.viewport:
self.window.view.update_scene()
@@ -6324,7 +6335,6 @@ class Window(QtGui.QMainWindow):
channel = i
base, ext = os.path.splitext(self.view.locs_paths[channel])
out_path = base + suffix +".hdf5"
-
info = self.view.infos[channel] + [
{
"Generated by": "Picasso Render",
