PageRenderTime 20ms CodeModel.GetById 17ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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