mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-24 18:04:14 +08:00
refs #602, emoved web service provider
* webservices now directly accessible via sGui * interface no longer needed * no init of provider (setProvider) needed anymore
This commit is contained in:
committed by
Mathew Sutcliffe
parent
a0cfa2e687
commit
79f95845b2
@@ -7,12 +7,14 @@
|
||||
* contained in the LICENSE file.
|
||||
*/
|
||||
|
||||
#include "blackgui/guiapplication.h"
|
||||
#include "blackmisc/aviation/liverylist.h"
|
||||
#include "liveryform.h"
|
||||
#include "ui_liveryform.h"
|
||||
|
||||
using namespace BlackMisc;
|
||||
using namespace BlackMisc::Aviation;
|
||||
using namespace BlackGui;
|
||||
using namespace BlackGui::Components;
|
||||
|
||||
namespace BlackGui
|
||||
@@ -43,13 +45,6 @@ namespace BlackGui
|
||||
|
||||
CLiveryForm::~CLiveryForm() { }
|
||||
|
||||
void CLiveryForm::setProvider(BlackMisc::Network::IWebDataServicesProvider *provider)
|
||||
{
|
||||
CWebDataServicesAware::setProvider(provider);
|
||||
this->ui->editor_AirlineIcao->setProvider(provider);
|
||||
this->ui->livery_Selector->setProvider(provider);
|
||||
}
|
||||
|
||||
CLivery CLiveryForm::getValue() const
|
||||
{
|
||||
CLivery livery(this->ui->livery_Selector->getLivery());
|
||||
@@ -168,7 +163,7 @@ namespace BlackGui
|
||||
if (!code.hasCompleteData()) { return; }
|
||||
if (!code.hasValidDbKey()) { return; }
|
||||
|
||||
CLivery stdLivery(this->getLiveries().findStdLiveryByAirlineIcaoDesignator(code));
|
||||
CLivery stdLivery(sGui->getWebDataServices()->getLiveries().findStdLiveryByAirlineIcaoDesignator(code));
|
||||
if (stdLivery.hasValidDbKey())
|
||||
{
|
||||
this->setValue(stdLivery);
|
||||
|
||||
Reference in New Issue
Block a user