예제 #1
0
 def define_actions(self):
     """
     Required define_actions function for NavigationView. Builds the action
     group information required. 
     """
     NavigationView.define_actions(self)
     HtmlView._define_actions_fw_bw(self)
예제 #2
0
 def define_actions(self):
     """
     Required define_actions function for NavigationView. Builds the action
     group information required. 
     """
     NavigationView.define_actions(self)
     HtmlView._define_actions_fw_bw(self)
예제 #3
0
    def define_actions(self):
        """
        Required define_actions function for PageView. Builds the action
        group information required.
        """
        NavigationView.define_actions(self)

        self._add_action('PrintView', self.printview, "<PRIMARY><SHIFT>P")
        self._add_action('PRIMARY-J', self.jump, '<PRIMARY>J')
예제 #4
0
파일: geography.py 프로젝트: xfengs/gramps
 def define_actions(self):
     """
     Required define_actions function for PageView. Builds the action
     group information required.
     As this function is overriden in some plugins, we need to call
     another method.
     """
     NavigationView.define_actions(self)
     self._add_action('PrintView', self.printview, '<Primary>P')
예제 #5
0
파일: geography.py 프로젝트: aignas/gramps
 def define_actions(self):
     """
     Required define_actions function for PageView. Builds the action
     group information required.
     As this function is overriden in some plugins, we need to call
     another method.
     """
     NavigationView.define_actions(self)
     self.define_print_actions()
예제 #6
0
 def define_actions(self):
     """
     Required define_actions function for PageView. Builds the action
     group information required.
     As this function is overriden in some plugins, we need to call
     another method.
     """
     NavigationView.define_actions(self)
     self.define_print_actions()
예제 #7
0
    def define_actions(self):
        """
        Required define_actions function for PageView. Builds the action
        group information required.
        """
        NavigationView.define_actions(self)

        self._add_action('PrintView', self.printview, "<PRIMARY>P")
        self._add_action('PRIMARY-J', self.jump, '<PRIMARY>J')
예제 #8
0
    def define_actions(self):
        """
        Required define_actions function for PageView. Builds the action
        group information required.
        """
        NavigationView.define_actions(self)

        self._add_action('PrintView', 'document-print', _("_Print..."),
                         accel="<PRIMARY>P",
                         tip=_("Print or save the Fan Chart View"),
                         callback=self.printview)
예제 #9
0
    def define_actions(self):
        """
        Required define_actions function for PageView. Builds the action
        group information required.
        """
        NavigationView.define_actions(self)

        self._add_action('PrintView', 'document-print', _("_Print..."),
                         accel="<PRIMARY>P",
                         tip=_("Print or save the Fan Chart View"),
                         callback=self.printview)
예제 #10
0
파일: geoclose.py 프로젝트: vperic/gramps
    def define_actions(self):
        """
        Define action for the reference person button.
        """
        NavigationView.define_actions(self)

        self.define_print_actions()
        self.ref_person = Gtk.ActionGroup(name=self.title + '/Selection')
        self.ref_person.add_actions([
            ('RefPerson', 'gramps-person', _('reference _Person'), None ,
            _("Select the person which is the reference for life ways"),
            self.selectPerson),
            ])
        self._add_action_group(self.ref_person)
예제 #11
0
    def define_actions(self):
        """
        Define action for the reference family button.
        """
        NavigationView.define_actions(self)

        self.define_print_actions()
        self.ref_family = Gtk.ActionGroup(self.title + '/Selection')
        self.ref_family.add_actions([
            ('RefFamily', 'gramps-family', _('reference _Family'), None ,
            _("Select the family which is the reference for life ways"),
            self.selectFamily),
            ])
        self._add_action_group(self.ref_family)
예제 #12
0
    def define_actions(self):
        """
        Define action for the reference family button.
        """
        NavigationView.define_actions(self)

        self.define_print_actions()
        self.ref_family = Gtk.ActionGroup(self.title + '/Selection')
        self.ref_family.add_actions([
            ('RefFamily', 'gramps-family', _('reference _Family'), None ,
            _("Select the family which is the reference for life ways"),
            self.selectFamily),
            ])
        self._add_action_group(self.ref_family)
예제 #13
0
    def define_actions(self):
        """
        Define action for the reference person button.
        """
        NavigationView.define_actions(self)

        self.define_print_actions()
        self.ref_person = Gtk.ActionGroup(name=self.title + '/Selection')
        self.ref_person.add_actions([
            ('RefPerson', 'gramps-person', _('reference _Person'), None,
            _("Select the person which is the reference for life ways"),
            self.select_person),
            ])
        self._add_action_group(self.ref_person)
예제 #14
0
    def define_actions(self):
        """
        Required define_actions function for PageView. Builds the action
        group information required. We extend beyond the normal here,
        since we want to have more than one action group for the PersonView.
        Most PageViews really won't care about this.

        Special action groups for Forward and Back are created to allow the
        handling of navigation buttons. Forward and Back allow the user to
        advance or retreat throughout the history, and we want to have these
        be able to toggle these when you are at the end of the history or
        at the beginning of the history.
        """
        NavigationView.define_actions(self)

        self._add_action('FilterEdit', None, _('Person Filter Editor'),
                        callback=self.filter_editor)
예제 #15
0
    def define_actions(self):
        """
        Required define_actions function for PageView. Builds the action
        group information required. We extend beyond the normal here,
        since we want to have more than one action group for the PersonView.
        Most PageViews really won't care about this.

        Special action groups for Forward and Back are created to allow the
        handling of navigation buttons. Forward and Back allow the user to
        advance or retreat throughout the history, and we want to have these
        be able to toggle these when you are at the end of the history or
        at the beginning of the history.
        """
        NavigationView.define_actions(self)

        self._add_action('FilterEdit',
                         None,
                         _('Person Filter Editor'),
                         callback=self.filter_editor)