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

« back to all changes in this revision

Viewing changes to src/qgsuvaldialog.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
                         qgsuvaldialog.h  -  description
 
3
                             -------------------
 
4
    begin                : July 2004
 
5
    copyright            : (C) 2004 by Marco Hugentobler
 
6
    email                : marco.hugentobler@autoform.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: qgsuvaldialog.h,v 1.6 2004/10/16 21:59:14 gsherman Exp $ */
 
18
#ifndef QGSUVALDIALOG_H
 
19
#define QGSUVALDIALOG_H
 
20
#ifdef WIN32
 
21
#include "qgsuvaldialogbase.h"
 
22
#else
 
23
#include "qgsuvaldialogbase.uic.h"
 
24
#endif
 
25
#include "qgssisydialog.h"
 
26
#include <map>
 
27
 
 
28
class QgsVectorLayer;
 
29
class QgsRenderItem;
 
30
 
 
31
class QgsUValDialog: public QgsUValDialogBase
 
32
{
 
33
    Q_OBJECT
 
34
 public:
 
35
    QgsUValDialog(QgsVectorLayer* vl);
 
36
    ~QgsUValDialog();
 
37
 
 
38
 public slots:
 
39
     void apply();
 
40
 
 
41
 protected:
 
42
    /**Pointer to the associated vector layer*/
 
43
    QgsVectorLayer* mVectorLayer;
 
44
    /**Set to store the already entered values*/
 
45
    std::map<QString,QgsRenderItem*> mValues;
 
46
    QgsSiSyDialog sydialog;
 
47
    /**Value for which symbology settings are displayed*/
 
48
    QString currentValue;
 
49
 
 
50
 protected slots:
 
51
    /**Set new attribut for classification*/
 
52
    void changeClassificationAttribute(int nr);
 
53
    /**Changes the display of the single symbol dialog*/
 
54
    void changeCurrentValue();
 
55
    /**Writes changes in the single symbol dialog to the corresponding QgsSymbol*/
 
56
    void applySymbologyChanges();
 
57
};
 
58
 
 
59
#endif