QGIS API Documentation  2.99.0-Master (08c2e66)
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 #include "qgis_gui.h"
21 
25 class GUI_EXPORT QgsPenStyleComboBox : public QComboBox
26 {
27  Q_OBJECT
28 
29  public:
30  QgsPenStyleComboBox( QWidget* parent = nullptr );
31 
32  Qt::PenStyle penStyle() const;
33 
34  void setPenStyle( Qt::PenStyle style );
35 
36  protected:
37  QIcon iconForPen( Qt::PenStyle style );
38 
39 };
40 
44 class GUI_EXPORT QgsPenJoinStyleComboBox : public QComboBox
45 {
46  Q_OBJECT
47 
48  public:
49  QgsPenJoinStyleComboBox( QWidget* parent = nullptr );
50 
51  Qt::PenJoinStyle penJoinStyle() const;
52 
53  void setPenJoinStyle( Qt::PenJoinStyle style );
54 };
55 
59 class GUI_EXPORT QgsPenCapStyleComboBox : public QComboBox
60 {
61  Q_OBJECT
62 
63  public:
64  QgsPenCapStyleComboBox( QWidget* parent = nullptr );
65 
66  Qt::PenCapStyle penCapStyle() const;
67 
68  void setPenCapStyle( Qt::PenCapStyle style );
69 };
70 
71 #endif