2004-02-21 22:28:45 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* Copyright (C) 2003 by Tim Sutton *
|
|
|
|
* tim@linfiniti.com *
|
|
|
|
* *
|
|
|
|
* This is a plugin generated from the QGIS plugin template *
|
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU General Public License as published by *
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
|
|
* (at your option) any later version. *
|
|
|
|
***************************************************************************/
|
2004-02-22 01:45:01 +00:00
|
|
|
#include "plugingui.h"
|
2004-02-21 22:28:45 +00:00
|
|
|
|
|
|
|
//qt includes
|
|
|
|
|
|
|
|
//standard includes
|
|
|
|
|
2005-04-24 03:34:36 +00:00
|
|
|
[pluginname]Gui::[pluginname]Gui() : [pluginname]GuiBase()
|
2004-02-21 22:28:45 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2005-04-24 03:34:36 +00:00
|
|
|
[pluginname]Gui::[pluginname]Gui( QWidget* parent , const char* name , bool modal , WFlags fl )
|
|
|
|
: [pluginname]GuiBase( parent, name, modal, fl )
|
2004-02-21 22:28:45 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
2005-04-24 03:34:36 +00:00
|
|
|
[pluginname]Gui::~[pluginname]Gui()
|
2004-02-21 22:28:45 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2005-04-24 03:34:36 +00:00
|
|
|
void [pluginname]Gui::pbnOK_clicked()
|
2004-02-21 22:28:45 +00:00
|
|
|
{
|
|
|
|
//
|
|
|
|
// If you have a produced a raster layer using your plugin, you can ask qgis to
|
|
|
|
// add it to the view using:
|
|
|
|
// emit drawRasterLayer(QString("layername"));
|
2004-02-22 01:45:01 +00:00
|
|
|
// or for a vector layer
|
2004-02-22 08:43:27 +00:00
|
|
|
// emit drawVectorLayer(QString("pathname"),QString("layername"),QString("provider name (either ogr or postgres"));
|
2004-02-21 22:28:45 +00:00
|
|
|
//
|
2004-04-27 16:17:26 +00:00
|
|
|
//close the dialog
|
|
|
|
done(1);
|
2004-02-21 22:28:45 +00:00
|
|
|
}
|
2005-04-24 03:34:36 +00:00
|
|
|
void [pluginname]Gui::pbnCancel_clicked()
|
2004-04-27 16:17:26 +00:00
|
|
|
{
|
|
|
|
close(1);
|
|
|
|
}
|