QGIS API Documentation 3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
qgsdashspacedialog.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsdashspacedialog.h
3 ---------------------
4 begin : January 2010
5 copyright : (C) 2010 by Marco Hugentobler
6 email : marco at hugis dot net
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 QGSDASHSPACEDIALOG_H
17#define QGSDASHSPACEDIALOG_H
18
19#include "ui_qgsdashspacewidgetbase.h"
20
21#include "qgis_gui.h"
22#include "qgis_sip.h"
23#include "qgspanelwidget.h"
24#include "qgsunittypes.h"
25
26#include <QDialog>
27
33class GUI_EXPORT QgsDashSpaceWidget: public QgsPanelWidget, private Ui::QgsDashSpaceWidgetBase
34{
35 Q_OBJECT
36 public:
37
39 QgsDashSpaceWidget( const QVector<qreal> &vectorPattern, QWidget *parent SIP_TRANSFERTHIS = nullptr );
40
42 QVector<qreal> dashDotVector() const;
43
48 void setUnit( Qgis::RenderUnit unit );
49
50 private slots:
51 void mAddButton_clicked();
52 void mRemoveButton_clicked();
53
54};
55
60class GUI_EXPORT QgsDashSpaceDialog : public QDialog
61{
62 Q_OBJECT
63 public:
64
66 QgsDashSpaceDialog( const QVector<qreal> &v, QWidget *parent SIP_TRANSFERTHIS = nullptr, Qt::WindowFlags f = Qt::WindowFlags() );
67
69 QVector<qreal> dashDotVector() const;
70
76 void setUnit( Qgis::RenderUnit unit );
77
78 private:
79
80 QgsDashSpaceWidget *mWidget = nullptr;
81
82};
83
84#endif // QGSDASHSPACEDIALOG_H
RenderUnit
Rendering size units.
Definition qgis.h:4847
A dialog to enter a custom dash space pattern for lines.
A widget to enter a custom dash space pattern for lines.
Base class for any widget that can be shown as a inline panel.
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53