~ubuntu-branches/ubuntu/hardy/qgis/hardy

« back to all changes in this revision

Viewing changes to src/legend/qgslegendvectorsymbologyitem.h

  • Committer: Bazaar Package Importer
  • Author(s): William Grant
  • Date: 2007-05-06 13:42:32 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070506134232-pyli6t388w5asd8x
Tags: 0.8.0-3ubuntu1
* Merge from Debian unstable. Remaining Ubuntu changes:
  - debian/rules, debian/qgis.install, debian/qgis.dirs debian/qgis.desktop:
    Add and install .desktop.
* debian/qgis.desktop: Remove Applications category; it's not real.
* Modify Maintainer value to match Debian-Maintainer-Field Spec

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                         qgslegendvectorsymbologyitem.h  -  description
 
3
                             -------------------
 
4
    begin                : Juli 2005
 
5
    copyright            : (C) 2005 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
 
 
18
#ifndef QGSLEGENDVECTORSYMBOLOGYITEM_H
 
19
#define QGSLEGENDVECTORSYMBOLOGYITEM_H
 
20
 
 
21
#include <list>
 
22
#include "qgslegendsymbologyitem.h"
 
23
 
 
24
class QgsSymbol;
 
25
 
 
26
class QgsLegendVectorSymbologyItem: public QgsLegendSymbologyItem
 
27
{
 
28
 public:
 
29
    QgsLegendVectorSymbologyItem(QTreeWidgetItem * theItem, QString col1, int pixmapWidth, int pixmapHeight);
 
30
    /**Add a symbol to the list such that it will be updated if necessary*/
 
31
    void addSymbol(QgsSymbol* s);
 
32
    /**Brings up a single symbol dialog. The changes are then applied to all entries of mSymbols*/
 
33
    void handleDoubleClickEvent();
 
34
 private:
 
35
    /**Collection of pointers to the vector layer symbols associated with this item*/
 
36
    std::list<QgsSymbol*> mSymbols;
 
37
};
 
38
 
 
39
#endif