QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
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:5758
QgsDashSpaceDialog::setUnit
void setUnit(Qgis::RenderUnit unit)
Sets the unit type used for the dash space pattern (used to update interface labels).
Definition
qgsdashspacedialog.cpp:132
QgsDashSpaceDialog::QgsDashSpaceDialog
QgsDashSpaceDialog(const QVector< qreal > &v, QWidget *parent=nullptr, Qt::WindowFlags f=Qt::WindowFlags())
Constructor for QgsDashSpaceDialog.
Definition
qgsdashspacedialog.cpp:113
QgsDashSpaceDialog::dashDotVector
QVector< qreal > dashDotVector() const
Returns the dash pattern as a list of numbers.
Definition
qgsdashspacedialog.cpp:127
QgsDashSpaceWidget
A widget for entering a custom dash space pattern for lines.
Definition
qgsdashspacedialog.h:34
QgsDashSpaceWidget::dashDotVector
QVector< qreal > dashDotVector() const
Returns the dash pattern as a list of numbers.
Definition
qgsdashspacedialog.cpp:90
QgsDashSpaceWidget::QgsDashSpaceWidget
QgsDashSpaceWidget(const QVector< qreal > &vectorPattern, QWidget *parent=nullptr)
Constructor for QgsDashSpaceWidget.
Definition
qgsdashspacedialog.cpp:29
QgsDashSpaceWidget::setUnit
void setUnit(Qgis::RenderUnit unit)
Sets the unit type used for the dash space pattern (used to update interface labels).
Definition
qgsdashspacedialog.cpp:106
QgsPanelWidget::QgsPanelWidget
QgsPanelWidget(QWidget *parent=nullptr)
Base class for any widget that can be shown as an inline panel.
Definition
qgspanelwidget.cpp:30
qgis_sip.h
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition
qgis_sip.h:52
qgspanelwidget.h
qgsunittypes.h
Generated on
for QGIS API Documentation by
1.17.0