/*************************************************************************** source::worx raDIYo Copyright © 2020-2022 c.holzheuer chris@sourceworx.org This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. ***************************************************************************/ #ifndef SWDUMMYDIALDIALOG_H #define SWDUMMYDIALDIALOG_H #include #include /** * @brief Dummy-Dialog, der zwei QDials mit Buttons anzeigt. Das simuliert * die RotaryDials unter Windows. */ class SWDummyDialDialog : public QDialog, private Ui_SWDummyDialDialog { Q_OBJECT public: explicit SWDummyDialDialog( QWidget* parent = nullptr ); virtual ~SWDummyDialDialog(); SWDummyPushDial& leftDial() { return *_leftDial; } SWDummyPushDial& rightDial() { return *_rightDial; } public slots: void onLeftValueChanged( int ); void onRightValueChanged( int ); signals: void leftDeltaChanged(int); void rightDeltaChanged(int); protected: int _oldLeft = 0; int _oldRight = 0; }; #endif // SWDUMMYDIALDIALOG_H