hamyar_paygah.controllers.main_menu_controller¶
Controller for main menu UI.
Classes¶
Main menu of the application. |
Module Contents¶
- class hamyar_paygah.controllers.main_menu_controller.MainMenu¶
Bases:
PySide6.QtWidgets.QMainWindowMain menu of the application.
- ui¶
- _mission_details_tab: hamyar_paygah.controllers.widgets.mission_details_tab_controller.MissionsDetailsTab¶
- on_from_date_picker_userDateChanged(new_date)¶
Ensure from date is always equal or less than the to date.
- Parameters:
new_date (PySide6.QtCore.QDate) – User input date when from date picker is changed.
- Return type:
None
- on_to_date_picker_userDateChanged(new_date)¶
Ensure to date is always equal or more that the from date.
- Parameters:
new_date (PySide6.QtCore.QDate) – User input date when to date picker is changed.
- Return type:
None
- async on_load_button_clicked()¶
Loads the list of missions from server and populates the table.
- Return type:
None
- _populate_region_picker()¶
Populates the region picker with regions dictionary.
- Return type:
None
- _populate_and_setup_table_view(missions_list)¶
Populates the missions list table with data and configures the columns width.
- _on_mission_table_context_menu(pos)¶
- Parameters:
pos (PySide6.QtCore.QPoint)
- Return type:
None
- _open_mission_details_from_index(proxy_index)¶
- Parameters:
proxy_index (PySide6.QtCore.QModelIndex)
- Return type:
None