File tree Expand file tree Collapse file tree 5 files changed +10
-8
lines changed
src/plugins/plugin_template Expand file tree Collapse file tree 5 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -76,5 +76,6 @@ libqgis_plugin_[pluginlcasename]_la_CXXFLAGS = $(CXXFLAGS) \
76
76
$(GEOS_CFLAGS ) \
77
77
-I../../core \
78
78
-I../../ui \
79
- -I../../gui
79
+ -I../../gui \
80
+ » » » -I../../raster
80
81
libqgis_plugin_[pluginlcasename]_la_LDFLAGS = -avoid-version -module
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ email : tim@linfiniti.com
25
25
#include < qgisapp.h>
26
26
#include < qgsmaplayer.h>
27
27
#include < qgsrasterlayer.h>
28
- #include " plugin .h"
28
+ #include " [pluginlcasename] .h"
29
29
30
30
31
31
#include < q3toolbar.h>
@@ -41,7 +41,7 @@ email : tim@linfiniti.com
41
41
#include < iostream>
42
42
43
43
// the gui subclass
44
- #include " plugingui .h"
44
+ #include " [pluginlcasename]gui .h"
45
45
46
46
// xpm for creating the toolbar icon
47
47
#ifdef WIN32
Original file line number Diff line number Diff line change 39
39
#include " ../qgisplugin.h"
40
40
#include < qwidget.h>
41
41
42
- #include " ../../src /qgisapp.h"
42
+ #include " ../../gui /qgisapp.h"
43
43
44
44
45
45
/* *
Original file line number Diff line number Diff line change 17
17
18
18
[pluginname]Gui::[pluginname]Gui() : [pluginname]GuiBase()
19
19
{
20
-
20
+ setupUi ( this );
21
21
}
22
22
23
23
[pluginname]Gui::[pluginname]Gui( QWidget* parent, Qt::WFlags fl )
24
24
: [pluginname]GuiBase( parent, fl )
25
25
{
26
-
26
+ setupUi ( this );
27
27
}
28
28
[pluginname]Gui::~[pluginname]Gui()
29
29
{
Original file line number Diff line number Diff line change 12
12
#ifndef [pluginname]GUI_H
13
13
#define [pluginname]GUI_H
14
14
15
- #include < pluginguibase.h>
15
+ #include < QDialog>
16
+ #include < ui[pluginname]guibase.h>
16
17
17
18
/* *
18
19
@author Tim Sutton
19
20
*/
20
- class [pluginname]Gui : public [pluginname]GuiBase
21
+ class [pluginname]Gui : public QDialog, private Ui:: [pluginname]GuiBase
21
22
{
22
23
Q_OBJECT
23
24
public:
You can’t perform that action at this time.
0 commit comments