Fix usage of refreshUi API in generic arch
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
parent
7daa8524c8
commit
9baefa2742
@ -112,30 +112,31 @@ void Arch::addBelInout(IdString bel, IdString name, IdString wire)
|
|||||||
void Arch::addDecalGraphic(DecalId decal, const GraphicElement &graphic)
|
void Arch::addDecalGraphic(DecalId decal, const GraphicElement &graphic)
|
||||||
{
|
{
|
||||||
decal_graphics[decal].push_back(graphic);
|
decal_graphics[decal].push_back(graphic);
|
||||||
|
refreshUi();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Arch::setFrameDecal(DecalXY decalxy)
|
void Arch::setFrameDecal(DecalXY decalxy)
|
||||||
{
|
{
|
||||||
frame_decalxy = decalxy;
|
frame_decalxy = decalxy;
|
||||||
frameGraphicsReload = true;
|
refreshUiFrame();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Arch::setWireDecal(WireId wire, DecalXY decalxy)
|
void Arch::setWireDecal(WireId wire, DecalXY decalxy)
|
||||||
{
|
{
|
||||||
wires.at(wire).decalxy = decalxy;
|
wires.at(wire).decalxy = decalxy;
|
||||||
wireGraphicsReload.insert(wire);
|
refreshUiWire(wire);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Arch::setPipDecal(PipId pip, DecalXY decalxy)
|
void Arch::setPipDecal(PipId pip, DecalXY decalxy)
|
||||||
{
|
{
|
||||||
pips.at(pip).decalxy = decalxy;
|
pips.at(pip).decalxy = decalxy;
|
||||||
pipGraphicsReload.insert(pip);
|
refreshUiPip(pip);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Arch::setBelDecal(BelId bel, DecalXY decalxy)
|
void Arch::setBelDecal(BelId bel, DecalXY decalxy)
|
||||||
{
|
{
|
||||||
bels.at(bel).decalxy = decalxy;
|
bels.at(bel).decalxy = decalxy;
|
||||||
belGraphicsReload.insert(bel);
|
refreshUiBel(bel);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ---------------------------------------------------------------
|
// ---------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user