mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 09:15:34 +08:00
Allow to disable reverse lookup for model string and livery ids
This commit is contained in:
committed by
Mat Sutcliffe
parent
ee9f1188d7
commit
6bc2a15f61
@@ -44,6 +44,23 @@ namespace BlackMisc
|
||||
return true;
|
||||
}
|
||||
|
||||
bool CAircraftMatcherSetup::isReverseLookupModelString() const
|
||||
{
|
||||
return this->getMatchingMode().testFlag(ReverseLookupModelString);
|
||||
}
|
||||
|
||||
bool CAircraftMatcherSetup::isReverseLookupSwiftLiveryIds() const
|
||||
{
|
||||
return this->getMatchingMode().testFlag(ReverseLookupSwiftLiveryIds);
|
||||
}
|
||||
|
||||
void CAircraftMatcherSetup::resetReverseLookup()
|
||||
{
|
||||
MatchingMode m = this->getMatchingMode();
|
||||
m.setFlag(ReverseLookupDefault);
|
||||
this->setMatchingMode(m);
|
||||
}
|
||||
|
||||
bool CAircraftMatcherSetup::doRunMsReverseLookupScript() const
|
||||
{
|
||||
return m_msReverseEnabled && !m_msReverseLookupFile.isEmpty();
|
||||
|
||||
@@ -128,6 +128,12 @@ namespace BlackMisc
|
||||
//! Matching mode
|
||||
MatchingMode getMatchingMode() const { return static_cast<MatchingMode>(m_mode); }
|
||||
|
||||
//! Reverse lookup @{
|
||||
bool isReverseLookupModelString() const;
|
||||
bool isReverseLookupSwiftLiveryIds() const;
|
||||
void resetReverseLookup();
|
||||
//! @}
|
||||
|
||||
//! Get matching files @{
|
||||
const QString &getMsReverseLookupFile() const { return m_msReverseLookupFile; }
|
||||
const QString &getMsMatchingStageFile() const { return m_msMatchingStageFile; }
|
||||
|
||||
Reference in New Issue
Block a user