34#include <NDEVR/String.h>
35#include <NDEVR/RGBColor.h>
56 class QCustomLineEdit;
65 void paintEvent(QPaintEvent *event)
override;
67 void mouseMoveEvent(QMouseEvent *event)
override;
68 void mouseReleaseEvent(QMouseEvent *event)
override;
69 void mousePressEvent(QMouseEvent *event)
override;
70 void keyPressEvent(QKeyEvent* event)
override;
71 void wheelEvent(QWheelEvent* e)
override;
72 void resizeEvent(QResizeEvent *event)
override;
73 void setIcon(
const QPixmap& map,
bool show_full_icon,
bool rotate_icon);
74 void addIcon(
const String& icon,
bool show_full_icon,
bool rotate_icon);
79 void setColor(
const RGBColor& color);
80 bool event(QEvent* event)
override;
81 QSize sizeHint()
const override;
82 QSize minimumSizeHint()
const override;
85 m_grip_size = grip_size;
87 void setMaxValue(
fltp08 max);
88 void setMinValue(
fltp08 min);
89 void showLineEdit(
bool show);
94 void onValueChanged();
96 void setValue(
fltp08 value);
100 void _setValue(
fltp08 value,
bool emit_edit =
false);
101 void updateCenterLineEditLocation();
103 void cacheScaledPixmap(
DialIcon& icon);
113 qint64 cacheKey{ 0 };
116 bool m_has_user_focus;
117 void modifyValue(QMouseEvent* event);
Stores an angle in an optimized format.
Definition StringStream.h:352
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:64
Definition QCustomDial.h:58
const Buffer< DialIcon > & icons() const
Definition QCustomDial.h:76
int heightForWidth(int w) const override
Definition QCustomDial.h:66
void setGrip(fltp04 grip_size)
Definition QCustomDial.h:83
Definition QCustomLineEdit.h:118
Represents a color in the RGB space with optional alpha transparency.
Definition RGBColor.h:53
float fltp04
Defines an alias representing a 4 byte floating-point number.
Definition BaseValues.hpp:157
double fltp08
Defines an alias representing an 8 byte floating-point number.
Definition BaseValues.hpp:181
Definition QCustomDial.h:40
QPixmap scaled_pixmap
Definition QCustomDial.h:43
bool rotate
Definition QCustomDial.h:45
fltp08 size
Definition QCustomDial.h:48
String image_id
Definition QCustomDial.h:41
QPixmap pixmap
Definition QCustomDial.h:42
bool make_shadow
Definition QCustomDial.h:46
void setImageID(const String &id)
Definition QCustomDial.h:49
Angle< fltp08 > rotation_offset
Definition QCustomDial.h:47
bool fullsize
Definition QCustomDial.h:44