Send arranged count of workpieces.
--HG-- branch : feature
This commit is contained in:
parent
ce67acc6ff
commit
3d1100bc3d
|
@ -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()
|
||||||
{
|
{
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user