Project

General

Profile

Feature #935 » extrecmenu-1.2.1_no_edit_menu.diff

Brougs78, 04/07/2012 05:40 PM

View differences:

mod/mymenurecordings.c 2012-04-07 15:33:26.000000000 +0200
switch(newhelpkeys)
{
case 0: SetHelp(NULL);break;
case 1: SetHelp(RecordingDirCommands.Count()?tr("Button$Commands"):tr("Button$Open"),NULL,tr("Button$Edit"));break;
case 2: SetHelp(RecordingCommands.Count()?tr("Button$Commands"):tr("Button$Play"),tr("Button$Rewind"),tr("Button$Edit"),tr("Button$Info"));break;
case 3: SetHelp(RecordingCommands.Count()?tr("Button$Commands"):tr("Button$Play"),tr("Button$Rewind"),tr("Button$Cancel"),tr("Button$Info"));break;
case 4: SetHelp(RecordingCommands.Count()?tr("Button$Commands"):tr("Button$Play"),tr("Button$Rewind"),tr("Button$Edit"),NULL);break;
case 1: SetHelp(RecordingDirCommands.Count()?tr("Button$Commands"):tr("Button$Open"));break;
case 2: SetHelp(RecordingCommands.Count()?tr("Button$Commands"):tr("Button$Play"),tr("Button$Rewind"),tr("Button$Delete"),newhelpkeys > 2 ? tr("Button$Info") : NULL);break;
case 3: SetHelp(RecordingCommands.Count()?tr("Button$Commands"):tr("Button$Play"),tr("Button$Rewind"),tr("Button$Cancel"),newhelpkeys > 2 ? tr("Button$Info") : NULL);break;
case 4: SetHelp(RecordingCommands.Count()?tr("Button$Commands"):tr("Button$Play"),tr("Button$Rewind"),tr("Button$Delete"),NULL);break;
case 5: SetHelp(RecordingCommands.Count()?tr("Button$Commands"):tr("Button$Play"),tr("Button$Rewind"),tr("Button$Cancel"),NULL);break;
case 6: SetHelp(tr("Button$Open"),NULL,tr("Button$Cancel"));break;
}
......
switch(Key)
{
case kPlay:
case kOk: return Play();
case kRed: return (helpkeys>0 && item && ((item->IsDirectory() && RecordingDirCommands.Count()) || (!item->IsDirectory() && RecordingCommands.Count())))?Commands():Play();
case kGreen: return Rewind();
case kYellow: {
case kYellow: return Delete();
/*
{
if(!HasSubMenu())
{
if(item)
......
}
}
break;
*/
case kInfo:
case kBlue: return Info();
case k1...k9: return Commands(Key);
    (1-1/1)