Instructions Dialog mockup.
This commit is contained in:
+5
-5
@@ -1695,9 +1695,9 @@ void lcModel::SaveStepImages(const QString& BaseName, bool AddStepSuffix, bool Z
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<std::pair<lcModel*, lcStep>> lcModel::GetPageLayouts(std::vector<const lcModel*>& AddedModels)
|
||||
std::vector<lcInstructionsPageLayout> lcModel::GetPageLayouts(std::vector<const lcModel*>& AddedModels)
|
||||
{
|
||||
std::vector<std::pair<lcModel*, lcStep>> PageLayouts;
|
||||
std::vector<lcInstructionsPageLayout> PageLayouts;
|
||||
|
||||
if (std::find(AddedModels.begin(), AddedModels.end(), this) != AddedModels.end())
|
||||
return PageLayouts;
|
||||
@@ -1716,7 +1716,7 @@ std::vector<std::pair<lcModel*, lcStep>> lcModel::GetPageLayouts(std::vector<con
|
||||
{
|
||||
while (StepIt.first > CurrentStep)
|
||||
{
|
||||
PageLayouts.emplace_back(std::make_pair(this, CurrentStep));
|
||||
PageLayouts.emplace_back(lcInstructionsPageLayout{ this, CurrentStep });
|
||||
CurrentStep++;
|
||||
}
|
||||
|
||||
@@ -1725,12 +1725,12 @@ std::vector<std::pair<lcModel*, lcStep>> lcModel::GetPageLayouts(std::vector<con
|
||||
if (Piece->mPieceInfo->IsModel())
|
||||
{
|
||||
lcModel* SubModel = Piece->mPieceInfo->GetModel();
|
||||
std::vector<std::pair<lcModel*, lcStep>> SubModelLayouts = SubModel->GetPageLayouts(AddedModels);
|
||||
std::vector<lcInstructionsPageLayout> SubModelLayouts = SubModel->GetPageLayouts(AddedModels);
|
||||
PageLayouts.insert(PageLayouts.end(), std::make_move_iterator(SubModelLayouts.begin()), std::make_move_iterator(SubModelLayouts.end()));
|
||||
}
|
||||
}
|
||||
|
||||
PageLayouts.emplace_back(std::make_pair(this, CurrentStep));
|
||||
PageLayouts.emplace_back(lcInstructionsPageLayout{ this, CurrentStep });
|
||||
CurrentStep++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user