safe.gui.tools.extent_selector_dialog module

extent_selector_dialog.py

Based on original code from: Date : December 2010 Copyright : (C) 2010 by Giuseppe Sucameli Email : brush dot tyler at gmail dot com Refactored and improved in Oct 2014 by Tim Sutton for InaSAFE.

Note

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

New in version 2.2.0.

class safe.gui.tools.extent_selector_dialog.ExtentSelectorDialog(iface, parent=None, extent=None, crs=None)[source]

Bases: PyQt4.QtGui.QDialog, Ui_ExtentSelectorDialogBase

Dialog for letting user determine analysis extents.

accept()[source]

User accepted the rectangle.

bookmarks_index_changed()[source]

Update the UI when the bookmarks combobox has changed.

clear()[source]

Clear the currently set extent.

clear_extent
extent_defined
extent_selector_closed
help_toggled(flag)[source]

Show or hide the help tab in the stacked widget.

..versionadded: 3.2

Parameters:flag (bool) – Flag indicating whether help should be shown or hidden.
hide_help()[source]

Hide the usage info from the user.

New in version 3.2.

on_hazard_exposure_bookmark_toggled(enabled)[source]

Update the UI when the user toggles the bookmarks radiobutton.

Parameters:enabled (bool) – The status of the radiobutton.
on_hazard_exposure_only_toggled(enabled)[source]

Handler for hazard/exposure radiobutton toggle.

Parameters:enabled (bool) – The status of the radiobutton.
on_hazard_exposure_view_extent_toggled(enabled)[source]

Handler for hazard/exposure/view radiobutton toggle.

Parameters:enabled (bool) – The status of the radiobutton.
reject()[source]

User rejected the rectangle.

show_help()[source]

Show usage info to the user.

start_capture()[source]

Start capturing the rectangle.

stop_capture()[source]

Stop capturing the rectangle and reshow the dialog.