QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
qgsmodelgroupboxdefinitionwidget.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsmodelgroupboxdefinitionwidget.h
3 ----------------------------------------
4 begin : March 2020
5 copyright : (C) 2020 by Nyall Dawson
6 email : nyall dot dawson at gmail dot com
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18
19#ifndef QGSPROCESSINGGROUPBBOXDEFINITIONWIDGET_H
20#define QGSPROCESSINGGROUPBBOXDEFINITIONWIDGET_H
21
22#include "qgis_gui.h"
24
25#include <QDialog>
26#include <QWidget>
27
28#define SIP_NO_FILE
29
30class QLineEdit;
31class QCheckBox;
32class QTabWidget;
33class QTextEdit;
34class QgsColorButton;
35class QgsProcessingModelGroupBox;
36
37
45class GUI_EXPORT QgsModelGroupBoxDefinitionDialog : public QDialog
46{
47 Q_OBJECT
48 public:
52 QgsModelGroupBoxDefinitionDialog( const QgsProcessingModelGroupBox &box, QWidget *parent SIP_TRANSFERTHIS = nullptr );
53
57 QgsProcessingModelGroupBox groupBox() const;
58
59 private:
60 QTextEdit *mCommentEdit = nullptr;
61 QgsColorButton *mCommentColorButton = nullptr;
62 QgsProcessingModelGroupBox mBox;
63};
64
65
66#endif // QGSPROCESSINGGROUPBBOXDEFINITIONWIDGET_H
A cross platform button subclass for selecting colors.
QgsModelGroupBoxDefinitionDialog(const QgsProcessingModelGroupBox &box, QWidget *parent SIP_TRANSFERTHIS=nullptr)
Constructor for QgsModelGroupBoxDefinitionWidget, for the specified group box.
QgsProcessingModelGroupBox groupBox() const
Returns a new instance of the group box, using the current settings defined in the dialog.
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:53