Quantum GIS API Documentation  1.8
src/core/composer/qgsticksscalebarstyle.h
Go to the documentation of this file.
00001 /***************************************************************************
00002                             qgsticksscalebarstyle.h
00003                             -----------------------------
00004     begin                : June 2008
00005     copyright            : (C) 2008 by Marco Hugentobler
00006     email                : marco.hugentobler@karto.baug.ethz.ch
00007  ***************************************************************************/
00008 /***************************************************************************
00009  *                                                                         *
00010  *   This program is free software; you can redistribute it and/or modify  *
00011  *   it under the terms of the GNU General Public License as published by  *
00012  *   the Free Software Foundation; either version 2 of the License, or     *
00013  *   (at your option) any later version.                                   *
00014  *                                                                         *
00015  ***************************************************************************/
00016 
00017 #ifndef QGSTICKSSCALEBARSTYLE_H
00018 #define QGSTICKSSCALEBARSTYLE_H
00019 
00020 #include "qgsscalebarstyle.h"
00021 
00025 class CORE_EXPORT QgsTicksScaleBarStyle: public QgsScaleBarStyle
00026 {
00027   public:
00028     enum TickPosition
00029     {
00030       TicksUp,
00031       TicksDown,
00032       TicksMiddle
00033     };
00034 
00035     QgsTicksScaleBarStyle( const QgsComposerScaleBar* bar );
00036     ~QgsTicksScaleBarStyle();
00037 
00038     QString name() const;
00039 
00044     void draw( QPainter* p, double xOffset = 0 ) const;
00045 
00046     void setTickPosition( TickPosition p ) {mTickPosition = p;}
00047 
00048   private:
00049     QgsTicksScaleBarStyle(); //forbidden
00050 
00051     TickPosition mTickPosition;
00052 };
00053 
00054 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines