Send arranged count of workpieces.

--HG--
branch : feature
This commit is contained in:
dismine 2015-01-16 14:53:14 +02:00
parent ce67acc6ff
commit 3d1100bc3d
3 changed files with 8 additions and 0 deletions

View file

@ -251,6 +251,12 @@ QRectF VBank::GetBiggestBoundingRect() const
return boundingRect; return boundingRect;
} }
//---------------------------------------------------------------------------------------------------------------------
int VBank::ArrangedCount() const
{
return details.size() - AllDetailsCount();
}
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
void VBank::PrepareGroup() void VBank::PrepareGroup()
{ {

View file

@ -59,6 +59,7 @@ public:
int AllDetailsCount() const; int AllDetailsCount() const;
int LeftArrange() const; int LeftArrange() const;
int ArrangedCount() const;
QRectF GetBiggestBoundingRect() const; QRectF GetBiggestBoundingRect() const;

View file

@ -107,6 +107,7 @@ void VLayoutGenerator::Generate()
if (paper.ArrangeDetail(bank->GetDetail(index))) if (paper.ArrangeDetail(bank->GetDetail(index)))
{ {
bank->Arranged(index); bank->Arranged(index);
emit Arranged(bank->ArrangedCount());
} }
else else
{ {