MetaSubsetTabControls¶
class MetaSubsetTabControls()
Bases: MetaControls
Shared base for the control panels of the two subset-filtering analysis tabs.
MetadataControls and ProteinControls build the same row of widgets below
their tab’s plot: a database-loader combobox, a multi-select filter combobox with
its edit, add and delete buttons, and a bins field that switches between integer
and float validation. The two were written by copy-paste and carried ten methods
verbatim between them; this base holds that shared half so there is one copy to
fix.
It extends MetaControls rather than replacing it - the widget factories, the
icon buttons and the placeholder guard all still come from there.
What a subclass inherits, on top of everything MetaControls gives it:
The filter combobox.
update_filtersrepopulates it, anddelete_filter_by_nameandshow_filter_info_dialog_singleturn a click on one of its rows into a signal.The three filter buttons.
create_filter_info_button,create_add_filter_buttonandcreate_filter_delete_buttonbuild the pencil, plus and trash buttons beside that combobox.The loader combobox.
update_loaderskeeps it in step with the database loaders instantiated elsewhere in the app.Signals.
edit_filter_requestedcarries(filter_name, loader_name)anddelete_filter_requestedcarries a filter name, both into the tab’s View.``placeholder_texts``, which is
("No Event Database",)for both tabs.
What a subclass owes it:
Its own
logger = logging.getLogger(__name__), asMetaControlsalready requires.A ``setupUi`` that builds
db_loader_comboBox,filter_comboBox,bins_lineEdit,int_validatorandfloat_validator. They are declared below but not created here, because each tab lays its panel out differently.
- ivar logger:
the module logger the shared methods below log under
Public Methods¶
Abstract Methods¶
These methods must be implemented by subclasses.
(none)
Concrete Methods¶
- MetaSubsetTabControls.create_add_filter_button(parent: QWidget, comboBox: MultiSelectFilterComboBox, tooltip: str) QToolButton¶
- MetaSubsetTabControls.create_filter_delete_button(parent: QWidget, comboBox: MultiSelectFilterComboBox, tooltip: str) QToolButton¶
- MetaSubsetTabControls.create_filter_info_button(parent: QWidget, comboBox: MultiSelectFilterComboBox, tooltip: str) QToolButton¶
Private Methods¶
Abstract Methods¶
These methods must be implemented by subclasses.
(none)