QGIS API Documentation  master-6227475
src/gui/symbology-ng/qgspenstylecombobox.h
Go to the documentation of this file.
00001 /***************************************************************************
00002     qgspenstylecombobox.h
00003     ---------------------
00004     begin                : November 2009
00005     copyright            : (C) 2009 by Martin Dobias
00006     email                : wonder dot sk at gmail dot com
00007  ***************************************************************************
00008  *                                                                         *
00009  *   This program is free software; you can redistribute it and/or modify  *
00010  *   it under the terms of the GNU General Public License as published by  *
00011  *   the Free Software Foundation; either version 2 of the License, or     *
00012  *   (at your option) any later version.                                   *
00013  *                                                                         *
00014  ***************************************************************************/
00015 
00016 #ifndef QGSPENSTYLECOMBOBOX_H
00017 #define QGSPENSTYLECOMBOBOX_H
00018 
00019 #include <QComboBox>
00020 
00021 class GUI_EXPORT QgsPenStyleComboBox : public QComboBox
00022 {
00023     Q_OBJECT
00024 
00025   public:
00026     QgsPenStyleComboBox( QWidget* parent = NULL );
00027 
00028     Qt::PenStyle penStyle() const;
00029 
00030     void setPenStyle( Qt::PenStyle style );
00031 
00032   protected:
00033     QIcon iconForPen( Qt::PenStyle style );
00034 
00035 };
00036 
00037 class GUI_EXPORT QgsPenJoinStyleComboBox : public QComboBox
00038 {
00039     Q_OBJECT
00040 
00041   public:
00042     QgsPenJoinStyleComboBox( QWidget* parent = NULL );
00043 
00044     Qt::PenJoinStyle penJoinStyle() const;
00045 
00046     void setPenJoinStyle( Qt::PenJoinStyle style );
00047 };
00048 
00049 class GUI_EXPORT QgsPenCapStyleComboBox : public QComboBox
00050 {
00051     Q_OBJECT
00052 
00053   public:
00054     QgsPenCapStyleComboBox( QWidget* parent = NULL );
00055 
00056     Qt::PenCapStyle penCapStyle() const;
00057 
00058     void setPenCapStyle( Qt::PenCapStyle style );
00059 };
00060 
00061 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines