18 #ifndef QGISINTERFACE_H
19 #define QGISINTERFACE_H
86 virtual void zoomFull() = 0;
89 virtual void zoomToPrevious() = 0;
92 virtual void zoomToNext() = 0;
95 virtual void zoomToActiveLayer() = 0;
98 virtual QgsVectorLayer* addVectorLayer( QString vectorLayerPath, QString baseName, QString providerKey ) = 0;
101 virtual QgsRasterLayer* addRasterLayer( QString rasterLayerPath, QString baseName = QString() ) = 0;
104 virtual QgsRasterLayer* addRasterLayer(
const QString& url,
const QString& layerName,
const QString& providerKey ) = 0;
107 virtual bool addProject( QString theProject ) = 0;
109 virtual void newProject(
bool thePromptToSaveFlag =
false ) = 0;
119 virtual int addToolBarIcon( QAction *qAction ) = 0;
129 virtual QAction* addToolBarWidget( QWidget* widget ) = 0;
132 virtual void removeToolBarIcon( QAction *qAction ) = 0;
142 virtual QAction* addRasterToolBarWidget( QWidget* widget ) = 0;
145 virtual int addRasterToolBarIcon( QAction *qAction ) = 0;
148 virtual void removeRasterToolBarIcon( QAction *qAction ) = 0;
151 virtual int addVectorToolBarIcon( QAction *qAction ) = 0;
161 virtual QAction* addVectorToolBarWidget( QWidget* widget ) = 0;
164 virtual void removeVectorToolBarIcon( QAction *qAction ) = 0;
167 virtual int addDatabaseToolBarIcon( QAction *qAction ) = 0;
177 virtual QAction* addDatabaseToolBarWidget( QWidget* widget ) = 0;
180 virtual void removeDatabaseToolBarIcon( QAction *qAction ) = 0;
183 virtual int addWebToolBarIcon( QAction *qAction ) = 0;
193 virtual QAction* addWebToolBarWidget( QWidget* widget ) = 0;
196 virtual void removeWebToolBarIcon( QAction *qAction ) = 0;
199 virtual QToolBar *addToolBar( QString name ) = 0;
203 virtual void addToolBar( QToolBar* toolbar, Qt::ToolBarArea area = Qt::TopToolBarArea ) = 0;
209 virtual QWidget * mainWindow() = 0;
215 virtual QList<QgsComposerView*> activeComposers() = 0;
222 virtual QgsComposerView* createNewComposer( QString title = QString(
"" ) ) = 0;
236 virtual QMap<QString, QVariant> defaultStyleSheetOptions() = 0;
241 virtual void buildStyleSheet(
const QMap<QString, QVariant>& opts ) = 0;
244 virtual void saveStyleSheetOptions(
const QMap<QString, QVariant>& opts ) = 0;
247 virtual QFont defaultStyleSheetFont() = 0;
250 virtual void addPluginToMenu( QString name, QAction* action ) = 0;
253 virtual void removePluginMenu( QString name, QAction* action ) = 0;
256 virtual void insertAddLayerAction( QAction *action ) = 0;
259 virtual void removeAddLayerAction( QAction *action ) = 0;
262 virtual void addPluginToDatabaseMenu( QString name, QAction* action ) = 0;
265 virtual void removePluginDatabaseMenu( QString name, QAction* action ) = 0;
268 virtual void addPluginToRasterMenu( QString name, QAction* action ) = 0;
271 virtual void removePluginRasterMenu( QString name, QAction* action ) = 0;
274 virtual void addPluginToVectorMenu( QString name, QAction* action ) = 0;
277 virtual void removePluginVectorMenu( QString name, QAction* action ) = 0;
280 virtual void addPluginToWebMenu( QString name, QAction* action ) = 0;
283 virtual void removePluginWebMenu( QString name, QAction* action ) = 0;
286 virtual void addDockWidget( Qt::DockWidgetArea area, QDockWidget * dockwidget ) = 0;
289 virtual void removeDockWidget( QDockWidget * dockwidget ) = 0;
292 virtual void showLayerProperties(
QgsMapLayer *l ) = 0;
299 virtual void addWindow( QAction *action ) = 0;
303 virtual void removeWindow( QAction *action ) = 0;
306 virtual bool registerMainWindowAction( QAction* action, QString defaultShortcut ) = 0;
309 virtual bool unregisterMainWindowAction( QAction* action ) = 0;
323 virtual void openURL( QString url,
bool useQgisDocDirectory =
true ) = 0;
334 virtual QMenu *fileMenu() = 0;
335 virtual QMenu *projectMenu() = 0;
336 virtual QMenu *editMenu() = 0;
337 virtual QMenu *viewMenu() = 0;
338 virtual QMenu *layerMenu() = 0;
339 virtual QMenu *newLayerMenu() = 0;
341 virtual QMenu *addLayerMenu() = 0;
342 virtual QMenu *settingsMenu() = 0;
343 virtual QMenu *pluginMenu() = 0;
344 virtual QMenu *rasterMenu() = 0;
345 virtual QMenu *databaseMenu() = 0;
346 virtual QMenu *vectorMenu() = 0;
347 virtual QMenu *webMenu() = 0;
348 virtual QMenu *firstRightStandardMenu() = 0;
349 virtual QMenu *windowMenu() = 0;
350 virtual QMenu *helpMenu() = 0;
353 virtual QToolBar *fileToolBar() = 0;
354 virtual QToolBar *layerToolBar() = 0;
355 virtual QToolBar *mapNavToolToolBar() = 0;
356 virtual QToolBar *digitizeToolBar() = 0;
357 virtual QToolBar *advancedDigitizeToolBar() = 0;
358 virtual QToolBar *attributesToolBar() = 0;
359 virtual QToolBar *pluginToolBar() = 0;
360 virtual QToolBar *helpToolBar() = 0;
361 virtual QToolBar *rasterToolBar() = 0;
362 virtual QToolBar *vectorToolBar() = 0;
363 virtual QToolBar *databaseToolBar() = 0;
364 virtual QToolBar *webToolBar() = 0;
367 virtual QAction *actionNewProject() = 0;
368 virtual QAction *actionOpenProject() = 0;
369 virtual QAction *actionSaveProject() = 0;
370 virtual QAction *actionSaveProjectAs() = 0;
371 virtual QAction *actionSaveMapAsImage() = 0;
372 virtual QAction *actionProjectProperties() = 0;
373 virtual QAction *actionPrintComposer() = 0;
374 virtual QAction *actionShowComposerManager() = 0;
375 virtual QAction *actionExit() = 0;
378 virtual QAction *actionCutFeatures() = 0;
379 virtual QAction *actionCopyFeatures() = 0;
380 virtual QAction *actionPasteFeatures() = 0;
381 virtual QAction *actionAddFeature() = 0;
382 virtual QAction *actionDeleteSelected() = 0;
383 virtual QAction *actionMoveFeature() = 0;
384 virtual QAction *actionSplitFeatures() = 0;
385 virtual QAction *actionSplitParts() = 0;
386 virtual QAction *actionAddRing() = 0;
387 virtual QAction *actionAddPart() = 0;
388 virtual QAction *actionSimplifyFeature() = 0;
389 virtual QAction *actionDeleteRing() = 0;
390 virtual QAction *actionDeletePart() = 0;
391 virtual QAction *actionNodeTool() = 0;
395 virtual QAction *actionPan() = 0;
397 virtual QAction *actionTouch() = 0;
399 virtual QAction *actionPanToSelected() = 0;
401 virtual QAction *actionZoomIn() = 0;
403 virtual QAction *actionZoomOut() = 0;
405 virtual QAction *actionSelect() = 0;
407 virtual QAction *actionSelectRectangle() = 0;
409 virtual QAction *actionSelectPolygon() = 0;
411 virtual QAction *actionSelectFreehand() = 0;
413 virtual QAction *actionSelectRadius() = 0;
415 virtual QAction *actionIdentify() = 0;
417 virtual QAction *actionFeatureAction() = 0;
419 virtual QAction *actionMeasure() = 0;
421 virtual QAction *actionMeasureArea() = 0;
423 virtual QAction *actionZoomFullExtent() = 0;
425 virtual QAction *actionZoomToLayer() = 0;
427 virtual QAction *actionZoomToSelected() = 0;
429 virtual QAction *actionZoomLast() = 0;
431 virtual QAction *actionZoomNext() = 0;
433 virtual QAction *actionZoomActualSize() = 0;
435 virtual QAction *actionMapTips() = 0;
437 virtual QAction *actionNewBookmark() = 0;
439 virtual QAction *actionShowBookmarks() = 0;
441 virtual QAction *actionDraw() = 0;
444 virtual QAction *actionNewVectorLayer() = 0;
445 virtual QAction *actionAddOgrLayer() = 0;
446 virtual QAction *actionAddRasterLayer() = 0;
447 virtual QAction *actionAddPgLayer() = 0;
448 virtual QAction *actionAddWmsLayer() = 0;
449 virtual QAction *actionCopyLayerStyle() = 0;
450 virtual QAction *actionPasteLayerStyle() = 0;
451 virtual QAction *actionOpenTable() = 0;
452 virtual QAction *actionOpenFieldCalculator() = 0;
453 virtual QAction *actionToggleEditing() = 0;
454 virtual QAction *actionSaveActiveLayerEdits() = 0;
455 virtual QAction *actionAllEdits() = 0;
456 virtual QAction *actionSaveEdits() = 0;
457 virtual QAction *actionSaveAllEdits() = 0;
458 virtual QAction *actionRollbackEdits() = 0;
459 virtual QAction *actionRollbackAllEdits() = 0;
460 virtual QAction *actionCancelEdits() = 0;
461 virtual QAction *actionCancelAllEdits() = 0;
462 virtual QAction *actionLayerSaveAs() = 0;
467 virtual QAction *actionLayerSelectionSaveAs() = 0;
468 virtual QAction *actionRemoveLayer() = 0;
469 virtual QAction *actionDuplicateLayer() = 0;
470 virtual QAction *actionLayerProperties() = 0;
471 virtual QAction *actionAddToOverview() = 0;
472 virtual QAction *actionAddAllToOverview() = 0;
473 virtual QAction *actionRemoveAllFromOverview() = 0;
474 virtual QAction *actionHideAllLayers() = 0;
475 virtual QAction *actionShowAllLayers() = 0;
476 virtual QAction *actionHideSelectedLayers() = 0;
477 virtual QAction *actionShowSelectedLayers() = 0;
480 virtual QAction *actionManagePlugins() = 0;
481 virtual QAction *actionPluginListSeparator() = 0;
482 virtual QAction *actionShowPythonDialog() = 0;
485 virtual QAction *actionToggleFullScreen() = 0;
486 virtual QAction *actionOptions() = 0;
487 virtual QAction *actionCustomProjection() = 0;
490 virtual QAction *actionHelpContents() = 0;
491 virtual QAction *actionQgisHomePage() = 0;
492 virtual QAction *actionCheckQgisVersion() = 0;
493 virtual QAction *actionAbout() = 0;
502 virtual bool openFeatureForm(
QgsVectorLayer *l,
QgsFeature &f,
bool updateFeatureOnly =
false,
bool showModal =
true ) = 0;
534 virtual void preloadForm( QString uifile ) = 0;
539 virtual QList<QgsMapLayer *> editableLayers(
bool modified =
false )
const = 0;
542 virtual int messageTimeout() = 0;
562 void initializationCompleted();
578 void newProjectCreated();
590 # define QGISEXTERN extern "C" __declspec( dllexport )
592 # define QGISEXTERN extern "C"
596 #endif //#ifndef QGISINTERFACE_H