Lumiera  0.pre.03
»edit your freedom«
gesture-state.hpp
Go to the documentation of this file.
1 /*
2  GESTURE-STATE.hpp - holder for interaction-state dedicated to specific gestures
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 
39 #ifndef STAGE_INTERACT_GESTURE_STATE_H
40 #define STAGE_INTERACT_GESTURE_STATE_H
41 
42 
43 #include "lib/error.hpp"
44 #include "lib/nocopy.hpp"
45 //#include "stage/ctrl/bus-term.hpp"
47 //#include "lib/idi/entry-id.hpp"
48 #include "lib/symbol.hpp"
49 //#include "lib/util.hpp"
50 
51 //#include <string>
52 #include <memory>
53 
54 
55 namespace stage {
56 namespace interact {
57 
58 // using lib::HashVal;
59  using lib::Symbol;
60 // using util::isnil;
61 // using std::string;
62  using std::unique_ptr;
63 
64 //class Subject;
65  class DragRelocateController;
66 
67 
78  {
79  unique_ptr<DragRelocateController> dragRelocate_;
80 
81  public:
82  GestureState();
83  ~GestureState();
84 
85  public:
86  enum Action {
87  DRAG,
88  UNKNOWN
89  };
90  enum Scope {
91  ON_TIMELINE,
92  OTHER
93  };
94 
103  InteractionState& getStateFor (Action action, Scope qualifier);
104 
105  private:
106  };
107 
108 
109 
110 }} // namespace stage::interact
111 #endif /*STAGE_INTERACT_GESTURE_STATE_H*/
Abstraction: a component to watch, maintain and guide UI state.
InteractionState & getStateFor(Action action, Scope qualifier)
Decode the classification of the kind of interaction and gesture, and thus translate to a concrete In...
Any copy and copy construction prohibited.
Definition: nocopy.hpp:46
Abstract foundation for context dependent UI interactions.
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).
Holder for InteractionState dedicated to UI gestures and complex interactions.