26 #ifndef __TERRALIB_VP_INTERNAL_MERGEDIALOG_H
27 #define __TERRALIB_VP_INTERNAL_MERGEDIALOG_H
30 #include "../../dataaccess/datasource/DataSourceInfo.h"
31 #include "../../maptools/AbstractLayer.h"
32 #include "../Config.h"
40 namespace Ui {
class MergeDialogForm; }
47 namespace dt {
class Property; }
59 MergeDialog(QWidget* parent = 0, Qt::WindowFlags f = 0);
69 void setLayers(std::list<te::map::AbstractLayerPtr> layers);
80 void updateFirstLayerComboBox();
82 void updateSecondLayerComboBox();
84 void updateAttrTableWidget();
86 QComboBox* getPossibleAttributesComboBox(
te::dt::Property* mainProp, std::vector<te::dt::Property*> props);
88 QComboBox* getAllAttributesComboBox(std::vector<te::dt::Property*> props);
90 std::vector<std::pair<std::string, std::string> > getTablePropertiesNames();
94 void onFirstLayerComboBoxChanged(
int index);
96 void onSecondLayerComboBoxChanged(
int index);
98 void onTargetDatasourceToolButtonPressed();
100 void onTargetFileToolButtonPressed();
102 void onOutputGroupBoxToggled(
bool on);
104 void onOkPushButtonClicked();
106 void onCancelPushButtonClicked();
110 std::auto_ptr<Ui::MergeDialogForm>
m_ui;
123 #endif // __TERRALIB_VP_INTERNAL_MERGEDIALOG_H
#define TEVPEXPORT
You can use this macro in order to export/import classes and functions from this module.
std::list< te::map::AbstractLayerPtr > m_layers
List of layers.
std::auto_ptr< Ui::MergeDialogForm > m_ui
It models a property definition.
te::map::AbstractLayerPtr m_firstSelectedLayer
First layer selected.
te::map::AbstractLayerPtr m_outputLayer
Generated Layer.
te::da::DataSourceInfoPtr m_outputDatasource
DataSource information.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
te::map::AbstractLayerPtr m_secondSelectedLayer
Second layer selected.
boost::shared_ptr< DataSourceInfo > DataSourceInfoPtr