Fix naming of `updateTitle()`
This is a private function so should be lowercased to avoid confusion
This commit is contained in:
parent
8aff923710
commit
f4ac4be701
|
@ -500,7 +500,7 @@ bool SCH_EDIT_FRAME::OpenProjectFiles( const std::vector<wxString>& aFileSet, in
|
||||||
TestDanglingEnds();
|
TestDanglingEnds();
|
||||||
|
|
||||||
UpdateHierarchyNavigator();
|
UpdateHierarchyNavigator();
|
||||||
UpdateTitle();
|
updateTitle();
|
||||||
m_toolManager->GetTool<SCH_NAVIGATE_TOOL>()->ResetHistory();
|
m_toolManager->GetTool<SCH_NAVIGATE_TOOL>()->ResetHistory();
|
||||||
|
|
||||||
wxFileName fn = Prj().AbsolutePath( GetScreen()->GetFileName() );
|
wxFileName fn = Prj().AbsolutePath( GetScreen()->GetFileName() );
|
||||||
|
@ -1113,7 +1113,7 @@ bool SCH_EDIT_FRAME::SaveProject( bool aSaveAs )
|
||||||
SetStatusText( msg, 0 );
|
SetStatusText( msg, 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
UpdateTitle();
|
updateTitle();
|
||||||
|
|
||||||
if( m_infoBar->GetMessageType() == WX_INFOBAR::MESSAGE_TYPE::OUTDATED_SAVE )
|
if( m_infoBar->GetMessageType() == WX_INFOBAR::MESSAGE_TYPE::OUTDATED_SAVE )
|
||||||
m_infoBar->Dismiss();
|
m_infoBar->Dismiss();
|
||||||
|
@ -1273,7 +1273,7 @@ bool SCH_EDIT_FRAME::importFile( const wxString& aFileName, int aFileType )
|
||||||
SyncView();
|
SyncView();
|
||||||
|
|
||||||
UpdateHierarchyNavigator();
|
UpdateHierarchyNavigator();
|
||||||
UpdateTitle();
|
updateTitle();
|
||||||
}
|
}
|
||||||
catch( const IO_ERROR& ioe )
|
catch( const IO_ERROR& ioe )
|
||||||
{
|
{
|
||||||
|
|
|
@ -264,7 +264,7 @@ SCH_EDIT_FRAME::SCH_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
|
||||||
// Net list generator
|
// Net list generator
|
||||||
DefaultExecFlags();
|
DefaultExecFlags();
|
||||||
|
|
||||||
UpdateTitle();
|
updateTitle();
|
||||||
m_toolManager->GetTool<SCH_NAVIGATE_TOOL>()->ResetHistory();
|
m_toolManager->GetTool<SCH_NAVIGATE_TOOL>()->ResetHistory();
|
||||||
|
|
||||||
// Default shutdown reason until a file is loaded
|
// Default shutdown reason until a file is loaded
|
||||||
|
@ -944,7 +944,7 @@ void SCH_EDIT_FRAME::OnModify()
|
||||||
UpdateHierarchyNavigator();
|
UpdateHierarchyNavigator();
|
||||||
|
|
||||||
if( !GetTitle().StartsWith( "*" ) )
|
if( !GetTitle().StartsWith( "*" ) )
|
||||||
UpdateTitle();
|
updateTitle();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1382,7 +1382,7 @@ void SCH_EDIT_FRAME::AddItemToScreenAndUndoList( SCH_SCREEN* aScreen, SCH_ITEM*
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void SCH_EDIT_FRAME::UpdateTitle()
|
void SCH_EDIT_FRAME::updateTitle()
|
||||||
{
|
{
|
||||||
SCH_SCREEN* screen = GetScreen();
|
SCH_SCREEN* screen = GetScreen();
|
||||||
|
|
||||||
|
@ -1586,7 +1586,7 @@ void SCH_EDIT_FRAME::ShowChangedLanguage()
|
||||||
// status bar
|
// status bar
|
||||||
UpdateMsgPanel();
|
UpdateMsgPanel();
|
||||||
|
|
||||||
UpdateTitle();
|
updateTitle();
|
||||||
|
|
||||||
// This ugly hack is to fix an option(left) toolbar update bug that seems to only affect
|
// This ugly hack is to fix an option(left) toolbar update bug that seems to only affect
|
||||||
// windows. See https://bugs.launchpad.net/kicad/+bug/1816492. For some reason, calling
|
// windows. See https://bugs.launchpad.net/kicad/+bug/1816492. For some reason, calling
|
||||||
|
@ -1885,7 +1885,7 @@ void SCH_EDIT_FRAME::DisplayCurrentSheet()
|
||||||
RedrawScreen( (wxPoint) GetScreen()->m_ScrollCenter, false );
|
RedrawScreen( (wxPoint) GetScreen()->m_ScrollCenter, false );
|
||||||
}
|
}
|
||||||
|
|
||||||
UpdateTitle();
|
updateTitle();
|
||||||
|
|
||||||
HardRedraw(); // Ensure all items are redrawn (especially the drawing-sheet items)
|
HardRedraw(); // Ensure all items are redrawn (especially the drawing-sheet items)
|
||||||
|
|
||||||
|
|
|
@ -870,7 +870,7 @@ private:
|
||||||
* Otherwise, the title is set to the hierarchical sheet path and the full file name, and
|
* Otherwise, the title is set to the hierarchical sheet path and the full file name, and
|
||||||
* read only is appended to the title if the user does not have write access to the file.
|
* read only is appended to the title if the user does not have write access to the file.
|
||||||
*/
|
*/
|
||||||
void UpdateTitle();
|
void updateTitle();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initialize the zoom value of the current screen and mark the screen as zoom-initialized.
|
* Initialize the zoom value of the current screen and mark the screen as zoom-initialized.
|
||||||
|
|
|
@ -101,7 +101,7 @@ int SCH_FIND_REPLACE_TOOL::UpdateFind( const TOOL_EVENT& aEvent )
|
||||||
|
|
||||||
getView()->UpdateItems();
|
getView()->UpdateItems();
|
||||||
m_frame->GetCanvas()->Refresh();
|
m_frame->GetCanvas()->Refresh();
|
||||||
m_frame->UpdateTitle();
|
m_frame->updateTitle();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue