6 #include "ui_dbliverycolorsearch.h"
13 using namespace swift::misc::aviation;
17 CDbLiveryColorSearch::CDbLiveryColorSearch(QWidget *parent) : QFrame(parent), ui(new Ui::
CDbLiveryColorSearch)
20 this->setFocusProxy(ui->comp_FuselageSelector);
27 const CRgbColor fuselage = ui->comp_FuselageSelector->getColor();
28 const CRgbColor tail = ui->comp_TailSelector->getColor();
CWebDataServices * getWebDataServices() const
Get the web data services.
swift::misc::aviation::CLiveryList getLiveries() const
Liveries.
Search for best matching color livery.
void presetColorLivery(const swift::misc::aviation::CLivery &livery)
Preset colors.
~CDbLiveryColorSearch()
Destructor.
swift::misc::aviation::CLivery getLivery() const
Found livery if any, otherwise default.
Value object encapsulating information about an airpot.
const CRgbColor & getColorTail() const
Get tail color.
bool isColorLivery() const
Color livery?
const CRgbColor & getColorFuselage() const
Get fuselage color.
Value object for a list of airports.
CLivery findClosestColorLiveryOrDefault(const CRgbColor &fuselage, const CRgbColor &tail) const
Search for colors.
SWIFT_GUI_EXPORT swift::gui::CGuiApplication * sGui
Single instance of GUI application object.
High level reusable GUI components.
Free functions in swift::misc.