34#include <NDEVR/String.h>
35#include <NDEVR/RGBColor.h>
60 class QCustomLineEdit;
86 void setIcon(
const QPixmap& map,
bool show_full_icon,
bool rotate_icon);
87 void addIcon(
const String& icon,
bool show_full_icon,
bool rotate_icon);
93 bool event(QEvent* event)
override;
98 m_grip_size = grip_size;
113 void _setValue(
fltp08 value,
bool emit_edit =
false);
114 void updateCenterLineEditLocation();
116 void cacheScaledPixmap(
DialIcon& icon);
126 qint64 cacheKey{ 0 };
129 bool m_has_user_focus;
130 void modifyValue(QMouseEvent* event);
The primary angle storage class for this API. Stores an angle in an optimized format.
Definition StringStream.h:540
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:56
Provides a rounded range control (like a speedometer or potentiometer).
Definition QCustomDial.h:71
QSize minimumSizeHint() const override
QSize sizeHint() const override
void mouseReleaseEvent(QMouseEvent *event) override
void tieToLineEdit(QCustomLineEdit *edit, bool is_offset=false)
const Buffer< DialIcon > & icons() const
Definition QCustomDial.h:89
void setMinValue(fltp08 min)
int heightForWidth(int w) const override
Definition QCustomDial.h:79
void mouseMoveEvent(QMouseEvent *event) override
void setColor(const RGBColor &color)
bool event(QEvent *event) override
void keyPressEvent(QKeyEvent *event) override
void setIcon(const QPixmap &map, bool show_full_icon, bool rotate_icon)
void mousePressEvent(QMouseEvent *event) override
void wheelEvent(QWheelEvent *e) override
void setValue(fltp08 value)
void resizeEvent(QResizeEvent *event) override
void setMaxValue(fltp08 max)
void paintEvent(QPaintEvent *event) override
void addIcon(const DialIcon &icon)
QCustomLineEdit * centerLineEdit()
void addIcon(const String &icon, bool show_full_icon, bool rotate_icon)
void setGrip(fltp04 grip_size)
Definition QCustomDial.h:96
void setIcons(const Buffer< DialIcon > &icons)
void showLineEdit(bool show)
QCustomDial(QWidget *parent=nullptr)
A line edit allows users to enter and edit a single line of plain text with useful editing functions,...
Definition QCustomLineEdit.h:56
Represents a color in the RGB space with optional alpha transparency.
Definition RGBColor.h:54
The core String class for the NDEVR API.
Definition String.h:69
float fltp04
Defines an alias representing a 4 byte floating-point number Bit layout is as follows: -Sign: 1 bit a...
Definition BaseValues.hpp:127
double fltp08
Defines an alias representing an 8 byte floating-point number.
Definition BaseValues.hpp:149
An icon along with defined behavior describing how that icon should interact with a parent QCustomDia...
Definition QCustomDial.h:44
QPixmap scaled_pixmap
Definition QCustomDial.h:47
bool rotate
Definition QCustomDial.h:49
fltp08 size
Definition QCustomDial.h:52
String image_id
Definition QCustomDial.h:45
QPixmap pixmap
Definition QCustomDial.h:46
bool make_shadow
Definition QCustomDial.h:50
void setImageID(const String &id)
Definition QCustomDial.h:53
Angle< fltp08 > rotation_offset
Definition QCustomDial.h:51
bool fullsize
Definition QCustomDial.h:48