A dialog for selecting a data source. More...
#include <DataSourceSelectorWidget.h>
Public Types | |
enum | { BUTTON_ADD_DATASOURCE, BUTTON_REMOVE_DATASOURCE, BUTTON_EDIT_DATASOURCE, BUTTON_CREATE_DATASOURCE } |
Public Member Functions | |
DataSourceSelectorWidget (QWidget *parent=0, Qt::WindowFlags f=0) | |
Ui::DataSourceSelectorWidgetForm * | getForm () const |
std::list < te::da::DataSourceInfoPtr > | getSelecteds () const |
void | setButtonEnabled (int button, bool enabled) |
void | setButtonsEnabled (bool enabled) |
void | setDataSource (const QString &dsType) |
void | setSelectionMode (QAbstractItemView::SelectionMode mode) |
void | showDataSourceWithDatabaseSupport (bool visible) |
void | showDataSourceWithFileSupport (bool visible) |
void | showDataSourceWithRasterSupport (bool visible) |
void | showDataSourceWithVectorialSupport (bool visible) |
~DataSourceSelectorWidget () | |
Protected Slots | |
void | addDataSourcePushButtonPressed () |
void | createDataSourcePushButtonPressed () |
void | dataSourceDoubleClicked (QListWidgetItem *item) |
void | dataSourcePressed (QListWidgetItem *item) |
void | dataSourceTypePressed (QListWidgetItem *item) |
void | editDataSourcePushButtonPressed () |
void | removeDataSourcePushButtonPressed () |
Private Attributes | |
bool | m_addButtonEnabled |
bool | m_createButtonEnabled |
bool | m_editButtonEnabled |
bool | m_removeButtonEnabled |
std::auto_ptr < Ui::DataSourceSelectorWidgetForm > | m_ui |
A dialog for selecting a data source.
Definition at line 58 of file DataSourceSelectorWidget.h.
anonymous enum |
Enumerator | |
---|---|
BUTTON_ADD_DATASOURCE | |
BUTTON_REMOVE_DATASOURCE | |
BUTTON_EDIT_DATASOURCE | |
BUTTON_CREATE_DATASOURCE |
Definition at line 64 of file DataSourceSelectorWidget.h.
te::qt::widgets::DataSourceSelectorWidget::DataSourceSelectorWidget | ( | QWidget * | parent = 0 , |
Qt::WindowFlags | f = 0 |
||
) |
Definition at line 40 of file DataSourceSelectorWidget.cpp.
References addDataSourcePushButtonPressed(), createDataSourcePushButtonPressed(), dataSourceDoubleClicked(), dataSourcePressed(), dataSourceTypePressed(), editDataSourcePushButtonPressed(), te::common::Singleton< DataSourceTypeManager >::getInstance(), te::qt::widgets::DataSourceType::ICON_DATASOURCE_SMALL, m_ui, and removeDataSourcePushButtonPressed().
te::qt::widgets::DataSourceSelectorWidget::~DataSourceSelectorWidget | ( | ) |
Definition at line 101 of file DataSourceSelectorWidget.cpp.
|
protectedslot |
Definition at line 269 of file DataSourceSelectorWidget.cpp.
References te::qt::widgets::AbstractDataSourceConnector::connect(), te::qt::widgets::DataSourceTypeManager::get(), te::common::Singleton< DataSourceTypeManager >::getInstance(), te::qt::widgets::DataSourceType::getWidget(), TE_TR, and te::qt::widgets::DataSourceType::WIDGET_DATASOURCE_CONNECTOR.
Referenced by DataSourceSelectorWidget().
|
protectedslot |
Definition at line 486 of file DataSourceSelectorWidget.cpp.
References te::qt::widgets::AbstractDataSourceConnector::create(), te::qt::widgets::DataSourceTypeManager::get(), te::common::Singleton< DataSourceTypeManager >::getInstance(), te::qt::widgets::DataSourceType::getWidget(), TE_TR, and te::qt::widgets::DataSourceType::WIDGET_DATASOURCE_CONNECTOR.
Referenced by DataSourceSelectorWidget().
|
protectedslot |
Definition at line 645 of file DataSourceSelectorWidget.cpp.
Referenced by DataSourceSelectorWidget().
|
protectedslot |
Definition at line 611 of file DataSourceSelectorWidget.cpp.
References te::common::Singleton< DataSourceInfoManager >::getInstance().
Referenced by DataSourceSelectorWidget().
|
protectedslot |
Definition at line 547 of file DataSourceSelectorWidget.cpp.
References te::qt::widgets::DataSourceTypeManager::get(), te::qt::widgets::DataSourceType::getDescription(), te::common::Singleton< DataSourceInfoManager >::getInstance(), and te::common::Singleton< DataSourceTypeManager >::getInstance().
Referenced by DataSourceSelectorWidget().
|
protectedslot |
Definition at line 413 of file DataSourceSelectorWidget.cpp.
References te::qt::widgets::DataSourceTypeManager::get(), te::common::Singleton< DataSourceInfoManager >::getInstance(), te::common::Singleton< DataSourceTypeManager >::getInstance(), te::qt::widgets::DataSourceType::getWidget(), TE_TR, te::qt::widgets::AbstractDataSourceConnector::update(), and te::qt::widgets::DataSourceType::WIDGET_DATASOURCE_CONNECTOR.
Referenced by DataSourceSelectorWidget().
Ui::DataSourceSelectorWidgetForm * te::qt::widgets::DataSourceSelectorWidget::getForm | ( | ) | const |
Definition at line 105 of file DataSourceSelectorWidget.cpp.
std::list< te::da::DataSourceInfoPtr > te::qt::widgets::DataSourceSelectorWidget::getSelecteds | ( | ) | const |
Definition at line 148 of file DataSourceSelectorWidget.cpp.
References te::common::Singleton< DataSourceInfoManager >::getInstance(), and TE_TR.
|
protectedslot |
Definition at line 330 of file DataSourceSelectorWidget.cpp.
References te::qt::widgets::DataSourceTypeManager::get(), te::common::Singleton< DataSourceTypeManager >::getInstance(), te::qt::widgets::DataSourceType::getWidget(), te::qt::widgets::AbstractDataSourceConnector::remove(), TE_TR, and te::qt::widgets::DataSourceType::WIDGET_DATASOURCE_CONNECTOR.
Referenced by DataSourceSelectorWidget().
void te::qt::widgets::DataSourceSelectorWidget::setButtonEnabled | ( | int | button, |
bool | enabled | ||
) |
Definition at line 123 of file DataSourceSelectorWidget.cpp.
void te::qt::widgets::DataSourceSelectorWidget::setButtonsEnabled | ( | bool | enabled | ) |
Definition at line 115 of file DataSourceSelectorWidget.cpp.
void te::qt::widgets::DataSourceSelectorWidget::setDataSource | ( | const QString & | dsType | ) |
Definition at line 176 of file DataSourceSelectorWidget.cpp.
void te::qt::widgets::DataSourceSelectorWidget::setSelectionMode | ( | QAbstractItemView::SelectionMode | mode | ) |
Definition at line 110 of file DataSourceSelectorWidget.cpp.
void te::qt::widgets::DataSourceSelectorWidget::showDataSourceWithDatabaseSupport | ( | bool | visible | ) |
Definition at line 201 of file DataSourceSelectorWidget.cpp.
References te::qt::widgets::DataSourceTypeManager::get(), te::common::Singleton< DataSourceTypeManager >::getInstance(), and te::qt::widgets::DataSourceType::hasDatabaseSupport().
void te::qt::widgets::DataSourceSelectorWidget::showDataSourceWithFileSupport | ( | bool | visible | ) |
Definition at line 218 of file DataSourceSelectorWidget.cpp.
References te::qt::widgets::DataSourceTypeManager::get(), te::common::Singleton< DataSourceTypeManager >::getInstance(), and te::qt::widgets::DataSourceType::hasFileSupport().
void te::qt::widgets::DataSourceSelectorWidget::showDataSourceWithRasterSupport | ( | bool | visible | ) |
Definition at line 235 of file DataSourceSelectorWidget.cpp.
References te::qt::widgets::DataSourceTypeManager::get(), te::common::Singleton< DataSourceTypeManager >::getInstance(), and te::qt::widgets::DataSourceType::hasRasterSupport().
void te::qt::widgets::DataSourceSelectorWidget::showDataSourceWithVectorialSupport | ( | bool | visible | ) |
Definition at line 252 of file DataSourceSelectorWidget.cpp.
References te::qt::widgets::DataSourceTypeManager::get(), te::common::Singleton< DataSourceTypeManager >::getInstance(), and te::qt::widgets::DataSourceType::hasVectorialSupport().
|
private |
Definition at line 129 of file DataSourceSelectorWidget.h.
|
private |
Definition at line 132 of file DataSourceSelectorWidget.h.
|
private |
Definition at line 131 of file DataSourceSelectorWidget.h.
|
private |
Definition at line 130 of file DataSourceSelectorWidget.h.
|
private |
Definition at line 128 of file DataSourceSelectorWidget.h.
Referenced by DataSourceSelectorWidget().