18 #ifndef QGISINTERFACE_H 19 #define QGISINTERFACE_H 89 virtual void zoomFull() = 0;
92 virtual void zoomToPrevious() = 0;
95 virtual void zoomToNext() = 0;
98 virtual void zoomToActiveLayer() = 0;
110 virtual bool addProject(
const QString& theProject ) = 0;
112 virtual void newProject(
bool thePromptToSaveFlag =
false ) = 0;
122 virtual int addToolBarIcon(
QAction *qAction ) = 0;
135 virtual void removeToolBarIcon(
QAction *qAction ) = 0;
148 virtual int addRasterToolBarIcon(
QAction *qAction ) = 0;
151 virtual void removeRasterToolBarIcon(
QAction *qAction ) = 0;
154 virtual int addVectorToolBarIcon(
QAction *qAction ) = 0;
167 virtual void removeVectorToolBarIcon(
QAction *qAction ) = 0;
170 virtual int addDatabaseToolBarIcon(
QAction *qAction ) = 0;
183 virtual void removeDatabaseToolBarIcon(
QAction *qAction ) = 0;
186 virtual int addWebToolBarIcon(
QAction *qAction ) = 0;
199 virtual void removeWebToolBarIcon(
QAction *qAction ) = 0;
206 virtual void addToolBar(
QToolBar* toolbar, Qt::ToolBarArea area = Qt::TopToolBarArea ) = 0;
219 virtual QWidget * mainWindow() = 0;
225 virtual void openMessageLog() = 0;
228 virtual void addUserInputWidget(
QWidget* widget ) = 0;
263 virtual QFont defaultStyleSheetFont() = 0;
266 virtual void addPluginToMenu(
const QString& name,
QAction* action ) = 0;
269 virtual void removePluginMenu(
const QString& name,
QAction* action ) = 0;
272 virtual void insertAddLayerAction(
QAction *action ) = 0;
275 virtual void removeAddLayerAction(
QAction *action ) = 0;
278 virtual void addPluginToDatabaseMenu(
const QString& name,
QAction* action ) = 0;
281 virtual void removePluginDatabaseMenu(
const QString& name,
QAction* action ) = 0;
284 virtual void addPluginToRasterMenu(
const QString& name,
QAction* action ) = 0;
287 virtual void removePluginRasterMenu(
const QString& name,
QAction* action ) = 0;
290 virtual void addPluginToVectorMenu(
const QString& name,
QAction* action ) = 0;
293 virtual void removePluginVectorMenu(
const QString& name,
QAction* action ) = 0;
296 virtual void addPluginToWebMenu(
const QString& name,
QAction* action ) = 0;
299 virtual void removePluginWebMenu(
const QString& name,
QAction* action ) = 0;
302 virtual void addDockWidget( Qt::DockWidgetArea area,
QDockWidget * dockwidget ) = 0;
305 virtual void removeDockWidget(
QDockWidget * dockwidget ) = 0;
313 virtual void showLayerProperties(
QgsMapLayer *l ) = 0;
320 virtual void addWindow(
QAction *action ) = 0;
324 virtual void removeWindow(
QAction *action ) = 0;
327 virtual bool registerMainWindowAction(
QAction* action,
const QString& defaultShortcut ) = 0;
330 virtual bool unregisterMainWindowAction(
QAction* action ) = 0;
357 virtual void openURL(
const QString& url,
bool useQgisDocDirectory =
true ) = 0;
368 virtual QMenu *fileMenu() = 0;
369 virtual QMenu *projectMenu() = 0;
370 virtual QMenu *editMenu() = 0;
371 virtual QMenu *viewMenu() = 0;
372 virtual QMenu *layerMenu() = 0;
373 virtual QMenu *newLayerMenu() = 0;
375 virtual QMenu *addLayerMenu() = 0;
376 virtual QMenu *settingsMenu() = 0;
377 virtual QMenu *pluginMenu() = 0;
378 virtual QMenu *rasterMenu() = 0;
379 virtual QMenu *databaseMenu() = 0;
380 virtual QMenu *vectorMenu() = 0;
381 virtual QMenu *webMenu() = 0;
382 virtual QMenu *firstRightStandardMenu() = 0;
383 virtual QMenu *windowMenu() = 0;
384 virtual QMenu *helpMenu() = 0;
387 virtual QToolBar *fileToolBar() = 0;
388 virtual QToolBar *layerToolBar() = 0;
389 virtual QToolBar *mapNavToolToolBar() = 0;
390 virtual QToolBar *digitizeToolBar() = 0;
391 virtual QToolBar *advancedDigitizeToolBar() = 0;
392 virtual QToolBar *attributesToolBar() = 0;
393 virtual QToolBar *pluginToolBar() = 0;
394 virtual QToolBar *helpToolBar() = 0;
395 virtual QToolBar *rasterToolBar() = 0;
396 virtual QToolBar *vectorToolBar() = 0;
397 virtual QToolBar *databaseToolBar() = 0;
401 virtual QAction *actionNewProject() = 0;
402 virtual QAction *actionOpenProject() = 0;
403 virtual QAction *actionSaveProject() = 0;
404 virtual QAction *actionSaveProjectAs() = 0;
405 virtual QAction *actionSaveMapAsImage() = 0;
406 virtual QAction *actionProjectProperties() = 0;
407 virtual QAction *actionPrintComposer() = 0;
408 virtual QAction *actionShowComposerManager() = 0;
409 virtual QAction *actionExit() = 0;
412 virtual QAction *actionCutFeatures() = 0;
413 virtual QAction *actionCopyFeatures() = 0;
414 virtual QAction *actionPasteFeatures() = 0;
415 virtual QAction *actionAddFeature() = 0;
416 virtual QAction *actionDeleteSelected() = 0;
417 virtual QAction *actionMoveFeature() = 0;
418 virtual QAction *actionSplitFeatures() = 0;
419 virtual QAction *actionSplitParts() = 0;
420 virtual QAction *actionAddRing() = 0;
421 virtual QAction *actionAddPart() = 0;
422 virtual QAction *actionSimplifyFeature() = 0;
423 virtual QAction *actionDeleteRing() = 0;
424 virtual QAction *actionDeletePart() = 0;
425 virtual QAction *actionNodeTool() = 0;
429 virtual QAction *actionPan() = 0;
431 virtual QAction *actionTouch() = 0;
433 virtual QAction *actionPanToSelected() = 0;
435 virtual QAction *actionZoomIn() = 0;
437 virtual QAction *actionZoomOut() = 0;
439 virtual QAction *actionSelect() = 0;
441 virtual QAction *actionSelectRectangle() = 0;
443 virtual QAction *actionSelectPolygon() = 0;
445 virtual QAction *actionSelectFreehand() = 0;
447 virtual QAction *actionSelectRadius() = 0;
449 virtual QAction *actionIdentify() = 0;
451 virtual QAction *actionFeatureAction() = 0;
453 virtual QAction *actionMeasure() = 0;
455 virtual QAction *actionMeasureArea() = 0;
457 virtual QAction *actionZoomFullExtent() = 0;
459 virtual QAction *actionZoomToLayer() = 0;
461 virtual QAction *actionZoomToSelected() = 0;
463 virtual QAction *actionZoomLast() = 0;
465 virtual QAction *actionZoomNext() = 0;
467 virtual QAction *actionZoomActualSize() = 0;
469 virtual QAction *actionMapTips() = 0;
471 virtual QAction *actionNewBookmark() = 0;
473 virtual QAction *actionShowBookmarks() = 0;
475 virtual QAction *actionDraw() = 0;
478 virtual QAction *actionNewVectorLayer() = 0;
479 virtual QAction *actionAddOgrLayer() = 0;
480 virtual QAction *actionAddRasterLayer() = 0;
481 virtual QAction *actionAddPgLayer() = 0;
482 virtual QAction *actionAddWmsLayer() = 0;
484 virtual QAction *actionAddAfsLayer() = 0;
486 virtual QAction *actionAddAmsLayer() = 0;
487 virtual QAction *actionCopyLayerStyle() = 0;
488 virtual QAction *actionPasteLayerStyle() = 0;
489 virtual QAction *actionOpenTable() = 0;
490 virtual QAction *actionOpenFieldCalculator() = 0;
491 virtual QAction *actionToggleEditing() = 0;
492 virtual QAction *actionSaveActiveLayerEdits() = 0;
493 virtual QAction *actionAllEdits() = 0;
494 virtual QAction *actionSaveEdits() = 0;
495 virtual QAction *actionSaveAllEdits() = 0;
496 virtual QAction *actionRollbackEdits() = 0;
497 virtual QAction *actionRollbackAllEdits() = 0;
498 virtual QAction *actionCancelEdits() = 0;
499 virtual QAction *actionCancelAllEdits() = 0;
500 virtual QAction *actionLayerSaveAs() = 0;
505 virtual QAction *actionLayerSelectionSaveAs() = 0;
506 virtual QAction *actionRemoveLayer() = 0;
507 virtual QAction *actionDuplicateLayer() = 0;
508 virtual QAction *actionLayerProperties() = 0;
509 virtual QAction *actionAddToOverview() = 0;
510 virtual QAction *actionAddAllToOverview() = 0;
511 virtual QAction *actionRemoveAllFromOverview() = 0;
512 virtual QAction *actionHideAllLayers() = 0;
513 virtual QAction *actionShowAllLayers() = 0;
514 virtual QAction *actionHideSelectedLayers() = 0;
515 virtual QAction *actionShowSelectedLayers() = 0;
518 virtual QAction *actionManagePlugins() = 0;
519 virtual QAction *actionPluginListSeparator() = 0;
520 virtual QAction *actionShowPythonDialog() = 0;
523 virtual QAction *actionToggleFullScreen() = 0;
524 virtual QAction *actionOptions() = 0;
525 virtual QAction *actionCustomProjection() = 0;
528 virtual QAction *actionHelpContents() = 0;
529 virtual QAction *actionQgisHomePage() = 0;
530 virtual QAction *actionCheckQgisVersion() = 0;
531 virtual QAction *actionAbout() = 0;
540 virtual bool openFeatureForm(
QgsVectorLayer *l,
QgsFeature &f,
bool updateFeatureOnly =
false,
bool showModal =
true ) = 0;
572 virtual void preloadForm(
const QString& uifile ) = 0;
580 virtual int messageTimeout() = 0;
606 void initializationCompleted();
622 void newProjectCreated();
631 #endif //#ifndef QGISINTERFACE_H
QgsLegendInterface Abstract base class to make QgsLegend available to plugins.
Base class for all map layer types.
The QgsLayerTreeView class extends QTreeView and provides some additional functionality when working ...
The QgsLayerTreeMapCanvasBridge class takes care of updates of layer set for QgsMapCanvas from a laye...
This class provides qgis with the ability to render raster datasets onto the mapcanvas.
A bar for displaying non-blocking messages to the user.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
Map canvas is a class for displaying all GIS data types on a canvas.
Widget to display the composer items.
QgisInterface Abstract base class defining interfaces exposed by QgisApp and made available to plugin...
This class has all the configuration of snapping and can return answers to snapping queries...
Represents a vector layer which manages a vector based data sets.