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

Aircraft panel with a left/right splitter, model/proxy/tree vs selected. More...

#include <aircraftwidget.h>

Inheritance diagram for AircraftWidget:

Public Types

enum  COLS {
  C_DIR, C_AERO, C_DESCRIPTION, C_FDM,
  C_AUTHOR, C_XML_FILE, C_FILE_PATH, C_FILTER_PATH,
  C_FILTER, C_BASE
}
 

Public Slots

void load_aircraft ()
 
void load_custom_dir_buttons ()
 
void on_add_custom_dir ()
 
void on_clear_filter ()
 
void on_debug_mode ()
 
void on_enable_fuel_freeze_clicked ()
 
void on_filter_text_changed (const QString)
 
void on_fuel_changed ()
 
void on_navs_changed ()
 
void on_open_aircraft_path ()
 
void on_reload_cache ()
 
void on_remove_custom_dir (QAction *)
 
void on_splitter_moved ()
 
void on_toggle_directory ()
 
void on_tree_selection_changed ()
 
void on_upx (QString option, bool enabled, QString value)
 
void on_view_aircraft_cache ()
 

Signals

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

Public Member Functions

 AircraftWidget (MainObject *mOb, QWidget *parent=0)
 
QList< QStandardItem * > create_model_row ()
 
void initialize ()
 
void load_custom_aircraft ()
 
void select_node (QString aero)
 
QString selected_aircraft ()
 
QString validate ()
 

Public Attributes

QActionGroup * actGroupDeleteCustomDirs
 
QLabelaeroImageLabel
 
QButtonGroup * buttGroupShowDirs
 
QToolButton * buttOpenAeroDir
 
QToolButton * buttShowBase
 
QCheckBox * checkBoxFuelFreeze
 
QCheckBox * checkBoxUseDefaultFuel
 
QCheckBox * checkViewNested
 
ToolBarGroupgrpCustomDirs
 
QLabellblAero
 
QLabellblAeroDescription
 
QLabellblAeroXml
 
QList< QToolButton * > lstCustomDirButtons
 
MainObjectmainObject
 
QLineEdit * txtAdf1
 
QLineEdit * txtAdf2
 
QLineEdit * txtCom1
 
QLineEdit * txtCom2
 
QLineEdit * txtFilter
 
QLineEdit * txtNav1
 
QLineEdit * txtNav2
 
QLineEdit * txtTank1
 
QLineEdit * txtTank2
 
QLineEdit * txtTank3
 

Private Attributes

QToolButton * buttonAeroPath
 
QStandardItemModelmodel
 
AircraftProxyModelproxyModel
 
QSplitter * splitter
 
QStatusBar * statusBar
 
QTreeView * treeView
 

Detailed Description

Aircraft panel with a left/right splitter, model/proxy/tree vs selected.

Todo:

need to abtract out the aircraft custom directories, ie built in and custom

qt5 need to serialise airarft cache to json

future is run next vs master vs others and detect versions..

download aircraft from remote.. WIP at https://github.com/fgx/fgx-installer

Definition at line 45 of file aircraftwidget.h.

Member Enumeration Documentation

Enumerator
C_DIR 
C_AERO 
C_DESCRIPTION 
C_FDM 
C_AUTHOR 
C_XML_FILE 
C_FILE_PATH 
C_FILTER_PATH 
C_FILTER 
C_BASE 

Definition at line 50 of file aircraftwidget.h.

Constructor & Destructor Documentation

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

Definition at line 55 of file aircraftwidget.cpp.

Member Function Documentation

QList< QStandardItem * > AircraftWidget::create_model_row ( )

Definition at line 662 of file aircraftwidget.cpp.

Referenced by load_aircraft(), and load_custom_aircraft().

void AircraftWidget::initialize ( )

Definition at line 673 of file aircraftwidget.cpp.

Referenced by LauncherWindow::initialize().

void AircraftWidget::load_aircraft ( )
slot

Definition at line 590 of file aircraftwidget.cpp.

Referenced by initialize(), and on_reload_cache().

void AircraftWidget::load_custom_aircraft ( )

Definition at line 545 of file aircraftwidget.cpp.

Referenced by load_aircraft().

void AircraftWidget::load_custom_dir_buttons ( )
slot

qDebug() << "pre action =" << dinfo.absoluteFilePath();

Definition at line 827 of file aircraftwidget.cpp.

Referenced by AircraftWidget(), on_add_custom_dir(), and on_remove_custom_dir().

void AircraftWidget::on_add_custom_dir ( )
slot

Definition at line 809 of file aircraftwidget.cpp.

Referenced by AircraftWidget().

void AircraftWidget::on_clear_filter ( )
slot

Definition at line 419 of file aircraftwidget.cpp.

Referenced by AircraftWidget().

void AircraftWidget::on_debug_mode ( )
slot

Definition at line 904 of file aircraftwidget.cpp.

Referenced by AircraftWidget().

void AircraftWidget::on_enable_fuel_freeze_clicked ( )
slot

Definition at line 701 of file aircraftwidget.cpp.

Referenced by AircraftWidget().

void AircraftWidget::on_filter_text_changed ( const QString  s)
slot

Definition at line 424 of file aircraftwidget.cpp.

Referenced by AircraftWidget().

void AircraftWidget::on_fuel_changed ( )
slot

Definition at line 705 of file aircraftwidget.cpp.

Referenced by AircraftWidget().

void AircraftWidget::on_navs_changed ( )
slot

Definition at line 690 of file aircraftwidget.cpp.

Referenced by AircraftWidget().

void AircraftWidget::on_open_aircraft_path ( )
slot

Definition at line 886 of file aircraftwidget.cpp.

Referenced by AircraftWidget().

void AircraftWidget::on_reload_cache ( )
slot
void AircraftWidget::on_remove_custom_dir ( QAction *  act)
slot

Definition at line 786 of file aircraftwidget.cpp.

Referenced by AircraftWidget().

void AircraftWidget::on_splitter_moved ( )
slot

Definition at line 415 of file aircraftwidget.cpp.

Referenced by AircraftWidget().

void AircraftWidget::on_toggle_directory ( )
slot

Definition at line 773 of file aircraftwidget.cpp.

Referenced by AircraftWidget(), and load_custom_dir_buttons().

void AircraftWidget::on_tree_selection_changed ( )
slot

Definition at line 431 of file aircraftwidget.cpp.

Referenced by AircraftWidget().

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

Definition at line 716 of file aircraftwidget.cpp.

Referenced by AircraftWidget().

void AircraftWidget::on_view_aircraft_cache ( )
slot

Definition at line 895 of file aircraftwidget.cpp.

Referenced by AircraftWidget().

void AircraftWidget::select_node ( QString  aero)

Definition at line 495 of file aircraftwidget.cpp.

Referenced by load_aircraft(), and on_upx().

QString AircraftWidget::selected_aircraft ( )

Definition at line 510 of file aircraftwidget.cpp.

Referenced by on_tree_selection_changed().

void AircraftWidget::setx ( QString  option,
bool  enabled,
QString  value 
)
signal
QString AircraftWidget::validate ( )

Definition at line 519 of file aircraftwidget.cpp.

Referenced by LauncherWindow::validate().

Member Data Documentation

QActionGroup* AircraftWidget::actGroupDeleteCustomDirs

Definition at line 73 of file aircraftwidget.h.

Referenced by AircraftWidget(), and load_custom_dir_buttons().

QLabel* AircraftWidget::aeroImageLabel

Definition at line 82 of file aircraftwidget.h.

Referenced by AircraftWidget(), and on_tree_selection_changed().

QButtonGroup* AircraftWidget::buttGroupShowDirs

Definition at line 71 of file aircraftwidget.h.

Referenced by AircraftWidget(), load_custom_dir_buttons(), and on_toggle_directory().

QToolButton* AircraftWidget::buttonAeroPath
private

Definition at line 118 of file aircraftwidget.h.

QToolButton* AircraftWidget::buttOpenAeroDir

Definition at line 84 of file aircraftwidget.h.

Referenced by AircraftWidget(), and on_tree_selection_changed().

QToolButton* AircraftWidget::buttShowBase

Definition at line 77 of file aircraftwidget.h.

Referenced by AircraftWidget(), and load_aircraft().

QCheckBox* AircraftWidget::checkBoxFuelFreeze

Definition at line 95 of file aircraftwidget.h.

Referenced by AircraftWidget(), on_enable_fuel_freeze_clicked(), and on_upx().

QCheckBox* AircraftWidget::checkBoxUseDefaultFuel

Definition at line 94 of file aircraftwidget.h.

Referenced by on_upx().

QCheckBox* AircraftWidget::checkViewNested

Definition at line 83 of file aircraftwidget.h.

ToolBarGroup* AircraftWidget::grpCustomDirs

Definition at line 68 of file aircraftwidget.h.

Referenced by AircraftWidget(), and load_custom_dir_buttons().

QLabel* AircraftWidget::lblAero

Definition at line 79 of file aircraftwidget.h.

Referenced by AircraftWidget(), and on_tree_selection_changed().

QLabel* AircraftWidget::lblAeroDescription

Definition at line 80 of file aircraftwidget.h.

Referenced by AircraftWidget(), and on_tree_selection_changed().

QLabel* AircraftWidget::lblAeroXml
QList<QToolButton*> AircraftWidget::lstCustomDirButtons

Definition at line 75 of file aircraftwidget.h.

Referenced by load_custom_dir_buttons().

AircraftProxyModel* AircraftWidget::proxyModel
private
QSplitter* AircraftWidget::splitter
private

Definition at line 120 of file aircraftwidget.h.

Referenced by AircraftWidget(), and on_splitter_moved().

QStatusBar* AircraftWidget::statusBar
private

Definition at line 116 of file aircraftwidget.h.

Referenced by AircraftWidget(), initialize(), load_aircraft(), and on_reload_cache().

QTreeView* AircraftWidget::treeView
private
QLineEdit* AircraftWidget::txtAdf1

Definition at line 89 of file aircraftwidget.h.

Referenced by AircraftWidget(), on_navs_changed(), and on_upx().

QLineEdit* AircraftWidget::txtAdf2

Definition at line 90 of file aircraftwidget.h.

Referenced by AircraftWidget(), on_navs_changed(), and on_upx().

QLineEdit* AircraftWidget::txtCom1

Definition at line 91 of file aircraftwidget.h.

Referenced by AircraftWidget(), on_navs_changed(), and on_upx().

QLineEdit* AircraftWidget::txtCom2

Definition at line 92 of file aircraftwidget.h.

Referenced by AircraftWidget(), on_navs_changed(), and on_upx().

QLineEdit* AircraftWidget::txtFilter
QLineEdit* AircraftWidget::txtNav1

Definition at line 87 of file aircraftwidget.h.

Referenced by AircraftWidget(), on_navs_changed(), and on_upx().

QLineEdit* AircraftWidget::txtNav2

Definition at line 88 of file aircraftwidget.h.

Referenced by AircraftWidget(), on_navs_changed(), and on_upx().

QLineEdit* AircraftWidget::txtTank1

Definition at line 96 of file aircraftwidget.h.

Referenced by AircraftWidget(), on_fuel_changed(), and on_upx().

QLineEdit* AircraftWidget::txtTank2

Definition at line 97 of file aircraftwidget.h.

Referenced by AircraftWidget(), on_fuel_changed(), and on_upx().

QLineEdit* AircraftWidget::txtTank3

Definition at line 98 of file aircraftwidget.h.

Referenced by AircraftWidget(), on_fuel_changed(), and on_upx().


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