Fork me on GitHub
2.15.20
FGx
A cross-platform launcher for FlightGear
AirportsWidget Class Reference

#include <airportswidget.h>

Inheritance diagram for AirportsWidget:

Public Types

enum  AIPORTS_TREE_COLS { CA_CODE = 0, CA_NAME = 1, CA_DIR = 2 }
 
enum  AIRPORT_INFO_TREE_COLS {
  CI_NODE = 0, CI_LABEL = 1, CI_TYPE = 2, CI_SETTING_KEY = 3,
  CI_WIDTH = 4, CI_LENGTH = 5, CI_LAT = 6, CI_LON = 7,
  CI_HEADING =8, CI_RUNWAYS = 9
}
 
enum  STARTUP_POSTITION { USE_DEFAULT = 0, USE_AIRPORT = 1, USE_COORDINATES = 2 }
 

Public Slots

void initialize ()
 
void on_airport_info_double_clicked (QTreeWidgetItem *, int)
 
void on_airport_info_selection_changed ()
 
void on_airport_tree_selected (QModelIndex currentIdx, QModelIndex previousIdx)
 
void on_coordinates_changed ()
 
void on_debug_mode ()
 
void on_loadaptdat_done ()
 
void on_map_double_clicked (QString lat, QString lon, QString heading)
 
void on_open_airports_folder ()
 
void on_reload_cache ()
 
void on_show_metar ()
 
void on_update_airports_filter ()
 
void on_upx (QString option, bool enabled, QString value)
 
void on_view_airports_cache ()
 

Signals

void set_ena (QString option, bool enabled)
 
void setx (QString option, bool enabled, QString value)
 

Public Member Functions

 AirportsWidget (MainObject *mOb, QWidget *parent=0)
 
QString current_airport ()
 
void load_airports_tree ()
 
void load_info_tree (QString airport_dir, QString airport_code)
 
int load_parking_node (QString airport_dir, QString airport_code)
 
int load_runways_node (QString airport_dir, QString airport_code)
 
void load_tower_node (QString airport_dir, QString airport_code)
 
void scan_airports_xml ()
 
void show_progress (bool state)
 
QString validate ()
 
 ~AirportsWidget ()
 

Public Attributes

workThread * apt_dat_loader
 
QButtonGroup * buttonGroupFilter
 
QToolButton * buttonOpenAirportsFolder
 
QPushButton * buttonRefreshTree
 
XGroupVBoxgroupBoxAirport
 
XGroupVBoxgroupBoxUseCoordinates
 
QLabellabelAirportsFolder
 
MainObjectmainObject
 
OpenLayerWidgetmapWidget
 
MetarWidgetmetarWidget
 
QStandardItemModelmodel
 
loadAptDat * pAptDat
 
PLOADITEM ploadItem
 
QSortFilterProxyModelproxyModel
 
QStatusBar * statusBarAirportInfo
 
QStatusBar * statusBarAirports
 
QTabWidget * tabWidget
 
QTreeView * treeAirports
 
QTreeWidget * treeAptInfo
 
QLineEdit * txtAirportsFilter
 
QLineEdit * txtAltitude
 
QLineEdit * txtFIX
 
QLineEdit * txtHeading
 
QLineEdit * txtLat
 
QLineEdit * txtLon
 
QLineEdit * txtNDB
 
QLineEdit * txtOffset
 
QLineEdit * txtVOR
 

Detailed Description

Definition at line 46 of file airportswidget.h.

Member Enumeration Documentation

Enumerator
CA_CODE 
CA_NAME 
CA_DIR 

Definition at line 51 of file airportswidget.h.

Enumerator
CI_NODE 
CI_LABEL 
CI_TYPE 
CI_SETTING_KEY 
CI_WIDTH 
CI_LENGTH 
CI_LAT 
CI_LON 
CI_HEADING 
CI_RUNWAYS 

Definition at line 57 of file airportswidget.h.

Enumerator
USE_DEFAULT 
USE_AIRPORT 
USE_COORDINATES 

Definition at line 71 of file airportswidget.h.

Constructor & Destructor Documentation

AirportsWidget::AirportsWidget ( MainObject mOb,
QWidget parent = 0 
)
explicit

Definition at line 51 of file airportswidget.cpp.

AirportsWidget::~AirportsWidget ( )

Definition at line 407 of file airportswidget.cpp.

Member Function Documentation

QString AirportsWidget::current_airport ( )

Definition at line 1071 of file airportswidget.cpp.

void AirportsWidget::initialize ( )
slot

Definition at line 441 of file airportswidget.cpp.

Referenced by LauncherWindow::initialize().

void AirportsWidget::load_airports_tree ( )

Definition at line 511 of file airportswidget.cpp.

Referenced by initialize(), and on_reload_cache().

void AirportsWidget::load_info_tree ( QString  airport_dir,
QString  airport_code 
)

Definition at line 632 of file airportswidget.cpp.

Referenced by on_airport_tree_selected().

int AirportsWidget::load_parking_node ( QString  airport_dir,
QString  airport_code 
)

Definition at line 870 of file airportswidget.cpp.

Referenced by load_info_tree().

int AirportsWidget::load_runways_node ( QString  airport_dir,
QString  airport_code 
)

Definition at line 757 of file airportswidget.cpp.

Referenced by load_info_tree().

void AirportsWidget::load_tower_node ( QString  airport_dir,
QString  airport_code 
)

Definition at line 994 of file airportswidget.cpp.

Referenced by load_info_tree().

void AirportsWidget::on_airport_info_double_clicked ( QTreeWidgetItem item,
int  col_idx 
)
slot

Definition at line 1203 of file airportswidget.cpp.

Referenced by AirportsWidget().

void AirportsWidget::on_airport_info_selection_changed ( )
slot

Definition at line 1163 of file airportswidget.cpp.

Referenced by AirportsWidget().

void AirportsWidget::on_airport_tree_selected ( QModelIndex  currentIdx,
QModelIndex  previousIdx 
)
slot

Definition at line 597 of file airportswidget.cpp.

Referenced by AirportsWidget().

void AirportsWidget::on_coordinates_changed ( )
slot

Definition at line 1115 of file airportswidget.cpp.

void AirportsWidget::on_debug_mode ( )
slot

Definition at line 1228 of file airportswidget.cpp.

Referenced by AirportsWidget().

void AirportsWidget::on_loadaptdat_done ( )
slot

Definition at line 473 of file airportswidget.cpp.

Referenced by initialize(), and CoreSettingsWidget::reload_lists().

void AirportsWidget::on_map_double_clicked ( QString  lat,
QString  lon,
QString  heading 
)
slot

Definition at line 416 of file airportswidget.cpp.

Referenced by AirportsWidget().

void AirportsWidget::on_open_airports_folder ( )
slot

Definition at line 1213 of file airportswidget.cpp.

Referenced by AirportsWidget().

void AirportsWidget::on_reload_cache ( )
slot
void AirportsWidget::on_show_metar ( )
slot

Definition at line 1223 of file airportswidget.cpp.

Referenced by AirportsWidget().

void AirportsWidget::on_update_airports_filter ( )
slot

Definition at line 585 of file airportswidget.cpp.

Referenced by AirportsWidget().

void AirportsWidget::on_upx ( QString  option,
bool  enabled,
QString  value 
)
slot

Definition at line 1136 of file airportswidget.cpp.

Referenced by AirportsWidget().

void AirportsWidget::on_view_airports_cache ( )
slot

Definition at line 1233 of file airportswidget.cpp.

Referenced by AirportsWidget().

void AirportsWidget::scan_airports_xml ( )
void AirportsWidget::set_ena ( QString  option,
bool  enabled 
)
signal
void AirportsWidget::setx ( QString  option,
bool  enabled,
QString  value 
)
signal
void AirportsWidget::show_progress ( bool  state)
QString AirportsWidget::validate ( )

Definition at line 1083 of file airportswidget.cpp.

Referenced by LauncherWindow::validate().

Member Data Documentation

workThread* AirportsWidget::apt_dat_loader

Definition at line 130 of file airportswidget.h.

QButtonGroup* AirportsWidget::buttonGroupFilter

Definition at line 90 of file airportswidget.h.

Referenced by AirportsWidget(), and on_update_airports_filter().

QToolButton* AirportsWidget::buttonOpenAirportsFolder

Definition at line 99 of file airportswidget.h.

Referenced by AirportsWidget(), load_airports_tree(), and load_info_tree().

QPushButton* AirportsWidget::buttonRefreshTree

Definition at line 97 of file airportswidget.h.

XGroupVBox* AirportsWidget::groupBoxAirport

Definition at line 87 of file airportswidget.h.

Referenced by AirportsWidget().

XGroupVBox* AirportsWidget::groupBoxUseCoordinates

Definition at line 88 of file airportswidget.h.

QLabel* AirportsWidget::labelAirportsFolder
MetarWidget* AirportsWidget::metarWidget

Definition at line 85 of file airportswidget.h.

Referenced by AirportsWidget(), load_info_tree(), and on_show_metar().

loadAptDat* AirportsWidget::pAptDat

Definition at line 132 of file airportswidget.h.

Referenced by AirportsWidget(), initialize(), on_loadaptdat_done(), and ~AirportsWidget().

PLOADITEM AirportsWidget::ploadItem

Definition at line 131 of file airportswidget.h.

Referenced by AirportsWidget().

QStatusBar* AirportsWidget::statusBarAirportInfo

Definition at line 103 of file airportswidget.h.

Referenced by AirportsWidget(), and load_info_tree().

QStatusBar* AirportsWidget::statusBarAirports

Definition at line 98 of file airportswidget.h.

Referenced by AirportsWidget(), initialize(), and load_airports_tree().

QTabWidget* AirportsWidget::tabWidget

Definition at line 83 of file airportswidget.h.

QTreeView* AirportsWidget::treeAirports
QLineEdit* AirportsWidget::txtAirportsFilter
QLineEdit* AirportsWidget::txtAltitude

Definition at line 123 of file airportswidget.h.

QLineEdit* AirportsWidget::txtFIX

Definition at line 121 of file airportswidget.h.

QLineEdit* AirportsWidget::txtHeading

Definition at line 124 of file airportswidget.h.

QLineEdit* AirportsWidget::txtLat

Definition at line 117 of file airportswidget.h.

QLineEdit* AirportsWidget::txtLon

Definition at line 118 of file airportswidget.h.

QLineEdit* AirportsWidget::txtNDB

Definition at line 120 of file airportswidget.h.

QLineEdit* AirportsWidget::txtOffset

Definition at line 122 of file airportswidget.h.

QLineEdit* AirportsWidget::txtVOR

Definition at line 119 of file airportswidget.h.


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