00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #include <iostream>
00021 #include <QString>
00022 #include <QMenu>
00023
00024 #include "qgisappinterface.h"
00025 #include "omgmainwindow.h"
00026 #include "qgsmaplayer.h"
00027 #include "qgsmaplayerregistry.h"
00028 #include "qgsmapcanvas.h"
00029
00030
00031 QgisAppInterface::QgisAppInterface ( OmgMainWindow * thepOmgMainWindow )
00032 : mpOmgMainWindow ( thepOmgMainWindow )
00033 {
00034
00035
00036
00037
00038 }
00039
00040 QgisAppInterface::~QgisAppInterface()
00041 {
00042 }
00043
00044 void QgisAppInterface::zoomFull()
00045 {
00046
00047 }
00048
00049 void QgisAppInterface::zoomPrevious()
00050 {
00051
00052 }
00053
00054 void QgisAppInterface::zoomActiveLayer()
00055 {
00056
00057 }
00058
00059 QgsVectorLayer * QgisAppInterface::addVectorLayer ( QString vectorLayerPath, QString baseName, QString providerKey )
00060 {
00061
00062
00063 return 0;
00064 }
00065
00066 QgsRasterLayer * QgisAppInterface::addRasterLayer ( QString rasterLayerPath, QString baseName )
00067 {
00068 return 0;
00069 }
00070
00071 QgsRasterLayer * QgisAppInterface::addRasterLayer ( QgsRasterLayer * theRasterLayer, bool theForceRenderFlag )
00072 {
00073 return 0;
00074 }
00075
00076 bool QgisAppInterface::addProject ( QString theProjectName )
00077 {
00078 return false;
00079 }
00080
00081 void QgisAppInterface::newProject ( bool thePromptToSaveFlag )
00082 {
00083
00084 }
00085
00086 QgsMapLayer *QgisAppInterface::activeLayer()
00087 {
00088 return NULL;
00089 }
00090
00091 void QgisAppInterface::addPluginMenu ( QString name, QAction* action )
00092 {
00093
00094 }
00095
00096 void QgisAppInterface::removePluginMenu ( QString name, QAction* action )
00097 {
00098
00099 }
00100
00101 int QgisAppInterface::addToolBarIcon ( QAction * qAction )
00102 {
00103
00104 return 0;
00105 }
00106 void QgisAppInterface::removeToolBarIcon ( QAction *qAction )
00107 {
00108
00109 }
00110 QToolBar* QgisAppInterface::addToolBar ( QString name )
00111 {
00112 return NULL;
00113 }
00114 void QgisAppInterface::openURL ( QString url, bool useQgisDocDirectory )
00115 {
00116
00117 }
00118
00119 std::map<QString, int> QgisAppInterface::menuMapByName()
00120 {
00121
00122 std::map<QString, int> myMap;
00123 return myMap;
00124 }
00125
00126 std::map<int, QString> QgisAppInterface::menuMapById()
00127 {
00128 std::map<int, QString> myMap;
00129 return myMap;
00130 }
00131
00132 QgsMapCanvas * QgisAppInterface::getMapCanvas()
00133 {
00134 return mpOmgMainWindow->mpMapCanvas;
00135 }
00136
00137 QWidget * QgisAppInterface::getMainWindow()
00138 {
00139 return mpOmgMainWindow;
00140 }
00141
00142 QToolBox* QgisAppInterface::getToolBox()
00143 {
00144 return NULL;
00145 }