QGIS API Documentation 3.99.0-Master (7d2ca374f2d)
Loading...
Searching...
No Matches
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"
24
25#include <QDialog>
26
27#define SIP_NO_FILE
28
29class QgsMapCanvas;
30class QgsMessageBar;
31
39class 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
63};
64
72class 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
LabelPlacementEngineVersion
Labeling placement engine version.
Definition qgis.h:2945
@ Version2
Version 2 (default for new projects since QGIS 3.12).
Definition qgis.h:2947
QgsLabelEngineConfigDialog(QgsMapCanvas *canvas, QWidget *parent=nullptr)
constructor
Widget for configuring the labeling engine.
QgsLabelEngineConfigWidget(QgsMapCanvas *canvas, QWidget *parent=nullptr)
constructor
void setDefaults()
Resets the settings to the defaults.
Map canvas is a class for displaying all GIS data types on a canvas.
A bar for displaying non-blocking messages to the user.
virtual QMenu * menuButtonMenu()
Returns the menu to use for the menu button for this panel, or nullptr if no menu button is required.
virtual QString menuButtonTooltip() const
Returns the (translated) tooltip text to use for the menu button for this panel.
QgsPanelWidget(QWidget *parent=nullptr)
Base class for any widget that can be shown as an inline panel.