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
*/
10
#include <
duds/ui/menu/GenericMenuItem.hpp
>
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
} } }
duds::ui::menu::GenericMenuItem::choseSig
Signal choseSig
The signal that is invoked when the user choses this menu item.
Definition:
GenericMenuItem.hpp:43
duds::ui::menu::GenericMenuItem::deselSig
Signal deselSig
The signal that is invoked when the user deselects this menu item.
Definition:
GenericMenuItem.hpp:51
duds
Definition:
Constants.hpp:15
GenericMenuItem.hpp
duds::ui::menu::MenuView
Keeps track of the selected menu item, and updates it based on user input.
Definition:
MenuView.hpp:46
duds::ui::menu::GenericMenuItem::deselect
virtual void deselect(MenuView &invokingView, const MenuAccess &access)
Invokes the deselSig signal in response to the user deselecting this menu item.
Definition:
GenericMenuItem.cpp:22
duds::ui::menu::MenuAccess
Provides an exclusive lock on a Menu to allow the menu to be changed.
Definition:
MenuAccess.hpp:32
duds::ui::menu::GenericMenuItem::chose
virtual void chose(MenuView &invokingView, const MenuAccess &access)
Invokes the choseSig signal in response to the user chosing this menu item.
Definition:
GenericMenuItem.cpp:14
duds::ui::menu::GenericMenuItem::select
virtual void select(MenuView &invokingView, const MenuAccess &access)
Invokes the selSig signal in response to the user selecting this menu item.
Definition:
GenericMenuItem.cpp:18
duds::ui::menu::GenericMenuItem::selSig
Signal selSig
The signal that is invoked when the user selects this menu item.
Definition:
GenericMenuItem.hpp:47
duds
ui
menu
GenericMenuItem.cpp
Generated on Sat Mar 23 2024 19:12:03 for DUDS by
1.8.13