Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
widget.hpp
Go to the documentation of this file.
1/*
2 WIDGET.hpp - generic interface of a UI widget element
3
4 Copyright (C)
5 2015, Hermann Vosseler <Ichthyostega@web.de>
6
7  **Lumiera** is free software; you can redistribute it and/or modify it
8  under the terms of the GNU General Public License as published by the
9  Free Software Foundation; either version 2 of the License, or (at your
10  option) any later version. See the file COPYING for further details.
11
12*/
13
14
26#ifndef STAGE_MODEL_WIDGET_H
27#define STAGE_MODEL_WIDGET_H
28
29
30#include "lib/error.hpp"
32//#include "lib/symbol.hpp"
33//#include "lib/util.hpp"
34
35//#include <string>
36
37
38namespace stage {
39namespace model {
40
41// using lib::HashVal;
42// using util::isnil;
43// using std::string;
44
45
49 class Widget
50 : public Tangible
51 {
52
53 /* ==== Tangible interface ==== */
54
55 virtual bool
56 doReset() override
57 {
58 UNIMPLEMENTED ("Widget reset");
59 }
60
61 virtual bool
62 doMsg (string text) override
63 {
64 UNIMPLEMENTED ("Widget doMsg");
65 }
66
67 virtual bool
68 doClearMsg () override
69 {
70 UNIMPLEMENTED ("Widget doClearMsg");
71 }
72
73 virtual bool
74 doErr (string text) override
75 {
76 UNIMPLEMENTED ("Widget doErr");
77 }
78
79 virtual bool
80 doClearErr () override
81 {
82 UNIMPLEMENTED ("Widget doClearErr");
83 }
84
85 virtual void
86 doFlash() override
87 {
88 UNIMPLEMENTED ("Widget doFlash");
89 }
90
91 virtual void
92 doMark (GenNode const& mark) override
93 {
94 UNIMPLEMENTED ("Widget doMark");
95 }
96
97
98 public:
100
101 };
102
103
104
105}} // namespace stage::model
106#endif /*STAGE_MODEL_WIDGET_H*/
Interface common to all UI elements of relevance for the Lumiera application.
Definition tangible.hpp:160
Tangible(ID identity, ctrl::BusTerm &nexus)
Definition tangible.hpp:174
void mark(GenNode const &)
generic handler for all incoming "state mark" messages
Definition tangible.cpp:251
virtual bool doClearErr() override
Definition widget.hpp:80
virtual bool doReset() override
Definition widget.hpp:56
virtual bool doMsg(string text) override
Definition widget.hpp:62
virtual void doMark(GenNode const &mark) override
default implementation and catch-all handler for receiving »state mark« messages.
Definition widget.hpp:92
virtual void doFlash() override
Definition widget.hpp:86
virtual bool doClearMsg() override
Definition widget.hpp:68
virtual bool doErr(string text) override
Definition widget.hpp:74
Lumiera error handling (C++ interface).
Lumiera GTK UI implementation root.
Definition guifacade.cpp:37
generic data element node within a tree
Definition gen-node.hpp:224
Abstraction: a tangible element of the User Interface.