Application task bar title: project name

Bug #1745607 reported by Timothée Manaud
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
KiCad
Expired
Wishlist

Bug Description

Application task bar title don't show the project name first but instead the application such as:
[(icon)Pcbnew -- /home/user/project/my_blinker.kic...]
(note the filename cut as the title is too long)

On desktop, most application display filename first, and application second, such:
[(icon)my_blinker -- Pcbnew]
-note you can skip the folder and extension as there is no way to display the full path here)

Tags: starter ui
Revision history for this message
Nick Østergaard (nickoe) wrote :

Please add version information and a screenshot.

Revision history for this message
Timothée Manaud (timothee) wrote :

Application: kicad
Version: no-vcs-found-bf44d39~61~ubuntu16.04.1, release build
Libraries:
    wxWidgets 3.0.2
    libcurl/7.47.0 OpenSSL/1.0.2g zlib/1.2.8 libidn/1.32 librtmp/2.3
Platform: Linux 4.13.0-26-generic x86_64, 64 bit, Little endian, wxGTK
Build Info:
    wxWidgets: 3.0.2 (wchar_t,wx containers,compatible with 2.8) GTK+ 2.24
    Boost: 1.58.0
    Curl: 7.47.0
    Compiler: GCC 5.4.0 with C++ ABI 1009

Build settings:
    USE_WX_GRAPHICS_CONTEXT=OFF
    USE_WX_OVERLAY=OFF
    KICAD_SCRIPTING=ON
    KICAD_SCRIPTING_MODULES=ON
    KICAD_SCRIPTING_WXPYTHON=ON
    KICAD_SCRIPTING_ACTION_MENU=ON
    BUILD_GITHUB_PLUGIN=ON
    KICAD_USE_OCE=ON
    KICAD_SPICE=ON

Jon Evans (craftyjon)
Changed in kicad:
importance: Undecided → Wishlist
Changed in kicad:
status: New → Triaged
tags: added: starter
Changed in kicad:
assignee: nobody → Daniel Walter (fordprfkt)
status: Triaged → In Progress
Revision history for this message
Daniel Walter (fordprfkt) wrote :

I have changed the order of the file name and the application title for Kicad, PCBNew, EESchema, Gerbview and the footprint editor

Changed in kicad:
status: In Progress → Fix Committed
Revision history for this message
Jeff Young (jeyjey) wrote :

@Daniel, a couple of comments on your patch:

To be consistent you should use wxT( "..." ) instead of L"..." for strings that don't need translating. Any string that does need translating must be inside _( "..." ). (This also obviates the need for a wxString constructor.)

Also, the translation framework we use can't handle non-ascii characters. So if you do need to use them you need to put them in wxT( "..." ) macros rather than _( "..." ). Generally speaking, though, we try to avoid them as cross-platform support can also be iffy.

And you're missing spaces after parenthesis in a couple of places. (Yes, it's an odd formatting standard, but it keeps things consistent.)

Revision history for this message
Daniel Walter (fordprfkt) wrote : Re: [Bug 1745607] Re: Application task bar title: project name

Hello Jeff, thank you for the Review! I'll fix it and submit a new patch.

Daniel

Jeff Young <email address hidden> schrieb am Mo., 28. Mai 2018, 14:25:

> @Daniel, a couple of comments on your patch:
>
> To be consistent you should use wxT( "..." ) instead of L"..." for
> strings that don't need translating. Any string that does need
> translating must be inside _( "..." ). (This also obviates the need for
> a wxString constructor.)
>
> Also, the translation framework we use can't handle non-ascii
> characters. So if you do need to use them you need to put them in wxT(
> "..." ) macros rather than _( "..." ). Generally speaking, though, we
> try to avoid them as cross-platform support can also be iffy.
>
> And you're missing spaces after parenthesis in a couple of places.
> (Yes, it's an odd formatting standard, but it keeps things consistent.)
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1745607
>
> Title:
> Application task bar title: project name
>
> Status in KiCad:
> Fix Committed
>
> Bug description:
> Application task bar title don't show the project name first but instead
> the application such as:
> [(icon)Pcbnew -- /home/user/project/my_blinker.kic...]
> (note the filename cut as the title is too long)
>
> On desktop, most application display filename first, and application
> second, such:
> [(icon)my_blinker -- Pcbnew]
> -note you can skip the folder and extension as there is no way to
> display the full path here)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/kicad/+bug/1745607/+subscriptions
>

Revision history for this message
Daniel Walter (fordprfkt) wrote :

Fixed review findings: Usage of non-ascii characters, used string constructor, code formatting

Changed in kicad:
status: Fix Committed → Fix Released
Seth Hillbrand (sethh)
Changed in kicad:
status: Fix Released → Triaged
milestone: none → 6.0.0-rc1
Revision history for this message
Jeff Young (jeyjey) wrote :

@Daniel, the source tree is now open for 6.0. Could you rebase your two patches so I can apply them? Thanks, Jeff.

Revision history for this message
Daniel Walter (fordprfkt) wrote :

I tried to rebase the .patch files but apparently the HEAD changed so much, git is unable to apply them. Looks like i have to redo the changes

Revision history for this message
Timothée Manaud (timothee) wrote :

Hi Daniel, any update about this patch for V6.0?
Thanks a lot for your work!

tags: added: ui
Revision history for this message
Franck78 (fbourdonnec) wrote :

The probably correct way to handle this 'simple' (it is never simple) problem is erasing all the stuff and just have a single utility function that returns the correct string, always good.

string getwindowtitle (pgm, path, file, modified)

Version is a fully superfluous information. 0.001% users are dev that may sometime work on several instance of Kicad and need to see it.
Adding it for not 'release' version is more than enough

#ifnded RELEASE
  +git-blahblah
#endif

Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

KiCad bug tracker has moved to Gitlab. This report is now available here: https://gitlab.com/kicad/code/kicad/-/issues/2096

Changed in kicad:
status: Triaged → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.