QADMainWindow¶
- class sofia_redux.pipeline.gui.qad.qad_main_panel.QADMainWindow[source]¶
Bases:
QMainWindow
,Ui_MainWindow
QAD Qt5 GUI main window.
All attributes and methods for this class are intended for internal use, to support the main GUI event loop and operations. This class is normally instantiated from the
sofia_redux.pipeline.gui.qad.main
function; all methods are triggered by user interaction only.The UI for this application is built in Qt Designer: see the
designer
folder for the Designer input files; the compiled Python scripts are in theui
module. Allui_*.py
files should not be edited manually, as they are automatically generated. See thedesigner/compile_ui
file for the sequence of commands required to rebuild the UI from Designer files.Build the QAD GUI window.
Methods Summary
cleanup
(*args)Close the application.
closeEvent
(event)Clean up processes, then close the application.
imexamFinish
(status)ImExam callback.
keyPressEvent
(event)Handle keyboard shortcuts.
Start up header display window and set text.
Set general display parameters from user dialog.
onFilter
()Filter displayed files.
onHome
()Set the home directory as the root.
onImExam
()Start imexam in a new thread.
onNext
()Set the last recorded directory as the root.
onOpen
()Select a new directory as the root.
Set parameters for photometry from a user dialog.
Set parameters for plots from a user dialog.
Set the enclosing directory as the root.
onRow
()Determine the selected files and schedule them for display.
Save current parameters to disk.
openFiles
(filelist)Display selected files.
Reset the TreeView model.
Set the file filter in the TreeView model.
setRoot
()Set the TreeView model root path.
setStatus
(msg)Set a status message.
Start the DS9 image viewer.
Methods Documentation
- closeEvent(event)[source]¶
Clean up processes, then close the application.
- Parameters:
- eventQEvent
Close event.
- imexamFinish(status)[source]¶
ImExam callback.
- Parameters:
- statusNone or tuple
If not None, contains an error message to log.
- onDisplayHeader()[source]¶
Start up header display window and set text.
This method uses the display settings to determine which extension(s) to retrieve headers for. If a particular extension is selected, only that header will be displayed. If all extensions are selected (either for cube or multi-frame display), all extension headers will be displayed.
- onFilter()[source]¶
Filter displayed files.
Multiple filters may be specified in a comma-separated list. The wildcard ‘*’ may be used in any filter. An empty filter box will display all files.
- onSaveSettings()[source]¶
Save current parameters to disk.
Parameters are saved to files in the hidden .qad folder in the user’s home directory. On startup, these files are read and used as the default QAD settings.