Logo Search packages:      
Sourcecode: qa-assistant version File versions  Download package

def functions::BaseQAFunctions::get_ui (   self,
  app 
)

Returns a uimanager ui definition and actiongroup definition.

The functions interface needs to return a uimanaged set of menus and
toolbars so the app can merge and unmerge them when new checklists are
opened.

Reimplemented in fedoraus::QAFunctions.

Definition at line 90 of file functions.py.

00090                          :
        '''Returns a uimanager ui definition and actiongroup definition.
        
        The functions interface needs to return a uimanaged set of menus and
        toolbars so the app can merge and unmerge them when new checklists are
        opened.
        '''

        uiElements = '''<ui>
            <menubar name="MainMenu">
              <menu action="QAActions">
                <menuitem action="AddChecklistItem" position="top"/>
                <separator/>
                <menuitem action="PublishToFile" position="bot"/>
              </menu>
            </menubar>
            <toolbar name="MainToolBar">
              <toolitem action="PublishToFile"/>
            </toolbar>
            </ui>
            '''
        uiActions = (
                ('AddChecklistItem', None, '_Add Checklist Item', '<control>i',
                    'Add a checklist item to fill in with extra notes',
                    self.add_item_cb),
                ('PublishToFile', None, '_Publish to file', '<control>u',
                    'Publish the review from the checklist to a file',
                    self.publish_cb))
        actiongroup = gtk.ActionGroup('QA Menu')
        actiongroup.add_actions(uiActions, app)
        return [(actiongroup, uiElements)]

    def add_item_cb(self, action, app, *extra):


Generated by  Doxygen 1.6.0   Back to index