mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
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:
parent
5810d67463
commit
5d3546d29f
34
plugins/maplayer/Makefile.am
Normal file
34
plugins/maplayer/Makefile.am
Normal 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)
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user