1 // Copyright 2005-2019 The Mumble Developers. All rights reserved. 2 // Use of this source code is governed by a BSD-style license 3 // that can be found in the LICENSE file at the root of the 4 // Mumble source tree or at <https://www.mumble.info/LICENSE>. 5 6 #ifndef MUMBLE_MUMBLE_MANUALPLUGIN_H_ 7 #define MUMBLE_MUMBLE_MANUALPLUGIN_H_ 8 9 #include <QtCore/QtGlobal> 10 #if QT_VERSION >= 0x050000 11 # include <QtWidgets/QDialog> 12 # include <QtWidgets/QGraphicsItem> 13 # include <QtWidgets/QGraphicsScene> 14 #else 15 # include <QDialog> 16 # include <QGraphicsItem> 17 # include <QGraphicsScene> 18 #endif 19 20 #include "ui_ManualPlugin.h" 21 22 #include "../../plugins/mumble_plugin.h" 23 24 class Manual : public QDialog, public Ui::Manual { 25 Q_OBJECT 26 public: 27 Manual(QWidget *parent = 0); 28 29 public slots: 30 void on_qpbUnhinge_pressed(); 31 void on_qpbLinked_clicked(bool); 32 void on_qpbActivated_clicked(bool); 33 void on_qdsbX_valueChanged(double); 34 void on_qdsbY_valueChanged(double); 35 void on_qdsbZ_valueChanged(double); 36 void on_qsbAzimuth_valueChanged(int); 37 void on_qsbElevation_valueChanged(int); 38 void on_qdAzimuth_valueChanged(int); 39 void on_qdElevation_valueChanged(int); 40 void on_qleContext_editingFinished(); 41 void on_qleIdentity_editingFinished(); 42 void on_buttonBox_clicked(QAbstractButton *); 43 protected: 44 QGraphicsScene *qgsScene; 45 QGraphicsItem *qgiPosition; 46 47 bool eventFilter(QObject *, QEvent *); 48 void changeEvent(QEvent *e); 49 void updateTopAndFront(int orientation, int azimut); 50 }; 51 52 MumblePlugin *ManualPlugin_getMumblePlugin(); 53 MumblePluginQt *ManualPlugin_getMumblePluginQt(); 54 55 #endif 56