Something went wrong. Try again.
Mixxx DJ software with MCP, Subsonic/Navidrome streaming library support — browse and load tracks from your self-hosted music server mixxx.org
subsonic navidrome streaming audio dj mac linux midi
Something went wrong. Try again.
1.6 kB · 50 lines
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051#pragma once
#include <QObject>
#include "control/controlobject.h"#include "widget/controlwidgetconnection.h"
class QEvent;
struct ControlInfo { ControlInfo() : clickControl(NULL), emitOption(ControlParameterWidgetConnection::EMIT_ON_PRESS_AND_RELEASE), leftClickControl(NULL), leftEmitOption(ControlParameterWidgetConnection::EMIT_ON_PRESS_AND_RELEASE), rightClickControl(NULL), rightEmitOption(ControlParameterWidgetConnection::EMIT_ON_PRESS_AND_RELEASE) { }
ControlObject* clickControl; ControlParameterWidgetConnection::EmitOption emitOption; ControlObject* leftClickControl; ControlParameterWidgetConnection::EmitOption leftEmitOption; ControlObject* rightClickControl; ControlParameterWidgetConnection::EmitOption rightEmitOption;};
class ControllerLearningEventFilter : public QObject { Q_OBJECT public: ControllerLearningEventFilter(QObject* pParent = NULL); virtual ~ControllerLearningEventFilter();
virtual bool eventFilter(QObject* pObject, QEvent* pEvent);
void addWidgetClickInfo(QWidget* pWidget, Qt::MouseButton buttonState, ControlObject* pControl, ControlParameterWidgetConnection::EmitOption emitOption);
public slots: void startListening(); void stopListening();
signals: void controlClicked(const ConfigKey& controlKey);
private: QHash<QWidget*, ControlInfo> m_widgetControlInfo; bool m_bListening;};