QGIS API Documentation 3.99.0-Master (21b3aa880ba)
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#define SIP_NO_FILE
20
21#include "ui_qgslabelengineconfigdialog.h"
22
23#include "qgis_gui.h"
25
26#include <QDialog>
27
28class QgsMapCanvas;
29class QgsMessageBar;
30
38class GUI_EXPORT QgsLabelEngineConfigWidget : public QgsPanelWidget, private Ui::QgsLabelEngineConfigWidgetBase
39{
40 Q_OBJECT
41 public:
43 QgsLabelEngineConfigWidget( QgsMapCanvas *canvas, QWidget *parent = nullptr );
44
45 QMenu *menuButtonMenu() override;
46 QString menuButtonTooltip() const override;
47
48 public slots:
50 void apply();
52 void setDefaults();
54 void showHelp();
55
56 private:
57 QgsMapCanvas *mCanvas = nullptr;
58 QgsMessageBar *mMessageBar = nullptr;
59 QMenu *mWidgetMenu = nullptr;
60
62};
63
71class GUI_EXPORT QgsLabelEngineConfigDialog : public QDialog
72{
73 Q_OBJECT
74
75 public:
77 QgsLabelEngineConfigDialog( QgsMapCanvas *canvas, QWidget *parent = nullptr );
78
79 void accept() override;
80
81 private:
82 QgsLabelEngineConfigWidget *mWidget = nullptr;
83};
84
85#endif // QGSLABELENGINECONFIGDIALOG_H
LabelPlacementEngineVersion
Labeling placement engine version.
Definition qgis.h:2872
@ Version2
Version 2 (default for new projects since QGIS 3.12).
Definition qgis.h:2874
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.