itom  4.1.0
penCreatorDialog.h
1 /* ********************************************************************
2 itom measurement system
3 URL: http://www.uni-stuttgart.de/ito
4 Copyright (C) 2020, Institut fuer Technische Optik (ITO),
5 Universitaet Stuttgart, Germany
6 
7 This file is part of itom.
8 
9 itom 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 3 of the License, or
12 (at your option) any later version.
13 
14 itom is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18 
19 You should have received a copy of the GNU General Public License
20 along with itom. If not, see <http://www.gnu.org/licenses/>.
21 *********************************************************************** */
22 #ifndef PENCREATORDIALOG_H
23 #define PENCREATORDIALOG_H
24 
25 #include"ui_penCreatorDialog.h"
26 #include<QDialog>
27 #include<qpen.h>
28 
29 class PenCreatorDialog : public QDialog
30 {
31  Q_OBJECT
32 
33 public:
34  PenCreatorDialog(QPen &inputPen, bool colorEditable ,QWidget *parent = NULL);
36  void setPen(const QPen &pen);
37  void synchronizeGUI();
38  QPen getPen();
39 
40 
41 private:
42  Ui::penCreatorDialog ui;
43  QPen &pen;
44 
45  void updatePen();
46 
47 private slots:
48  void on_buttonBox_clicked(QAbstractButton* btn);
49 
50 
51 
52 };
53 #endif
Definition: penCreatorDialog.h:29