Implement HardRedraw for eeschema and libedit.
This commit is contained in:
parent
e9a80a5d7f
commit
254e9f4a7e
|
@ -1720,11 +1720,13 @@ void LIB_EDIT_FRAME::ShowChangedLanguage()
|
||||||
UpdateMsgPanel();
|
UpdateMsgPanel();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void LIB_EDIT_FRAME::SetScreen( BASE_SCREEN* aScreen )
|
void LIB_EDIT_FRAME::SetScreen( BASE_SCREEN* aScreen )
|
||||||
{
|
{
|
||||||
EDA_DRAW_FRAME::SetScreen( aScreen );
|
EDA_DRAW_FRAME::SetScreen( aScreen );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void LIB_EDIT_FRAME::RebuildView()
|
void LIB_EDIT_FRAME::RebuildView()
|
||||||
{
|
{
|
||||||
KIGFX::SCH_VIEW* view = GetCanvas()->GetView();
|
KIGFX::SCH_VIEW* view = GetCanvas()->GetView();
|
||||||
|
@ -1742,6 +1744,13 @@ void LIB_EDIT_FRAME::RebuildView()
|
||||||
GetCanvas()->Refresh();
|
GetCanvas()->Refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void LIB_EDIT_FRAME::HardRedraw()
|
||||||
|
{
|
||||||
|
RebuildView();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
const BOX2I LIB_EDIT_FRAME::GetDocumentExtents() const
|
const BOX2I LIB_EDIT_FRAME::GetDocumentExtents() const
|
||||||
{
|
{
|
||||||
LIB_PART* part = GetCurPart();
|
LIB_PART* part = GetCurPart();
|
||||||
|
|
|
@ -715,6 +715,11 @@ public:
|
||||||
|
|
||||||
void RebuildView();
|
void RebuildView();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Rebuild the GAL and redraw the screen. Call when something went wrong.
|
||||||
|
*/
|
||||||
|
void HardRedraw() override;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks all draw objects of part to see if they are with block.
|
* Checks all draw objects of part to see if they are with block.
|
||||||
*
|
*
|
||||||
|
|
|
@ -592,6 +592,13 @@ void SCH_EDIT_FRAME::SetCurrentSheet( const SCH_SHEET_PATH& aSheet )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void SCH_EDIT_FRAME::HardRedraw()
|
||||||
|
{
|
||||||
|
static_cast<SCH_DRAW_PANEL*>( m_canvas )->DisplaySheet( m_CurrentSheet->LastScreen() );
|
||||||
|
GetCanvas()->Refresh();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void SCH_EDIT_FRAME::SetUndoItem( const SCH_ITEM* aItem )
|
void SCH_EDIT_FRAME::SetUndoItem( const SCH_ITEM* aItem )
|
||||||
{
|
{
|
||||||
// if aItem != NULL, delete a previous m_undoItem, if exists
|
// if aItem != NULL, delete a previous m_undoItem, if exists
|
||||||
|
|
|
@ -626,6 +626,11 @@ public:
|
||||||
|
|
||||||
void SetCurrentSheet( const SCH_SHEET_PATH& aSheet );
|
void SetCurrentSheet( const SCH_SHEET_PATH& aSheet );
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Rebuild the GAL and redraw the screen. Call when something went wrong.
|
||||||
|
*/
|
||||||
|
void HardRedraw() override;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Draw the current sheet on the display.
|
* Draw the current sheet on the display.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue