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

« back to all changes in this revision

Viewing changes to src/qgsmarkercatalogue.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve Halasz
  • Date: 2005-11-05 16:04:45 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20051105160445-l0g4isz5bc9yehet
Tags: 0.7.4-1
* New upstream release
* Build GRASS support in qgis-plugin-grass package (Closes: #248649)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                             qgsmarkercatalogue.h
 
3
                             -------------------
 
4
    begin                : March 2005
 
5
    copyright            : (C) 2005 by Radim Blazek
 
6
    email                : blazek@itc.it
 
7
 ***************************************************************************/
 
8
/***************************************************************************
 
9
 *                                                                         *
 
10
 *   This program is free software; you can redistribute it and/or modify  *
 
11
 *   it under the terms of the GNU General Public License as published by  *
 
12
 *   the Free Software Foundation; either version 2 of the License, or     *
 
13
 *   (at your option) any later version.                                   *
 
14
 *                                                                         *
 
15
 ***************************************************************************/
 
16
#ifndef QGSMARKERCATALOGUE_H
 
17
#define QGSMARKERCATALOGUE_H
 
18
 
 
19
#include <iostream>
 
20
 
 
21
#include <qbrush.h>
 
22
#include <qpen.h>
 
23
#include <qpixmap.h>
 
24
#include <qpicture.h>
 
25
#include <qdom.h>
 
26
#include <qstringlist.h>
 
27
 
 
28
class QString;
 
29
 
 
30
/** Catalogue of point symbols */
 
31
class QgsMarkerCatalogue{
 
32
 
 
33
public:
 
34
    //! Destructor
 
35
    ~QgsMarkerCatalogue();
 
36
 
 
37
    //! Access to canonical QgsMarkerCatalogue instance
 
38
    static QgsMarkerCatalogue *instance();
 
39
    
 
40
    /**List of available markers*/
 
41
    QStringList list();
 
42
    
 
43
    /** Returns picture of the marker
 
44
     * \param fullName full name, e.g. hard:circle, svg:/home/usr1/marker1.svg
 
45
     */
 
46
    QPicture marker ( QString fullName, int size, QPen pen, QBrush brush, int oversampling = 1, bool qtBug = true );
 
47
 
 
48
private:
 
49
 
 
50
    /**Constructor*/
 
51
    QgsMarkerCatalogue();
 
52
 
 
53
    static QgsMarkerCatalogue *mMarkerCatalogue;
 
54
 
 
55
    /** List of availabel markers*/
 
56
    QStringList mList;
 
57
 
 
58
    /** Hard coded */
 
59
    QPicture hardMarker ( QString name, int size, QPen pen, QBrush brush, int oversampling = 1, bool qtBug = true );
 
60
 
 
61
    /** Hard coded */
 
62
    QPicture svgMarker ( QString name, int size, int oversampling = 1 );
 
63
};
 
64
    
 
65
#endif // QGSMARKERCATALOGUE_H
 
66
 
 
67