hamyar_paygah.controllers.main_menu_controller ============================================== .. py:module:: hamyar_paygah.controllers.main_menu_controller .. autoapi-nested-parse:: Controller for main menu UI. Classes ------- .. autoapisummary:: hamyar_paygah.controllers.main_menu_controller.MainMenu Module Contents --------------- .. py:class:: MainMenu Bases: :py:obj:`PySide6.QtWidgets.QMainWindow` Main menu of the application. .. py:attribute:: ui .. py:attribute:: _mission_details_tab :type: hamyar_paygah.controllers.widgets.mission_details_tab_controller.MissionsDetailsTab .. py:method:: on_from_date_picker_userDateChanged(new_date) Ensure from date is always equal or less than the to date. :param new_date: User input date when from date picker is changed. :type new_date: PySide6.QtCore.QDate .. py:method:: on_to_date_picker_userDateChanged(new_date) Ensure to date is always equal or more that the from date. :param new_date: User input date when to date picker is changed. :type new_date: PySide6.QtCore.QDate .. py:method:: on_load_button_clicked() :async: Loads the list of missions from server and populates the table. .. py:method:: _populate_region_picker() Populates the region picker with regions dictionary. .. py:method:: _populate_and_setup_table_view(missions_list) Populates the missions list table with data and configures the columns width. :param missions_list: List of missions received from the server. :type missions_list: list[Mission] .. py:method:: _on_mission_table_context_menu(pos) .. py:method:: _open_mission_details_from_index(proxy_index) .. py:method:: _navigate_to_mission_details(mission_id, patient_id) Navigate to mission details tab and trigger search.