fosKeyMan
|
Class to handle operations on the table, such as adding or deleting rows, filtering rows based on different criteria, and handling checkbox selection (check all/uncheck all). More...
Public Member Functions | |
__init__ (self, table_widget) | |
Initialize the TableOperator with the table widget. | |
add_new_row (self) | |
Add a new row to the table widget. | |
check_all_boxes (self) | |
Check or uncheck all checkboxes in the first column of the table. | |
delete_row (self) | |
Delete the currently selected row from the table widget. | |
filter_table (self, filter_inputs) | |
Filter the table rows based on user input from various filter fields. | |
reset_filter (self, filter_inputs) | |
Reset the filters by clearing all input fields and showing all rows in the table. | |
Public Attributes | |
table_widget = table_widget | |
Class to handle operations on the table, such as adding or deleting rows, filtering rows based on different criteria, and handling checkbox selection (check all/uncheck all).
This class only make UI-level changes.
Definition at line 10 of file tableoperator.py.
src.frontend.tableoperator.TableOperator.__init__ | ( | self, | |
table_widget ) |
Initialize the TableOperator with the table widget.
table_widget | (QTableWidget): The table widget to operate on. |
Definition at line 17 of file tableoperator.py.
src.frontend.tableoperator.TableOperator.add_new_row | ( | self | ) |
Add a new row to the table widget.
Definition at line 25 of file tableoperator.py.
src.frontend.tableoperator.TableOperator.check_all_boxes | ( | self | ) |
Check or uncheck all checkboxes in the first column of the table.
If all boxes are checked, it unchecks them, otherwise, it checks all of them.
Definition at line 42 of file tableoperator.py.
src.frontend.tableoperator.TableOperator.delete_row | ( | self | ) |
Delete the currently selected row from the table widget.
Definition at line 32 of file tableoperator.py.
src.frontend.tableoperator.TableOperator.filter_table | ( | self, | |
filter_inputs ) |
Filter the table rows based on user input from various filter fields.
Rows that do not match the criteria will be hidden.
filter_inputs | (dict[str, QWidget]): A dictionary mapping filter label text (also the table column header) to the corresponding input widget (QLineEdit or QComboBox). |
Definition at line 65 of file tableoperator.py.
src.frontend.tableoperator.TableOperator.reset_filter | ( | self, | |
filter_inputs ) |
Reset the filters by clearing all input fields and showing all rows in the table.
filter_inputs | (dict[str, QWidget]): A dictionary mapping filter label text (also the table column header) to the corresponding input widget (QLineEdit or QComboBox). |
Definition at line 143 of file tableoperator.py.
src.frontend.tableoperator.TableOperator.table_widget = table_widget |
Definition at line 23 of file tableoperator.py.