vdat.gui.menubar – The menu bar¶
-
class
vdat.gui.menubar.VDATMenuBar(parent=None)[source]¶ Bases:
PyQt5.QtWidgets.QMenuBarMenu bar of the main VDAT window
Custom signals¶ Name Signature Description sig_closeEmitted when the user click on the “Quit” action sig_symlinkEmitted when the user click on the “symlink” action sig_selectAll,sig_selectNoneEmitted when the actions to select or deselect all the IFUs are clicked sig_remove_fileslist, list Emitted when one of the remove file options are clicked. The arguments are a list of directories containing the files to remove and a list of file names/wildcards to remove sig_clear_logEmitted when the user click ‘Clear the log window’ button sig_collapseemitted when the “Reduction Browser“‘s “Collapse” action is triggered sig_expandemitted when the “Reduction Browser“‘s “Expand” action is triggered Custom slot¶ Name Signature Description enableSymlink()bool whether to enable or not the symlink action enable_on_selection()str, str save the first string into a pathattribute and enabled all the actions disabled at startupclear_files_slot()If a directory is selected, get the current selected directory and the wildcards/filenames and emit the sig_remove_filessignalclear_all_files_slot()Get all the directories from the database and the wildcards/filenames and emit the sig_remove_filessignalclear_thumb_slot()If a directory is selected, get the thumbnail directory under it and emit the sig_remove_filessignal with ‘*’ as wildcardclear_all_thumb_slot()Get all the thumbnail directories and emit the sig_remove_filessignal with ‘*’ as wildcardConnections between custom signals and/or slots¶ Signal Slot triggeredsignal of theself.clear_filesactionclear_files_slot()triggeredsignal of theself.clear_all_filesactionclear_all_files_slot()triggeredsignal of theself.clear_thumbactionclear_thumb_slot()triggeredsignal of theself.clear_all_thumbactionclear_all_thumb_slot()sig_clear_logmenus_actions.LogMenu.clear_log.triggeredsig_collapsemenus_actions.TreeViewMenu.sig_collapsesig_expandmenus_actions.TreeViewMenu.sig_expandParameters: - parent :
PyQt5.QtWidgets.QWidgetinstance parent of the menu’ bar
-
sig_close¶
-
sig_symlink¶
-
sig_selectAll¶
-
sig_selectNone¶
-
sig_remove_files¶
-
sig_clear_log¶
-
sig_collapse¶
-
sig_expand¶
-
enable_on_selection(path, typ)[source]¶ Save the path and the type and enable disabled actions when the path is non-null.
Parameters: - path : string
a path, usually the directory selected in three view
- typ : string
type of the path
-
create_file()[source]¶ Create and fill the “File” menu
Returns: - view_menu :
PyQt5.QtWidgets.QMenu menu for the “View” entry
- view_menu :
-
deletions(menu)[source]¶ Create deletion actions and add them to the menu
Parameters: - menu :
PyQt5.QtWidgets.QMenu menu to which the action must be added
Returns: - menu
input menu
- menu :
-
clear_files_slot()[source]¶ Get the current directory and the wildcards/filenames and emit the
sig_remove_filessignal
-
clear_all_files_slot()[source]¶ Get all the directories and the wildcards/filenames and emit the
sig_remove_filessignal
-
clear_thumb_slot()[source]¶ Get the thumbnail dir under current directory and emit a
sig_remove_filessignal matching every file
-
clear_all_thumb_slot()[source]¶ Get all the thumbnail directories and emit the
sig_remove_filessignal matching every file
- parent :