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