vdat.gui.central
– The widget at the center of VDAT¶
This describe the central VDAT widget
-
class
vdat.gui.central.
VDATCentral
(parent=None)[source]¶ Bases:
PyQt5.QtWidgets.QWidget
This widget groups together the focal plane widget and the buttons into a Qsplitter, to allow resizing and decouple them from the rest of the gui.
¶ Name Signature Description sig_ifuSelected
str, bool emitted when a user selects/deselects an IFU; the parameters are the SLOTID of the IFU and whether the IFU has been selected sig_selectAllIFUs
emitted when a user selects all IFUs sig_deselectAllIFUs
emitted when a user deselects all IFUs ¶ Name Signature Description change_target()
str, str Change the view to the path passed as first argument; the second argument is the type of files associated to the path. change_task()
str, dict Switch the change the focal plane to the view for the task
passed as first argument; the second argument contains the dictionary describing the task tabs and buttons.ifuToggled()
str, bool Mark ifuslot
, given in the first argument as selected, if the second argument is True.selectAllIFUs()
Select all the IFUs. deselectAllIFUs()
Deselect all the IFUs. runCommand()
str, list When clicking a button create the commands and submit them to the queue Parameters: - parent :
PyQt5.QtWidgets.QWidget
or derivate parent object of the tree view model
-
sig_ifuSelected
¶
-
sig_selectAllIFUs
¶
-
sig_deselectAllIFUs
¶
-
change_target
(target, typ)[source]¶ Change the view to the path
target
oftyp
. If the selected type has not tasks associated, show the overlay.This method is also a pyqt slot with signature
str, str
.Parameters: - target : string
path of the selected directory
- typ : string
type of the
target
-
change_task
(task, task_dict)[source]¶ Switch the change the focal plane to the view for the
task
This method is also a pyqt slot with signature
str, dict
.Parameters: - task : string
name of the task to view
- task_dict : dict
dictionary with the configuration for the tabs and buttons to display
-
ifuToggled
(ifuslot, val)[source]¶ Mark
ifuslot
as selected or notThis method is also a pyqt slot with signature
str, bool
.Parameters: - ifuslot : str
SLOTID of one IFU
- val : bool
True to select the IFU, False otherwise
-
runCommand
(s, l)[source]¶ When clicking a button create the commands and submit them to the queue
This method is also a pyqt slot with signature
str, list
Parameters: - s : string
name of the button clicked or cumulative name of the commands to execute
- l : list
list of command to execute
- parent :