svir.dialogs package

Submodules

svir.dialogs.attribute_selection_dialog module

class svir.dialogs.attribute_selection_dialog.AttributeSelectionDialog(loss_layer, zonal_layer)[source]

Bases: PyQt4.QtGui.QDialog, Ui_AttributeSelctionDialog

Modal dialog giving to the user the possibility to select what are the attributes, in the loss layer and in the region layer, that contain the loss data and the region id

accept()[source]
on_zone_id_attr_name_zone_cbox_currentIndexChanged(new_index)[source]
set_ok_button()[source]

svir.dialogs.download_layer_dialog module

class svir.dialogs.download_layer_dialog.DownloadLayerDialog(iface, downloader)[source]

Bases: PyQt4.QtGui.QDialog, Ui_DownloadLayerDialog

Modal dialog giving to the user the possibility to select and download one of the projects available on the OQ-Platform

accept()[source]
get_capabilities()[source]
on_layers_lst_itemDoubleClicked(item)[source]
on_layers_lst_itemSelectionChanged()[source]
parse_get_capabilities(xml)[source]
set_ok_button()[source]

svir.dialogs.projects_manager_dialog module

class svir.dialogs.projects_manager_dialog.ProjectsManagerDialog(iface)[source]

Bases: PyQt4.QtGui.QDialog, Ui_ProjectsManagerDialog

Modal dialog allowing to select (and possibly edit) one of the project definitions available for the active layer, or for creating a new project definition

add_proj_def(title, proj_def=None)[source]
display_proj_def_raw()[source]
get_selected_proj_def()[source]
get_suppl_info()[source]
on_add_proj_def_btn_clicked()[source]
on_clone_btn_clicked()[source]
on_proj_def_cbx_currentIndexChanged()[source]
on_proj_def_descr_textChanged()[source]
on_proj_def_raw_textChanged()[source]
on_proj_def_title_textEdited()[source]
populate_proj_def_cbx()[source]
update_form()[source]
update_proj_def_descr()[source]
update_proj_def_title()[source]
update_title_in_combo()[source]

svir.dialogs.select_input_layers_dialog module

svir.dialogs.select_sv_variables_dialog module

class svir.dialogs.select_sv_variables_dialog.SelectSvVariablesDialog(downloader)[source]

Bases: PyQt4.QtGui.QDialog, Ui_SelectSvVariablesDialog

Modal dialog giving to the user the possibility to select social vulnerability variables to import from the oq-platform

fill_countries()[source]
fill_names()[source]
fill_subthemes(theme)[source]
fill_themes()[source]
on_filter_btn_clicked()[source]
on_theme_cbx_currentIndexChanged()[source]
set_ok_button()[source]
update_indicator_info(item)[source]

svir.dialogs.settings_dialog module

class svir.dialogs.settings_dialog.SettingsDialog(iface, irmt_main=None, parent=None)[source]

Bases: PyQt4.QtGui.QDialog, Ui_SettingsDialog

Dialog used to specify the connection settings used to interact with the OpenQuake Platform or the OpenQuake Engine, and to toggle the developer mode option.

accept()[source]

Method invoked when OK button is clicked.

restoreState()[source]

Reinstate the options based on the user’s stored session info.

saveState()[source]

Store the options into the user’s stored session info.

svir.dialogs.transformation_dialog module

class svir.dialogs.transformation_dialog.TransformationDialog(iface)[source]

Bases: PyQt4.QtGui.QDialog, Ui_TransformationDialog

Modal dialog giving to the user the possibility to transform one or multiple attributes in the active layer, using one of the available algorithms and variants.

fill_fields_multiselect()[source]
on_algorithm_cbx_currentIndexChanged()[source]
on_calc_btn_clicked()[source]
on_new_field_name_txt_editingFinished()[source]
on_new_field_name_txt_textEdited()[source]
on_overwrite_ckb_stateChanged()[source]
on_variant_cbx_currentIndexChanged()[source]
reload_variant_cbx()[source]
set_new_field_editable()[source]
set_ok_button()[source]
update_default_fieldname()[source]

svir.dialogs.upload_dialog module

class svir.dialogs.upload_dialog.UploadDialog(iface, file_stem)[source]

Bases: PyQt4.QtGui.QDialog, Ui_UploadMetadataDialog

Modal dialog allowing to upload the data to the OQ-Platform

load_finished()[source]
showEvent(event)[source]
upload()[source]
upload_done(result)[source]
upload_successful

svir.dialogs.upload_settings_dialog module

class svir.dialogs.upload_settings_dialog.UploadSettingsDialog(iface, suppl_info, file_stem)[source]

Bases: PyQt4.QtGui.QDialog, Ui_UploadSettingsDialog

Dialog allowing the user to set some of the fields that will be written into the metadata xml, including the selection of one of the available licenses. The user must click on a confirmation checkbox, before the uploading of the layer can be started.

accept()[source]
on_confirm_chk_stateChanged()[source]
on_license_info_btn_clicked()[source]
on_update_radio_toggled(on)[source]
on_zone_label_field_cbx_currentIndexChanged()[source]
set_labels()[source]
set_license()[source]
set_ok_button()[source]
set_zone_label_field()[source]

svir.dialogs.weight_data_dialog module

class svir.dialogs.weight_data_dialog.WeightDataDialog(iface, project_definition)[source]

Bases: PyQt4.QtGui.QDialog, Ui_WeightDataDialog

Modal dialog allowing to select weights in a d3.js visualization

ACTIVE_LAYER_NUMERIC_FIELDS
DEFAULT_OPERATOR
DEV_MODE
NODE_TYPES
OPERATORS
clean_json(data)[source]
closeEvent(event)[source]
handle_json_updated(data)[source]
json_cleaned
json_str
json_updated
on_print_btn_clicked()[source]
on_style_by_field_cbx_currentIndexChanged()[source]
populate_style_by_field_cbx()[source]
print_self_for_debug()[source]
reject()[source]
setup_js()[source]
show_tree()[source]
update_active_layer_numeric_fields()[source]
update_project_definition(project_definition)[source]

Module contents