QGIS API Documentation 3.99.0-Master (c22de0620c0)
Loading...
Searching...
No Matches
qgslayouttablebackgroundcolorsdialog.h
Go to the documentation of this file.
1/***************************************************************************
2 qgslayouttablebackgroundcolorsdialog.h
3 ----------------------------------------
4 begin : November 2017
5 copyright : (C) 2017 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#ifndef QGSLAYOUTTABLEBACKGROUNDCOLORSDIALOG_H
19#define QGSLAYOUTTABLEBACKGROUNDCOLORSDIALOG_H
20
21// We don't want to expose this in the public API
22
23#include "ui_qgslayouttablebackgroundstyles.h"
24
25#include "qgis_gui.h"
26#include "qgslayouttable.h"
27
28#include <QDialog>
29
30#define SIP_NO_FILE
31
32class QCheckBox;
33class QgsColorButton;
34
41class GUI_EXPORT QgsLayoutTableBackgroundColorsDialog : public QDialog, private Ui::QgsLayoutTableBackgroundDialog
42{
43 Q_OBJECT
44 public:
51 QgsLayoutTableBackgroundColorsDialog( QgsLayoutTable *table, QWidget *parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags() );
52
53 private slots:
54
55 void apply();
56
57 void buttonBox_accepted();
58 void buttonBox_rejected();
59 void showHelp();
60
61 private:
62 QgsLayoutTable *mTable = nullptr;
63 QMap<QgsLayoutTable::CellStyleGroup, QCheckBox *> mCheckBoxMap;
64 QMap<QgsLayoutTable::CellStyleGroup, QgsColorButton *> mColorButtonMap;
65
66
68 void setGuiElementValues();
69};
70
71#endif // QGSLAYOUTTABLEBACKGROUNDCOLORSDIALOG_H
A cross platform button subclass for selecting colors.
QgsLayoutTableBackgroundColorsDialog(QgsLayoutTable *table, QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::WindowFlags())
Constructor for QgsLayoutTableBackgroundColorsDialog.
Displays a table in the print layout, and allows the table to span over multiple frames.