Auto-save editor
Editor for the list of automatic save times: configures a set of periodic save instants (checkbox + date-time).
Overview
AutoSaveEditor (quatm/GUI/editors/auto_save_editor.py) is a pop-up editor used to maintain
the “time list” of periodic h5 automatic saves: each row = one (checkbox + date-time), and a
checked row triggers one automatic save at the corresponding time. It is invoked by the
data-storage panels.
Components
| Component | Description |
|---|---|
AutoSaveEditor | Dialog for editing the list: loads/writes back the properties, adds, deletes and edits rows, and confirms (Accept) |
DateTimeWidget | Editing row for a single automatic save time: index + checkbox + date-time picker |
Main methods
| Method | Function |
|---|---|
load_AutoSaveEditor_props(props, prop_name) | Reads the saved date-times and check marks from the properties, padding them up to the maximum number of items |
update_datetime(idx, datetime_save) | Saves a new date-time for a row |
update_ticked(idx, ticked) | Saves the checked state of a row |
accept() | Confirms: writes the list back to the properties and closes |
Usage
from quatm.GUI.editors.auto_save_editor import AutoSaveEditor
editor = AutoSaveEditor(props=props, max_items=24, parent=parent)
editor.load_AutoSaveEditor_props(props, "H5Storage/auto_save_times")