18 #ifndef QGISINTERFACE_H
19 #define QGISINTERFACE_H
85 virtual void zoomFull() = 0;
88 virtual void zoomToPrevious() = 0;
91 virtual void zoomToNext() = 0;
94 virtual void zoomToActiveLayer() = 0;
97 virtual QgsVectorLayer* addVectorLayer( QString vectorLayerPath, QString baseName, QString providerKey ) = 0;
100 virtual QgsRasterLayer* addRasterLayer( QString rasterLayerPath, QString baseName = QString() ) = 0;
103 virtual QgsRasterLayer* addRasterLayer(
const QString& url,
const QString& layerName,
const QString& providerKey ) = 0;
106 virtual bool addProject( QString theProject ) = 0;
108 virtual void newProject(
bool thePromptToSaveFlag =
false ) = 0;
118 virtual int addToolBarIcon( QAction *qAction ) = 0;
128 virtual QAction* addToolBarWidget( QWidget* widget ) = 0;
131 virtual void removeToolBarIcon( QAction *qAction ) = 0;
141 virtual QAction* addRasterToolBarWidget( QWidget* widget ) = 0;
144 virtual int addRasterToolBarIcon( QAction *qAction ) = 0;
147 virtual void removeRasterToolBarIcon( QAction *qAction ) = 0;
150 virtual int addVectorToolBarIcon( QAction *qAction ) = 0;
160 virtual QAction* addVectorToolBarWidget( QWidget* widget ) = 0;
163 virtual void removeVectorToolBarIcon( QAction *qAction ) = 0;
166 virtual int addDatabaseToolBarIcon( QAction *qAction ) = 0;
176 virtual QAction* addDatabaseToolBarWidget( QWidget* widget ) = 0;
179 virtual void removeDatabaseToolBarIcon( QAction *qAction ) = 0;
182 virtual int addWebToolBarIcon( QAction *qAction ) = 0;
192 virtual QAction* addWebToolBarWidget( QWidget* widget ) = 0;
195 virtual void removeWebToolBarIcon( QAction *qAction ) = 0;
198 virtual QToolBar *addToolBar( QString name ) = 0;
202 virtual void addToolBar( QToolBar* toolbar, Qt::ToolBarArea area = Qt::TopToolBarArea ) = 0;
208 virtual QWidget * mainWindow() = 0;
214 virtual QList<QgsComposerView*> activeComposers() = 0;
221 virtual QgsComposerView* createNewComposer( QString title = QString(
"" ) ) = 0;
235 virtual QMap<QString, QVariant> defaultStyleSheetOptions() = 0;
240 virtual void buildStyleSheet(
const QMap<QString, QVariant>& opts ) = 0;
243 virtual void saveStyleSheetOptions(
const QMap<QString, QVariant>& opts ) = 0;
246 virtual QFont defaultStyleSheetFont() = 0;
249 virtual void addPluginToMenu( QString name, QAction* action ) = 0;
252 virtual void removePluginMenu( QString name, QAction* action ) = 0;
255 virtual void insertAddLayerAction( QAction *action ) = 0;
258 virtual void removeAddLayerAction( QAction *action ) = 0;
261 virtual void addPluginToDatabaseMenu( QString name, QAction* action ) = 0;
264 virtual void removePluginDatabaseMenu( QString name, QAction* action ) = 0;
267 virtual void addPluginToRasterMenu( QString name, QAction* action ) = 0;
270 virtual void removePluginRasterMenu( QString name, QAction* action ) = 0;
273 virtual void addPluginToVectorMenu( QString name, QAction* action ) = 0;
276 virtual void removePluginVectorMenu( QString name, QAction* action ) = 0;
279 virtual void addPluginToWebMenu( QString name, QAction* action ) = 0;
282 virtual void removePluginWebMenu( QString name, QAction* action ) = 0;
285 virtual void addDockWidget( Qt::DockWidgetArea area, QDockWidget * dockwidget ) = 0;
288 virtual void removeDockWidget( QDockWidget * dockwidget ) = 0;
291 virtual void showLayerProperties(
QgsMapLayer *l ) = 0;
298 virtual void addWindow( QAction *action ) = 0;
302 virtual void removeWindow( QAction *action ) = 0;
305 virtual bool registerMainWindowAction( QAction* action, QString defaultShortcut ) = 0;
308 virtual bool unregisterMainWindowAction( QAction* action ) = 0;
322 virtual void openURL( QString url,
bool useQgisDocDirectory =
true ) = 0;
333 virtual QMenu *fileMenu() = 0;
334 virtual QMenu *projectMenu() = 0;
335 virtual QMenu *editMenu() = 0;
336 virtual QMenu *viewMenu() = 0;
337 virtual QMenu *layerMenu() = 0;
338 virtual QMenu *newLayerMenu() = 0;
340 virtual QMenu *addLayerMenu() = 0;
341 virtual QMenu *settingsMenu() = 0;
342 virtual QMenu *pluginMenu() = 0;
343 virtual QMenu *rasterMenu() = 0;
344 virtual QMenu *databaseMenu() = 0;
345 virtual QMenu *vectorMenu() = 0;
346 virtual QMenu *webMenu() = 0;
347 virtual QMenu *firstRightStandardMenu() = 0;
348 virtual QMenu *windowMenu() = 0;
349 virtual QMenu *helpMenu() = 0;
352 virtual QToolBar *fileToolBar() = 0;
353 virtual QToolBar *layerToolBar() = 0;
354 virtual QToolBar *mapNavToolToolBar() = 0;
355 virtual QToolBar *digitizeToolBar() = 0;
356 virtual QToolBar *advancedDigitizeToolBar() = 0;
357 virtual QToolBar *attributesToolBar() = 0;
358 virtual QToolBar *pluginToolBar() = 0;
359 virtual QToolBar *helpToolBar() = 0;
360 virtual QToolBar *rasterToolBar() = 0;
361 virtual QToolBar *vectorToolBar() = 0;
362 virtual QToolBar *databaseToolBar() = 0;
363 virtual QToolBar *webToolBar() = 0;
366 virtual QAction *actionNewProject() = 0;
367 virtual QAction *actionOpenProject() = 0;
368 virtual QAction *actionSaveProject() = 0;
369 virtual QAction *actionSaveProjectAs() = 0;
370 virtual QAction *actionSaveMapAsImage() = 0;
371 virtual QAction *actionProjectProperties() = 0;
372 virtual QAction *actionPrintComposer() = 0;
373 virtual QAction *actionShowComposerManager() = 0;
374 virtual QAction *actionExit() = 0;
377 virtual QAction *actionCutFeatures() = 0;
378 virtual QAction *actionCopyFeatures() = 0;
379 virtual QAction *actionPasteFeatures() = 0;
380 virtual QAction *actionAddFeature() = 0;
381 virtual QAction *actionDeleteSelected() = 0;
382 virtual QAction *actionMoveFeature() = 0;
383 virtual QAction *actionSplitFeatures() = 0;
384 virtual QAction *actionSplitParts() = 0;
385 virtual QAction *actionAddRing() = 0;
386 virtual QAction *actionAddPart() = 0;
387 virtual QAction *actionSimplifyFeature() = 0;
388 virtual QAction *actionDeleteRing() = 0;
389 virtual QAction *actionDeletePart() = 0;
390 virtual QAction *actionNodeTool() = 0;
394 virtual QAction *actionPan() = 0;
396 virtual QAction *actionTouch() = 0;
398 virtual QAction *actionPanToSelected() = 0;
400 virtual QAction *actionZoomIn() = 0;
402 virtual QAction *actionZoomOut() = 0;
404 virtual QAction *actionSelect() = 0;
406 virtual QAction *actionSelectRectangle() = 0;
408 virtual QAction *actionSelectPolygon() = 0;
410 virtual QAction *actionSelectFreehand() = 0;
412 virtual QAction *actionSelectRadius() = 0;
414 virtual QAction *actionIdentify() = 0;
416 virtual QAction *actionFeatureAction() = 0;
418 virtual QAction *actionMeasure() = 0;
420 virtual QAction *actionMeasureArea() = 0;
422 virtual QAction *actionZoomFullExtent() = 0;
424 virtual QAction *actionZoomToLayer() = 0;
426 virtual QAction *actionZoomToSelected() = 0;
428 virtual QAction *actionZoomLast() = 0;
430 virtual QAction *actionZoomNext() = 0;
432 virtual QAction *actionZoomActualSize() = 0;
434 virtual QAction *actionMapTips() = 0;
436 virtual QAction *actionNewBookmark() = 0;
438 virtual QAction *actionShowBookmarks() = 0;
440 virtual QAction *actionDraw() = 0;
443 virtual QAction *actionNewVectorLayer() = 0;
444 virtual QAction *actionAddOgrLayer() = 0;
445 virtual QAction *actionAddRasterLayer() = 0;
446 virtual QAction *actionAddPgLayer() = 0;
447 virtual QAction *actionAddWmsLayer() = 0;
448 virtual QAction *actionCopyLayerStyle() = 0;
449 virtual QAction *actionPasteLayerStyle() = 0;
450 virtual QAction *actionOpenTable() = 0;
451 virtual QAction *actionOpenFieldCalculator() = 0;
452 virtual QAction *actionToggleEditing() = 0;
453 virtual QAction *actionSaveActiveLayerEdits() = 0;
454 virtual QAction *actionAllEdits() = 0;
455 virtual QAction *actionSaveEdits() = 0;
456 virtual QAction *actionSaveAllEdits() = 0;
457 virtual QAction *actionRollbackEdits() = 0;
458 virtual QAction *actionRollbackAllEdits() = 0;
459 virtual QAction *actionCancelEdits() = 0;
460 virtual QAction *actionCancelAllEdits() = 0;
461 virtual QAction *actionLayerSaveAs() = 0;
466 virtual QAction *actionLayerSelectionSaveAs() = 0;
467 virtual QAction *actionRemoveLayer() = 0;
468 virtual QAction *actionDuplicateLayer() = 0;
469 virtual QAction *actionLayerProperties() = 0;
470 virtual QAction *actionAddToOverview() = 0;
471 virtual QAction *actionAddAllToOverview() = 0;
472 virtual QAction *actionRemoveAllFromOverview() = 0;
473 virtual QAction *actionHideAllLayers() = 0;
474 virtual QAction *actionShowAllLayers() = 0;
475 virtual QAction *actionHideSelectedLayers() = 0;
476 virtual QAction *actionShowSelectedLayers() = 0;
479 virtual QAction *actionManagePlugins() = 0;
480 virtual QAction *actionPluginListSeparator() = 0;
481 virtual QAction *actionShowPythonDialog() = 0;
484 virtual QAction *actionToggleFullScreen() = 0;
485 virtual QAction *actionOptions() = 0;
486 virtual QAction *actionCustomProjection() = 0;
489 virtual QAction *actionHelpContents() = 0;
490 virtual QAction *actionQgisHomePage() = 0;
491 virtual QAction *actionCheckQgisVersion() = 0;
492 virtual QAction *actionAbout() = 0;
501 virtual bool openFeatureForm(
QgsVectorLayer *l,
QgsFeature &f,
bool updateFeatureOnly =
false,
bool showModal =
true ) = 0;
533 virtual void preloadForm( QString uifile ) = 0;
538 virtual QList<QgsMapLayer *> editableLayers(
bool modified =
false )
const = 0;
541 virtual int messageTimeout() = 0;
561 void initializationCompleted();
577 void newProjectCreated();
583 # define QGISEXTERN extern "C" __declspec( dllexport )
585 # define QGISEXTERN extern "C"
589 #endif //#ifndef QGISINTERFACE_H