Lumiera  0.pre.03
»edityourfreedom«
cmd-context.cpp
Go to the documentation of this file.
1 /*
2  CmdContext - interface to access command context binding services within the UI
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 
32 //#include "lib/util.hpp"
33 //#include "lib/symbol.hpp"
34 //#include "include/logging.h"
36 
37 //#include <string>
38 //#include <map>
39 
40 //using std::map;
41 //using std::string;
42 
43 //using util::contains;
44 //using util::isnil;
45 
46 namespace gui {
47 namespace interact {
48 
49  namespace { // internal details
50 
51  } // internal details
52 
53 
54 
55  CmdContext::~CmdContext() { } // Emit dtors of embedded objects here...
56 
57 
62  CmdContext&
63  CmdContext::of (Symbol cmdID, string ctxID)
64  {
65  UNIMPLEMENTED ("context-bound commands: tap into the InteractionDirector to access the interaction state");
66  }
67 
68 
74  CmdContext::Resolver::operator LuidH ()
75  {
76  REQUIRE (this->spec > 0); //note we can access the spec embedded in the Resolver struct
77  UNIMPLEMENTED ("forward the resolution operation, probably to InteractionDirector or similar...");
78  }
79 
80 
83 }} // namespace gui::interact
Lumiera GTK UI implementation root.
Definition: guifacade.cpp:47
Abstract foundation of UI state tracking components.
Definition: cmd-context.hpp:83
Token or Atom with distinct identity.
Definition: symbol.hpp:116
static CmdContext & of(Symbol cmdID, string ctxID)
global static service accessor function.
Definition: cmd-context.cpp:63
Hash implementation based on a lumiera unique object id (LUID) When invoking the default ctor...
Abstraction: support for binding command invocation into an UI context.