mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-25 17:45:36 +00:00
Added hierarchy for nib2cib of a CPTextView. NSTextViewSharedData is a object to retrieve attributes of the CPTextView
This commit is contained in:
1 parent
51ec699649
commit
1f369b47d7
7 files changed
+269
-3
No files matched your search
@@ -45,6 +45,7 @@
|
||||
@import "NSImage.j"
|
||||
@import "NSImageView.j"
|
||||
@import "NSLayoutConstraint.j"
|
||||
@import "NSLayoutManager.j"
|
||||
@import "NSLevelIndicator.j"
|
||||
@import "NSMatrix.j"
|
||||
@import "NSMenu.j"
|
||||
@@ -72,9 +73,12 @@
|
||||
@import "NSTableView.j"
|
||||
@import "NSTabView.j"
|
||||
@import "NSTabViewItem.j"
|
||||
@import "NSText.j"
|
||||
@import "NSTextContainer.j"
|
||||
@import "NSTextField.j"
|
||||
@import "NSTextStorage.j"
|
||||
@import "NSTextView.j"
|
||||
@import "NSTextViewSharedData.j"
|
||||
@import "NSTokenField.j"
|
||||
@import "NSToolbar.j"
|
||||
@import "NSToolbarFlexibleSpaceItem.j"
|
||||
@@ -91,7 +95,6 @@
|
||||
@import "NSPopover.j"
|
||||
@import "NSProgressIndicator.j"
|
||||
|
||||
|
||||
function CP_NSMapClassName(aClassName)
|
||||
{
|
||||
if (aClassName.indexOf("NS") === 0)
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* NSText.j
|
||||
* nib2cib
|
||||
*
|
||||
* Created by Alexendre Wilhelm.
|
||||
* Copyright 2014 The Cappuccino Foundation.
|
||||
*
|
||||
* 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/CPLayoutManager.j>
|
||||
|
||||
@class Nib2Cib
|
||||
|
||||
@implementation CPLayoutManager (NSCoding)
|
||||
|
||||
- (id)NS_initWithCoder:(CPCoder)aCoder
|
||||
{
|
||||
self = [super init];
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation NSLayoutManager : CPLayoutManager
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
- (id)initWithCoder:(CPCoder)aCoder
|
||||
{
|
||||
self = [self NS_initWithCoder:aCoder];
|
||||
|
||||
if (self)
|
||||
{
|
||||
var textStorage = [aCoder decodeObjectForKey:@"NSTextStorage"];
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
- (Class)classForKeyedArchiver
|
||||
{
|
||||
return [CPLayoutManager class];
|
||||
}
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* NSText.j
|
||||
* nib2cib
|
||||
*
|
||||
* Created by Alexendre Wilhelm.
|
||||
* Copyright 2014 The Cappuccino Foundation.
|
||||
*
|
||||
* 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/CPText.j>
|
||||
|
||||
@class Nib2Cib
|
||||
|
||||
@implementation CPText (NSCoding)
|
||||
|
||||
- (id)NS_initWithCoder:(CPCoder)aCoder
|
||||
{
|
||||
if (self = [super NS_initWithCoder:aCoder])
|
||||
{
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation NSText : CPText
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
- (id)initWithCoder:(CPCoder)aCoder
|
||||
{
|
||||
self = [self NS_initWithCoder:aCoder];
|
||||
|
||||
if (self)
|
||||
{
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
- (Class)classForKeyedArchiver
|
||||
{
|
||||
return [CPText class];
|
||||
}
|
||||
|
||||
@end
|
||||
@@ -46,6 +46,8 @@
|
||||
if (self)
|
||||
{
|
||||
_size = CGSizeMake([aCoder decodeIntForKey:@"NSWidth"], 1e7);
|
||||
|
||||
var layoutManager = [aCoder decodeObjectForKey:@"NSLayoutManager"];
|
||||
}
|
||||
|
||||
return self;
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* NSTextStorage.j
|
||||
* nib2cib
|
||||
*
|
||||
* Created by Alexendre Wilhelm.
|
||||
* Copyright 2014 The Cappuccino Foundation.
|
||||
*
|
||||
* 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/CPTextStorage.j>
|
||||
|
||||
@class Nib2Cib
|
||||
|
||||
@implementation CPTextStorage (NSCoding)
|
||||
|
||||
- (id)NS_initWithCoder:(CPCoder)aCoder
|
||||
{
|
||||
self = [super init];
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation NSTextStorage : CPTextStorage
|
||||
{
|
||||
}
|
||||
|
||||
- (id)initWithCoder:(CPCoder)aCoder
|
||||
{
|
||||
self = [self NS_initWithCoder:aCoder];
|
||||
|
||||
if (self)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
- (Class)classForKeyedArchiver
|
||||
{
|
||||
return [CPTextStorage class];
|
||||
}
|
||||
|
||||
@end
|
||||
@@ -22,6 +22,8 @@
|
||||
|
||||
@import <AppKit/CPTextView.j>
|
||||
|
||||
@import "NSTextViewSharedData.j"
|
||||
|
||||
@class Nib2Cib
|
||||
|
||||
@implementation CPTextView (NSCoding)
|
||||
@@ -40,7 +42,7 @@
|
||||
|
||||
@implementation NSTextView : CPTextView
|
||||
{
|
||||
|
||||
CPTextViewSharedData _textViewSharedData;
|
||||
}
|
||||
|
||||
- (id)initWithCoder:(CPCoder)aCoder
|
||||
@@ -49,7 +51,7 @@
|
||||
|
||||
if (self)
|
||||
{
|
||||
var flags = [aCoder decodeIntForKey:@"NSTVFlags"];
|
||||
_textViewSharedData = [aCoder decodeObjectForKey:@"NSSharedData"];
|
||||
}
|
||||
|
||||
return self;
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* NSTextView.j
|
||||
* nib2cib
|
||||
*
|
||||
* Created by Alexendre Wilhelm.
|
||||
* Copyright 2014 The Cappuccino Foundation.
|
||||
*
|
||||
* 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/Foundation.j>
|
||||
|
||||
@class Nib2Cib
|
||||
|
||||
@implementation CPTextViewSharedData : CPObject
|
||||
{
|
||||
}
|
||||
|
||||
- (id)init
|
||||
{
|
||||
if(self = [super init])
|
||||
{
|
||||
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@implementation CPTextViewSharedData (NSCoding)
|
||||
|
||||
- (id)NS_initWithCoder:(CPCoder)aCoder
|
||||
{
|
||||
if (self = [super init])
|
||||
{
|
||||
var flags = [aCoder decodeIntForKey:@"NSFlags"];
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation NSTextViewSharedData : CPTextViewSharedData
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
- (id)initWithCoder:(CPCoder)aCoder
|
||||
{
|
||||
self = [self NS_initWithCoder:aCoder];
|
||||
|
||||
if (self)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
- (Class)classForKeyedArchiver
|
||||
{
|
||||
return [CPTextViewSharedData class];
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in new issue
Block a user