Beispiel #1
0
def makemenu(menu_base):
    menu_base.clearSubMenu()
    for r in analyze.DataOperation.registry:
        help = getattr(r, "tip", None)
        new_item = oofmenu.OOFMenuItem(
            utils.space2underscore(r.name()),
            callback = _ops_callback,
            params = common_analysis_params + r.params,
            help=help,
            discussion=r.discussion)
        new_item.data = r
        menu_base.addItem(new_item)
    ops_menu.addItem(oofmenu.OOFMenuItem(
        'Rewind',
        callback=_rewind,
        params=[filenameparam.FileNameParameter(
                'filename',
                tip='The name of the output file.')],
        help="Overwrite the data currently in an output file.",
        discussion=xmlmenudump.loadFile('DISCUSSIONS/engine/menu/rewind.xml')
        ))
Beispiel #2
0
        finishCB=logFinished,
        debugLevel=dblevel,
        threaded=thread_enable.query(),
        exceptHook=loggererror,
        rerecord=filename,
        checkpoints=checkpoints,
        logger_comments=use_gui
    )  #Passing the logger_comments parameter to show the loggergui


guidebugmenu.addItem(
    oofmenu.OOFMenuItem('Rerecord',
                        callback=rerecordLog,
                        params=[
                            filenameparam.FileNameParameter(
                                'filename',
                                ident='guilog',
                                tip='Name of the log file'),
                            parameter.BooleanParameter('checkpoints', True,
                                                       'obey checkpoints?'),
                            parameter.BooleanParameter(
                                'use_gui',
                                True,
                                tip="Use the logger gui to insert comments?")
                        ],
                        ellipsis=1,
                        help="Load and rerecord a GUI log file"))

#####################


def sanity_check(menuitem):