multigp_toolkit.uimanager
=========================

.. py:module:: multigp_toolkit.uimanager

.. autoapi-nested-parse::

   User Interface Management



Classes
-------

.. autoapisummary::

   multigp_toolkit.uimanager.UImanager


Module Contents
---------------

.. py:class:: UImanager(rhapi, multigp)

   Manage the UI updates for the plugin


   .. py:attribute:: _rhapi
      :type:  RHAPI.RHAPI


   .. py:attribute:: _multigp
      :type:  multigp_toolkit.multigpapi.MultiGPAPI


   .. py:attribute:: _chapter_name
      :type:  Union[str, None]
      :value: None


      The imported chapter name



   .. py:method:: update_panels(_args = None)

      Updates the shown panels based on the current system configuration

      :param _args: Default args passed to the function, defaults to None



   .. py:method:: set_chapter_name(chapter_name)

      Sets the chapter name to use in the user interface

      :param chapter_name: The chapter name



   .. py:method:: create_race_import_menu(callback)

      Generates the race import menu

      :param callback: The callback to register the button to.



   .. py:method:: show_race_import_menu(show=True)

      Either Displays or hides the pilot import menu

      :param show: Shows the race import menu if `True`,
      hides the menu if set to `False`, defaults to True



   .. py:method:: create_pilot_import_menu(callback)

      Creates the pilots import menu.

      :param callback: The callback to register the button to.



   .. py:method:: show_pilot_import_menu(show=True)

      Either Displays or hides the pilot import menu

      :param show: Shows the pilot import menu if `True`,
      hides the menu if set to `False`, defaults to True



   .. py:method:: create_zippyq_controls(callback)

      Creates the ZippyQ controls menu

      :param callback: The callback to register the button to.



   .. py:method:: show_zippyq_controls(show=True)

      Either Displays or hides the zippyq import menu

      :param show: Shows the ZippyQ control menu if `True`,
      hides the menu if set to `False`, defaults to True



   .. py:method:: create_results_export_menu(callback)

      Create the results export menu

      :param fpvs_installed: Whether the FPVScores-Sync plugin is installed or not
      :param callback: The callback to use for uploading



   .. py:method:: show_results_export_menu(show=True)

      Either Displays or hides the results export menu

      :param show: Shows the results export menu if `True`, hides the menu if set to `False`,
      defaults to True



   .. py:method:: create_gq_export_menu(callback)

      Generates the Global Qualifier export menu,

      :param callback: The callback to register for the button press



   .. py:method:: show_gq_export_menu(show=True)

      Either Displays or hides the Global Qualifier export menu

      :param show: Shows the Global Qualifier export menu if `True`, hides the menu if
      set to `False`, defaults to True



   .. py:method:: mgp_event_selector(args = None)

      Generates or updates the selector for MultiGP event importing

      :param args: args passed as the button callback, defaults to None



   .. py:method:: results_class_selector(args = None)

      Generates or updates the selector for pushing race results

      :param args: Callback args, defaults to None



   .. py:method:: clear_multi_class_selector()

      Clears all selectors that were generated for an imported multi-class
      event.



   .. py:method:: zq_class_selector(_args = None)

      Generates or updates the selector for selecting the ZippyQ
      class from a multi-class event

      :param _args: Generic args passed to the callback, defaults to None



