pswamp.gui.grid_view.grid_view_container
Attributes
Classes
Dialog with options for a new grid view. |
|
Container for multiple grid views. |
Module Contents
- class pswamp.gui.grid_view.grid_view_container.NewViewOpts(show_sld=False)
Bases:
PySide6.QtWidgets.QDialogDialog with options for a new grid view.
This is shown when a new grid view is to be added to the grid view container. The user selects 2D or 3D view, and whether to use geographic (geo) or single-line diagram (sld) representation.
TODO: geo/sld is a bit confusing, since both variants show single-line diagrams. Should be changed (available variants could instead be specified in config.toml, and show up with similar names here).
- Parameters:
show_sld (bool) – Determines whether buttons for SLD view are shown.
- text_input
- done_button
- select_2d
- select_3d
- select_geo
- select_sld
- data
- canceled = True
- submitclose()
Close the dialog and create the new view.
- submitcancel()
Close the dialog and don’t create the new view.
- class pswamp.gui.grid_view.grid_view_container.GridViewContainer(config, activate_default_layers=True, *args, **kwargs)
Bases:
pswamp.gui.grid_view.tab_widget.QTabWidgetPlusContainer for multiple grid views.
This widget holds multiple grid views as tabs. New views can be defined based on user input (2D/3D, geo/sld). When double clicking the tab for a view, the settings for the view can be modified (e.g., activate/deactivate visualization layers).
TODO: Check if *args, **kwargs are used. Remove if not.
- Parameters:
config (dict) – pswamp configuration
activate_default_layers (bool) – Activate default layers or not.
- new_tab_dialog_type
- config
- activate_default_layers = True
- tabname_to_widget_lookup
- views
- openTabDialog(tab_idx)
Open grid view settings dialog.
- Parameters:
tab_idx (int) – Index of the clicked tab.
- _build_tabs()
Defines how new tabs are created.
- new_tab()
Add new tab, store which widget the tab points to.
- pswamp.gui.grid_view.grid_view_container.app