FlightGear next
NasalMenuItem Class Reference

Inherits SGReferenced, and SGPropertyChangeListener.

Public Types

using NasalCallback = std::function<void()>
 

Public Member Functions

std::string name () const
 
std::string shortcut () const
 
bool isEnabled () const
 
bool isChecked () const
 
bool isSeparator () const
 
bool isCheckable () const
 
std::string label () const
 
void fire ()
 
void aboutToShow ()
 
NasalMenuPtr submenu () const
 
void initFromNode (SGPropertyNode_ptr config)
 
void addCallback (NasalCallback cb)
 

Protected Member Functions

void valueChanged (SGPropertyNode *prop) override
 

Detailed Description

Definition at line 43 of file FGNasalMenuBar.cxx.

Member Typedef Documentation

◆ NasalCallback

using NasalMenuItem::NasalCallback = std::function<void()>

Definition at line 93 of file FGNasalMenuBar.cxx.

Member Function Documentation

◆ aboutToShow()

void NasalMenuItem::aboutToShow ( )

Definition at line 256 of file FGNasalMenuBar.cxx.

◆ addCallback()

void NasalMenuItem::addCallback ( NasalCallback cb)
inline

Definition at line 95 of file FGNasalMenuBar.cxx.

◆ fire()

void NasalMenuItem::fire ( )

Definition at line 245 of file FGNasalMenuBar.cxx.

◆ initFromNode()

void NasalMenuItem::initFromNode ( SGPropertyNode_ptr config)

Definition at line 170 of file FGNasalMenuBar.cxx.

◆ isCheckable()

bool NasalMenuItem::isCheckable ( ) const
inline

Definition at line 72 of file FGNasalMenuBar.cxx.

◆ isChecked()

bool NasalMenuItem::isChecked ( ) const
inline

Definition at line 62 of file FGNasalMenuBar.cxx.

◆ isEnabled()

bool NasalMenuItem::isEnabled ( ) const
inline

Definition at line 57 of file FGNasalMenuBar.cxx.

◆ isSeparator()

bool NasalMenuItem::isSeparator ( ) const
inline

Definition at line 67 of file FGNasalMenuBar.cxx.

◆ label()

std::string NasalMenuItem::label ( ) const
inline

Definition at line 77 of file FGNasalMenuBar.cxx.

◆ name()

std::string NasalMenuItem::name ( ) const
inline

Definition at line 47 of file FGNasalMenuBar.cxx.

◆ shortcut()

std::string NasalMenuItem::shortcut ( ) const
inline

Definition at line 52 of file FGNasalMenuBar.cxx.

◆ submenu()

NasalMenuPtr NasalMenuItem::submenu ( ) const
inline

Definition at line 86 of file FGNasalMenuBar.cxx.

◆ valueChanged()

void NasalMenuItem::valueChanged ( SGPropertyNode * prop)
overrideprotected

Definition at line 227 of file FGNasalMenuBar.cxx.


The documentation for this class was generated from the following file: