/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
- i;10;CPWindow.jc;1152;
- CPOKButton=1;
- CPCancelButton=0;
- var _1=objj_allocateClassPair(CPWindow,"CPPanel"),_2=_1.isa;
- class_addIvars(_1,[new objj_ivar("_becomesKeyOnlyIfNeeded"),new objj_ivar("_worksWhenModal")]);
- objj_registerClassPair(_1);
- objj_addClassForBundle(_1,objj_getBundleWithPath(OBJJ_CURRENT_BUNDLE.path));
- class_addMethods(_1,[new objj_method(sel_getUid("isFloatingPanel"),function(_3,_4){
- with(_3){
- return objj_msgSend(_3,"level")==CPFloatingWindowLevel;
- }
- }),new objj_method(sel_getUid("setFloatingPanel:"),function(_5,_6,_7){
- with(_5){
- objj_msgSend(_5,"setLevel:",_7?CPFloatingWindowLevel:CPNormalWindowLevel);
- }
- }),new objj_method(sel_getUid("becomesKeyOnlyIfNeeded"),function(_8,_9){
- with(_8){
- return _becomesKeyOnlyIfNeeded;
- }
- }),new objj_method(sel_getUid("setBecomesKeyOnlyIfNeeded:"),function(_a,_b,_c){
- with(_a){
- _becomesKeyOnlyIfNeeded=_c;
- }
- }),new objj_method(sel_getUid("worksWhenModal"),function(_d,_e){
- with(_d){
- return _worksWhenModal;
- }
- }),new objj_method(sel_getUid("setWorksWhenModal:"),function(_f,_10,_11){
- with(_f){
- _worksWhenModal=_11;
- }
- }),new objj_method(sel_getUid("canBecomeMainWindow"),function(_12,_13){
- with(_12){
- return NO;
- }
- })]);