Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GraphVeiw] right click menu updates [gramps50] #199

Merged

Conversation

vantu5z
Copy link
Contributor

@vantu5z vantu5z commented May 14, 2019

Move right-click menu to separate class, add actions class.
Add items to menus: remove, tags, bookmarks.

Resolve:

Background menu:

  • show images
  • highlight the home person
  • show full dates
  • show places
  • show tags
  • show animation
  • line types >
    • direct
    • curves
    • ortho
  • about graph view

Person menu:

  • edit
  • copy
  • remove
  • tags >
    • select tags for person
    • organize tags
  • spouses >
    • add spouse (new family)
    • ... list of spouses ...
  • siblings >
    • ... list of siblings ...
  • children >
    • ... list of children ...
  • parents >
    • ... list of parents ... / add parents
  • related >
    • ... list of related ...
  • set as home person
  • add to bookmarks / remove from bookmarks
  • about graph view

Family menu:

  • edit
  • remove
  • tags >
    • select tags for family
    • organize tags
  • spouses >
    • father person / add father
    • mother person / add mother
  • children >
    • add child to family
    • ... list of children ...
  • about graph view

@vantu5z vantu5z requested a review from SNoiraud May 17, 2019 12:12
@vantu5z
Copy link
Contributor Author

vantu5z commented May 17, 2019

Should I add something else?

@SNoiraud
Copy link
Member

SNoiraud commented May 20, 2019

Should I add something else?

for me, I don't see anything to add in 5.0.

In the menu,
If we right click on a man, We have Spouses -> add spouse: OK
If we right click on a woman, We have Spouses -> add spouse: NOK perhaps we should show Spouses or Bride for a man and Husband or groom for a woman or Partner.

@vantu5z
Copy link
Contributor Author

vantu5z commented May 20, 2019

If we right click on a woman, We have Spouses -> add spouse: NOK perhaps we should show Spouses or Bride for a man and Husband or groom for a woman or Partner.

Hm.. I believe that spouse is universal word for man or woman like partner but more official.
Anyway this menu adds new family with selected person, maybe set it as 'add new family'?

@SNoiraud
Copy link
Member

I believe that spouse is universal word for man or woman

Yes, You are right.

Anyway this menu adds new family with selected person, maybe set it as 'add new family'?

Yes, I agree

@SNoiraud
Copy link
Member

We have a problem with the busy cursor when we click on a person and this person has no ascendant.

vantu5z added 2 commits May 22, 2019 08:22
if click on person without parents
@SNoiraud
Copy link
Member

OK for me.

@vantu5z vantu5z merged commit 794468a into gramps-project:maintenance/gramps50 May 23, 2019
@johnbickmore
Copy link

@vantu5z I don't see it offered in addons when I check in Gramps, does something else need to be done?

@vantu5z
Copy link
Contributor Author

vantu5z commented May 23, 2019

Yes, it should be rebuild. But I don't have access to do this.

@adamvazquez82
Copy link

@sam-m888 With the new update the context menus do not work, tested with Windows AIO 5.01 (right click gives nothing) and Ubuntu 14.04 (I see the briefest flash of shadow from the context menu), are the changes compatibility with gtk3.10? You may want to roll this back before people complain or fix it. Shouldn't you test using the oldest minimal requirements?

@vantu5z @SNoiraud You may also want to setup a virtual machine that has the oldest minimal requirements that Gramps uses!

@vantu5z
Copy link
Contributor Author

vantu5z commented May 24, 2019

@adamvazquez82 This is strange, because I don't change popup call.
I have similar behavior with PhotoTaggingGramplet #175 (10866)
Can you test this popup call:

def show_menu(self, event=None):
    """
    Show popup menu.
    """
    if (Gtk.MAJOR_VERSION >= 3) and (Gtk.MINOR_VERSION >= 22):
        self.popup_at_pointer(event)
    else:
        self.popup(None, None, None, None, 0, 0)

and this:
self.popup(None, None, None, None, 0, Gtk.get_current_event_time())

Another thing you can test, use menu call like this:
self.menu = PopupMenu(self, kind='background').show_menu(event)

Or try add to PopupMenu.__init__ method:
self.attach_to_widget(graph_widget.canvas, None)

@vantu5z
Copy link
Contributor Author

vantu5z commented May 24, 2019

Try to fix this commit: aaadacd

@adamvazquez82
Copy link

@sam-m888 Can this be reverted (like requested by @vantu5z on the bug tracker) please?

vantu5z added a commit that referenced this pull request May 29, 2019
@vantu5z
Copy link
Contributor Author

vantu5z commented May 29, 2019

@sam-m888 @adamvazquez82 Changes was reverted.
Addon need to be rebuild.

@sam-m888
Copy link
Member

sam-m888 commented May 30, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants