QGIS API Documentation
3.40.0-Bratislava (b56115d8743)
Loading...
Searching...
No Matches
src
gui
symbology
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
33
class
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
60
class
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
Qgis::RenderUnit
RenderUnit
Rendering size units.
Definition
qgis.h:4839
QgsDashSpaceDialog
A dialog to enter a custom dash space pattern for lines.
Definition
qgsdashspacedialog.h:61
QgsDashSpaceWidget
A widget to enter a custom dash space pattern for lines.
Definition
qgsdashspacedialog.h:34
QgsPanelWidget
Base class for any widget that can be shown as a inline panel.
Definition
qgspanelwidget.h:30
qgis_sip.h
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition
qgis_sip.h:53
qgspanelwidget.h
qgsunittypes.h
Generated on Mon Oct 28 2024 22:06:03 for QGIS API Documentation by
1.9.8