Environment variables editor: dump editable combobox, use extra name editor
ClosedPublic

Authored by kossebau on Feb 23 2017, 12:10 AM.

Details

Summary

Also:

  • use consistently term "profile" instead of "group"
  • mark default profile with suffix "(default profile)" in combobox list
  • make buttons for editing profiles icon-only, similar to other places with buttons in one row with the combobox (avoids also size issues with translated button texts)
  • splits the single model class into two separate model classes, one for list of profiles, one for variables of a profile
  • makes all UI updates (like button states) follow model signals instead of direct setting

Diff Detail

Repository
R33 KDevPlatform
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
kossebau created this revision.Feb 23 2017, 12:10 AM
Restricted Application added a subscriber: kdevelop-devel. · View Herald TranscriptFeb 23 2017, 12:10 AM

If the term "profile" is accepted, I will do a follow-up patch to also rename the remaining classes (and places, if there are any not yet using "profile").
I did a quick search what other IDEs use for reusable environment variable sets, but could not find anything better. Proposals still welcome.

Before;


After:

apol accepted this revision.Feb 23 2017, 12:23 AM
apol added a subscriber: apol.

I was never fond of this UI, thanks!

This revision is now accepted and ready to land.Feb 23 2017, 12:23 AM
kossebau edited the summary of this revision. (Show Details)Feb 23 2017, 12:36 AM
kfunk added a subscriber: kfunk.Feb 23 2017, 12:39 AM
In D4730#88782, @apol wrote:

I was never fond of this UI, thanks!

+1

shell/settings/environmentprofilelistmodel.h
26

Note: EnvironmentGroupList should be renamed as well (can be done in another commit).

kfunk accepted this revision.Feb 23 2017, 12:39 AM

Thanks!

Thanks for quick review, @apol and @kfunk.

BTW, there are still some more glitches in that dialog when it comes to variable editing, but I leave that for a later time/someone more eager to fix it now. I first would have to use this dialog some more to get a better idea what some typical workflows are.

shell/settings/environmentprofilelistmodel.h
26

Agreed, that is also the plan (cmp. also my first own comment). Patch for review coming soon to a web service near you :)

This revision was automatically updated to reflect the committed changes.