info_file.py
File information display dialogs and menus for viewing method and run information.
Classes
InfoPalette
Colour tokens used by the file-info dialog and its sub-widgets.
Divider (extends QFrame)
| Method |
Signature |
Description |
__init__ |
(self, parent=None) |
|
Compact section title with accent bar on the left.
| Method |
Signature |
Description |
__init__ |
(self, title, parent=None) |
|
Single label/value row with optional unit.
| Method |
Signature |
Description |
__init__ |
(self, label, value, unit='', alternate=False, parent=None) |
|
Label/value row where value is coloured by enabled/disabled state.
| Method |
Signature |
Description |
__init__ |
(self, label, enabled, alternate=False, parent=None) |
|
White card with border and title, containing stacked rows.
| Method |
Signature |
Description |
__init__ |
(self, title, parent=None) |
|
add_row |
(self, label, value, unit='') |
|
add_status_row |
(self, label, enabled) |
|
add_divider |
(self, sub_title) |
Add a visual sub-group divider with a label. |
Dark top bar showing key stats at a glance.
| Method |
Signature |
Description |
__init__ |
(self, stats, parent=None) |
|
FileInfoDialog (extends QDialog)
Dialog for displaying detailed file information.
| Method |
Signature |
Description |
__init__ |
(self, sample_name, run_info, method_info, time_array, masses, parent= |
|
_rebuild |
(self, *_) |
Re-create the entire UI so every sub-widget picks up the new |
setup_ui |
(self) |
|
_insert_card |
(self, card) |
Insert card before the trailing stretch. |
_build_content |
(self) |
|
_build_method_card |
(self, segment) |
|
_build_run_info_card |
(self) |
|
| Method |
Signature |
Description |
create_menu |
(sample_name, run_info, method_info, time_array, masses, parent=None) |
|
show_file_info |
(sample_name, run_info, method_info, time_array, masses, parent=None) |
|
Functions
| Function |
Signature |
Description |
info_palette |
() → InfoPalette |
Build the card-UI palette from the current global theme. |