← Back to team overview

kicad-developers team mailing list archive

Re: Show in eeschema window title full/short path to open file -- patch

 

On 21 July 2010 06:48, Yury Khalyavin <delphi@xxxxxxxxxxxx> wrote:
> On Tue, Jul 20, 2010 at 12:37:29PM -0500, Dick Hollenbeck wrote:
>> I DO like the concept of a title which shows the filename up near the
>> front, before a long path.
>>
>> I think:
>>
>> 1) we should be able to agree on a standard format and not go through
>> the trouble having this be a configuration option.

> Yes, I agree. But I think show full path to opened file is not
> best solution.
>
> May be do like vim: filename (path/to/filename-dir) ?
>

-        title << GetScreen()->m_FileName << wxT( "]  " ) << _( "Sheet" );
-        title << wxT( " " ) << m_CurrentSheet->PathHumanReadable();
+        if (g_TitleFullPath)
+        {
+            title << GetScreen()->m_FileName << wxT( "]  " ) << _( "Sheet" );
+            title << wxT( " " ) << m_CurrentSheet->PathHumanReadable();
+        }
+        else
+        {
+            wxFileName t(GetScreen()->m_FileName);
+            title << t.GetName() << wxT( "]  " ) << _( "Sheet" );
+        }

The replacement adds the suffix Sheet, but not the sheet name. I think
it would be good to keep the sheet name. So perhaps something along
the lines of "filename/sheetname (/path/to/filename)"

Best Regards,

Brian.



Follow ups

References