QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
labeling
qgslabelengineconfigdialog.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgslabelengineconfigdialog.h
3
---------------------
4
begin : May 2010
5
copyright : (C) 2010 by Marco Hugentobler
6
email : marco dot hugentobler at sourcepole dot ch
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
#ifndef QGSLABELENGINECONFIGDIALOG_H
16
#define QGSLABELENGINECONFIGDIALOG_H
17
18
// We don't want to expose this in the public API
19
20
#include "ui_qgslabelengineconfigdialog.h"
21
22
#include "qgis_gui.h"
23
#include "
qgslabelingenginesettings.h
"
24
25
#include <QDialog>
26
27
#define SIP_NO_FILE
28
29
class
QgsMapCanvas
;
30
class
QgsMessageBar
;
31
39
class
GUI_EXPORT
QgsLabelEngineConfigWidget
:
public
QgsPanelWidget
,
private
Ui::QgsLabelEngineConfigWidgetBase
40
{
41
Q_OBJECT
42
public
:
44
QgsLabelEngineConfigWidget
(
QgsMapCanvas
*canvas, QWidget *parent =
nullptr
);
45
46
QMenu *
menuButtonMenu
()
override
;
47
QString
menuButtonTooltip
()
const override
;
48
49
public
slots:
51
void
apply
();
53
void
setDefaults
();
55
void
showHelp
();
56
57
private
:
58
QgsMapCanvas
*mCanvas =
nullptr
;
59
QgsMessageBar
*mMessageBar =
nullptr
;
60
QMenu *mWidgetMenu =
nullptr
;
61
62
Qgis::LabelPlacementEngineVersion
mPreviousEngineVersion =
Qgis::LabelPlacementEngineVersion::Version2
;
63
};
64
72
class
GUI_EXPORT
QgsLabelEngineConfigDialog
:
public
QDialog
73
{
74
Q_OBJECT
75
76
public
:
78
QgsLabelEngineConfigDialog
(
QgsMapCanvas
*canvas, QWidget *parent =
nullptr
);
79
80
void
accept
()
override
;
81
82
private
:
83
QgsLabelEngineConfigWidget
*mWidget =
nullptr
;
84
};
85
86
#endif
// QGSLABELENGINECONFIGDIALOG_H
Qgis::LabelPlacementEngineVersion
LabelPlacementEngineVersion
Labeling placement engine version.
Definition
qgis.h:3097
Qgis::LabelPlacementEngineVersion::Version2
@ Version2
Version 2 (default for new projects since QGIS 3.12).
Definition
qgis.h:3099
QgsLabelEngineConfigDialog::QgsLabelEngineConfigDialog
QgsLabelEngineConfigDialog(QgsMapCanvas *canvas, QWidget *parent=nullptr)
constructor
Definition
qgslabelengineconfigdialog.cpp:163
QgsLabelEngineConfigDialog::accept
void accept() override
Definition
qgslabelengineconfigdialog.cpp:182
QgsLabelEngineConfigWidget
Widget for configuring the labeling engine.
Definition
qgslabelengineconfigdialog.h:40
QgsLabelEngineConfigWidget::apply
void apply()
Applies the changes.
Definition
qgslabelengineconfigdialog.cpp:118
QgsLabelEngineConfigWidget::showHelp
void showHelp()
Shows the help.
Definition
qgslabelengineconfigdialog.cpp:154
QgsLabelEngineConfigWidget::QgsLabelEngineConfigWidget
QgsLabelEngineConfigWidget(QgsMapCanvas *canvas, QWidget *parent=nullptr)
constructor
Definition
qgslabelengineconfigdialog.cpp:38
QgsLabelEngineConfigWidget::setDefaults
void setDefaults()
Resets the settings to the defaults.
Definition
qgslabelengineconfigdialog.cpp:142
QgsMapCanvas
Map canvas is a class for displaying all GIS data types on a canvas.
Definition
qgsmapcanvas.h:96
QgsMessageBar
A bar for displaying non-blocking messages to the user.
Definition
qgsmessagebar.h:61
QgsPanelWidget::menuButtonMenu
virtual QMenu * menuButtonMenu()
Returns the menu to use for the menu button for this panel, or nullptr if no menu button is required.
Definition
qgspanelwidget.cpp:109
QgsPanelWidget::menuButtonTooltip
virtual QString menuButtonTooltip() const
Returns the (translated) tooltip text to use for the menu button for this panel.
Definition
qgspanelwidget.cpp:104
QgsPanelWidget::QgsPanelWidget
QgsPanelWidget(QWidget *parent=nullptr)
Base class for any widget that can be shown as an inline panel.
Definition
qgspanelwidget.cpp:30
qgslabelingenginesettings.h
Generated on
for QGIS API Documentation by
1.17.0