53 Tangible::operator string()
const 55 return lib::meta::typeStr (
this)
57 +
string{this->getID()}
98 if (this->doClearErr())
109 if (this->doClearMsg())
110 uiBus_.
note (
GenNode{
string{MARK_clearMsg},
true});
141 if (this->doMsg (message))
142 uiBus_.
note (
GenNode{
string{MARK_Message}, message});
152 if (this->doErr (error))
198 if (not expand_.canExpand())
200 bool oldState = expand_(yes);
201 return oldState != yes;
236 if (reveal_.canReveal())
253 uiBus_.
act (
GenNode{
string{cmdID}, std::forward<Rec>(arguments)});
262 if (stateMark.idi.getSym() == MARK_Flash)
265 if (stateMark.idi.getSym() == MARK_Error)
266 this->
markErr (stateMark.data.get<
string>());
268 if (stateMark.idi.getSym() == MARK_Message)
269 this->
markMsg (stateMark.data.get<
string>());
297 if (stateMark.idi.getSym() == MARK_expand)
299 if (this->
doExpand (stateMark.data.get<
bool>()))
303 if (stateMark.idi.getSym() == MARK_reset)
306 if (stateMark.idi.getSym() == MARK_clearMsg)
309 if (stateMark.idi.getSym() == MARK_clearErr)
312 if (stateMark.idi.getSym() == MARK_reveal)
virtual ~Tangible()
this is an interface
void slotExpand()
Expand this element and remember the expanded state.
Abstraction: a tangible element of the User Interface.
Hard wired key constants and basic definitions for communication with the GUI.
void reset()
invoke the generic reset hook
virtual void note(ID subject, GenNode const &mark)
capture and record a "state mark" for later replay for restoring UI state.
void mark(GenNode const &)
generic handler for all incoming "state mark" messages
virtual bool doExpand(bool yes)
generic default implementation of the expand/collapse functionality.
void clearMsg()
invoke the hook to clear notification messages
Token or Atom with distinct identity.
void markMsg(string message)
push a notification (or warning) message to the element.
void markFlash()
highlight the element visually to catch the user's attention
void markErr(string error)
push an error state tag to the element
Lumiera GTK UI implementation root.
Generic building block for tree shaped (meta)data structures.
virtual void doMark(GenNode const &)=0
default implementation and catch-all handler for receiving »state mark« messages. ...
virtual void doReveal()
generic default implementation of the "reveal" functionality.
void slotCollapse()
Collapse or minimise this element and remember the collapsed state.
void clearErr()
invoke the hook to clear error markers
object-like record of data.
Common Abstraction of all sub-controller, coordinated by the UI-Bus.
virtual void act(GenNode const &command)
prepare or trigger invocation of a command.
generic data element node within a tree
void slotReveal()
Cause the element to be brought into sight.