Lumiera  0.pre.03
»edit your freedom«
interaction-state.hpp
Go to the documentation of this file.
1 /*
2  INTERACTION-STATE.hpp - facility to watch and guide one aspect of UI interaction
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 
45 #ifndef STAGE_INTERACT_INTERACTION_STATE_H
46 #define STAGE_INTERACT_INTERACTION_STATE_H
47 
48 
49 #include "lib/error.hpp"
50 #include "lib/nocopy.hpp"
51 //#include "stage/ctrl/bus-term.hpp"
52 //#include "lib/idi/entry-id.hpp"
53 #include "lib/symbol.hpp"
54 //#include "lib/util.hpp"
55 
56 //#include <string>
57 
58 
59 namespace stage {
60 namespace interact {
61 
62 // using lib::HashVal;
63  using lib::Symbol;
64 // using util::isnil;
65 // using std::string;
66 
67  class Subject;
68 
69 
87  {
88  protected:
89  virtual ~InteractionState();
90 
91  public:
105  virtual void linkTrigger (Subject&, Symbol cmdID) =0;
106 
107  private:
108  };
109 
110 
111 
112 }} // namespace stage::interact
113 #endif /*STAGE_INTERACT_INTERACTION_STATE_H*/
Any copy and copy construction prohibited.
Definition: nocopy.hpp:46
Abstract foundation for context dependent UI interactions.
virtual ~InteractionState()
this is an interface
Token or Atom with distinct identity.
Definition: symbol.hpp:126
Mix-Ins to allow or prohibit various degrees of copying and cloning.
Marker types to indicate a literal string and a Symbol.
Lumiera GTK UI implementation root.
Definition: guifacade.cpp:46
Lumiera error handling (C++ interface).
virtual void linkTrigger(Subject &, Symbol cmdID)=0
Hook up a trigger signal to initiate a specific interaction gesture.
Role-Interface: the Subject of Interaction.