gramps icon indicating copy to clipboard operation
gramps copied to clipboard

Enable window tracking for ConfigureDialog

Open cdhorn opened this issue 3 years ago • 5 comments

This PR modifies the ConfigureDialog and ViewConfigureDialog classes to allow window tracking data to be passed in and adds a parm to ViewConfigureDialog to enable use as a branch rather than leaf.

I required these modifications for the view I have been experimenting with and am currently keeping separate modified copies of these two classes which it would be best not to do.

cdhorn avatar Feb 20 '22 18:02 cdhorn

@cdhorn I'm getting Windows menu entries such as:

"Configure People - People Tree View View..." "Configure Places - Place Tree View View..."

Nick-Hall avatar Mar 18 '22 21:03 Nick-Hall

Sorry for delay in responding to this Nick, I am getting reoriented after a hiatus and will try to take a look at this tomorrow.

cdhorn avatar Apr 26 '22 02:04 cdhorn

No problem. I've been busy recently myself. I'll get back to looking at more pull requests shortly.

Nick-Hall avatar Apr 26 '22 21:04 Nick-Hall

@Nick-Hall this "View View" is an issue in the existing code today. Some views have View in their window title and some do not. When opening a configuration dialog for a view the code appends View to the title to generate the descriptor for the Windows menu.

If you would like I can remove that and add View to the titles of all the views that do not include it, or leave that and pull View out of the titles of those that have it. Note this affects the add on views as well.

You're thoughts?

cdhorn avatar Apr 28 '22 01:04 cdhorn

Can we insert the distinction between the terms "view category" (or is that "category view") and "view mode" into this conversation?

Gramps has a few places where such important distinctions get blurred. (Like where Filters & Rules have become blurred. There are add-on Rules that are labeled as Filters. But custom filters are a different piece, stored differently. And maybe add-on filters... built on a differently optimized library... are possible future item too.)

emyoulation avatar Apr 28 '22 04:04 emyoulation

@Nick-Hall please review my comment above if you missed it. I would argue since this PR does not change the existing behaviour that should be treated as a separate issue and would ask that you consider this as is. Please let me know your thoughts. Thanks.

cdhorn avatar Jul 23 '23 01:07 cdhorn

I'll look at this one tomorrow.

Nick-Hall avatar Jul 23 '23 22:07 Nick-Hall

I agree that the renaming of existing views should be treated as a separate issue.

Allowing the configuration dialog to be a branch rather than a leaf is a concern. Our users are always complaining about our nested windows. I don't really want to introduce any more.

Potentially there may be a need for a hierarchy of settings in the future. This will probably be best handled by extending the capability of our existing window rather than nesting windows.

Nick-Hall avatar Jul 24 '23 13:07 Nick-Hall

I use a copy of this class with these changes in my CardView, and was hoping to avoid needing to keep a one off for that purpose.

cdhorn avatar Jul 24 '23 16:07 cdhorn

Sorry. I'm not willing to go down the nested configure dialogs route. I think that there is a better solution.

Nick-Hall avatar Jul 25 '23 19:07 Nick-Hall

Okay, understood, I will close this one.

cdhorn avatar Jul 25 '23 19:07 cdhorn