28 #include "../../../qt/af/events/LayerEvents.h"
29 #include "../../../qt/widgets/dataset/selector/DataSetSelectorWizardPage.h"
30 #include "../../../qt/widgets/datasource/selector/DataSourceSelectorWizardPage.h"
31 #include "../../../qt/widgets/layer/explorer/AbstractTreeItemFactory.h"
32 #include "../../../qt/widgets/st/TrajectoryWizard.h"
33 #include "../../../st/loader/STDataLoader.h"
34 #include "../../af/ApplicationController.h"
39 #include <QMessageBox>
41 #include <QWizardPage>
47 #include <boost/bind.hpp>
48 #include <boost/functional/factory.hpp>
53 createAction(tr(
"Trajectory...").toStdString(),
"trajectory-layer");
65 std::auto_ptr<te::qt::widgets::TrajectoryWizard> trajWiz;
68 int res = trajWiz->exec();
69 if (res == QDialog::Accepted)
74 std::list<te::st::TrajectoryDataSetLayerPtr> layers = trajWiz->getTrajectoryLayers();
75 std::list<te::st::TrajectoryDataSetLayerPtr>::const_iterator layerItB = layers.begin();
76 std::list<te::st::TrajectoryDataSetLayerPtr>::const_iterator layerItE = layers.end();
78 while(layerItB != layerItE)
This event signals that a new layer was created.
TrajectoryAction(QMenu *menu)
This is an abstract class used to register actions into st pluging.
static void initialize()
It returns the spatial extent of the observations of a coverage series.
static ApplicationController & getInstance()
It returns a reference to the singleton instance.
void createAction(std::string name, std::string pixmap="")
Create and set the actions parameters.
virtual void onActionActivated(bool checked)
This file defines the Trajectory Action class.
virtual ~TrajectoryAction()