Skip to content

Commit

Permalink
Make sure that the transform option is enabled on image load
Browse files Browse the repository at this point in the history
Signed-off-by: Brianna Major <brianna.major@taloid.khq.kitware.com>
  • Loading branch information
Brianna Major committed Dec 16, 2024
1 parent 1b2723d commit 91e29e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions hexrdgui/llnl_import_tool_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ def load_images(self):

file_names = [os.path.split(f[0])[1] for f in files]
self.ui.image_plate_files_label.setText(', '.join(file_names))
self.enable_widgets(self.ui.transform_img, self.ui.finalize,
self.enable_widgets(self.ui.add_transform, self.ui.finalize,
self.ui.image_plates, self.ui.image_plate_label,
self.ui.accept_template, enabled=True)
self.enable_widgets(self.ui.data, enabled=False)
Expand Down Expand Up @@ -654,14 +654,14 @@ def complete_current_selection(self):
self.completed.append(self.current_image_selection)
self.enable_widgets(
self.ui.file_selection,
self.ui.transform_img,
self.ui.add_transform,
self.ui.complete,
enabled=True)
self.enable_widgets(
self.ui.outline_appearance,
self.ui.template_instructions,
self.ui.accept_template,
self.ui.transform_img,
self.ui.add_transform,
self.ui.accept_detector,
enabled=False)
self.ui.completed_dets_and_ips.setText(
Expand Down Expand Up @@ -699,7 +699,7 @@ def finalize(self):
def clear(self):
self.clear_boundry()
self.enable_widgets(
self.ui.transform_img, self.ui.file_selection, enabled=True)
self.ui.add_transform, self.ui.file_selection, enabled=True)
self.enable_widgets(self.ui.outline_appearance,
self.ui.template_instructions, enabled=False)

Expand Down Expand Up @@ -729,7 +729,7 @@ def reset_panel(self):
self.enable_widgets(
self.ui.image_plate_raw_image,
self.ui.config,
self.ui.transform_img,
self.ui.add_transform,
self.ui.outline_appearance,
self.ui.finalize,
self.ui.load_config,
Expand Down
4 changes: 2 additions & 2 deletions hexrdgui/resources/ui/llnl_import_tool_dialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@
<item row="2" column="0">
<widget class="QFrame" name="transform_img">
<property name="enabled">
<bool>false</bool>
<bool>true</bool>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
Expand Down Expand Up @@ -389,7 +389,7 @@
<item row="0" column="1">
<widget class="QComboBox" name="transforms">
<property name="enabled">
<bool>false</bool>
<bool>true</bool>
</property>
<item>
<property name="text">
Expand Down

0 comments on commit 91e29e3

Please sign in to comment.