/Frameworks/AppKit/browser.platform/CPPanel.j

http://github.com/polymar/polish · Unknown · 36 lines · 36 code · 0 blank · 0 comment · 0 complexity · d5cdc47bb8e3d942caf8e5823bf6ce4a MD5 · raw file

  1. i;10;CPWindow.jc;1152;
  2. CPOKButton=1;
  3. CPCancelButton=0;
  4. var _1=objj_allocateClassPair(CPWindow,"CPPanel"),_2=_1.isa;
  5. class_addIvars(_1,[new objj_ivar("_becomesKeyOnlyIfNeeded"),new objj_ivar("_worksWhenModal")]);
  6. objj_registerClassPair(_1);
  7. objj_addClassForBundle(_1,objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
  8. class_addMethods(_1,[new objj_method(sel_getUid("isFloatingPanel"),function(_3,_4){
  9. with(_3){
  10. return objj_msgSend(_3,"level")==CPFloatingWindowLevel;
  11. }
  12. }),new objj_method(sel_getUid("setFloatingPanel:"),function(_5,_6,_7){
  13. with(_5){
  14. objj_msgSend(_5,"setLevel:",_7?CPFloatingWindowLevel:CPNormalWindowLevel);
  15. }
  16. }),new objj_method(sel_getUid("becomesKeyOnlyIfNeeded"),function(_8,_9){
  17. with(_8){
  18. return _becomesKeyOnlyIfNeeded;
  19. }
  20. }),new objj_method(sel_getUid("setBecomesKeyOnlyIfNeeded:"),function(_a,_b,_c){
  21. with(_a){
  22. _becomesKeyOnlyIfNeeded=_c;
  23. }
  24. }),new objj_method(sel_getUid("worksWhenModal"),function(_d,_e){
  25. with(_d){
  26. return _worksWhenModal;
  27. }
  28. }),new objj_method(sel_getUid("setWorksWhenModal:"),function(_f,_10,_11){
  29. with(_f){
  30. _worksWhenModal=_11;
  31. }
  32. }),new objj_method(sel_getUid("canBecomeMainWindow"),function(_12,_13){
  33. with(_12){
  34. return NO;
  35. }
  36. })]);