VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
makVrf::DtAirportSelectionWidget Class Reference

A widget class for encapsulating airport selection from a combo box.

Inheritance diagram for makVrf::DtAirportSelectionWidget:
Inheritance graph
[legend]

Public Member Functions

 DtAirportSelectionWidget (makVrv::DtDe &de, QWidget *parent=NULL, const Qt::WindowFlags &flags=0)
 
std::string getSelectedAirportName () const
 
std::string getSelectedIcaoCode () const
 
virtual bool setCurrentAirport (const std::string airportName)
 
virtual void setCurrentIndex (int index)
 
 ~DtAirportSelectionWidget ()
 
bool hasAerodromes () const
 

Public Attributes

boost::signals2::signal< void()> signal_aerodromesSetup
 
QComboBoxmyAirportCombobox
 
QHBoxLayout * myHBoxLayout
 
QLabelmyAirportLabel
 
QCompleter * myAirportNameCompleter
 

Protected Member Functions

void setUpGui ()
 
void completeSetup ()
 

Protected Attributes

makVrv::DtDemyDe
 
boost::signals2::scoped_connection myAerodromesCachedConnection
 

Constructor & Destructor Documentation

makVrf::DtAirportSelectionWidget::DtAirportSelectionWidget ( makVrv::DtDe de,
QWidget *  parent = NULL,
const Qt::WindowFlags &  flags = 0 
)

Constructor.

makVrf::DtAirportSelectionWidget::~DtAirportSelectionWidget ( )

destructor

Member Function Documentation

std::string makVrf::DtAirportSelectionWidget::getSelectedAirportName ( ) const

returns the currently selected airport name (e.g. "Boston Logan Intn'l (KBOS)")

std::string makVrf::DtAirportSelectionWidget::getSelectedIcaoCode ( ) const

\ brief returns the ICAO code for the selected airport (e.g. "KBOS")

virtual bool makVrf::DtAirportSelectionWidget::setCurrentAirport ( const std::string  airportName)
virtual

sets the current airport by name (e.g. "Boston Logan Intn'l (KBOS)")

virtual void makVrf::DtAirportSelectionWidget::setCurrentIndex ( int  index)
virtual

sets the current index for the combo box of airports

bool makVrf::DtAirportSelectionWidget::hasAerodromes ( ) const
void makVrf::DtAirportSelectionWidget::setUpGui ( )
protected

sets up the gui widgets

void makVrf::DtAirportSelectionWidget::completeSetup ( )
protected

populates the gui with data from the airport data loader

Member Data Documentation

boost::signals2::signal<void ()> makVrf::DtAirportSelectionWidget::signal_aerodromesSetup
QComboBox* makVrf::DtAirportSelectionWidget::myAirportCombobox
QHBoxLayout* makVrf::DtAirportSelectionWidget::myHBoxLayout
QLabel* makVrf::DtAirportSelectionWidget::myAirportLabel
QCompleter* makVrf::DtAirportSelectionWidget::myAirportNameCompleter
makVrv::DtDe& makVrf::DtAirportSelectionWidget::myDe
protected
boost::signals2::scoped_connection makVrf::DtAirportSelectionWidget::myAerodromesCachedConnection
protected

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

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)