QGIS API Documentation
2.0.1-Dufour
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
src
core
composer
qgsscalebarstyle.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsscalebarstyle.h
3
------------------
4
begin : June 2008
5
copyright : (C) 2008 by Marco Hugentobler
6
email :
[email protected]
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
17
#ifndef QGSSCALEBARSTYLE_H
18
#define QGSSCALEBARSTYLE_H
19
20
#include <QIcon>
21
#include <QRectF>
22
23
class
QgsComposerScaleBar
;
24
class
QPainter;
25
30
class
CORE_EXPORT
QgsScaleBarStyle
31
{
32
public
:
33
QgsScaleBarStyle
(
const
QgsComposerScaleBar
* bar );
34
virtual
~
QgsScaleBarStyle
();
35
39
virtual
void
draw( QPainter* p,
double
xOffset = 0 )
const
= 0;
//to do by every subclass
40
virtual
void
drawLabels( QPainter* p )
const
;
//default implementation provided
41
virtual
QRectF calculateBoxSize()
const
;
//default implementation provided
42
virtual
QString name()
const
= 0;
//return name of the style
43
//virtual QIcon styleIcon() const = 0;
44
45
private
:
46
QgsScaleBarStyle
();
//default constructor forbidden
47
48
protected
:
49
const
QgsComposerScaleBar
*
mScaleBar
;
50
};
51
52
#endif
Generated on Tue Sep 24 2013 14:41:46 for QGIS API Documentation by
1.8.1.2