src/plugins/scale_bar/plugingui.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2003 by Tim Sutton                                      *
00003  *   tim@linfiniti.com                                                     *
00004  *                                                                         *
00005  *   This is a plugin generated from the QGIS plugin template              *
00006  *                                                                         *
00007  *   This program is free software; you can redistribute it and/or modify  *
00008  *   it under the terms of the GNU General Public License as published by  *
00009  *   the Free Software Foundation; either version 2 of the License, or     *
00010  *   (at your option) any later version.                                   *
00011  ***************************************************************************/
00012 #ifndef QGSSCALEBARPLUGINGUI_H
00013 #define QGSSCALEBARPLUGINGUI_H
00014 
00015 #include <ui_pluginguibase.h>
00016 #include <QDialog>
00017 
00021 class QgsScaleBarPluginGui : public QDialog, private Ui::QgsScaleBarPluginGuiBase
00022 {
00023     Q_OBJECT
00024   public:
00025     QgsScaleBarPluginGui( QWidget* parent = 0, Qt::WFlags fl = 0 );
00026     ~QgsScaleBarPluginGui();
00027     void setPlacementLabels( QStringList& );
00028     void setPlacement( int );
00029     void setPreferredSize( int );
00030     void setSnapping( bool );
00031     void setEnabled( bool );
00032     void setStyleLabels( QStringList& );
00033     void setStyle( int );
00034     void setColour( QColor );
00035 
00036     //accessor for getting a pointer to the size spin widget
00037     QSpinBox * getSpinSize();
00038 
00039   private slots:
00040     void on_buttonBox_accepted();
00041     void on_buttonBox_rejected();
00042     void on_buttonBox_helpRequested();
00043     void on_pbnChangeColour_clicked();
00044 
00045   private:
00046 
00047     static const int context_id = 0;
00048 
00049   signals:
00050     void drawRasterLayer( QString );
00051     void drawVectorrLayer( QString, QString, QString );
00052     void changePlacement( int );
00053     void changePreferredSize( int );
00054     void changeSnapping( bool );
00055     void changeEnabled( bool );
00056     void changeStyle( int );
00057     void changeColour( QColor );
00058     void refreshCanvas();
00059 };
00060 
00061 #endif

Generated on Tue Oct 28 16:51:33 2008 for Quantum GIS API Documentation by  doxygen 1.5.1