Display filename and full sheet name ("sheet path") in sheet references

This commit is contained in:
CHARRAS
2008-02-29 15:31:32 +00:00
parent 4d9ea908f1
commit e2abaa8109
3 changed files with 963 additions and 854 deletions
+13 -1
View File
@@ -229,7 +229,7 @@ int UpperLimit = VARIABLE_BLOCK_START_POSITION;
msg += screen->m_Revision;
break;
case WS_LICENCE:
case WS_KICAD_VERSION:
msg += g_ProductName;
break;
@@ -241,6 +241,18 @@ int UpperLimit = VARIABLE_BLOCK_START_POSITION;
msg << screen->m_ScreenNumber << wxT("/") << screen->m_NumberOfScreen;
break;
case WS_FILENAME:
{
wxString fname, fext;
wxFileName::SplitPath(screen->m_FileName, (wxString*)NULL, &fname, &fext);
msg << fname << wxT(".") << fext;
}
break;
case WS_FULLSHEETNAME:
// msg += GetScreenDesc();
break;
case WS_COMPANY_NAME:
msg += screen->m_Company;
if ( ! msg.IsEmpty() )