VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
airportSelectionWidget.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2021 MAK Technologies, Inc.
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 
11 #pragma once
12 
14 #include <QtWidgets/QWidget>
15 
16 #include <boost/signals2.hpp>
17 
18 class QCompleter;
19 class QLabel;
20 class QComboBox;
21 class QHBoxLayout;
22 
23 namespace makVrv
24 {
25  class DtDe;
26 }
27 
28 namespace makVrf
29 {
32  {
33  Q_OBJECT;
34  public:
35 
37  DtAirportSelectionWidget( makVrv::DtDe& de, QWidget* parent = NULL, const Qt::WindowFlags& flags = 0 );
38 
40  std::string getSelectedAirportName() const;
41 
43  std::string getSelectedIcaoCode() const;
44 
46  virtual bool setCurrentAirport( const std::string airportName );
47 
49  virtual void setCurrentIndex( int index );
50 
52  virtual ~DtAirportSelectionWidget() override;
53 
54  bool hasAerodromes() const;
55 
56  public:
57  boost::signals2::signal<void ()> signal_aerodromesSetup;
58 
59  public:
60 
62  QHBoxLayout *myHBoxLayout;
65 
66  protected:
67 
69  void setUpGui();
70 
72  void completeSetup();
73 
74  virtual void showEvent(QShowEvent*) override;
75 
76  protected:
78  boost::signals2::scoped_connection myAerodromesCachedConnection;
79  };
80 }
QLabel * myAirportLabel
Definition: airportSelectionWidget.h:63
boost::signals2::signal< void()> signal_aerodromesSetup
Definition: airportSelectionWidget.h:57
A widget class for encapsulating airport selection from a combo box.
Definition: airportSelectionWidget.h:31
makVrv::DtDe & myDe
Definition: airportSelectionWidget.h:77
boost::signals2::scoped_connection myAerodromesCachedConnection
Definition: airportSelectionWidget.h:78
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
QCompleter * myAirportNameCompleter
Definition: airportSelectionWidget.h:64
QHBoxLayout * myHBoxLayout
Definition: airportSelectionWidget.h:62
#define DT_DLL_VRFGUITASKSETQT
Definition: vrfGuiTaskSetQt.h:22
QComboBox * myAirportCombobox
Definition: airportSelectionWidget.h:61

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)