44 Tangible::operator string()
const 46 return lib::meta::typeStr (
this)
48 +
string{this->getID()}
89 if (this->doClearErr())
100 if (this->doClearMsg())
101 uiBus_.
note (
GenNode{
string{MARK_clearMsg},
true});
132 if (this->doMsg (message))
133 uiBus_.
note (
GenNode{
string{MARK_Message}, message});
143 if (this->doErr (error))
189 if (not expand_.canExpand())
191 bool oldState = expand_(yes);
192 return oldState != yes;
227 if (reveal_.canReveal())
244 uiBus_.
act (
GenNode{
string{cmdID}, std::forward<Rec>(arguments)});
253 if (stateMark.idi.getSym() == MARK_Flash)
256 if (stateMark.idi.getSym() == MARK_Error)
257 this->
markErr (stateMark.data.get<
string>());
259 if (stateMark.idi.getSym() == MARK_Message)
260 this->
markMsg (stateMark.data.get<
string>());
288 if (stateMark.idi.getSym() == MARK_expand)
290 if (this->
doExpand (stateMark.data.get<
bool>()))
294 if (stateMark.idi.getSym() == MARK_reset)
297 if (stateMark.idi.getSym() == MARK_clearMsg)
300 if (stateMark.idi.getSym() == MARK_clearErr)
303 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.