26 #ifndef __TERRALIB_QT_AF_INTERNAL_BASEAPPLICATION_H
27 #define __TERRALIB_QT_AF_INTERNAL_BASEAPPLICATION_H
30 #include "../../maptools/AbstractLayer.h"
37 #include <boost/noncopyable.hpp>
40 #include <QtGui/QColor>
41 #include <QtGui/QLineEdit>
42 #include <QtGui/QMainWindow>
57 class ApplicationController;
61 class DataSetTableDockWidget;
88 virtual void init(
const std::string& configFile);
90 virtual void resetState();
96 void onAddDataSetLayerTriggered();
98 void onAddQueryLayerTriggered();
100 void onAddTabularLayerTriggered();
102 void onRemoveLayerTriggered();
104 void onLayerRemoveItemTriggered();
106 void onRenameLayerTriggered();
108 void onPluginsManagerTriggered();
110 void onRecentProjectsTriggered(QAction* proj);
112 void onNewProjectTriggered();
114 void onOpenProjectTriggered();
116 void onSaveProjectTriggered();
118 void onSaveProjectAsTriggered();
120 void onToolsCustomizeTriggered();
122 void onToolsDataExchangerTriggered();
124 void onToolsDataExchangerDirectTriggered();
126 void onToolsDataExchangerDirectPopUpTriggered();
128 void onProjectPropertiesTriggered();
130 void onAddFolderLayerTriggered();
132 void onLayerPropertiesTriggered();
134 void onLayerRemoveSelectionTriggered();
136 void onLayerSRSTriggered();
138 void onLayerShowTableTriggered();
140 void onLayerHistogramTriggered();
142 void onLayerScatterTriggered();
144 void onLayerChartTriggered();
146 void onLayerGroupingTriggered();
148 void onLayerFitOnMapDisplayTriggered();
150 void onLayerFitSelectedOnMapDisplayTriggered();
152 void onLayerPanToSelectedOnMapDisplayTriggered();
154 void onQueryLayerTriggered();
156 void onMapSRIDTriggered();
158 void onMapSetUnknwonSRIDTriggered();
160 void onDrawTriggered();
162 void onZoomInToggled(
bool checked);
164 void onZoomOutToggled(
bool checked);
166 void onPreviousExtentTriggered();
168 void onNextExtentTriggered();
170 void onPanToggled(
bool checked);
172 void onZoomExtentTriggered();
174 void onInfoToggled(
bool checked);
176 void onMapRemoveSelectionTriggered();
178 void onSelectionToggled(
bool checked);
180 void onMeasureDistanceToggled(
bool checked);
182 void onMeasureAreaToggled(
bool checked);
184 void onMeasureAngleToggled(
bool checked);
186 void onStopDrawTriggered();
188 void showProgressDockWidget();
192 void onFullScreenToggled(
bool checked);
198 void onLayerExplorerVisibilityChanged(
bool visible);
200 void onDisplayVisibilityChanged(
bool visible);
202 void onDisplayDataTableChanged(
bool visible);
204 void onStyleExplorerVisibilityChanged(
bool visible);
206 void onDataSourceExplorerTriggered();
210 virtual void openProject(
const QString& projectFileName);
212 virtual void checkProjectSave();
214 virtual void newProject();
216 virtual void makeDialog();
218 virtual void closeEvent(QCloseEvent* e);
220 virtual void initAction(QAction*& act,
const QString& icon,
const QString& name,
221 const QString& text,
const QString& tooltip,
222 bool iconVisibleInMenu,
bool isCheckable,
bool enabled, QObject* parent);
224 virtual void initActions();
226 virtual void initMenus();
228 virtual void initToolbars();
230 virtual void initStatusBar();
232 virtual void initSlotsConnections();
361 #endif // __TERRALIB_QT_AF_INTERNAL_BASEAPPLICATION_H
QAction * m_toolsDataExchangerDirectPopUp
te::qt::af::ApplicationController * m_controller
QAction * m_viewMapDisplay
QAction * m_mapRemoveSelection
QMenu * m_toolsExchangerMenu
QAction * m_projectAddLayerQueryDataSet
QAction * m_toolsDataSourceExplorer
QAction * m_layerChartsHistogram
QAction * m_mapUnknownSRID
QAction * m_mapZoomExtent
std::vector< DataSetTableDockWidget * > m_tableDocks
A QMainWindow to be used as the basis for TerraLib applications.
QAction * m_layerFitSelectedOnMapDisplay
QAction * m_toolsDataSourceManagement
QAction * m_projectProperties
A connector for the te::qt::widgets::StyleDockWidget class to the Application Framework.
QAction * m_layerFitOnMapDisplay
QAction * m_viewFullScreen
QWidget * m_centralwidget
LayerExplorer * m_explorer
A dockable tree view for the layers in the application project.
QAction * m_filePrintPreview
QMenu * m_recentProjectsMenu
The base API for TerraLib applications.
QAction * m_fileOpenProject
QAction * m_toolsDataExchangerDirect
QDockWidget * m_zoomInDisplaysDockWidget
Dock widget used to show zoom in display.
QMenu * m_viewToolBarsMenu
QLineEdit * m_mapSRIDLineEdit
QAction * m_layerRemoveObjectSelection
This class models the concept of a project for the TerraLib Application Framework.
QAction * m_viewStyleExplorer
QAction * m_pluginsManager
QAction * m_projectAddLayerGraph
QAction * m_mapMeasureArea
QAction * m_mapPreviousExtent
QAction * m_layerRemoveItem
QAction * m_layerObjectGrouping
A dock widget for DataSetTableView objects.
QAction * m_layerShowTable
QAction * m_toolsCustomize
QAction * m_mapStopDrawing
QAction * m_viewDataTable
Configuration flags for the TerraLib Application Framework.
QDockWidget * m_progressDockWidget
Dock widget used to show progress information.
QAction * m_mapNextExtent
QAction * m_layerToBottom
QAction * m_projectAddLayerDataset
#define TEQTAFEXPORT
You can use this macro in order to export/import classes and functions from this module.
QLineEdit * m_coordinateLineEdit
QDockWidget * m_eyeBirdDisplaysDockWidget
Dock widget used to show eye bird display.
QAction * m_fileSaveProject
A base class for application events.
QAction * m_layerChartsScatter
QAction * m_projectAddFolderLayer
QAction * m_fileSaveProjectAs
A connector of the te::qt::widgets::MapDisplay class to the Application Framework.
boost::intrusive_ptr< AbstractLayer > AbstractLayerPtr
QMenu * m_projectAddLayerMenu
StyleExplorer * m_styleExplorer
A connector for the te::qt::widgets::LayerExplorer class to the Application Framework.
QAction * m_layerProperties
QAction * m_mapMeasureDistance
QAction * m_mapMeasureAngle
QAction * m_fileNewProject
QAction * m_projectAddLayerTabularDataSet
QAction * m_projectRenameLayer
A dataset is the unit of information manipulated by the data access module of TerraLib.
QAction * m_toolsDataExchanger
QAction * m_viewLayerExplorer
Qt components.
QAction * m_projectRemoveLayer
QAction * m_layerPanToSelectedOnMapDisplay