mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1345 c8812cc2-4d05-0410-92ff-de0c093fc19c
58 lines
1.8 KiB
C++
58 lines
1.8 KiB
C++
/***************************************************************************
|
|
* 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. *
|
|
***************************************************************************/
|
|
#include "plugingui.h"
|
|
#include <qtextedit.h>
|
|
#include <qsimplerichtext.h>
|
|
#include <qcombobox.h>
|
|
//qt includes
|
|
|
|
//standard includes
|
|
|
|
PluginGui::PluginGui() : PluginGuiBase()
|
|
{
|
|
|
|
}
|
|
|
|
PluginGui::PluginGui( QWidget* parent , const char* name , bool modal , WFlags fl )
|
|
: PluginGuiBase( parent, name, modal, fl )
|
|
{
|
|
|
|
}
|
|
PluginGui::~PluginGui()
|
|
{
|
|
}
|
|
|
|
void PluginGui::pbnOK_clicked()
|
|
{
|
|
//
|
|
// 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"));
|
|
// or for a vector layer
|
|
// emit drawVectorLayer(QString("pathname"),QString("layername"),QString("provider name (either ogr or postgres"));
|
|
//
|
|
//close the dialog
|
|
//emit refreshCanvas();
|
|
emit changeFont(txtCopyrightText->currentFont());
|
|
emit changeLabel(txtCopyrightText->text());
|
|
emit changeColor(txtCopyrightText->color());
|
|
emit changePlacement(cboPlacement->currentText());
|
|
|
|
done(1);
|
|
}
|
|
void PluginGui::pbnCancel_clicked()
|
|
{
|
|
close(1);
|
|
}
|
|
|
|
|