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 <Foundation/CPObject.j> | |
@implementation TasksView : CPView | |
{ | |
id _delegate @accessors(property=delegate); | |
CPScrollView scrollView; | |
CPTableView dataTable; | |
CPArray dataset; | |
} |
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 <Foundation/CPObject.j> | |
@implementation ProjectsView : CPView | |
{ | |
id _delegate @accessors(property=delegate); | |
CPScrollView scrollView; | |
CPTableView projectsTable; | |
CPArray projects; | |
} |
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
[acmeplugin] | |
[client name='Acme' logo="acme.png"] | |
[video flv="/acme.flv"] | |
[chapter seek=206 title="the good part"]Taz builds a train track and puts seeds on the track with an oncoming train[/chapter] | |
[/video] | |
[/acmeplugin] |
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 <Foundation/CPObject.j> | |
@implementation TimerMenuItem : CPView | |
{ | |
id _delegate @accessors(property=delegate); | |
CPButton startButton; | |
} | |
- (id)initWithFrame:(CPRect)frame | |
{ |
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
- (CPToolbarItem)toolbar:(CPToolbar)aToolbar itemForItemIdentifier:(CPString)anItemIdentifier willBeInsertedIntoToolbar:(BOOL)aFlag | |
{ | |
var toolbarItem = [[CPToolbarItem alloc] initWithItemIdentifier:anItemIdentifier]; | |
if (anItemIdentifier == @"Timer") { | |
/* | |
var mainBundle = [CPBundle mainBundle]; | |
var image = [[CPImage alloc] initWithContentsOfFile:[mainBundle pathForResource:@"11-clock.png"] size:CPSizeMake(30, 25)]; | |
//var highlighted = [[CPImage alloc] initWithContentsOfFile:[mainBundle pathForResource:@"11-clock.png"] size:CPSizeMake(30, 25)]; | |
[toolbarItem setImage:image]; |
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)taskIdSelected:(int)taskId selectedTask:(CPArray)task | |
{ | |
//[timingToolbar setVisible:YES]; | |
CPLog.trace("Clicked"); | |
console.log(task); | |
[timerMenuItem setTaskName:[[CPString alloc] initWithString:@""+task["name"]]]; | |
} |
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 <Foundation/CPObject.j> | |
@implementation TimerMenuItem : CPView | |
{ | |
id _delegate @accessors(property=delegate); | |
CPButton startButton; | |
} | |
- (id)initWithFrame:(CPRect)frame | |
{ |
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
ship = bodies[1] | |
shipVec = vector(ship:getX(),ship:getY()) | |
planet = bodies[2] | |
planetVec = vector(planet:getX(),planet:getY()) |
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 danland_preprocess_node(&$vars, $hook) { | |
$node = $vars['node']; | |
$vars['template_file'] = 'node-'. $node->nid; | |
} |
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
<?php | |
/** | |
* Layout management library based on: | |
* http://codeigniter.com/wiki/layout_library/ | |
* | |
* Extended layout placeholders and javascript and css files inclussion. | |
* Author: gbrunacci <gbrunacci *at siamsoft *dot com *dot ar> | |
*/ | |
class Layout { |