vdat.gui.mainwindow – The main VDAT window

Create the main window of the VDAT GUI

class vdat.gui.mainwindow.VDATMainWindow[source]

Bases: PyQt5.QtWidgets.QMainWindow

VDAT customisation of the main window.

Custom slot
Name Signature Description
remove_files() list, list run the removal of files in a thread and change the cursor to the wait cursor
Connections between custom signals and/or slots
Signal Slot
vdat.gui.queue.Queue.global_logger logging.Logger.log()
vdat.gui.queue.Queue.progress vdat.gui.progress.VDATProgressBar.update_bar()
vdat.gui.queue.Queue.n_primaries vdat.gui.progress.VDATProgressBar.setup_bar()
vdat.gui.queue.Queue.command_done vdat.gui.progress.VDATProgressBar.reset_bar()
vdat.gui.queue.Queue.command_string vdat.gui.progress.VDATStatusBar.clear_message()
vdat.gui.queue.Queue.command_done vdat.gui.progress.VDATStatusBar.running_command()
vdat.gui.menubar.VDATMenuBar.sig_close vdat.gui.mainwidget.VDATMainWidget.close()
vdat.gui.menubar.VDATMenuBar.sig_symlink vdat.gui.mainwidget.VDATMainWidget.redoSymlink()
vdat.gui.menubar.VDATMenuBar.sig_selectAll vdat.gui.mainwidget.VDATMainWidget.selectAllIFUs()
vdat.gui.menubar.VDATMenuBar.sig_selectNone vdat.gui.mainwidget.VDATMainWidget.deselectAllIFUs()
vdat.gui.menubar.VDATMenuBar.sig_remove_files remove_files()
vdat.gui.treeview_model.ReductionQTreeView.sig_selectionChanged vdat.gui.menubar.VDATMenuBar.enable_on_selection()
vdat.gui.menubar.TreeViewMenu.sig_collapse vdat.gui.treeview_model.ReductionQTreeView.collapseAll()
vdat.gui.menubar.TreeViewMenu.sig_expand vdat.gui.treeview_model.ReductionQTreeView.expandAll()
connect_queue()[source]

connect signals from the queue

connect_menubar()[source]

Connect the signals from the menu bar

setup()[source]

Set-up the user interface for VDAT

Parameters:
queue : vdat.gui.queue.Queue instance

queue where to push the command. It must have a add_command method

closeEvent(event)[source]

Override the user closing the window. Instead wait for anything on the immediate queue to finish running and then quit.

remove_files(paths, matches)[source]

Slot to connect the vdat.gui.menubar.VDATMenuBar.sig_remove_files signal that removes the files in a thread. The mouse cursor is temporarily set to wait.

Parameters:
paths : list of strings

paths containing the files to remove

matches : list of string

file names or wildcards pattern for removal