Sort order $+ html.Snippet("gui/snippets/input-combo", "name=sorting_cat1", "value=spy.GetParam('user.sorting.cat1', 'Part')", "items=None<-;Z<-z;Mass<-m;Label<-l;Part<-p;Suffix<-s;Numeric<-n", "onchange=spy.SetParam('user.sorting.cat1', html.GetValue('~name~'))") $- $+ html.Snippet("gui/snippets/input-combo", "name=sorting_cat2", "value=spy.GetParam('user.sorting.cat2', 'Z')", "items=None<-;Z<-z;Mass<-m;Label<-l;Part<-p;Suffix<-s;Numeric<-n", "onchange=spy.SetParam('user.sorting.cat2', html.GetValue('~name~'))") $- $+ html.Snippet("gui/snippets/input-combo", "name=sorting_cat3", "value=spy.GetParam('user.sorting.cat3', 'Label')", "items=None<-;Z<-z;Mass<-m;Label<-l;Part<-p;Suffix<-s;Numeric<-n", "onchange=spy.SetParam('user.sorting.cat3', html.GetValue('~name~'))") $- $+ html.Snippet("gui/snippets/input-combo", "name=sorting_cat4", "value=spy.GetParam('user.sorting.cat4', 'None')", "items=None<-;Z<-z;Mass<-m;Label<-l;Part<-p;Suffix<-s;Numeric<-n", "onchange=spy.SetParam('user.sorting.cat4', html.GetValue('~name~'))") $- Moiety $+ html.Snippet("gui/snippets/input-combo", "name=sorting_moiety", "value=spy.GetParam('user.sorting.moiety', 'Size')", "items=None<-;From sort<-default;Size<-s;Heaviest atom<-h;Mass<-m", "onchange=spy.SetParam('user.sorting.moiety', html.GetValue('~name~'))") $- Treat H atoms independently $+ html.Snippet("gui/snippets/input-checkbox", "name=sorting_h", "checked=spy.GetParam('user.sorting.h', 'false')", "onclick=spy.SetParam('user.sorting.h', html.GetState('~name~'))") $- Specific order
Atoms $+ html.Snippet("gui/snippets/input-text", "name=sort_atom_order", "width=100%", "value=GetVar('sorting.atom_order', '')", "onchange=SetVar('sorting.atom_order', html.GetValue('~name~'))") $- $+ html.Snippet("gui/snippets/input-checkbox", "name=atom_sequence_inplace", "value=Reorder ", "right=true", "manage=true", "onclick=html.SetState('atom_sequence_first','false')") $- $+ html.Snippet("gui/snippets/input-checkbox", "name=atom_sequence_first", "value=Move to first ", "right=true", "manage=true", "onclick=html.SetState('atom_sequence_inplace','false')") $-
Moieties $+ html.Snippet("gui/snippets/input-text", "name=sort_moiety_order", "width=100%", "value=GetVar('sorting.moiety_order', '')", "onchange=SetVar('sorting.moiety_order', html.GetValue('~name~'))") $- $spy.MakeHoverButton("small-Sort","spy.gui.do_sort()")