Lumiera  0.pre.03
»edityourfreedom«
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
controller.hpp
Go to the documentation of this file.
1 /*
2  CONTROLLER.hpp - generic interface of a sub-controller
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 
36 #ifndef GUI_MODEL_CONTROLLER_H
37 #define GUI_MODEL_CONTROLLER_H
38 
39 
40 #include "lib/error.hpp"
41 #include "gui/model/tangible.hpp"
42 //#include "lib/symbol.hpp"
43 //#include "lib/util.hpp"
44 
45 //#include <string>
46 
47 
48 namespace gui {
49 namespace model {
50 
51 // using lib::HashVal;
52 // using util::isnil;
53 // using std::string;
54 
55 
59  class Controller
60  : public Tangible
61  {
62 
63  /* ==== Tangible interface ==== */
64 
65  virtual bool
66  doReset() override
67  {
68  UNIMPLEMENTED ("Controller reset");
69  }
70 
71  virtual bool
72  doExpand (bool yes) override
73  {
74  UNIMPLEMENTED ("Controller doExpand");
75  }
76 
77  virtual void
78  doReveal (ID child) override
79  {
80  UNIMPLEMENTED ("Controller doReveal");
81  }
82 
83  virtual void
84  doRevealYourself() override
85  {
86  UNIMPLEMENTED ("Controller doRevealYourself");
87  }
88 
89  virtual bool
90  doMsg (string text) override
91  {
92  UNIMPLEMENTED ("Controller doMsg");
93  }
94 
95  virtual bool
96  doClearMsg () override
97  {
98  UNIMPLEMENTED ("Controller doClearMsg");
99  }
100 
101  virtual bool
102  doErr (string text) override
103  {
104  UNIMPLEMENTED ("Controller doErr");
105  }
106 
107  virtual bool
108  doClearErr () override
109  {
110  UNIMPLEMENTED ("Controller doClearErr");
111  }
112 
113  virtual void
114  doFlash() override
115  {
116  UNIMPLEMENTED ("Controller doFlash");
117  }
118 
119  virtual void
120  doMark (GenNode const& mark) override
121  {
122  UNIMPLEMENTED ("Controller doMark");
123  }
124 
125 
126  public:
127  using Tangible::Tangible;
128 
129  };
130 
131 
132 
133 }} // namespace gui::model
134 #endif /*GUI_MODEL_CONTROLLER_H*/
virtual bool doClearErr() override
Definition: controller.hpp:108
Abstraction: a tangible element of the User Interface.
void mark(GenNode const &)
generic handler for all incoming "state mark" messages
Definition: tangible.cpp:208
virtual bool doClearMsg() override
Definition: controller.hpp:96
Lumiera GTK UI implementation root.
Definition: guifacade.cpp:47
virtual bool doExpand(bool yes) override
Definition: controller.hpp:72
virtual bool doReset() override
Definition: controller.hpp:66
virtual bool doErr(string text) override
Definition: controller.hpp:102
virtual void doReveal(ID child) override
Definition: controller.hpp:78
ctrl::BusTerm::ID ID
Definition: tangible.hpp:170
virtual void doMark(GenNode const &mark) override
default implementation and catch-all handler for receiving »state mark« messages. ...
Definition: controller.hpp:120
virtual bool doMsg(string text) override
Definition: controller.hpp:90
virtual void doFlash() override
Definition: controller.hpp:114
Lumiera error handling (C++ interface).
Interface common to all UI elements of relevance for the Lumiera application.
Definition: tangible.hpp:164
virtual void doRevealYourself() override
Definition: controller.hpp:84
Tangible(ID identity, ctrl::BusTerm &nexus)
Definition: tangible.hpp:179
generic data element node within a tree
Definition: gen-node.hpp:213