/* Authors: Arkeon */ /* Last update: 07.04.02 */ /* Version: 1.0 */ typeof plugin = S;; typeof class = S;; typeof SavedType = S;; typeof Init = ObjCheck;; proto save=fun [ [Inst r1] ] [[S r1] [S r1] [[S r1]r1] [[S r1]r1]];; fun openedit(win, param) = let strextr param -> l in let _GETwindowSizePosition win -> [w h x y] in { set Init = _SETcheck _CRcheck _channel win 5 25 70 20 0 "Init on" if !strcmpi getInfo l "init" "on" then 1 else 0; }; 0;; fun closeedit() = strbuild ("init"::(let _GETcheck Init -> x in if x then "on" else "off")::nil):: nil ;; fun savesuppdmi(l) = if l==nil then nil else let l->[a n] in ("actionC"::(strcat a.nameInst ".start")::nil):: ("actionC"::(strcat a.nameInst ".stop")::nil):: ("action"::(strcat a.nameInst ".startS")::nil):: ("action"::(strcat a.nameInst ".stopS")::nil):: savesuppdmi n ;; fun save(l)= [ nil /* registerF */ nil /* register */ ("plugin"::plugin::nil)::nil /* supplemental Dat */ savesuppdmi l /* supplemental Dmi */ ];; fun IniPlug(file) = set plugin=file; set class=getInfo strextr _getpack _checkpack file "name"; PlugRegister class @save nil @openedit @closeedit;;