Clazz.declarePackage ("J.modelkit");
Clazz.load (["J.popup.PopupResource"], "J.modelkit.ModelKitPopupResourceBundle", ["J.i18n.GT"], function () {
c$ = Clazz.declareType (J.modelkit, "ModelKitPopupResourceBundle", J.popup.PopupResource);
Clazz.overrideMethod (c$, "getMenuName", 
function () {
return "modelkitMenu";
});
Clazz.overrideMethod (c$, "buildStructure", 
function (menuStructure) {
this.addItems (J.modelkit.ModelKitPopupResourceBundle.menuContents);
this.addItems (J.modelkit.ModelKitPopupResourceBundle.structureContents);
if (menuStructure != null) this.setStructure (menuStructure,  new J.i18n.GT ());
}, "~S");
Clazz.overrideMethod (c$, "getWordContents", 
function () {
var wasTranslating = J.i18n.GT.setDoTranslate (true);
var words =  Clazz.newArray (-1, ["atomMenu", "<atoms.png>", "moreAtomMenu", "<dotdotdot.png>", "bondMenu", "<bonds.png>", "optionsMenu", "<dotdotdot.png>", "new", J.i18n.GT.$ ("new"), "undo", J.i18n.GT.$ ("undo (CTRL-Z)"), "redo", J.i18n.GT.$ ("redo (CTRL-Y)"), "center", J.i18n.GT.$ ("center"), "addh", J.i18n.GT.$ ("add hydrogens"), "minimize", J.i18n.GT.$ ("minimize"), "hmin", J.i18n.GT.$ ("fix hydrogens and minimize"), "clearQ", J.i18n.GT.$ ("clear"), "SIGNEDsaveFile", J.i18n.GT.$ ("save file"), "SIGNEDsaveState", J.i18n.GT.$ ("save state"), "invertStereoP!CB", J.i18n.GT.$ ("invert ring stereochemistry"), "assignAtom_XP!CB", J.i18n.GT.$ ("delete atom"), "assignAtom_XxP!CB", J.i18n.GT.$ ("drag to bond"), "dragAtomP!CB", J.i18n.GT.$ ("drag atom"), "dragMinimizeP!CB", J.i18n.GT.$ ("drag atom (and minimize)"), "dragMoleculeP!CB", J.i18n.GT.$ ("drag molecule (ALT to rotate)"), "dragMinimizeMoleculeP!CB", J.i18n.GT.$ ("drag and minimize molecule (docking)"), "assignAtom_CP!CB", "C", "assignAtom_HP!CB", "H", "assignAtom_NP!CB", "N", "assignAtom_OP!CB", "O", "assignAtom_FP!CB", "F", "assignAtom_ClP!CB", "Cl", "assignAtom_BrP!CB", "Br", "_??P!CB", "??", "assignAtom_PlP!CB", J.i18n.GT.$ ("increase charge"), "assignAtom_MiP!CB", J.i18n.GT.$ ("decrease charge"), "assignBond_0P!CB", J.i18n.GT.$ ("delete bond"), "assignBond_1P!CB", J.i18n.GT.$ ("single"), "assignBond_2P!CB", J.i18n.GT.$ ("double"), "assignBond_3P!CB", J.i18n.GT.$ ("triple"), "assignBond_pP!CB", J.i18n.GT.$ ("increase order"), "assignBond_mP!CB", J.i18n.GT.$ ("decrease order"), "rotateBondP!CB", J.i18n.GT.$ ("rotate bond (SHIFT-DRAG)"), "exit", J.i18n.GT.$ ("exit modelkit mode")]);
J.i18n.GT.setDoTranslate (wasTranslating);
return words;
});
Clazz.overrideMethod (c$, "getMenuAsText", 
function (title) {
return this.getStuctureAsText (title, J.modelkit.ModelKitPopupResourceBundle.menuContents, J.modelkit.ModelKitPopupResourceBundle.structureContents);
}, "~S");
Clazz.defineStatics (c$,
"MENU_NAME", "modelkitMenu");
c$.menuContents = c$.prototype.menuContents =  Clazz.newArray (-1, [ Clazz.newArray (-1, ["modelkitMenu", "atomMenu bondMenu optionsMenu"]),  Clazz.newArray (-1, ["optionsMenu", "new center addh minimize hmin  - undo redo - SIGNEDsaveFile SIGNEDsaveState exit"]),  Clazz.newArray (-1, ["atomMenu", "assignAtom_XP!CB assignAtom_XxP!CB dragAtomP!CB dragMinimizeP!CB dragMoleculeP!CB dragMinimizeMoleculeP!CB invertStereoP!CB - assignAtom_CP!CB assignAtom_HP!CB assignAtom_NP!CB assignAtom_OP!CB assignAtom_FP!CB assignAtom_ClP!CB assignAtom_BrP!CB _??P!CB _??P!CB _??P!CB moreAtomMenu - assignAtom_PlP!CB assignAtom_MiP!CB"]),  Clazz.newArray (-1, ["moreAtomMenu", "clearQ - _??P!CB _??P!CB _??P!CB _??P!CB _??P!CB _??P!CB "]),  Clazz.newArray (-1, ["bondMenu", "assignBond_0P!CB assignBond_1P!CB assignBond_2P!CB assignBond_3P!CB - assignBond_pP!CB assignBond_mP!CB - rotateBondP!CB"])]);
Clazz.defineStatics (c$,
"structureContents",  Clazz.newArray (-1, [ Clazz.newArray (-1, ["new", "zap"]),  Clazz.newArray (-1, ["center", "zoomto 0 {visible} 0/1.5"]),  Clazz.newArray (-1, ["addh", "calculate hydrogens {model=_lastframe}"]),  Clazz.newArray (-1, ["minimize", "minimize"]),  Clazz.newArray (-1, ["hmin", "delete hydrogens and model=_lastframe; minimize addhydrogens"]),  Clazz.newArray (-1, ["SIGNEDsaveFile", "select visible;write COORD '?jmol.mol'"]),  Clazz.newArray (-1, ["SIGNEDsaveState", "write '?jmol.jpg'"]),  Clazz.newArray (-1, ["clearQ", "clearQ"]),  Clazz.newArray (-1, ["undo", "!UNDO"]),  Clazz.newArray (-1, ["redo", "!REDO"]),  Clazz.newArray (-1, ["exit", "set modelkitMode false"])]));
});
