fixed maplayer plugin so it loads -- doesn't do anything useful

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@523 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
gsherman 2004-01-19 20:53:53 +00:00
parent 5810d67463
commit 5d3546d29f
2 changed files with 40 additions and 1 deletions

View File

@ -0,0 +1,34 @@
# Copyright (C) 2003 Gary Sherman <sherman at mrcc.com>
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
lib_LTLIBRARIES = libmaplayerplugin.la
%.moc.cpp: %.h
$(MOC) -o $@ $<
%.h: %.ui
$(UIC) -o $@ $<
%.cpp: %.ui
$(UIC) -o $@ -impl $*.h $<
libmaplayerplugin_la_SOURCES = maplayertest.cpp \
../../src/qgsmaplayerinterface.h \
$(maplayer_UI)\
$(maplayer_MOC)
maplayer_MOC = maplayertest.moc.cpp \
../../src/qgsmaplayerinterface.moc.cpp
maplayer_UI =
# UI dependencies
AM_CXXFLAGS := $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(QT_CXXFLAGS)
libmaplayerplugin_la_LIBADD = $(QT_LDADD)

View File

@ -1,6 +1,6 @@
#include <qpopupmenu.h>
#include <qmessagebox.h>
#include "../qgisplugin.h"
#include "maplayertest.h"
// xpm for creating the toolbar icon
#include "matrix1.xpm"
@ -51,3 +51,8 @@ extern "C" QString name(){
extern "C" QString description(){
return QString("Map Layer test plugin using QgsMapLayerInterface interface");
}
// Return the type (either UI or MapLayer plugin)
extern "C" int type()
{
return QgisPlugin::MAPLAYER;
}