Debian Codegraph @

plugin-qeyes/qeyesconfigdialog.h

raw symbols SCIP
1 /*
2 * qeyes - an xeyes clone
3 *
4 * Copyright (C) 2022 Goffredo Baroncelli <[email protected]>
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 *
20 */
21
22 #include <iostream>
23 #include <map>
24 #include <string>
25
26
27 #include <QtWidgets/QDialog>
28 #include <QtWidgets/QSpinBox>
29 #include <QtWidgets/QComboBox>
30 #include <QtCore/QMap>
31
32
33 #include "../panel/pluginsettings.h"
34 #include "../panel/ilxqtpanelplugin.h"
35
36 class QEyesConfigDialog : public QDialog {
37 private:
38 Q_OBJECT
39 public:
40 QEyesConfigDialog(PluginSettings *_settings,
41 ILXQtPanelPlugin *plugin, QWidget *parent = nullptr);
42 private:
43 QSpinBox *numEyesWidget;
44 QComboBox *typesWidget;
45 PluginSettings *_settings;
46 QMap<QString, QString> types;
47 ILXQtPanelPlugin *plugin;
48
49 void buildList();
50 void resetValue();
51 void updateAndClose();
52
53 int old_num_eyes;
54 QString old_type_eyes;
55
56 void showEvent(QShowEvent *) override;
57
58 public slots:
59 void updateValues(int);
60
61 };