Files
raDIYo/swdialhandler.h
2025-08-05 22:36:00 +02:00

53 lines
1.2 KiB
C++

/***************************************************************************
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 SWDIALHANDLER_H
#define SWDIALHANDLER_H
/**
* @brief Modelliert den Aspekt des 'Empfangenkönnens' von Signals eines RotaryDials.
*
* Wird den entsprechenden Unterklassen per Mehrfachvererbung zugeordnet.
*
* @see SWControl
* @see SWDialButtonGroup
* @see SWBarWidget
* @see SWDialWidget
*/
class SWDialHandler
{
public:
explicit SWDialHandler() = default;
virtual ~SWDialHandler() = default;
bool acceptDial();
void setAcceptDial( bool acceptDial );
// wir sind kein QObject, deshalb keine public slots
virtual void onDialPushed();
virtual void onDialDeltaChanged( int value );
protected:
bool _acceptDial = true;
};
#endif // SWDIALHANDLER_H