26 #ifndef __TERRALIB_QT_WIDGETS_DATASOURCE_SELECTOR_INTERNAL_DATASOURCESELECTORWIDGET_H
27 #define __TERRALIB_QT_WIDGETS_DATASOURCE_SELECTOR_INTERNAL_DATASOURCESELECTORWIDGET_H
30 #include "../../../../dataaccess/datasource/DataSourceInfo.h"
31 #include "../../Config.h"
38 #include <QAbstractItemView>
41 namespace Ui {
class DataSourceSelectorWidgetForm; }
43 class QListWidgetItem;
69 BUTTON_CREATE_DATASOURCE
76 Ui::DataSourceSelectorWidgetForm* getForm()
const;
78 void setSelectionMode(QAbstractItemView::SelectionMode mode);
80 void setButtonsEnabled(
bool enabled);
82 void setButtonEnabled(
int button,
bool enabled);
86 std::list<te::da::DataSourceInfoPtr> getSelecteds()
const;
88 void setDataSource(
const QString& dsType);
90 void showDataSourceWithDatabaseSupport(
bool visible);
92 void showDataSourceWithFileSupport(
bool visible);
94 void showDataSourceWithRasterSupport(
bool visible);
96 void showDataSourceWithVectorialSupport(
bool visible);
112 void addDataSourcePushButtonPressed();
114 void removeDataSourcePushButtonPressed();
116 void editDataSourcePushButtonPressed();
118 void createDataSourcePushButtonPressed();
120 void dataSourceTypePressed(QListWidgetItem* item);
122 void dataSourcePressed(QListWidgetItem* item);
124 void dataSourceDoubleClicked(QListWidgetItem * item);
128 std::auto_ptr<Ui::DataSourceSelectorWidgetForm>
m_ui;
138 #endif // __TERRALIB_QT_WIDGETS_DATASOURCE_SELECTOR_INTERNAL_DATASOURCESELECTORWIDGET_H