QGIS API Documentation  2.6.0-Brighton
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
qgspenstylecombobox.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgspenstylecombobox.h
3  ---------------------
4  begin : November 2009
5  copyright : (C) 2009 by Martin Dobias
6  email : wonder dot sk at gmail dot com
7  ***************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  ***************************************************************************/
15 
16 #ifndef QGSPENSTYLECOMBOBOX_H
17 #define QGSPENSTYLECOMBOBOX_H
18 
19 #include <QComboBox>
20 
21 class GUI_EXPORT QgsPenStyleComboBox : public QComboBox
22 {
23  Q_OBJECT
24 
25  public:
26  QgsPenStyleComboBox( QWidget* parent = NULL );
27 
28  Qt::PenStyle penStyle() const;
29 
30  void setPenStyle( Qt::PenStyle style );
31 
32  protected:
33  QIcon iconForPen( Qt::PenStyle style );
34 
35 };
36 
37 class GUI_EXPORT QgsPenJoinStyleComboBox : public QComboBox
38 {
39  Q_OBJECT
40 
41  public:
42  QgsPenJoinStyleComboBox( QWidget* parent = NULL );
43 
44  Qt::PenJoinStyle penJoinStyle() const;
45 
46  void setPenJoinStyle( Qt::PenJoinStyle style );
47 };
48 
49 class GUI_EXPORT QgsPenCapStyleComboBox : public QComboBox
50 {
51  Q_OBJECT
52 
53  public:
54  QgsPenCapStyleComboBox( QWidget* parent = NULL );
55 
56  Qt::PenCapStyle penCapStyle() const;
57 
58  void setPenCapStyle( Qt::PenCapStyle style );
59 };
60 
61 #endif