src.menubar package¶
Submodules¶
src.menubar.menubar_controller module¶
Main controller
-
class
src.menubar.menubar_controller.
menubarController
[source]¶ Bases:
menubar.menubar_listener.menubarListener
-
add_dataset
(dataset_index, dataset_name, study_available)[source]¶ Add a dataset in the dataset menu. :param dataset_index: The index of new dataset. :type dataset_index: int :param dataset_name: The name of the new dataset. :type dataset_name: str :param study_available: Enable the menu for selecting the study_creation if it is available. :type study_available: bool
-
remove_dataset
(dataset_index, study_available)[source]¶ Remove a dataset from the dataset menu. :param dataset_index: The index of dataset to remove :type dataset_index: int :param study_available: Enable the menu for selecting the study_creation if it is available. :type study_available: bool
-
src.menubar.menubar_listener module¶
Main controller
src.menubar.menubar_view module¶
Main controller
-
class
src.menubar.menubar_view.
menubarView
[source]¶ Bases:
PyQt5.QtWidgets.QMenuBar
-
add_dataset
(dataset_index, dataset_name, study_available)[source]¶ Add a dataset in the dataset menu. :param dataset_index: The index of new dataset. :type dataset_index: int :param dataset_name: The name of the new dataset. :type dataset_name: str :param study_available: Enable the menu for selecting the study if it is available. :type study_available: bool
-
change_menu_status
(new_status)[source]¶ Change the status of all the menus. Either all enabled of disabled. :param new_status: The new status of the menus :type new_status: bool
-
dataset_selected_menu_activation
(study_exist)[source]¶ Activate the menus when a dataset is selected. :param study_exist: True if the study exists, false otherwise :type study_exist: bool
-
remove_dataset
(dataset_index, study_available)[source]¶ Remove a dataset from the dataset menu. :param dataset_index: The index of dataset to remove :type dataset_index: int :param study_available: Enable the menu for selecting the study if it is available. :type study_available: bool
-