PNS Router IFACE: Add board commit mode control

This commit is contained in:
Mike Williams 2022-08-17 14:02:42 -04:00
parent ef05069ebc
commit 82f8cd72a3
2 changed files with 5 additions and 1 deletions

View File

@ -894,6 +894,7 @@ PNS_KICAD_IFACE::PNS_KICAD_IFACE()
m_tool = nullptr;
m_view = nullptr;
m_previewItems = nullptr;
m_commitFlags = 0;
}
@ -1699,7 +1700,7 @@ void PNS_KICAD_IFACE::Commit()
m_fpOffsets.clear();
m_commit->Push( _( "Interactive Router" ) );
m_commit->Push( _( "Interactive Router" ), m_commitFlags );
m_commit = std::make_unique<BOARD_COMMIT>( m_tool );
}

View File

@ -126,6 +126,8 @@ public:
EDA_UNITS GetUnits() const override;
void SetCommitFlags( int aCommitFlags ) { m_commitFlags = aCommitFlags; }
private:
struct OFFSET
{
@ -139,6 +141,7 @@ private:
PCB_TOOL_BASE* m_tool;
std::unique_ptr<BOARD_COMMIT> m_commit;
int m_commitFlags;
};