/*************************************************************************** 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 SWABSTRACTMMARK_H #define SWABSTRACTMMARK_H #include #include #include #include class SWDialAdapter; /** * @brief Eine Aspektkompente, die das 'Highlighting' * eines Widgets steuert. */ class SWDialWidget : public SWDialHandler { public: explicit SWDialWidget() = default; virtual ~SWDialWidget() = default; const QPen& getPen(); bool isHighlighted(); void setHightlighted( bool mark ); bool hasDialInput(); void setDialInput( bool active ); void toggleDialInput(); virtual void drawMark( QWidget* target ); protected: static const QPen MarkPen1; static const QPen MarkPen2; bool _isHighlighted = false; bool _hasDialInput = false; }; #endif // SWABSTRACTMMARK_H