forked from cappuccino/cappuccino
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Organized BlendKit classes into their own files and added licensing i…
…nfo. Reviewed by me.
- Loading branch information
Francisco Ryan Tolmasky I
committed
May 24, 2009
1 parent
1f64cb6
commit 3523a9f
Showing
7 changed files
with
211 additions
and
66 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* | ||
* BKThemeTemplate.j | ||
* BlendKit | ||
* | ||
* Created by Francisco Tolmasky. | ||
* Copyright 2009, 280 North, Inc. | ||
* | ||
* 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 | ||
* version 2.1 of the License, or (at your option) any later version. | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public | ||
* License along with this library; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
*/ | ||
|
||
@import <Foundation/CPObject.j> | ||
|
||
|
||
@implementation BKThemeTemplate : CPObject | ||
{ | ||
CPString _name; | ||
CPString _description; | ||
} | ||
|
||
- (id)initWithCoder:(CPCoder)aCoder | ||
{ | ||
self = [super init]; | ||
|
||
if (self) | ||
{ | ||
_name = [aCoder decodeObjectForKey:@"BKThemeTemplateName"]; | ||
_description = [aCoder decodeObjectForKey:@"BKThemeTemplateDescription"]; | ||
} | ||
|
||
return self; | ||
} | ||
|
||
- (void)encodeWithCoder:(CPCoder)aCoder | ||
{ | ||
[aCoder encodeObject:_name forKey:@"BKThemeTemplateName"]; | ||
[aCoder encodeObject:_description forKey:@"BKThemeTemplateDescription"]; | ||
} | ||
|
||
@end |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* | ||
* BKThemedObjectTemplate.j | ||
* BlendKit | ||
* | ||
* Created by Francisco Tolmasky. | ||
* Copyright 2009, 280 North, Inc. | ||
* | ||
* 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 | ||
* version 2.1 of the License, or (at your option) any later version. | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public | ||
* License along with this library; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
*/ | ||
|
||
@import <AppKit/CPView.j> | ||
|
||
|
||
@implementation BKThemedObjectTemplate : CPView | ||
{ | ||
CPString _label; | ||
id _themedObject; | ||
} | ||
|
||
- (id)initWithCoder:(CPCoder)aCoder | ||
{ | ||
self = [super init]; | ||
|
||
if (self) | ||
{ | ||
_label = [aCoder decodeObjectForKey:@"BKThemedObjectTemplateLabel"]; | ||
_themedObject = [aCoder decodeObjectForKey:@"BKThemedObjectTemplateThemedObject"]; | ||
} | ||
|
||
return self; | ||
} | ||
|
||
- (void)encodeWithCoder:(CPCoder)aCoder | ||
{ | ||
[aCoder encodeObject:_label forKey:@"BKThemedObjectTemplateLabel"]; | ||
[aCoder encodeObject:_themedObject forKey:@"BKThemedObjectTemplateThemedObject"]; | ||
} | ||
|
||
@end |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,26 @@ | ||
/* | ||
* BlendKit.j | ||
* BlendKit | ||
* | ||
* Created by Francisco Tolmasky. | ||
* Copyright 2009, 280 North, Inc. | ||
* | ||
* 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 | ||
* version 2.1 of the License, or (at your option) any later version. | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public | ||
* License along with this library; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
*/ | ||
|
||
@import "BKShowcaseController.j" | ||
@import "BKThemeDescriptor.j" | ||
@import "BKUtilities.j" | ||
@import "BKThemeTemplate.j" | ||
@import "BKThemedObjectTemplate.j" |
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