18 #ifndef QGISINTERFACE_H
19 #define QGISINTERFACE_H
47 # pragma warning( push )
48 # pragma warning( disable: 4996 ) // was declared deprecated
87 virtual void zoomFull() = 0;
90 virtual void zoomToPrevious() = 0;
93 virtual void zoomToNext() = 0;
96 virtual void zoomToActiveLayer() = 0;
99 virtual QgsVectorLayer* addVectorLayer( QString vectorLayerPath, QString baseName, QString providerKey ) = 0;
102 virtual QgsRasterLayer* addRasterLayer( QString rasterLayerPath, QString baseName = QString() ) = 0;
105 virtual QgsRasterLayer* addRasterLayer(
const QString& url,
const QString& layerName,
const QString& providerKey ) = 0;
108 virtual bool addProject( QString theProject ) = 0;
110 virtual void newProject(
bool thePromptToSaveFlag =
false ) = 0;
121 virtual int addToolBarIcon( QAction *qAction ) = 0;
131 virtual QAction* addToolBarWidget( QWidget* widget ) = 0;
134 virtual void removeToolBarIcon( QAction *qAction ) = 0;
144 virtual QAction* addRasterToolBarWidget( QWidget* widget ) = 0;
148 virtual int addRasterToolBarIcon( QAction *qAction ) = 0;
152 virtual void removeRasterToolBarIcon( QAction *qAction ) = 0;
157 virtual int addVectorToolBarIcon( QAction *qAction ) = 0;
167 virtual QAction* addVectorToolBarWidget( QWidget* widget ) = 0;
171 virtual void removeVectorToolBarIcon( QAction *qAction ) = 0;
175 virtual int addDatabaseToolBarIcon( QAction *qAction ) = 0;
185 virtual QAction* addDatabaseToolBarWidget( QWidget* widget ) = 0;
189 virtual void removeDatabaseToolBarIcon( QAction *qAction ) = 0;
193 virtual int addWebToolBarIcon( QAction *qAction ) = 0;
203 virtual QAction* addWebToolBarWidget( QWidget* widget ) = 0;
207 virtual void removeWebToolBarIcon( QAction *qAction ) = 0;
210 virtual QToolBar *addToolBar( QString name ) = 0;
216 virtual QWidget * mainWindow() = 0;
222 virtual QList<QgsComposerView*> activeComposers() = 0;
229 virtual QgsComposerView* createNewComposer( QString title = QString(
"" ) ) = 0;
247 virtual QMap<QString, QVariant> defaultStyleSheetOptions() = 0;
253 virtual void buildStyleSheet(
const QMap<QString, QVariant>& opts ) = 0;
258 virtual void saveStyleSheetOptions(
const QMap<QString, QVariant>& opts ) = 0;
263 virtual QFont defaultStyleSheetFont() = 0;
266 virtual void addPluginToMenu( QString name, QAction* action ) = 0;
269 virtual void removePluginMenu( QString name, QAction* action ) = 0;
274 virtual void insertAddLayerAction( QAction *action ) = 0;
279 virtual void removeAddLayerAction( QAction *action ) = 0;
284 virtual void addPluginToDatabaseMenu( QString name, QAction* action ) = 0;
289 virtual void removePluginDatabaseMenu( QString name, QAction* action ) = 0;
294 virtual void addPluginToRasterMenu( QString name, QAction* action ) = 0;
299 virtual void removePluginRasterMenu( QString name, QAction* action ) = 0;
304 virtual void addPluginToVectorMenu( QString name, QAction* action ) = 0;
309 virtual void removePluginVectorMenu( QString name, QAction* action ) = 0;
314 virtual void addPluginToWebMenu( QString name, QAction* action ) = 0;
319 virtual void removePluginWebMenu( QString name, QAction* action ) = 0;
322 virtual void addDockWidget( Qt::DockWidgetArea area, QDockWidget * dockwidget ) = 0;
327 virtual void removeDockWidget( QDockWidget * dockwidget ) = 0;
332 virtual void showLayerProperties(
QgsMapLayer *l ) = 0;
341 virtual void addWindow( QAction *action ) = 0;
345 virtual void removeWindow( QAction *action ) = 0;
350 virtual bool registerMainWindowAction( QAction* action, QString defaultShortcut ) = 0;
355 virtual bool unregisterMainWindowAction( QAction* action ) = 0;
369 virtual void openURL( QString url,
bool useQgisDocDirectory =
true ) = 0;
380 virtual QMenu *fileMenu() = 0;
381 virtual QMenu *projectMenu() = 0;
382 virtual QMenu *editMenu() = 0;
383 virtual QMenu *viewMenu() = 0;
384 virtual QMenu *layerMenu() = 0;
387 virtual QMenu *newLayerMenu() = 0;
388 virtual QMenu *settingsMenu() = 0;
389 virtual QMenu *pluginMenu() = 0;
390 virtual QMenu *rasterMenu() = 0;
393 virtual QMenu *databaseMenu() = 0;
396 virtual QMenu *vectorMenu() = 0;
399 virtual QMenu *webMenu() = 0;
400 virtual QMenu *firstRightStandardMenu() = 0;
401 virtual QMenu *windowMenu() = 0;
402 virtual QMenu *helpMenu() = 0;
405 virtual QToolBar *fileToolBar() = 0;
406 virtual QToolBar *layerToolBar() = 0;
407 virtual QToolBar *mapNavToolToolBar() = 0;
408 virtual QToolBar *digitizeToolBar() = 0;
409 virtual QToolBar *advancedDigitizeToolBar() = 0;
410 virtual QToolBar *attributesToolBar() = 0;
411 virtual QToolBar *pluginToolBar() = 0;
412 virtual QToolBar *helpToolBar() = 0;
415 virtual QToolBar *rasterToolBar() = 0;
418 virtual QToolBar *vectorToolBar() = 0;
421 virtual QToolBar *databaseToolBar() = 0;
424 virtual QToolBar *webToolBar() = 0;
427 virtual QAction *actionNewProject() = 0;
428 virtual QAction *actionOpenProject() = 0;
429 virtual QAction *actionSaveProject() = 0;
430 virtual QAction *actionSaveProjectAs() = 0;
431 virtual QAction *actionSaveMapAsImage() = 0;
432 virtual QAction *actionProjectProperties() = 0;
433 virtual QAction *actionPrintComposer() = 0;
434 virtual QAction *actionShowComposerManager() = 0;
435 virtual QAction *actionExit() = 0;
438 virtual QAction *actionCutFeatures() = 0;
439 virtual QAction *actionCopyFeatures() = 0;
440 virtual QAction *actionPasteFeatures() = 0;
441 virtual QAction *actionAddFeature() = 0;
442 virtual QAction *actionDeleteSelected() = 0;
443 virtual QAction *actionMoveFeature() = 0;
444 virtual QAction *actionSplitFeatures() = 0;
445 virtual QAction *actionSplitParts() = 0;
446 virtual QAction *actionAddRing() = 0;
447 virtual QAction *actionAddPart() = 0;
448 virtual QAction *actionSimplifyFeature() = 0;
449 virtual QAction *actionDeleteRing() = 0;
450 virtual QAction *actionDeletePart() = 0;
451 virtual QAction *actionNodeTool() = 0;
455 virtual QAction *actionPan() = 0;
457 virtual QAction *actionTouch() = 0;
459 virtual QAction *actionPanToSelected() = 0;
461 virtual QAction *actionZoomIn() = 0;
463 virtual QAction *actionZoomOut() = 0;
465 virtual QAction *actionSelect() = 0;
467 virtual QAction *actionSelectRectangle() = 0;
469 virtual QAction *actionSelectPolygon() = 0;
471 virtual QAction *actionSelectFreehand() = 0;
473 virtual QAction *actionSelectRadius() = 0;
475 virtual QAction *actionIdentify() = 0;
477 virtual QAction *actionFeatureAction() = 0;
479 virtual QAction *actionMeasure() = 0;
481 virtual QAction *actionMeasureArea() = 0;
483 virtual QAction *actionZoomFullExtent() = 0;
485 virtual QAction *actionZoomToLayer() = 0;
487 virtual QAction *actionZoomToSelected() = 0;
489 virtual QAction *actionZoomLast() = 0;
491 virtual QAction *actionZoomNext() = 0;
493 virtual QAction *actionZoomActualSize() = 0;
495 virtual QAction *actionMapTips() = 0;
497 virtual QAction *actionNewBookmark() = 0;
499 virtual QAction *actionShowBookmarks() = 0;
501 virtual QAction *actionDraw() = 0;
504 virtual QAction *actionNewVectorLayer() = 0;
505 virtual QAction *actionAddOgrLayer() = 0;
506 virtual QAction *actionAddRasterLayer() = 0;
507 virtual QAction *actionAddPgLayer() = 0;
508 virtual QAction *actionAddWmsLayer() = 0;
510 virtual QAction *actionCopyLayerStyle() = 0;
512 virtual QAction *actionPasteLayerStyle() = 0;
513 virtual QAction *actionOpenTable() = 0;
514 virtual QAction *actionOpenFieldCalculator() = 0;
515 virtual QAction *actionToggleEditing() = 0;
517 virtual QAction *actionSaveActiveLayerEdits() = 0;
519 virtual QAction *actionAllEdits() = 0;
521 virtual QAction *actionSaveEdits() = 0;
523 virtual QAction *actionSaveAllEdits() = 0;
525 virtual QAction *actionRollbackEdits() = 0;
527 virtual QAction *actionRollbackAllEdits() = 0;
529 virtual QAction *actionCancelEdits() = 0;
531 virtual QAction *actionCancelAllEdits() = 0;
532 virtual QAction *actionLayerSaveAs() = 0;
533 virtual QAction *actionLayerSelectionSaveAs() = 0;
534 virtual QAction *actionRemoveLayer() = 0;
536 virtual QAction *actionDuplicateLayer() = 0;
537 virtual QAction *actionLayerProperties() = 0;
538 virtual QAction *actionAddToOverview() = 0;
539 virtual QAction *actionAddAllToOverview() = 0;
540 virtual QAction *actionRemoveAllFromOverview() = 0;
541 virtual QAction *actionHideAllLayers() = 0;
542 virtual QAction *actionShowAllLayers() = 0;
545 virtual QAction *actionManagePlugins() = 0;
546 virtual QAction *actionPluginListSeparator() = 0;
547 virtual QAction *actionShowPythonDialog() = 0;
550 virtual QAction *actionToggleFullScreen() = 0;
551 virtual QAction *actionOptions() = 0;
552 virtual QAction *actionCustomProjection() = 0;
555 virtual QAction *actionHelpContents() = 0;
556 virtual QAction *actionQgisHomePage() = 0;
557 virtual QAction *actionCheckQgisVersion() = 0;
558 virtual QAction *actionAbout() = 0;
571 virtual void preloadForm( QString uifile ) = 0;
577 virtual QList<QgsMapLayer *> editableLayers(
bool modified =
false )
const = 0;
581 virtual int messageTimeout() = 0;
604 void initializationCompleted();
624 void newProjectCreated();
628 # pragma warning( pop )
629 # pragma warning( disable: 4190 )
635 # define QGISEXTERN extern "C" __declspec( dllexport )
637 # define QGISEXTERN extern "C"
641 #endif //#ifndef QGISINTERFACE_H