Lumiera  0.pre.03
»edit your freedom«
ui-state.cpp
Go to the documentation of this file.
1 /*
2  UiState - manage persistent interface state
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 
30 #include "stage/ctrl/ui-state.hpp"
33 //#include "stage/ctrl/global-ctx.hpp"
34 //#include "lib/util.hpp"
35 
36 //using util::cStr;
37 //using util::isnil;
38 
39 
40 namespace stage {
41 namespace ctrl {
42 
43  using interact::FocusTracker;
44 
45 
46  // emit VTable here...
48  { }
49 
50  // emit nested dtor code here...
51  UiState::~UiState()
52  { }
53 
54 
59  UiState::UiState (StateManager& stateManager, FocusTracker& focusTracker)
60  : stateManager_{stateManager}
61  , tracker_{focusTracker}
62  { }
63 
64 
69 }}// namespace stage::ctrl
Helper to pick up typical focus/activity changes, for the purpose of keeping a coherent system of Wor...
Interface: a component to maintain persistent interface state.
virtual ~StateManager()
this is an interface
Definition: ui-state.cpp:47
Establish and handle persistent interface state.
Helper to track focus/activation changes to move the activity "Spot" automatically.
Lumiera GTK UI implementation root.
Definition: guifacade.cpp:46
Interface: handling of persistent interface state.
UiState(StateManager &, interact::FocusTracker &)
Initialise storage for global interface state.
Definition: ui-state.cpp:59