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

def fedoraus::QAFunctions::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 from functions::BaseQAFunctions.

Definition at line 42 of file fedoraus.py.

00042                          :
        uiDef = BaseQAFunctions.get_ui(self, app)
        uiElements = '''<ui>
            <menubar name="MainMenu">
              <menu action="QAActions">
                <menuitem action="FromSRPM" position="top"/>
                <separator/>
              </menu>
            </menubar>
          </ui>
          '''
        uiActions = (('FromSRPM', None, 'Start from _SRPM', None,
            'Load the properties for this review from an SRPM',
            self.from_srpm_cb),)
        actiongroup = gtk.ActionGroup('QA Menu')
        actiongroup.add_actions(uiActions, app)
        uiDef.append((actiongroup, uiElements))
        return uiDef

    def from_srpm_cb(self, action, app, *extras):


Generated by  Doxygen 1.6.0   Back to index