mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-18 00:03:05 -04:00
fixed maplayer plugin so it loads -- doesn't do anything useful
git-svn-id: http://svn.osgeo.org/qgis/trunk@523 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
f6d292064d
commit
078c15b733
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 <qpopupmenu.h>
|
||||||
#include <qmessagebox.h>
|
#include <qmessagebox.h>
|
||||||
|
#include "../qgisplugin.h"
|
||||||
#include "maplayertest.h"
|
#include "maplayertest.h"
|
||||||
// xpm for creating the toolbar icon
|
// xpm for creating the toolbar icon
|
||||||
#include "matrix1.xpm"
|
#include "matrix1.xpm"
|
||||||
@ -51,3 +51,8 @@ extern "C" QString name(){
|
|||||||
extern "C" QString description(){
|
extern "C" QString description(){
|
||||||
return QString("Map Layer test plugin using QgsMapLayerInterface interface");
|
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