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 myApp = [CPApplication sharedApplication], | |
myMenu = [myApp mainMenu]; | |
// Cloud Books | |
var cloudBooksMenu = [[CPMenu alloc] initWithTitle:@"Cloud Books"], | |
cloudBooksMenuItem = [[CPMenuItem alloc] initWithTitle:@"Cloud Books" action:nil keyEquivalent:nil]; | |
var backupMenuItem = [[CPMenuItem alloc] initWithTitle:@"Backup" action:@selector(backup:) keyEquivalent:@"B"]; | |
var logoffMenuItem = [[CPMenuItem alloc] initWithTitle:@"Logoff" action:@selector(logoff) keyEquivalent:@"L"]; | |
[backupMenuItem setTarget: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
- (void)setMenuTarget:(CPMenu)aMenu | |
{ | |
for (var i=0; i < [[aMenu itemArray] count]; i++) | |
{ | |
var item = [aMenu itemArray][i]; | |
[item setTarget:self]; | |
if ([item hasSubmenu]) | |
{ | |
[self setMenuTarget:[item submenu]]; |
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
@import <AppKit/CPView.j> | |
@import "../Models/Menu.j" | |
@implementation WorkflowTreeViewTemplate : CPView | |
{ | |
CPImageView _imageView @accessors(property=image); | |
CPString _text @accessors(property=text); | |
RoundedView _countView @accessors(property=countView); | |
CPTextField _countText @accessors(property=countText); | |
} |
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
@import <AppKit/CPView.j> | |
@import <AppKit/CPOutlineView.j> | |
@import "../Models/Menu.j" | |
@import "../Controllers/WorkflowViewController.j" | |
@import "../Controllers/MenuController.j" | |
@import "WorkflowTreeViewTemplate.j" | |
@implementation JobsManagerView : CPView | |
{ | |
CPSplitView _verticalSplitView; |
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
@import <AppKit/CPButton.j> | |
@implementation AnchorLink : CPButton | |
{ | |
} | |
- (void)setObjectvalue:(id)anObjectValue | |
{ | |
debugger; |
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
@import <AppKit/CPButton.j> | |
@implementation AnchorLink : CPButton | |
{ | |
} | |
- (void)setObjectvalue:(id)anObjectValue | |
{ | |
debugger; |
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
_reportDetails = [[CPTextField alloc] initWithFrame:CGRectMake(0,27,CGRectGetWidth([_detailsContainer bounds]) - 15,0)]; | |
[_reportDetails setStringValue:@"Select a file to show details here"]; | |
[_reportDetails setEditable:NO]; | |
[_reportDetails setBezeled:YES]; | |
[_reportDetails setLineBreakMode:CPLineBreakByWordWrapping]; | |
[_reportDetails setFont:[CPFont systemFontOfSize:12.0]]; | |
[_reportDetails sizeToFit]; |
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)authenticationResult:(BOOL)aResult | |
{ | |
console.log("result received: " + aResult); | |
[_loginController closeModal]; | |
if (aResult == YES) | |
{ | |
// Prepare the Application Toolbar | |
_appToolbar = [[CPToolbar alloc] initWithIdentifier:@"mainToolbar"]; | |
[_appToolbar setDelegate: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
- (void)authenticationResult:(BOOL)aResult | |
{ | |
console.log("result received: " + aResult); | |
[_loginController closeModal]; | |
if (aResult == YES) | |
{ | |
// Prepare the Application Toolbar | |
_appToolbar = [[CPToolbar alloc] initWithIdentifier:@"mainToolbar"]; | |
[_appToolbar setDelegate: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
. sender: CPToolbarItem | |
. $KVOPROXY: _CPKVOProxy | |
. _UID: 18011 | |
. _action: "tickets:" | |
. _alternateImage: CPImage | |
. _autovalidates: true | |
. _image: CPImage | |
. _isEnabled: true | |
. _itemIdentifier: "AirplaneTicketTII" | |
. _label: "Pasajes" |
OlderNewer