A widget used to search layers over list of layers. More...
#include <LayerSearchWidget.h>
Public Member Functions | |
| void | enableMultiSelection (bool flag) |
| void | filterAll () |
| void | filterOnlyByGeom () |
| void | filterOnlyByRaster () |
| Ui::LayerSearchWidgetForm * | getForm () const |
| std::list< te::map::AbstractLayerPtr > | getSelecteds () const |
| LayerSearchWidget (QWidget *parent=0, Qt::WindowFlags f=0) | |
| void | setList (std::list< te::map::AbstractLayerPtr > &layerList) |
| void | setMaxRasterBands (std::size_t value) |
| void | setMinRasterBands (std::size_t value) |
| ~LayerSearchWidget () | |
Protected Member Functions | |
| void | fillTreeView (std::list< te::map::AbstractLayerPtr > &layerList) |
| void | filter (const QList< QTreeWidgetItem * > &items) |
Private Slots | |
| void | onFilter () |
Private Attributes | |
| std::list< te::map::AbstractLayerPtr > | m_layerList |
| bool | m_maxRasterBandsDefined |
| std::size_t | m_maxRasterBandsValue |
| bool | m_minRasterBandsDefined |
| std::size_t | m_minRasterBandsValue |
| std::unique_ptr< Ui::LayerSearchWidgetForm > | m_ui |
A widget used to search layers over list of layers.
Definition at line 58 of file LayerSearchWidget.h.
| te::qt::widgets::LayerSearchWidget::LayerSearchWidget | ( | QWidget * | parent = 0, |
| Qt::WindowFlags | f = 0 |
||
| ) |
|
default |
Referenced by Q_DECLARE_METATYPE().
| void te::qt::widgets::LayerSearchWidget::enableMultiSelection | ( | bool | flag | ) |
Definition at line 58 of file LayerSearchWidget.cpp.
References m_ui.
|
protected |
Definition at line 146 of file LayerSearchWidget.cpp.
References te::map::AbstractLayer::getTitle(), and m_ui.
Referenced by setList().
|
protected |
| void te::qt::widgets::LayerSearchWidget::filterAll | ( | ) |
Definition at line 119 of file LayerSearchWidget.cpp.
References m_ui, and onFilter().
| void te::qt::widgets::LayerSearchWidget::filterOnlyByGeom | ( | ) |
Definition at line 110 of file LayerSearchWidget.cpp.
References m_ui, and onFilter().
| void te::qt::widgets::LayerSearchWidget::filterOnlyByRaster | ( | ) |
Definition at line 101 of file LayerSearchWidget.cpp.
References m_ui, and onFilter().
Referenced by te::qt::widgets::CloudDetectionDialog::onSearchCloudLayerToolButtonClicked(), te::qt::widgets::InputLayerWidget::onSearchLayerToolButtonClicked(), te::qt::widgets::ArithmeticOpDialogForm::onSearchLayerToolButtonPressed(), and te::qt::widgets::CloudDetectionDialog::onSearchShadowLayerToolButtonClicked().
| Ui::LayerSearchWidgetForm * te::qt::widgets::LayerSearchWidget::getForm | ( | ) | const |
Definition at line 53 of file LayerSearchWidget.cpp.
References m_ui.
| std::list< te::map::AbstractLayerPtr > te::qt::widgets::LayerSearchWidget::getSelecteds | ( | ) | const |
Definition at line 70 of file LayerSearchWidget.cpp.
References m_ui.
Referenced by te::qt::widgets::CloudDetectionDialog::onSearchCloudLayerToolButtonClicked(), te::qt::widgets::InputLayerWidget::onSearchLayerToolButtonClicked(), te::qt::widgets::ArithmeticOpDialogForm::onSearchLayerToolButtonPressed(), and te::qt::widgets::CloudDetectionDialog::onSearchShadowLayerToolButtonClicked().
|
privateslot |
Definition at line 200 of file LayerSearchWidget.cpp.
References ds, filter(), te::da::GetFirstPropertyPos(), m_maxRasterBandsDefined, m_maxRasterBandsValue, m_minRasterBandsDefined, m_minRasterBandsValue, m_ui, and te::dt::RASTER_TYPE.
Referenced by filterAll(), filterOnlyByGeom(), filterOnlyByRaster(), setMaxRasterBands(), and setMinRasterBands().
| void te::qt::widgets::LayerSearchWidget::setList | ( | std::list< te::map::AbstractLayerPtr > & | layerList | ) |
Definition at line 94 of file LayerSearchWidget.cpp.
References fillTreeView(), and m_layerList.
Referenced by te::qt::widgets::CloudDetectionDialog::onSearchCloudLayerToolButtonClicked(), te::qt::widgets::InputLayerWidget::onSearchLayerToolButtonClicked(), te::qt::widgets::ArithmeticOpDialogForm::onSearchLayerToolButtonPressed(), and te::qt::widgets::CloudDetectionDialog::onSearchShadowLayerToolButtonClicked().
| void te::qt::widgets::LayerSearchWidget::setMaxRasterBands | ( | std::size_t | value | ) |
Definition at line 137 of file LayerSearchWidget.cpp.
References m_maxRasterBandsDefined, m_maxRasterBandsValue, and onFilter().
| void te::qt::widgets::LayerSearchWidget::setMinRasterBands | ( | std::size_t | value | ) |
Definition at line 128 of file LayerSearchWidget.cpp.
References m_minRasterBandsDefined, m_minRasterBandsValue, and onFilter().
|
private |
Definition at line 102 of file LayerSearchWidget.h.
Referenced by setList().
|
private |
Definition at line 108 of file LayerSearchWidget.h.
Referenced by onFilter(), and setMaxRasterBands().
|
private |
Definition at line 107 of file LayerSearchWidget.h.
Referenced by onFilter(), and setMaxRasterBands().
|
private |
Definition at line 105 of file LayerSearchWidget.h.
Referenced by onFilter(), and setMinRasterBands().
|
private |
Definition at line 104 of file LayerSearchWidget.h.
Referenced by onFilter(), and setMinRasterBands().
|
private |
Definition at line 100 of file LayerSearchWidget.h.
Referenced by enableMultiSelection(), fillTreeView(), filter(), filterAll(), filterOnlyByGeom(), filterOnlyByRaster(), getForm(), getSelecteds(), and onFilter().