DUDS
Distributed Update of Data from Something
GenericMenuItem.cpp
Go to the documentation of this file.
1 /*
2  * This file is part of the DUDS project. It is subject to the BSD-style
3  * license terms in the LICENSE file found in the top-level directory of this
4  * distribution and at https://github.com/jjackowski/duds/blob/master/LICENSE.
5  * No part of DUDS, including this file, may be copied, modified, propagated,
6  * or distributed except according to the terms contained in the LICENSE file.
7  *
8  * Copyright (C) 2019 Jeff Jackowski
9  */
11 
12 namespace duds { namespace ui { namespace menu {
13 
14 void GenericMenuItem::chose(MenuView &invokingView, const MenuAccess &access) {
15  choseSig(invokingView, access, *this);
16 }
17 
18 void GenericMenuItem::select(MenuView &invokingView, const MenuAccess &access) {
19  selSig(invokingView, access, *this);
20 }
21 
22 void GenericMenuItem::deselect(MenuView &invokingView, const MenuAccess &access) {
23  deselSig(invokingView, access, *this);
24 }
25 
26 } } }
Signal choseSig
The signal that is invoked when the user choses this menu item.
Signal deselSig
The signal that is invoked when the user deselects this menu item.
Keeps track of the selected menu item, and updates it based on user input.
Definition: MenuView.hpp:46
virtual void deselect(MenuView &invokingView, const MenuAccess &access)
Invokes the deselSig signal in response to the user deselecting this menu item.
Provides an exclusive lock on a Menu to allow the menu to be changed.
Definition: MenuAccess.hpp:32
virtual void chose(MenuView &invokingView, const MenuAccess &access)
Invokes the choseSig signal in response to the user chosing this menu item.
virtual void select(MenuView &invokingView, const MenuAccess &access)
Invokes the selSig signal in response to the user selecting this menu item.
Signal selSig
The signal that is invoked when the user selects this menu item.