FlightGear next
PUICompatObject Class Reference

#include <PUICompatObject.hxx>

Inherits nasal::Object, and SGPropertyChangeListener.

Public Member Functions

virtual ~PUICompatObject ()
 
virtual void init ()
 
virtual void update ()
 
virtual void apply ()
 
virtual void updateValue ()
 
naRef config () const
 
naRef property () const
 return the wrapped props,Node corresponding to our property
 
naRef propertyValue (naContext ctx) const
 return the actual Nasal value of our property: this avoids the need to create a the property ghost and props.Node wrapper in common cases
 
PUICompatObjectRef parent () const
 
PUICompatDialogRef dialog () const
 
PUICompatObjectVec children () const
 
naRef show (naRef viewParent)
 
double getX () const
 
double getY () const
 
double width () const
 
double height () const
 
SGRectd geometry () const
 
void setGeometry (const SGRectd &g)
 
bool visible () const
 
bool enabled () const
 
const std::string & type () const
 
const std::string & name () const
 
void setVisible (bool v)
 
void setEnabled (bool e)
 
PUICompatObjectRef widgetByName (const std::string &name) const
 find an object (which might be us, or a descendant) with the corresponding name, or nullptr.
 
std::string radioGroupIdent () const
 return the radio group ID associated with this widget (which is presumably a radio-button)
 
bool isLive () const
 
bool hasBindings () const
 
std::string translatePluralString (const std::string &key, int cardinal, const std::string &resource={}, const std::string &domain={}) const
 
std::string translateString (const std::string &key, const std::string &resource={}, const std::string &domain={}) const
 

Static Public Member Functions

static PUICompatObjectRef createForType (const std::string &type, SGPropertyNode_ptr config)
 
static void setupGhost (nasal::Hash &guiModule)
 

Protected Member Functions

 PUICompatObject (naRef impl, const std::string &type)
 
virtual void activateBindings ()
 
virtual void updateGeometry (const SGRectd &newGeom)
 
void valueChanged (SGPropertyNode *node) override
 

Static Protected Member Functions

static bool isNodeAChildObject (const std::string &nm, int uiVersion)
 

Friends

class FGPUICompatDialog
 
naRef f_makeCompatObjectPeer (const nasal::CallContext &ctx)
 

Detailed Description

Definition at line 22 of file PUICompatObject.hxx.

Constructor & Destructor Documentation

◆ ~PUICompatObject()

PUICompatObject::~PUICompatObject ( )
virtual

Definition at line 32 of file PUICompatObject.cxx.

◆ PUICompatObject()

PUICompatObject::PUICompatObject ( naRef impl,
const std::string & type )
protected

Definition at line 27 of file PUICompatObject.cxx.

Member Function Documentation

◆ activateBindings()

void PUICompatObject::activateBindings ( )
protectedvirtual

Definition at line 383 of file PUICompatObject.cxx.

◆ apply()

void PUICompatObject::apply ( )
virtual

Definition at line 328 of file PUICompatObject.cxx.

◆ children()

PUICompatObjectVec PUICompatObject::children ( ) const

Definition at line 450 of file PUICompatObject.cxx.

◆ config()

naRef PUICompatObject::config ( ) const

Definition at line 351 of file PUICompatObject.cxx.

◆ createForType()

PUICompatObjectRef PUICompatObject::createForType ( const std::string & type,
SGPropertyNode_ptr config )
static

Definition at line 102 of file PUICompatObject.cxx.

◆ dialog()

PUICompatDialogRef PUICompatObject::dialog ( ) const

Definition at line 571 of file PUICompatObject.cxx.

◆ enabled()

bool PUICompatObject::enabled ( ) const

Definition at line 464 of file PUICompatObject.cxx.

◆ geometry()

SGRectd PUICompatObject::geometry ( ) const

Definition at line 440 of file PUICompatObject.cxx.

◆ getX()

double PUICompatObject::getX ( ) const

Definition at line 420 of file PUICompatObject.cxx.

◆ getY()

double PUICompatObject::getY ( ) const

Definition at line 425 of file PUICompatObject.cxx.

◆ hasBindings()

bool PUICompatObject::hasBindings ( ) const

Definition at line 398 of file PUICompatObject.cxx.

◆ height()

double PUICompatObject::height ( ) const

Definition at line 435 of file PUICompatObject.cxx.

◆ init()

void PUICompatObject::init ( )
virtual

Definition at line 119 of file PUICompatObject.cxx.

◆ isLive()

bool PUICompatObject::isLive ( ) const
inline

Definition at line 96 of file PUICompatObject.hxx.

◆ isNodeAChildObject()

bool PUICompatObject::isNodeAChildObject ( const std::string & nm,
int uiVersion )
staticprotected

Definition at line 248 of file PUICompatObject.cxx.

◆ name()

const std::string & PUICompatObject::name ( ) const
inline

Definition at line 71 of file PUICompatObject.hxx.

◆ parent()

PUICompatObjectRef PUICompatObject::parent ( ) const

Definition at line 445 of file PUICompatObject.cxx.

◆ property()

naRef PUICompatObject::property ( ) const

return the wrapped props,Node corresponding to our property

Definition at line 336 of file PUICompatObject.cxx.

◆ propertyValue()

naRef PUICompatObject::propertyValue ( naContext ctx) const

return the actual Nasal value of our property: this avoids the need to create a the property ghost and props.Node wrapper in common cases

Definition at line 345 of file PUICompatObject.cxx.

◆ radioGroupIdent()

std::string PUICompatObject::radioGroupIdent ( ) const

return the radio group ID associated with this widget (which is presumably a radio-button)

Returns
std::string the radio-group ID, or an empty string

Definition at line 232 of file PUICompatObject.cxx.

◆ setEnabled()

void PUICompatObject::setEnabled ( bool e)

Definition at line 492 of file PUICompatObject.cxx.

◆ setGeometry()

void PUICompatObject::setGeometry ( const SGRectd & g)

Definition at line 403 of file PUICompatObject.cxx.

◆ setupGhost()

void PUICompatObject::setupGhost ( nasal::Hash & guiModule)
static

Definition at line 68 of file PUICompatObject.cxx.

◆ setVisible()

void PUICompatObject::setVisible ( bool v)

Definition at line 478 of file PUICompatObject.cxx.

◆ show()

naRef PUICompatObject::show ( naRef viewParent)

Definition at line 242 of file PUICompatObject.cxx.

◆ translatePluralString()

std::string PUICompatObject::translatePluralString ( const std::string & key,
int cardinal,
const std::string & resource = {},
const std::string & domain = {} ) const

Definition at line 591 of file PUICompatObject.cxx.

◆ translateString()

std::string PUICompatObject::translateString ( const std::string & key,
const std::string & resource = {},
const std::string & domain = {} ) const

Definition at line 600 of file PUICompatObject.cxx.

◆ type()

const std::string & PUICompatObject::type ( ) const

Definition at line 473 of file PUICompatObject.cxx.

◆ update()

void PUICompatObject::update ( )
virtual

Definition at line 267 of file PUICompatObject.cxx.

◆ updateGeometry()

void PUICompatObject::updateGeometry ( const SGRectd & newGeom)
protectedvirtual

Definition at line 408 of file PUICompatObject.cxx.

◆ updateValue()

void PUICompatObject::updateValue ( )
virtual

Definition at line 308 of file PUICompatObject.cxx.

◆ valueChanged()

void PUICompatObject::valueChanged ( SGPropertyNode * node)
overrideprotected

Definition at line 368 of file PUICompatObject.cxx.

◆ visible()

bool PUICompatObject::visible ( ) const

Definition at line 455 of file PUICompatObject.cxx.

◆ widgetByName()

PUICompatObjectRef PUICompatObject::widgetByName ( const std::string & name) const

find an object (which might be us, or a descendant) with the corresponding name, or nullptr.

Parameters
name

Definition at line 506 of file PUICompatObject.cxx.

◆ width()

double PUICompatObject::width ( ) const

Definition at line 430 of file PUICompatObject.cxx.

Friends And Related Symbol Documentation

◆ f_makeCompatObjectPeer

naRef f_makeCompatObjectPeer ( const nasal::CallContext & ctx)
friend

Definition at line 44 of file PUICompatObject.cxx.

◆ FGPUICompatDialog

friend class FGPUICompatDialog
friend

Definition at line 129 of file PUICompatObject.hxx.


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