mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 18:35:35 +08:00
refs #720, allow to publish when there are errors, but some models pass validation
* return valid and invalid models * return value "success" when there are any valid models
This commit is contained in:
committed by
Mathew Sutcliffe
parent
d10fe5ad18
commit
da343d81c1
@@ -43,11 +43,9 @@ namespace BlackMisc
|
||||
}
|
||||
}
|
||||
namespace Ui { class CDbStashComponent; }
|
||||
|
||||
namespace BlackGui
|
||||
{
|
||||
namespace Views { class CAircraftModelView; }
|
||||
|
||||
namespace Components
|
||||
{
|
||||
/*!
|
||||
@@ -169,10 +167,10 @@ namespace BlackGui
|
||||
bool showMessage(const BlackMisc::CStatusMessage &msg, int timeoutMs = -1);
|
||||
|
||||
//! Validate
|
||||
BlackMisc::CStatusMessageList validate(BlackMisc::Simulation::CAircraftModelList &invalidModels) const;
|
||||
BlackMisc::CStatusMessageList validate(BlackMisc::Simulation::CAircraftModelList &validModels, BlackMisc::Simulation::CAircraftModelList &invalidModels) const;
|
||||
|
||||
//! Validate and display info messages
|
||||
bool validateAndDisplay(bool displayInfo = false);
|
||||
bool validateAndDisplay(BlackMisc::Simulation::CAircraftModelList &validModels, BlackMisc::Simulation::CAircraftModelList &invalidModels, bool displayInfo = false);
|
||||
|
||||
//! Set the button row
|
||||
void enableButtonRow();
|
||||
|
||||
Reference in New Issue
Block a user