tbx
0.7.5
|
Event details for a change of text in a gadget. More...
#include <textchangedlistener.h>
Public Member Functions | |
TextChangedEvent (IdBlock &id_block, PollBlock &data) | |
Construct the event. | |
virtual | ~TextChangedEvent () |
Virtual destructor. | |
bool | too_long () const |
Check if new text was delivered with the toolbox event. More... | |
std::string | text () const |
Get the text of the gadget that delivered the event. More... | |
![]() | |
EventInfo (const IdBlock &id_block, PollBlock &data) | |
Contruct the event information from the id_block and data update by the toolbox. | |
const IdBlock & | id_block () const |
IdBlock for the current event. More... | |
Protected Member Functions | |
virtual std::string | text_from_gadget () const =0 |
Override in sub class to fetch text from the gadget. More... | |
std::string | text_from_event () const |
text from event data | |
Additional Inherited Members | |
![]() | |
PollBlock & | _data |
raw data from the event | |
Event details for a change of text in a gadget.
|
inline |
Get the text of the gadget that delivered the event.
This will be the text delivered with the event if the too_long parameter is false. Otherwise the text will be retrieved from the gadget.
|
protectedpure virtual |
Override in sub class to fetch text from the gadget.
Called from the text method if the text wasn't delivered in the event buffer.
Implemented in tbx::StringSetTextChangedEvent, and tbx::WritableFieldTextChangedEvent.
|
inline |
Check if new text was delivered with the toolbox event.