| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 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 |
}; |