*
* The MIT License (MIT)
*
- * Copyright (C) 2016 Kevin Lamonte
+ * Copyright (C) 2017 Kevin Lamonte
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
public static final int MID_WINDOW_PREVIOUS = 26;
public static final int MID_WINDOW_CLOSE = 27;
+ // Help menu
+ public static final int MID_HELP_CONTENTS = 40;
+ public static final int MID_HELP_INDEX = 41;
+ public static final int MID_HELP_SEARCH = 42;
+ public static final int MID_HELP_PREVIOUS = 43;
+ public static final int MID_HELP_HELP = 44;
+ public static final int MID_HELP_ACTIVE_FILE = 45;
+ public static final int MID_ABOUT = 46;
+
/**
* Public constructor.
*
super(parent, label, x, y, parent.getScreen().getWidth(),
parent.getScreen().getHeight());
- // My parent constructor added me as a window, get rid of that
- parent.closeWindow(this);
-
// Setup the menu shortcut
mnemonic = new MnemonicString(label);
setTitle(mnemonic.getRawLabel());
key = kbCtrlW;
break;
+ case MID_HELP_CONTENTS:
+ label = "&Contents";
+ break;
+ case MID_HELP_INDEX:
+ label = "&Index";
+ key = kbShiftF1;
+ break;
+ case MID_HELP_SEARCH:
+ label = "&Topic search";
+ key = kbCtrlF1;
+ break;
+ case MID_HELP_PREVIOUS:
+ label = "&Previous topic";
+ key = kbAltF1;
+ break;
+ case MID_HELP_HELP:
+ label = "&Help on help";
+ break;
+ case MID_HELP_ACTIVE_FILE:
+ label = "Active &file...";
+ break;
+ case MID_ABOUT:
+ label = "&About...";
+ break;
+
default:
throw new IllegalArgumentException("Invalid menu ID: " + id);
}