35#include <NDEVR/String.h>
36#include <NDEVR/TranslatedString.h>
41 template<
class t_type>
void inputHintChangedSignal()
Signal emitted when the input hint changes due to focus or content changes.
String getValue() const
Returns the current text content as an NDEVR String.
void keyPressEvent(QKeyEvent *e) override
Handles key press events, including special handling for Enter/Return keys.
void editingFinishedSignal()
Signal emitted when the user finishes editing (focus lost or Enter pressed).
void setEditable(bool is_editable)
Sets whether the text edit is editable by the user.
TranslatedString m_title
The title text used as a placeholder label.
void setValue(const String &text)
Sets the text content of the text edit.
QSize minimumSizeHint() const override
Returns the minimum recommended size for the text edit.
QCustomTextEdit(QWidget *parent=nullptr)
Constructs a multi-line text edit widget.
QTResourceListener * m_resource_changed_listener
Listener for external resource changes to update the text.
void setHeightMultiplier(fltp04 multiplier)
Sets a multiplier for the height component of the size hint.
virtual void focusInEvent(QFocusEvent *e) override
Handles focus-in events to update placeholder and input hint state.
fltp04 m_height_hint_multiplier
Multiplier applied to the height component of size hints.
void editedSignal()
Signal emitted when the user edits the text content.
bool event(QEvent *event) override
Handles general events including tooltip and palette change events.
virtual void mousePressEvent(QMouseEvent *e) override
Handles mouse press events for touch-friendly interaction.
void setTitle(const TranslatedString &title)
Sets the title used as a placeholder or label for the text edit.
void setup(GenericOption &option)
Sets up the text edit from a GenericOption, binding the value and title.
void onUserEditedCore()
Processes user edits, emitting signals and updating bound resources.
void setup(const TranslatedString &title, Resource< String > &value)
Sets up the text edit with a title and two-way binding to a string resource.
QSize sizeHint() const override
Returns the recommended size for the text edit.
A ResourceListener which will always be executed on the main UI thread and can be tied to a Qt Object...
A core part of the engine, stores variables that can be listened to with ResourceListener which will ...
The core String class for the NDEVR API.
Any text displayed to the user should be defined as a TranslatedString which allows the program to lo...
The primary namespace for the NDEVR SDK.
float fltp04
Defines an alias representing a 4 byte floating-point number Bit layout is as follows: -Sign: 1 bit a...
Stores a generic option of any type as well as some information about how the user might interact wit...