~ubuntu-branches/ubuntu/quantal/qgis/quantal

« back to all changes in this revision

Viewing changes to src/qgssisydialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve Halasz
  • Date: 2004-12-21 09:46:27 UTC
  • Revision ID: james.westby@ubuntu.com-20041221094627-r9lb6mlz2o3yp8gn
Tags: upstream-0.6.0
ImportĀ upstreamĀ versionĀ 0.6.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                         qgssisydialog.h  -  description
 
3
                             -------------------
 
4
    begin                : Oct 2003
 
5
    copyright            : (C) 2003 by Marco Hugentobler
 
6
    email                : mhugent@geo.unizh.ch
 
7
 ***************************************************************************/
 
8
 
 
9
/***************************************************************************
 
10
 *                                                                         *
 
11
 *   This program is free software; you can redistribute it and/or modify  *
 
12
 *   it under the terms of the GNU General Public License as published by  *
 
13
 *   the Free Software Foundation; either version 2 of the License, or     *
 
14
 *   (at your option) any later version.                                   *
 
15
 *                                                                         *
 
16
 ***************************************************************************/
 
17
/* $Id: qgssisydialog.h,v 1.14.2.1 2004/12/06 23:20:45 mhugent Exp $ */
 
18
 
 
19
#ifndef QGSSISYDIALOG_H
 
20
#define QGSSISYDIALOG_H
 
21
#ifdef WIN32
 
22
#include "qgssisydialogbase.h"
 
23
#else
 
24
#include "qgssisydialogbase.uic.h"
 
25
#endif
 
26
 
 
27
class QgsVectorLayer;
 
28
 
 
29
/**QgsSiSyDialog is a dialog to set symbology for the legend type 'single symbol'*/
 
30
class QgsSiSyDialog: public QgsSiSyDialogBase
 
31
{
 
32
    Q_OBJECT
 
33
public:
 
34
    QgsSiSyDialog(QgsVectorLayer* layer);
 
35
    ~QgsSiSyDialog();
 
36
    QColor getOutlineColor();
 
37
    Qt::PenStyle getOutlineStyle();
 
38
    int getOutlineWidth();
 
39
    QColor getFillColor();
 
40
    Qt::BrushStyle getFillStyle();
 
41
    void setOutlineColor(QColor& c);
 
42
    void setOutlineStyle(Qt::PenStyle pstyle);
 
43
    void setOutlineWidth(int width);
 
44
    void setFillColor(QColor& c);
 
45
    void setFillStyle(Qt::BrushStyle fstyle);
 
46
    void setLabel(QString label);
 
47
    QString label();
 
48
 
 
49
 
 
50
protected:
 
51
    QgsVectorLayer* mVectorLayer;
 
52
public slots:
 
53
    /**applies the changes to the vector layer*/
 
54
    void apply();
 
55
    /**emits the signal settingsChanged()*/
 
56
    void resendSettingsChanged();
 
57
 
 
58
protected slots:
 
59
    void selectOutlineColor();
 
60
    void selectFillColor();
 
61
private:
 
62
    /**Default constructor is privat to not use is*/
 
63
    QgsSiSyDialog();
 
64
 
 
65
signals:
 
66
    void settingsChanged();
 
67
};
 
68
 
 
69
#endif