first re-commit.
This commit is contained in:
52
swdialhandler.h
Normal file
52
swdialhandler.h
Normal file
@@ -0,0 +1,52 @@
|
||||
/***************************************************************************
|
||||
|
||||
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
|
Reference in New Issue
Block a user