luddep / LPKit
- Source
- Commits
- Network (3)
- Issues (2)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
9ea7f6c
tree 3f0daa218f29d5de09bc185b0e4f33e6d200df1e
parent 6dc41fd225895a1325be5702899bbb97b0d63a97
| name | age | message | |
|---|---|---|---|
| |
CPArray+Additions.j | Mon Oct 12 12:40:11 -0700 2009 | |
| |
Info.plist | Fri Oct 16 11:35:28 -0700 2009 | |
| |
LICENSE | Mon Oct 12 12:40:11 -0700 2009 | |
| |
LPCalendarHeaderView.j | Fri Oct 16 09:41:24 -0700 2009 | |
| |
LPCalendarMonthView.j | ||
| |
LPCalendarView.j | ||
| |
LPEmail.j | ||
| |
LPKit.j | Sat Nov 07 15:55:46 -0800 2009 | |
| |
LPSlideView.j | Sat Nov 07 15:55:46 -0800 2009 | |
| |
LPSparkLine.j | ||
| |
LPSwitch.j | Sun Nov 08 11:09:13 -0800 2009 | |
| |
LPURLPostRequest.j | Sat Nov 07 11:59:16 -0800 2009 | |
| |
LPViewAnimation.j | Sat Nov 07 15:49:11 -0800 2009 | |
| |
README.markdown | ||
| |
Resources/ | Mon Oct 12 12:34:29 -0700 2009 |
LPKit
A collection of different generic views & utilities for Cappuccino, extracted from the up-coming cappuccino port of Observer.
A demo is available at http://luddep.se/static/LPKit-Examples/, with the source code in the LPKit-Examples repository.
Installation
Place the entire LPKit folder in your Frameworks folder, or any directory that you add using OBJJ_INCLUDE_PATHS.
What's inside
Slide view
LPSlideView lets you slide between different subviews. Only one subview will be visible, and the sliding only shows the relevant subviews - no matter how many other views might be between them.
Calendar view

LPCalendarView is a calendar view based on the iPhone calendar app, with the same sliding when changing months. Currently supports selecting days & weeks, also marking a special day as highlighted - such as the current day or week.
NOTE: The animation isn't yet 100% totally awesome, and there will be improvements, eventually.
Sparkline

A simple sparkline chart, comparable to the Google Chart sparklines - but using CoreGraphics rather than an image.
Switch control

A port of the UISwitch from the iPhone SDK, with the same behavior and feel.
Utilities
LPEmail
A simple object which lets you validate emails, for now. NOTE: the current regexp is broken, needs to be replaced with one that actually works.
LPURLPostRequest
A wrapper around CPURLRequest to make working with post requests a bit simpler.
Rather than manually settings the HTTPBody & Content-Type, you pass it a javascript object with key value pairs of strings which you want to send as a POST request.
Example:
var request = [LPURLPostRequest requestWithURL:[CPURL URLWithString:@"/my-url/"]],
content = {
'name': 'Lorem ipsum',
'age': '18'
};
[request setContent:content]
[CPURLConnection connectionWithRequest:request delegate:self];
Themes
LPKit makes heavy use of the theme API in Cappuccino. An example on how to use themes with LPKit is available in in the LPKit-Examples repository which has a demo theme with an Aristo inspired look.

