QGIS API Documentation
3.41.0-Master (af5edcb665c)
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
:
38
QgsDashSpaceWidget
(
const
QVector<qreal> &vectorPattern, QWidget *parent
SIP_TRANSFERTHIS
=
nullptr
);
39
41
QVector<qreal> dashDotVector()
const
;
42
47
void
setUnit(
Qgis::RenderUnit
unit );
48
49
private
slots:
50
void
mAddButton_clicked();
51
void
mRemoveButton_clicked();
52
};
53
58
class
GUI_EXPORT
QgsDashSpaceDialog
:
public
QDialog
59
{
60
Q_OBJECT
61
public
:
63
QgsDashSpaceDialog
(
const
QVector<qreal> &v, QWidget *parent
SIP_TRANSFERTHIS
=
nullptr
, Qt::WindowFlags f = Qt::WindowFlags() );
64
66
QVector<qreal> dashDotVector()
const
;
67
73
void
setUnit(
Qgis::RenderUnit
unit );
74
75
private
:
76
QgsDashSpaceWidget
*mWidget =
nullptr
;
77
};
78
79
#endif
// QGSDASHSPACEDIALOG_H
Qgis::RenderUnit
RenderUnit
Rendering size units.
Definition
qgis.h:4910
QgsDashSpaceDialog
A dialog to enter a custom dash space pattern for lines.
Definition
qgsdashspacedialog.h:59
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 Thu Dec 26 2024 02:19:01 for QGIS API Documentation by
1.9.8