itom
Loading...
Searching...
No Matches
brushCreatorDialog.h
1/* ********************************************************************
2itom measurement system
3URL: http://www.uni-stuttgart.de/ito
4Copyright (C) 2020, Institut für Technische Optik (ITO),
5Universität Stuttgart, Germany
6
7This file is part of itom.
8
9itom is free software: you can redistribute it and/or modify
10it under the terms of the GNU General Public License as published by
11the Free Software Foundation, either version 3 of the License, or
12(at your option) any later version.
13
14itom is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17GNU General Public License for more details.
18
19You should have received a copy of the GNU General Public License
20along with itom. If not, see <http://www.gnu.org/licenses/>.
21*********************************************************************** */
22#ifndef BRUSHCREATORDIALOG_H
23#define BRUSHCREATORDIALOG_H
24
25#include"ui_brushCreatorDialog.h"
26#include<QDialog>
27#include<qbrush.h>
28
29class BrushCreatorDialog : public QDialog
30{
31 Q_OBJECT
32
33public:
34 BrushCreatorDialog(QBrush &inputBrush, QWidget *parent = NULL);
36 void setBrush(const QBrush &brush);
37 void setShowAlphaChannel(bool showAlphaChannel);
38 void synchronizeGUI();
39 QBrush getBrush();
40
41private:
42 Ui::brushCreatorDialog ui;
43 QBrush &brush;
44
45 void updateBrush();
46private slots:
47 void on_buttonBox_clicked(QAbstractButton* btn);
48
49};
50#endif
Definition brushCreatorDialog.h:30