nqrduck.core.main_controller#

The main controller of the application.

Classes

MainController(*args,Β **kwargs)

The main controller of the application.

class nqrduck.core.main_controller.MainController(*args: Any, **kwargs: Any)#

The main controller of the application.

This class loads all modules with entry points in the nqrduck group. It also connects the nqrduck_signal to the dispatch_signals slot and creates the menu bar entries.

Parameters:

main_model (MainModel) – The main model of the application

create_notification_dialog#

Signal to create a notification dialog

Type:

pyqtSignal

create_notification_dialog#

alias of list

dispatch_signals(key: str, value: object) None#

Dispatches the signals to the according module.

This method is connected to the nqrduck_signal of the modules. It’s the main way of communication between the modules.

Parameters:
  • key (str) – The key of the signal

  • value (object) – The value of the signal

load_modules(main_view) None#

Loads all modules with entry points in the nqrduck group.

Also connects the nqrduck_signal to the dispatch_signals slot and creates the menu bar entries.

Parameters:

main_view (MainView) – The main view of the application

on_install_wizard(main_view) None#

Creates the install wizard.

The main view is used as a parent for the wizard.

Parameters:

main_view (MainView) – The main view of the application