A dialog used to configure geometry snap options. More...
#include <SnapOptionsDialog.h>
Public Member Functions | |
| void | setLayers (const std::list< te::map::AbstractLayerPtr > &layers) |
| void | setMapDisplay (te::qt::widgets::MapDisplay *display) |
Initializer Methods | |
Methods related to instantiation and destruction. | |
| SnapOptionsDialog (QWidget *parent=0, Qt::WindowFlags f=0) | |
| Constructs the snap options dialog which is a child of parent, with widget flags set to f. More... | |
| ~SnapOptionsDialog () | |
| Destructor. More... | |
Private Slots | |
| void | onCancelPushButtonClicked () |
| void | onOkPushButtonPressed () |
Private Member Functions | |
| void | buildOptions () |
| void | buildOptions (const te::map::AbstractLayerPtr &layer) |
Private Attributes | |
| te::qt::widgets::MapDisplay * | m_display |
| The map display associated with the tool. More... | |
| std::list< te::map::AbstractLayerPtr > | m_layers |
| The layer list. More... | |
| std::unique_ptr< Ui::SnapOptionsDialogForm > | m_ui |
| Dialog form. More... | |
A dialog used to configure geometry snap options.
Definition at line 54 of file SnapOptionsDialog.h.
| te::edit::SnapOptionsDialog::SnapOptionsDialog | ( | QWidget * | parent = 0, |
| Qt::WindowFlags | f = 0 |
||
| ) |
Constructs the snap options dialog which is a child of parent, with widget flags set to f.
|
default |
Destructor.
Referenced by Q_DECLARE_METATYPE().
|
private |
Definition at line 73 of file SnapOptionsDialog.cpp.
References m_layers.
Referenced by buildOptions(), and setLayers().
|
private |
Definition at line 79 of file SnapOptionsDialog.cpp.
References buildOptions(), te::common::Singleton< SnapManager >::getInstance(), te::edit::Snap::getTolerance(), and m_ui.
|
privateslot |
Definition at line 178 of file SnapOptionsDialog.cpp.
|
privateslot |
Definition at line 142 of file SnapOptionsDialog.cpp.
References te::map::MapDisplay::getExtent(), te::qt::widgets::MapDisplay::getHeight(), te::common::Singleton< SnapManager >::getInstance(), te::qt::widgets::MapDisplay::getWidth(), m_display, te::gm::Envelope::m_llx, te::gm::Envelope::m_lly, m_ui, te::gm::Envelope::m_urx, and te::gm::Envelope::m_ury.
| void te::edit::SnapOptionsDialog::setLayers | ( | const std::list< te::map::AbstractLayerPtr > & | layers | ) |
Definition at line 61 of file SnapOptionsDialog.cpp.
References buildOptions(), and m_layers.
Referenced by te::qt::plugins::edit::ToolBar::onSnapOptionsActivated().
| void te::edit::SnapOptionsDialog::setMapDisplay | ( | te::qt::widgets::MapDisplay * | display | ) |
Definition at line 68 of file SnapOptionsDialog.cpp.
References m_display.
Referenced by te::qt::plugins::edit::ToolBar::onSnapOptionsActivated().
|
private |
The map display associated with the tool.
Definition at line 93 of file SnapOptionsDialog.h.
Referenced by onOkPushButtonPressed(), and setMapDisplay().
|
private |
The layer list.
Definition at line 92 of file SnapOptionsDialog.h.
Referenced by buildOptions(), and setLayers().
|
private |
Dialog form.
Definition at line 91 of file SnapOptionsDialog.h.
Referenced by buildOptions(), and onOkPushButtonPressed().