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);
    98           void showSpecificDataSource(
const QString& dsType);
   114           void addDataSourcePushButtonPressed();
   116           void removeDataSourcePushButtonPressed();
   118           void editDataSourcePushButtonPressed();
   120           void createDataSourcePushButtonPressed();
   122           void dataSourceTypePressed(QListWidgetItem* item);
   124           void dataSourcePressed(QListWidgetItem* item);
   126           void dataSourceDoubleClicked(QListWidgetItem * item);
   130           std::unique_ptr<Ui::DataSourceSelectorWidgetForm> 
m_ui;
   140 #endif  // __TERRALIB_QT_WIDGETS_DATASOURCE_SELECTOR_INTERNAL_DATASOURCESELECTORWIDGET_H