Lumiera  0.pre.03
»edit your freedom«
navigator.hpp
Go to the documentation of this file.
1 /*
2  NAVIGATOR.hpp - controller for global navigation through interface space
3 
4  Copyright (C) Lumiera.org
5  2017, 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 
38 #ifndef STAGE_INTERACT_NAVIGATOR_H
39 #define STAGE_INTERACT_NAVIGATOR_H
40 
41 #include "stage/gtk-base.hpp"
43 #include "lib/nocopy.hpp"
44 
45 //#include <string>
46 //#include <memory>
47 
48 
49 namespace stage {
50 namespace interact {
51 
52 // using std::unique_ptr;
53 // using std::string;
54 
55 // class GlobalCtx;
56  class SpotLocator;
57  class ViewLocator;
58 
59 
60 
67  class Navigator
68  : public LocationQuery
70  {
71  SpotLocator& spotLocator_;
72  ViewLocator& viewLocator_;
73 
74  public:
76  ~Navigator ();
77 
78  /* === LocationQuery API === */
79  Literal determineAnchor (UICoord const& path) override final;
80  size_t determineCoverage (UICoord const& path) override final;
81  ChildIter getChildren (UICoord const& path, size_t pos) override final;
82 
83  private:
84 
85  };
86 
87 
88 
89 }}// namespace stage::interact
90 #endif /*STAGE_INTERACT_NAVIGATOR_H*/
Access or allocate a UI component view.
Describe a location within the UI through structural/topological coordinates.
Definition: ui-coord.hpp:138
ChildIter getChildren(UICoord const &path, size_t pos) override final
get the sequence of child components at a designated position in the actual UI
Definition: navigator.cpp:79
Any copy and copy construction prohibited.
Definition: nocopy.hpp:46
inline string literal This is a marker type to indicate that
Definition: symbol.hpp:85
size_t determineCoverage(UICoord const &path) override final
evaluate to what extent a UIcoord spec matches the actual UI
Definition: navigator.cpp:72
Mix-Ins to allow or prohibit various degrees of copying and cloning.
Literal determineAnchor(UICoord const &path) override final
make the real anchor point explicit.
Definition: navigator.cpp:65
Lumiera GTK UI implementation root.
Definition: guifacade.cpp:46
Control and navigate the global centre of activity.
Interface to discover a backing structure for the purpose of path navigation and resolution.
Evaluation of UI coordinates against a concrete window topology.
A set of basic GTK includes for the UI.
Global cross-cutting navigation within user interface space.
Definition: navigator.hpp:67