This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (LEAnimation)initWithView:(CPView)aView property:(NSString)keyPath | |
{ | |
self = [super initWithDuration:1.0 animationCurve:CPAnimationLinear]; | |
if(self) | |
{ | |
if([aView respondsToSelector:keyPath]){ | |
_view = aView; | |
_getPath = keyPath; | |
_setPath = "set"+[[keyPath capitalizedString] substringToIndex:1]+[keyPath substringFromIndex:1]+":"; | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)showLoginWindow:(id)sender | |
{ | |
if(!_loginView) | |
{ | |
_loginView = [[CPView alloc] initWithFrame:CGRectMake(0,0,600,600)]; | |
var email = [[CPTextField alloc] initWithFrame:CGRectMake(0,0,100,20)]; | |
[email setBordered:YES]; [email setBezeled:YES]; | |
[_loginView addSubview:email]; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@implementation LEToolbar : CPView | |
{ | |
CPView _toolbarPart; | |
CPView _stackPart; | |
LEAnimation _toolbarOpenAnimation; | |
LEAnimation _toolbarCloseAnimation; | |
LEAnimation _stackOpenAnimation; | |
LEAnimation _stackCloseAnimation; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function LEAlert(string) | |
{ | |
var alertWindow = [[CPWindow alloc] initWithContentRect:CGRectMake(0,0,300,150) styleMask:CPHUDBackgroundWindowMask | CPClosableWindowMask]; | |
[alertWindow center]; | |
[alertWindow setTitle:LEL.alertWindowTitle]; | |
var content = [alertWindow contentView]; | |
var text = [LELabel labelWithStringValue:string]; | |
[text setTextColor:[CPColor whiteColor]]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var kLEDefaultPreferencesController; | |
@implementation LEPreferencesController : CPWindowController | |
{ | |
} | |
+ (id)defaultController | |
{ | |
if(!kLEDefaultPreferencesController) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@implementation LEStickyNote : CPView | |
{ | |
CPTextField _label; | |
id mouseDownPoint; | |
} | |
+ (id)stickyWithStringValue:(CPString)stringValue | |
{ | |
return [[LEStickyNote alloc] initWithStringValue:stringValue]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* CPPropertyAnimation.j | |
* AppKit | |
* | |
* Created by Nicholas Small. | |
* Copyright 2008, Nicholas Small. | |
* | |
* This library is free software; you can redistribute it and/or | |
* modify it under the terms of the GNU Lesser General Public | |
* License as published by the Free Software Foundation; either |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@implementation LEThumbnailView : CPView | |
{ | |
CPView _root; | |
CPShadowView _shadow; | |
CPImageView _image; | |
CPTextField _label; | |
CPView _tooltip; | |
id _object; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@implementation LEProfileContentView : CPObject | |
{ | |
CPColor _backgroundColor; | |
} | |
- (id)initUntitled | |
{ | |
self = [super init]; | |
if(self) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@implementation ServerRequester : CPObject | |
{ | |
CPString _returnData @accessors(property=returnData); | |
id _delegate @accessors(property=delegate); | |
} | |
- (void)request:action data:(Object)jsonData | |
{ | |
var actionURL = null; | |