Skip to content

Commit

Permalink
Further updates to port of plugin maker for Qt4...still in progress
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@5182 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Apr 6, 2006
1 parent cb11266 commit 3411e3e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
3 changes: 2 additions & 1 deletion src/plugins/plugin_template/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,6 @@ libqgis_plugin_[pluginlcasename]_la_CXXFLAGS = $(CXXFLAGS) \
$(GEOS_CFLAGS) \
-I../../core \
-I../../ui \
-I../../gui
-I../../gui \
» » » -I../../raster
libqgis_plugin_[pluginlcasename]_la_LDFLAGS = -avoid-version -module
4 changes: 2 additions & 2 deletions src/plugins/plugin_template/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ email : tim@linfiniti.com
#include <qgisapp.h>
#include <qgsmaplayer.h>
#include <qgsrasterlayer.h>
#include "plugin.h"
#include "[pluginlcasename].h"


#include <q3toolbar.h>
Expand All @@ -41,7 +41,7 @@ email : tim@linfiniti.com
#include <iostream>

//the gui subclass
#include "plugingui.h"
#include "[pluginlcasename]gui.h"

// xpm for creating the toolbar icon
#ifdef WIN32
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/plugin_template/plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#include "../qgisplugin.h"
#include <qwidget.h>

#include "../../src/qgisapp.h"
#include "../../gui/qgisapp.h"


/**
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/plugin_template/plugingui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@

[pluginname]Gui::[pluginname]Gui() : [pluginname]GuiBase()
{

setupUi(this);
}

[pluginname]Gui::[pluginname]Gui( QWidget* parent, Qt::WFlags fl )
: [pluginname]GuiBase( parent, fl )
{
setupUi(this);
}
[pluginname]Gui::~[pluginname]Gui()
{
Expand Down
5 changes: 3 additions & 2 deletions src/plugins/plugin_template/plugingui.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@
#ifndef [pluginname]GUI_H
#define [pluginname]GUI_H

#include <pluginguibase.h>
#include <QDialog>
#include <ui[pluginname]guibase.h>

/**
@author Tim Sutton
*/
class [pluginname]Gui : public [pluginname]GuiBase
class [pluginname]Gui : public QDialog, private Ui::[pluginname]GuiBase
{
Q_OBJECT
public:
Expand Down

0 comments on commit 3411e3e

Please sign in to comment.