Lumiera  0.pre.03
»edit your freedom«
widget.hpp
Go to the documentation of this file.
1 /*
2  WIDGET.hpp - generic interface of a UI widget element
3 
4  Copyright (C) Lumiera.org
5  2015, Hermann Vosseler <Ichthyostega@web.de>
6 
7  This program is free software; you can redistribute it and/or
8  modify it under the terms of the GNU General Public License as
9  published by the Free Software Foundation; either version 2 of
10  the License, or (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 
21 */
22 
23 
35 #ifndef STAGE_MODEL_WIDGET_H
36 #define STAGE_MODEL_WIDGET_H
37 
38 
39 #include "lib/error.hpp"
40 #include "stage/model/tangible.hpp"
41 //#include "lib/symbol.hpp"
42 //#include "lib/util.hpp"
43 
44 //#include <string>
45 
46 
47 namespace stage {
48 namespace model {
49 
50 // using lib::HashVal;
51 // using util::isnil;
52 // using std::string;
53 
54 
58  class Widget
59  : public Tangible
60  {
61 
62  /* ==== Tangible interface ==== */
63 
64  virtual bool
65  doReset() override
66  {
67  UNIMPLEMENTED ("Widget reset");
68  }
69 
70  virtual bool
71  doMsg (string text) override
72  {
73  UNIMPLEMENTED ("Widget doMsg");
74  }
75 
76  virtual bool
77  doClearMsg () override
78  {
79  UNIMPLEMENTED ("Widget doClearMsg");
80  }
81 
82  virtual bool
83  doErr (string text) override
84  {
85  UNIMPLEMENTED ("Widget doErr");
86  }
87 
88  virtual bool
89  doClearErr () override
90  {
91  UNIMPLEMENTED ("Widget doClearErr");
92  }
93 
94  virtual void
95  doFlash() override
96  {
97  UNIMPLEMENTED ("Widget doFlash");
98  }
99 
100  virtual void
101  doMark (GenNode const& mark) override
102  {
103  UNIMPLEMENTED ("Widget doMark");
104  }
105 
106 
107  public:
108  using Tangible::Tangible;
109 
110  };
111 
112 
113 
114 }} // namespace stage::model
115 #endif /*STAGE_MODEL_WIDGET_H*/
Abstraction: a tangible element of the User Interface.
void mark(GenNode const &)
generic handler for all incoming "state mark" messages
Definition: tangible.cpp:260
virtual void doMark(GenNode const &mark) override
default implementation and catch-all handler for receiving »state mark« messages. ...
Definition: widget.hpp:101
Lumiera GTK UI implementation root.
Definition: guifacade.cpp:46
Lumiera error handling (C++ interface).
Interface common to all UI elements of relevance for the Lumiera application.
Definition: tangible.hpp:165
generic data element node within a tree
Definition: gen-node.hpp:231