fosKeyMan
|
Class to configure (add, remove) the customized table columns. More...
Public Member Functions | |
__init__ (self, initial_columns, parent=None) | |
Initialize the column configurator dialog. | |
add_new_column (self) | |
Add a new column name from the input field to the main table. | |
confirm_and_close (self) | |
Confirm the selected columns to display and close the configurator dialog. | |
delete_current_row (self) | |
Find the row where the clicked button is located and delete it. | |
insert_column_row (self, column_name) | |
Insert a new column name as a row into the main table with a delete button. | |
setup_add_table (self) | |
Set up a small input table for adding new column names. | |
setup_main_table (self) | |
Set up the main table to display and manage the current customized columns. | |
Public Attributes | |
add_new_column | |
confirm_and_close | |
delete_current_row | |
initial_columns = initial_columns | |
reject | |
list | selected_columns = initial_columns.copy() |
ui = Ui_Column() | |
Class to configure (add, remove) the customized table columns.
Definition at line 9 of file columnconfigurator.py.
src.frontend.columnconfigurator.ColumnConfigurator.__init__ | ( | self, | |
initial_columns, | |||
parent = None ) |
Initialize the column configurator dialog.
initial_columns | (list[str]): The initial list of customized columns. |
parent | (QWidget, optional): Parent widget for this dialog. |
Definition at line 13 of file columnconfigurator.py.
src.frontend.columnconfigurator.ColumnConfigurator.add_new_column | ( | self | ) |
Add a new column name from the input field to the main table.
Definition at line 75 of file columnconfigurator.py.
src.frontend.columnconfigurator.ColumnConfigurator.confirm_and_close | ( | self | ) |
Confirm the selected columns to display and close the configurator dialog.
Definition at line 119 of file columnconfigurator.py.
src.frontend.columnconfigurator.ColumnConfigurator.delete_current_row | ( | self | ) |
Find the row where the clicked button is located and delete it.
Definition at line 106 of file columnconfigurator.py.
src.frontend.columnconfigurator.ColumnConfigurator.insert_column_row | ( | self, | |
column_name ) |
Insert a new column name as a row into the main table with a delete button.
column_name | (str): The name of the column to insert. |
Definition at line 87 of file columnconfigurator.py.
src.frontend.columnconfigurator.ColumnConfigurator.setup_add_table | ( | self | ) |
Set up a small input table for adding new column names.
Definition at line 48 of file columnconfigurator.py.
src.frontend.columnconfigurator.ColumnConfigurator.setup_main_table | ( | self | ) |
Set up the main table to display and manage the current customized columns.
Definition at line 35 of file columnconfigurator.py.
src.frontend.columnconfigurator.ColumnConfigurator.add_new_column |
Definition at line 73 of file columnconfigurator.py.
src.frontend.columnconfigurator.ColumnConfigurator.confirm_and_close |
Definition at line 33 of file columnconfigurator.py.
src.frontend.columnconfigurator.ColumnConfigurator.delete_current_row |
Definition at line 103 of file columnconfigurator.py.
src.frontend.columnconfigurator.ColumnConfigurator.initial_columns = initial_columns |
Definition at line 26 of file columnconfigurator.py.
src.frontend.columnconfigurator.ColumnConfigurator.reject |
Definition at line 32 of file columnconfigurator.py.
list src.frontend.columnconfigurator.ColumnConfigurator.selected_columns = initial_columns.copy() |
Definition at line 27 of file columnconfigurator.py.
src.frontend.columnconfigurator.ColumnConfigurator.ui = Ui_Column() |
Definition at line 23 of file columnconfigurator.py.