Skip to content

Update on the "Application Settings->Location" menu UI#1613

Open
andresmmera wants to merge 13 commits intora3xdh:currentfrom
andresmmera:ClearPathList
Open

Update on the "Application Settings->Location" menu UI#1613
andresmmera wants to merge 13 commits intora3xdh:currentfrom
andresmmera:ClearPathList

Conversation

@andresmmera
Copy link
Copy Markdown
Collaborator

Motivation

It may happen that a user can accidentally add a directory with many subdirectories (e.g. the home dir) via "Add Path With Subfolders". This makes the subcircuit search path list to grow very large.

The only practical way to clear this mesh was to manually edit the configuration file (~/.config/qucs/qucs_s.conf) as the UI only provided the option to remove entries one by one.

This PR adds a button on the UI to clear all the search path entries at once. Once there, I made some more changes I felt convenient.

Changes

  • Added a "Clear All Paths" button to remove all subcircuit search paths at once, with a confirmation dialog.
  • "Add Path With Subfolders" now shows a confirmation dialog before adding paths, displaying the full list of directories to be added. Each entry has a checkbox so the user can selectively include or exclude individual paths.
  • Added a remove button (✕) per path entry, directly in the search path table. Consequently, the "Remove Path" button was no longer needed, so I removed it.
  • The standard path fields (Qucs Home, AdmsXml, ASCO, Octave, OpenVAF, RF Layout) and the subcircuit search path list are now each wrapped in their own group box in the Locations tab.
  • Add Doxygen comments to class QucsSettingsDialog

Before this PR

image

After this PR

image

Added a "Clear All Paths" button to the Locations tab of the settings dialog.

This is useful when the user accidentally adds a lot of paths via (e.g. via "Add path with subfolders")
- Add a dialog showing the list of paths to add.
- "Select All" and "Deselect All" feature
- Only those paths marked to add are actually added
…roupbox

This helps to visually identify them
Each path has now a button with a red cross to remove it
Once each path on the list has an individual button for deleting it, it doesn't make sense to have a dedicated button for that on the right side of the panel.

Also, the function "slotPathSelectionChanged" is removed as it was only used for toggling the state of the path removal button
The standard path widgets were not grouped. Last commit grouped the widgets related with the search paths, so it makes sense to do the same with the standard paths
This allows the paths to be seen clearly
slotRemovePath is dead code as RemovePathButt was removed
It doesn't need to be a class member
It is not used at all. Indeed it even had a comment saying it's not used. It doesn't make sense to keep it there.
@andresmmera andresmmera added the gui label Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant