nqrduck.module.module_view#
Contains the ModuleView class which is the base class for all module views.
Classes
|
Base class for module views. |
- class nqrduck.module.module_view.ModuleView(*args: Any, **kwargs: Any)#
Base class for module views.
- Parameters:
module (Module) – The module of the view
- Signals:
widget_changed : Emitted when a widget has been changed add_menubar_item : Emitted when a menu bar item should be added
- class FileManager(extension, parent=None, caption=None)#
This class provides methods for opening and saving files.
- Parameters:
extension (str) – The extension of the files to open or save
parent (QWidget) – The parent widget of the file dialog
caption (str) – The caption of the file dialog
- loadFileDialog() str#
Opens a file dialog for the user to select a file to open.
- Returns:
The path of the file selected by the user.
- Return type:
str
- saveFileDialog() str#
Opens a file dialog for the user to select a file to save.
- Returns:
The path of the file selected by the user.
- Return type:
str
alias of
str
- property module: nqrduck.module.module.Module#
The module of the view.
- on_settings_changed()#
Slot for when the settings have changed.
This is implemented in the derived classes in case they need to update the view when the settings have changed.
- property widget#
The widget of the view.