mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +00:00
Made it so .h files are automatically included in AppKit (avoiding needing to manually include Platform.h, etc.).
Also changed a bunch of <AppKit/*> imports to "*" imports. Reviewed by me.
This commit is contained in:
@@ -26,10 +26,9 @@
|
|||||||
@import <Foundation/CPIndexSet.j>
|
@import <Foundation/CPIndexSet.j>
|
||||||
@import <Foundation/CPString.j>
|
@import <Foundation/CPString.j>
|
||||||
|
|
||||||
@import <AppKit/CPView.j>
|
@import "CPView.j"
|
||||||
@import <AppKit/CPButton.j>
|
@import "CPButton.j"
|
||||||
|
|
||||||
#import "CoreGraphics/CGGeometry.h"
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@ingroup appkit
|
@ingroup appkit
|
||||||
|
|||||||
+8
-8
@@ -26,14 +26,14 @@
|
|||||||
@import <Foundation/CPObject.j>
|
@import <Foundation/CPObject.j>
|
||||||
@import <Foundation/CPString.j>
|
@import <Foundation/CPString.j>
|
||||||
|
|
||||||
@import <AppKit/CPApplication.j>
|
@import "CPApplication.j"
|
||||||
@import <AppKit/CPButton.j>
|
@import "CPButton.j"
|
||||||
@import <AppKit/CPColor.j>
|
@import "CPColor.j"
|
||||||
@import <AppKit/CPFont.j>
|
@import "CPFont.j"
|
||||||
@import <AppKit/CPImage.j>
|
@import "CPImage.j"
|
||||||
@import <AppKit/CPImageView.j>
|
@import "CPImageView.j"
|
||||||
@import <AppKit/CPPanel.j>
|
@import "CPPanel.j"
|
||||||
@import <AppKit/CPTextField.j>
|
@import "CPTextField.j"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@global
|
@global
|
||||||
|
|||||||
@@ -31,7 +31,6 @@
|
|||||||
@import "CPCibLoading.j"
|
@import "CPCibLoading.j"
|
||||||
@import "CPPlatform.j"
|
@import "CPPlatform.j"
|
||||||
|
|
||||||
#include "Platform/Platform.h"
|
|
||||||
|
|
||||||
var CPMainCibFile = @"CPMainCibFile",
|
var CPMainCibFile = @"CPMainCibFile",
|
||||||
CPMainCibFileHumanFriendly = @"Main cib file base name";
|
CPMainCibFileHumanFriendly = @"Main cib file base name";
|
||||||
|
|||||||
@@ -25,8 +25,8 @@
|
|||||||
|
|
||||||
@import <Foundation/CPIndexSet.j>
|
@import <Foundation/CPIndexSet.j>
|
||||||
|
|
||||||
@import <AppKit/CPObjectController.j>
|
@import "CPObjectController.j"
|
||||||
@import <AppKit/CPKeyValueBinding.j>
|
@import "CPKeyValueBinding.j"
|
||||||
|
|
||||||
|
|
||||||
@implementation CPArrayController : CPObjectController
|
@implementation CPArrayController : CPObjectController
|
||||||
|
|||||||
@@ -23,9 +23,10 @@
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@import <AppKit/CPGraphicsContext.j>
|
|
||||||
@import <Foundation/CPObject.j>
|
@import <Foundation/CPObject.j>
|
||||||
|
|
||||||
|
@import "CPGraphicsContext.j"
|
||||||
|
|
||||||
|
|
||||||
// Class defaults
|
// Class defaults
|
||||||
|
|
||||||
|
|||||||
@@ -26,8 +26,6 @@
|
|||||||
@import "CPControl.j"
|
@import "CPControl.j"
|
||||||
@import "CPStringDrawing.j"
|
@import "CPStringDrawing.j"
|
||||||
|
|
||||||
#include "CoreGraphics/CGGeometry.h"
|
|
||||||
|
|
||||||
|
|
||||||
/* @group CPBezelStyle */
|
/* @group CPBezelStyle */
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
|
|
||||||
@import <AppKit/CPView.j>
|
@import "CPView.j"
|
||||||
|
|
||||||
#include "CoreGraphics/CGGeometry.h"
|
|
||||||
|
|
||||||
|
|
||||||
@implementation CPButtonBar : CPView
|
@implementation CPButtonBar : CPView
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
@import "CPButton.j"
|
@import "CPButton.j"
|
||||||
|
|
||||||
|
|
||||||
CPCheckBoxImageOffset = 4.0;
|
CPCheckBoxImageOffset = 4.0;
|
||||||
|
|
||||||
@implementation CPCheckBox : CPButton
|
@implementation CPCheckBox : CPButton
|
||||||
|
|||||||
@@ -22,8 +22,6 @@
|
|||||||
|
|
||||||
@import "CPView.j"
|
@import "CPView.j"
|
||||||
|
|
||||||
#include "CoreGraphics/CGGeometry.h"
|
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@ingroup appkit
|
@ingroup appkit
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
@import "CPViewController.j"
|
@import "CPViewController.j"
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
Represents an object inside a CPCollectionView.
|
Represents an object inside a CPCollectionView.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -26,6 +26,7 @@
|
|||||||
@import "CPPanel.j"
|
@import "CPPanel.j"
|
||||||
@import "CPView.j"
|
@import "CPView.j"
|
||||||
|
|
||||||
|
|
||||||
CPColorPanelColorDidChangeNotification = @"CPColorPanelColorDidChangeNotification";
|
CPColorPanelColorDidChangeNotification = @"CPColorPanelColorDidChangeNotification";
|
||||||
|
|
||||||
var PREVIEW_HEIGHT = 20.0,
|
var PREVIEW_HEIGHT = 20.0,
|
||||||
|
|||||||
@@ -21,9 +21,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@import <Foundation/CPObject.j>
|
@import <Foundation/CPObject.j>
|
||||||
@import <AppKit/CPView.j>
|
|
||||||
|
|
||||||
#include "Platform/Platform.h"
|
@import "CPView.j"
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@ingroup appkit
|
@ingroup appkit
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
@import "CPEvent.j"
|
@import "CPEvent.j"
|
||||||
@import "CPPlatform.j"
|
@import "CPPlatform.j"
|
||||||
|
|
||||||
|
|
||||||
// Browser Engines
|
// Browser Engines
|
||||||
CPUnknownBrowserEngine = 0;
|
CPUnknownBrowserEngine = 0;
|
||||||
CPGeckoBrowserEngine = 1;
|
CPGeckoBrowserEngine = 1;
|
||||||
|
|||||||
@@ -25,8 +25,6 @@
|
|||||||
@import "CPView.j"
|
@import "CPView.j"
|
||||||
@import "CPKeyValueBinding.j"
|
@import "CPKeyValueBinding.j"
|
||||||
|
|
||||||
#include "CoreGraphics/CGGeometry.h"
|
|
||||||
#include "Platform/Platform.h"
|
|
||||||
|
|
||||||
CPLeftTextAlignment = 0;
|
CPLeftTextAlignment = 0;
|
||||||
CPRightTextAlignment = 1;
|
CPRightTextAlignment = 1;
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
@import <Foundation/CPObject.j>
|
@import <Foundation/CPObject.j>
|
||||||
@import <Foundation/CPString.j>
|
@import <Foundation/CPString.j>
|
||||||
|
|
||||||
#include "Platform/Platform.h"
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@ingroup appkit
|
@ingroup appkit
|
||||||
|
|||||||
@@ -12,8 +12,6 @@ Implemented class methods:
|
|||||||
Opera : All except resizeLeftRightCursor resizeUpDownCursor operationNotAllowedCursor dragCopyCursor dragLinkCursor contextualMenuCursor openHandCursor closedHandCursor disappearingItemCursor // Opera does not support url cursors so these won't work with images
|
Opera : All except resizeLeftRightCursor resizeUpDownCursor operationNotAllowedCursor dragCopyCursor dragLinkCursor contextualMenuCursor openHandCursor closedHandCursor disappearingItemCursor // Opera does not support url cursors so these won't work with images
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "Platform/Platform.h"
|
|
||||||
|
|
||||||
@import <Foundation/CPObject.j>
|
@import <Foundation/CPObject.j>
|
||||||
|
|
||||||
var currentCursor = nil,
|
var currentCursor = nil,
|
||||||
|
|||||||
@@ -20,15 +20,12 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@import <AppKit/CPApplication.j>
|
@import "CPApplication.j"
|
||||||
@import <AppKit/CPEvent.j>
|
@import "CPEvent.j"
|
||||||
@import <AppKit/CPImageView.j>
|
@import "CPImageView.j"
|
||||||
@import <AppKit/CPPasteboard.j>
|
@import "CPPasteboard.j"
|
||||||
@import <AppKit/CPView.j>
|
@import "CPView.j"
|
||||||
@import <AppKit/CPWindow.j>
|
@import "CPWindow.j"
|
||||||
|
|
||||||
#import "CoreGraphics/CGGeometry.h"
|
|
||||||
#import "Platform/Platform.h"
|
|
||||||
|
|
||||||
|
|
||||||
CPDragOperationNone = 0,
|
CPDragOperationNone = 0,
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
@import <Foundation/CPObject.j>
|
@import <Foundation/CPObject.j>
|
||||||
@import "CPText.j"
|
@import "CPText.j"
|
||||||
|
|
||||||
#include "CoreGraphics/CGGeometry.h"
|
|
||||||
|
|
||||||
|
|
||||||
CPLeftMouseDown = 1;
|
CPLeftMouseDown = 1;
|
||||||
CPLeftMouseUp = 2;
|
CPLeftMouseUp = 2;
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
@import <Foundation/CPObject.j>
|
@import <Foundation/CPObject.j>
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@ingroup appkit
|
@ingroup appkit
|
||||||
@class CPFlashMovie
|
@class CPFlashMovie
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
@import "CPFlashMovie.j"
|
@import "CPFlashMovie.j"
|
||||||
@import "CPView.j"
|
@import "CPView.j"
|
||||||
|
|
||||||
#include "Platform/Platform.h"
|
|
||||||
|
|
||||||
var IEFlashCLSID = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";
|
var IEFlashCLSID = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -23,7 +23,8 @@
|
|||||||
@import <Foundation/CPObject.j>
|
@import <Foundation/CPObject.j>
|
||||||
@import <Foundation/CPBundle.j>
|
@import <Foundation/CPBundle.j>
|
||||||
|
|
||||||
@import <AppKit/CPView.j>
|
@import "CPView.j"
|
||||||
|
|
||||||
|
|
||||||
var _CPFonts = {},
|
var _CPFonts = {},
|
||||||
_CPFontSystemFontFace = @"Arial, sans-serif",
|
_CPFontSystemFontFace = @"Arial, sans-serif",
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
@import <Foundation/CPObject.j>
|
@import <Foundation/CPObject.j>
|
||||||
|
|
||||||
@import <AppKit/CPFont.j>
|
@import "CPFont.j"
|
||||||
|
|
||||||
|
|
||||||
var CPSharedFontManager = nil,
|
var CPSharedFontManager = nil,
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
@import "CPColor.j"
|
@import "CPColor.j"
|
||||||
@import "CPGraphicsContext.j"
|
@import "CPGraphicsContext.j"
|
||||||
|
|
||||||
#include "CoreGraphics/CGGeometry.h"
|
|
||||||
|
|
||||||
|
|
||||||
function CPDrawTiledRects(
|
function CPDrawTiledRects(
|
||||||
/* CGRect */ boundsRect,
|
/* CGRect */ boundsRect,
|
||||||
|
|||||||
@@ -21,7 +21,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@import <Foundation/CPObject.j>
|
@import <Foundation/CPObject.j>
|
||||||
@import <AppKit/CGContext.j>
|
|
||||||
|
@import "CGContext.j"
|
||||||
|
|
||||||
|
|
||||||
var CPGraphicsContextCurrent = nil;
|
var CPGraphicsContextCurrent = nil;
|
||||||
|
|
||||||
|
|||||||
@@ -28,8 +28,6 @@
|
|||||||
|
|
||||||
@import "CPGeometry.j"
|
@import "CPGeometry.j"
|
||||||
|
|
||||||
#include "Platform/Platform.h"
|
|
||||||
|
|
||||||
|
|
||||||
CPImageLoadStatusInitialized = 0;
|
CPImageLoadStatusInitialized = 0;
|
||||||
CPImageLoadStatusLoading = 1;
|
CPImageLoadStatusLoading = 1;
|
||||||
|
|||||||
@@ -26,10 +26,6 @@
|
|||||||
@import "CPImage.j"
|
@import "CPImage.j"
|
||||||
@import "CPShadowView.j"
|
@import "CPShadowView.j"
|
||||||
|
|
||||||
#include "Platform/Platform.h"
|
|
||||||
#include "Platform/DOM/CPDOMDisplayServer.h"
|
|
||||||
|
|
||||||
#include "CoreGraphics/CGGeometry.h"
|
|
||||||
|
|
||||||
CPScaleProportionally = 0;
|
CPScaleProportionally = 0;
|
||||||
CPScaleToFit = 1;
|
CPScaleToFit = 1;
|
||||||
|
|||||||
@@ -21,7 +21,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@import <Foundation/CPObject.j>
|
@import <Foundation/CPObject.j>
|
||||||
@import <AppKit/CPEvent.j>
|
|
||||||
|
@import "CPEvent.j"
|
||||||
|
|
||||||
|
|
||||||
CPStandardKeyBindings = {
|
CPStandardKeyBindings = {
|
||||||
|
|||||||
@@ -28,6 +28,7 @@
|
|||||||
@import <Foundation/CPDictionary.j>
|
@import <Foundation/CPDictionary.j>
|
||||||
@import <Foundation/CPValueTransformer.j>
|
@import <Foundation/CPValueTransformer.j>
|
||||||
|
|
||||||
|
|
||||||
var exposedBindingsMap = [CPDictionary new],
|
var exposedBindingsMap = [CPDictionary new],
|
||||||
bindingsMap = [CPDictionary new];
|
bindingsMap = [CPDictionary new];
|
||||||
|
|
||||||
|
|||||||
@@ -31,9 +31,6 @@
|
|||||||
@import "CPMenuItem.j"
|
@import "CPMenuItem.j"
|
||||||
@import "CPPanel.j"
|
@import "CPPanel.j"
|
||||||
|
|
||||||
#include "../CoreGraphics/CGGeometry.h"
|
|
||||||
#include "../Platform/Platform.h"
|
|
||||||
|
|
||||||
|
|
||||||
CPMenuDidAddItemNotification = @"CPMenuDidAddItemNotification";
|
CPMenuDidAddItemNotification = @"CPMenuDidAddItemNotification";
|
||||||
CPMenuDidChangeItemNotification = @"CPMenuDidChangeItemNotification";
|
CPMenuDidChangeItemNotification = @"CPMenuDidChangeItemNotification";
|
||||||
|
|||||||
@@ -1,7 +1,3 @@
|
|||||||
|
|
||||||
#include "../CoreGraphics/CGGeometry.h"
|
|
||||||
#include "../Platform/Platform.h"
|
|
||||||
|
|
||||||
@import "CPPanel.j"
|
@import "CPPanel.j"
|
||||||
@import "_CPMenuWindow.j"
|
@import "_CPMenuWindow.j"
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,3 @@
|
|||||||
|
|
||||||
#include "../CoreGraphics/CGGeometry.h"
|
|
||||||
|
|
||||||
@import <Foundation/CPObject.j>
|
@import <Foundation/CPObject.j>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
|
@import "CPWindow.j"
|
||||||
|
|
||||||
#include "../CoreGraphics/CGGeometry.h"
|
|
||||||
|
|
||||||
@import <AppKit/CPWindow.j>
|
|
||||||
|
|
||||||
var _CPMenuWindowPool = [],
|
var _CPMenuWindowPool = [],
|
||||||
_CPMenuWindowPoolCapacity = 5,
|
_CPMenuWindowPoolCapacity = 5,
|
||||||
|
|||||||
@@ -29,6 +29,7 @@
|
|||||||
@import "CPView.j"
|
@import "CPView.j"
|
||||||
@import "_CPMenuItemView.j"
|
@import "_CPMenuItemView.j"
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@ingroup appkit
|
@ingroup appkit
|
||||||
@class CPMenuItem
|
@class CPMenuItem
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
@import <AppKit/CPView.j>
|
@import "CPView.j"
|
||||||
|
|
||||||
|
|
||||||
var HORIZONTAL_MARGIN = 8.0,
|
var HORIZONTAL_MARGIN = 8.0,
|
||||||
SUBMENU_INDICATOR_MARGIN = 3.0,
|
SUBMENU_INDICATOR_MARGIN = 3.0,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
@import <AppKit/CPView.j>
|
@import "CPView.j"
|
||||||
|
|
||||||
|
|
||||||
@implementation _CPMenuItemSeparatorView : CPView
|
@implementation _CPMenuItemSeparatorView : CPView
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
@import <AppKit/CPControl.j>
|
@import "CPControl.j"
|
||||||
|
|
||||||
|
|
||||||
var LEFT_MARGIN = 3.0,
|
var LEFT_MARGIN = 3.0,
|
||||||
RIGHT_MARGIN = 14.0 + 3.0,
|
RIGHT_MARGIN = 14.0 + 3.0,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
@import <AppKit/CPPanel.j>
|
@import "CPPanel.j"
|
||||||
|
|
||||||
|
|
||||||
@implementation CPOpenPanel : CPPanel
|
@implementation CPOpenPanel : CPPanel
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
@import "CPTableColumn.j"
|
@import "CPTableColumn.j"
|
||||||
@import "CPTableView.j"
|
@import "CPTableView.j"
|
||||||
|
|
||||||
#include "CoreGraphics/CGGeometry.h"
|
|
||||||
|
|
||||||
|
|
||||||
CPOutlineViewColumnDidMoveNotification = @"CPOutlineViewColumnDidMoveNotification";
|
CPOutlineViewColumnDidMoveNotification = @"CPOutlineViewColumnDidMoveNotification";
|
||||||
CPOutlineViewColumnDidResizeNotification = @"CPOutlineViewColumnDidResizeNotification";
|
CPOutlineViewColumnDidResizeNotification = @"CPOutlineViewColumnDidResizeNotification";
|
||||||
|
|||||||
@@ -25,8 +25,6 @@
|
|||||||
@import <Foundation/CPDictionary.j>
|
@import <Foundation/CPDictionary.j>
|
||||||
@import <Foundation/CPPropertyListSerialization.j>
|
@import <Foundation/CPPropertyListSerialization.j>
|
||||||
|
|
||||||
#include "Platform/Platform.h"
|
|
||||||
|
|
||||||
|
|
||||||
CPGeneralPboard = @"CPGeneralPboard";
|
CPGeneralPboard = @"CPGeneralPboard";
|
||||||
CPFontPboard = @"CPFontPboard";
|
CPFontPboard = @"CPFontPboard";
|
||||||
|
|||||||
@@ -25,8 +25,6 @@
|
|||||||
@import "CPMenu.j"
|
@import "CPMenu.j"
|
||||||
@import "CPMenuItem.j"
|
@import "CPMenuItem.j"
|
||||||
|
|
||||||
#include "CoreGraphics/CGGeometry.h"
|
|
||||||
|
|
||||||
|
|
||||||
var VISIBLE_MARGIN = 7.0;
|
var VISIBLE_MARGIN = 7.0;
|
||||||
|
|
||||||
|
|||||||
@@ -20,11 +20,9 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@import <AppKit/CGGeometry.j>
|
@import "CGGeometry.j"
|
||||||
@import <AppKit/CPImageView.j>
|
@import "CPImageView.j"
|
||||||
@import <AppKit/CPView.j>
|
@import "CPView.j"
|
||||||
|
|
||||||
#include "CoreGraphics/CGGeometry.h"
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -25,6 +25,7 @@
|
|||||||
|
|
||||||
@import "CPButton.j"
|
@import "CPButton.j"
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@ingroup appkit
|
@ingroup appkit
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
@import <Foundation/CPObject.j>
|
@import <Foundation/CPObject.j>
|
||||||
|
|
||||||
|
|
||||||
CPDeleteKeyCode = 8;
|
CPDeleteKeyCode = 8;
|
||||||
CPTabKeyCode = 9;
|
CPTabKeyCode = 9;
|
||||||
CPReturnKeyCode = 13;
|
CPReturnKeyCode = 13;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
@import <AppKit/CPPanel.j>
|
@import "CPPanel.j"
|
||||||
|
|
||||||
|
|
||||||
@implementation CPSavePanel : CPPanel
|
@implementation CPSavePanel : CPPanel
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
|
|
||||||
@import <Foundation/CPObject.j>
|
@import <Foundation/CPObject.j>
|
||||||
|
|
||||||
#import "CoreGraphics/CGGeometry.h"
|
|
||||||
#import "Platform/Platform.h"
|
|
||||||
|
|
||||||
@implementation CPScreen : CPObject
|
@implementation CPScreen : CPObject
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -25,8 +25,6 @@
|
|||||||
@import "CPScroller.j"
|
@import "CPScroller.j"
|
||||||
@import "CPView.j"
|
@import "CPView.j"
|
||||||
|
|
||||||
#include "CoreGraphics/CGGeometry.h"
|
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@ingroup appkit
|
@ingroup appkit
|
||||||
|
|||||||
@@ -22,8 +22,6 @@
|
|||||||
|
|
||||||
@import "CPControl.j"
|
@import "CPControl.j"
|
||||||
|
|
||||||
#include "CoreGraphics/CGGeometry.h"
|
|
||||||
|
|
||||||
|
|
||||||
// CPScroller Constants
|
// CPScroller Constants
|
||||||
CPScrollerNoPart = 0;
|
CPScrollerNoPart = 0;
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
@import "CPButton.j"
|
@import "CPButton.j"
|
||||||
@import "CPTextField.j"
|
@import "CPTextField.j"
|
||||||
|
|
||||||
#include "CoreGraphics/CGGeometry.h"
|
|
||||||
#include "Platform/Platform.h"
|
|
||||||
|
|
||||||
CPSearchFieldRecentsTitleMenuItemTag = 1000;
|
CPSearchFieldRecentsTitleMenuItemTag = 1000;
|
||||||
CPSearchFieldRecentsMenuItemTag = 1001;
|
CPSearchFieldRecentsMenuItemTag = 1001;
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
@import "CPTextField.j"
|
@import "CPTextField.j"
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@ingroup appkit
|
@ingroup appkit
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -24,7 +24,6 @@
|
|||||||
|
|
||||||
@import "CPControl.j"
|
@import "CPControl.j"
|
||||||
|
|
||||||
#include "CoreGraphics/CGGeometry.h"
|
|
||||||
|
|
||||||
CPSegmentSwitchTrackingSelectOne = 0;
|
CPSegmentSwitchTrackingSelectOne = 0;
|
||||||
CPSegmentSwitchTrackingSelectAny = 1;
|
CPSegmentSwitchTrackingSelectAny = 1;
|
||||||
|
|||||||
@@ -28,8 +28,6 @@
|
|||||||
@import "CPView.j"
|
@import "CPView.j"
|
||||||
|
|
||||||
|
|
||||||
#include "CoreGraphics/CGGeometry.h"
|
|
||||||
|
|
||||||
CPLightShadow = 0;
|
CPLightShadow = 0;
|
||||||
CPHeavyShadow = 1;
|
CPHeavyShadow = 1;
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,6 @@
|
|||||||
|
|
||||||
@import "CPControl.j"
|
@import "CPControl.j"
|
||||||
|
|
||||||
#include "CoreGraphics/CGGeometry.h"
|
|
||||||
|
|
||||||
/*! SLIDER STATES */
|
/*! SLIDER STATES */
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
@import "CPView.j"
|
@import "CPView.j"
|
||||||
@import "CPColorPicker.j"
|
@import "CPColorPicker.j"
|
||||||
|
|
||||||
#include "Platform/Platform.h"
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ignore
|
@ignore
|
||||||
|
|||||||
@@ -24,10 +24,6 @@
|
|||||||
@import "CPImage.j"
|
@import "CPImage.j"
|
||||||
@import "CPView.j"
|
@import "CPView.j"
|
||||||
|
|
||||||
#include "CoreGraphics/CGGeometry.h"
|
|
||||||
#include "Platform/Platform.h"
|
|
||||||
#include "Platform/DOM/CPDOMDisplayServer.h"
|
|
||||||
|
|
||||||
|
|
||||||
CPSplitViewDidResizeSubviewsNotification = @"CPSplitViewDidResizeSubviewsNotification";
|
CPSplitViewDidResizeSubviewsNotification = @"CPSplitViewDidResizeSubviewsNotification";
|
||||||
CPSplitViewWillResizeSubviewsNotification = @"CPSplitViewWillResizeSubviewsNotification";
|
CPSplitViewWillResizeSubviewsNotification = @"CPSplitViewWillResizeSubviewsNotification";
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
|
|
||||||
@import "CPPlatformString.j"
|
@import "CPPlatformString.j"
|
||||||
|
|
||||||
|
|
||||||
var CPStringSizeWithFontInWidthCache = {};
|
var CPStringSizeWithFontInWidthCache = {};
|
||||||
|
|
||||||
CPStringSizeCachingEnabled = YES;
|
CPStringSizeCachingEnabled = YES;
|
||||||
|
|||||||
+4
-4
@@ -1,7 +1,7 @@
|
|||||||
@import <AppKit/CPBox.j>
|
@import "CPBox.j"
|
||||||
@import <AppKit/CPSegmentedControl.j>
|
@import "CPSegmentedControl.j"
|
||||||
@import <AppKit/CPTabViewItem.j>
|
@import "CPTabViewItem.j"
|
||||||
@import <AppKit/CPView.j>
|
@import "CPView.j"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Places tabs on top with a bezeled border.
|
Places tabs on top with a bezeled border.
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
@import <Foundation/CPObject.j>
|
@import <Foundation/CPObject.j>
|
||||||
|
|
||||||
@import <AppKit/CPView.j>
|
@import "CPView.j"
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -28,7 +28,6 @@
|
|||||||
|
|
||||||
@import "CPTableHeaderView.j"
|
@import "CPTableHeaderView.j"
|
||||||
|
|
||||||
#include "CoreGraphics/CGGeometry.h"
|
|
||||||
|
|
||||||
CPTableColumnNoResizing = 0;
|
CPTableColumnNoResizing = 0;
|
||||||
CPTableColumnAutoresizingMask = 1 << 0;
|
CPTableColumnAutoresizingMask = 1 << 0;
|
||||||
|
|||||||
@@ -26,7 +26,6 @@
|
|||||||
@import "CPTableView.j"
|
@import "CPTableView.j"
|
||||||
@import "CPView.j"
|
@import "CPView.j"
|
||||||
|
|
||||||
#include "CoreGraphics/CGGeometry.h"
|
|
||||||
|
|
||||||
@implementation _CPTableColumnHeaderView : CPView
|
@implementation _CPTableColumnHeaderView : CPView
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -22,20 +22,20 @@
|
|||||||
|
|
||||||
@import <Foundation/CPArray.j>
|
@import <Foundation/CPArray.j>
|
||||||
@import <Foundation/CPIndexSet.j>
|
@import <Foundation/CPIndexSet.j>
|
||||||
@import <AppKit/CGGradient.j>
|
|
||||||
|
@import "CGGradient.j"
|
||||||
|
|
||||||
@import "CPControl.j"
|
@import "CPControl.j"
|
||||||
@import "CPTableColumn.j"
|
@import "CPTableColumn.j"
|
||||||
@import "_CPCornerView.j"
|
@import "_CPCornerView.j"
|
||||||
@import "CPScroller.j"
|
@import "CPScroller.j"
|
||||||
|
|
||||||
|
|
||||||
CPTableViewColumnDidMoveNotification = @"CPTableViewColumnDidMoveNotification";
|
CPTableViewColumnDidMoveNotification = @"CPTableViewColumnDidMoveNotification";
|
||||||
CPTableViewColumnDidResizeNotification = @"CPTableViewColumnDidResizeNotification";
|
CPTableViewColumnDidResizeNotification = @"CPTableViewColumnDidResizeNotification";
|
||||||
CPTableViewSelectionDidChangeNotification = @"CPTableViewSelectionDidChangeNotification";
|
CPTableViewSelectionDidChangeNotification = @"CPTableViewSelectionDidChangeNotification";
|
||||||
CPTableViewSelectionIsChangingNotification = @"CPTableViewSelectionIsChangingNotification";
|
CPTableViewSelectionIsChangingNotification = @"CPTableViewSelectionIsChangingNotification";
|
||||||
|
|
||||||
#include "CoreGraphics/CGGeometry.h"
|
|
||||||
|
|
||||||
var CPTableViewDataSource_numberOfRowsInTableView_ = 1 << 0,
|
var CPTableViewDataSource_numberOfRowsInTableView_ = 1 << 0,
|
||||||
CPTableViewDataSource_tableView_objectValueForTableColumn_row_ = 1 << 1,
|
CPTableViewDataSource_tableView_objectValueForTableColumn_row_ = 1 << 1,
|
||||||
CPTableViewDataSource_tableView_setObjectValue_forTableColumn_row_ = 1 << 2,
|
CPTableViewDataSource_tableView_setObjectValue_forTableColumn_row_ = 1 << 2,
|
||||||
|
|||||||
@@ -26,9 +26,6 @@
|
|||||||
@import "CPCompatibility.j"
|
@import "CPCompatibility.j"
|
||||||
@import "_CPImageAndTextView.j"
|
@import "_CPImageAndTextView.j"
|
||||||
|
|
||||||
#include "CoreGraphics/CGGeometry.h"
|
|
||||||
#include "Platform/Platform.h"
|
|
||||||
#include "Platform/DOM/CPDOMDisplayServer.h"
|
|
||||||
|
|
||||||
CPTextFieldSquareBezel = 0; /*! A textfield bezel with a squared corners. */
|
CPTextFieldSquareBezel = 0; /*! A textfield bezel with a squared corners. */
|
||||||
CPTextFieldRoundedBezel = 1; /*! A textfield bezel with rounded corners. */
|
CPTextFieldRoundedBezel = 1; /*! A textfield bezel with rounded corners. */
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
@import <Foundation/CPString.j>
|
@import <Foundation/CPString.j>
|
||||||
@import <Foundation/CPKeyedUnarchiver.j>
|
@import <Foundation/CPKeyedUnarchiver.j>
|
||||||
|
|
||||||
|
|
||||||
var CPThemesByName = { },
|
var CPThemesByName = { },
|
||||||
CPThemeDefaultTheme = nil,
|
CPThemeDefaultTheme = nil,
|
||||||
CPThemeDefaultHudTheme = nil;
|
CPThemeDefaultHudTheme = nil;
|
||||||
|
|||||||
@@ -22,9 +22,10 @@
|
|||||||
|
|
||||||
@import <Foundation/CPObject.j>
|
@import <Foundation/CPObject.j>
|
||||||
|
|
||||||
@import <AppKit/CPTheme.j>
|
@import "CPTheme.j"
|
||||||
@import <AppKit/_CPCibCustomResource.j>
|
@import "_CPCibCustomResource.j"
|
||||||
@import <AppKit/_CPCibKeyedUnarchiver.j>
|
@import "_CPCibKeyedUnarchiver.j"
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@ingroup appkit
|
@ingroup appkit
|
||||||
|
|||||||
@@ -30,7 +30,6 @@
|
|||||||
@import "CPWindow.j"
|
@import "CPWindow.j"
|
||||||
@import "_CPMenuWindow.j"
|
@import "_CPMenuWindow.j"
|
||||||
|
|
||||||
#include "Platform/Platform.h"
|
|
||||||
|
|
||||||
#if PLATFORM(DOM)
|
#if PLATFORM(DOM)
|
||||||
|
|
||||||
|
|||||||
@@ -28,8 +28,6 @@
|
|||||||
@import "CPPopUpButton.j"
|
@import "CPPopUpButton.j"
|
||||||
@import "CPToolbarItem.j"
|
@import "CPToolbarItem.j"
|
||||||
|
|
||||||
#include "CoreGraphics/CGGeometry.h"
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@global
|
@global
|
||||||
|
|||||||
@@ -23,8 +23,9 @@
|
|||||||
@import <Foundation/CPObject.j>
|
@import <Foundation/CPObject.j>
|
||||||
@import <Foundation/CPString.j>
|
@import <Foundation/CPString.j>
|
||||||
|
|
||||||
@import <AppKit/CPImage.j>
|
@import "CPImage.j"
|
||||||
@import <AppKit/CPView.j>
|
@import "CPView.j"
|
||||||
|
|
||||||
|
|
||||||
CPToolbarItemVisibilityPriorityStandard = 0;
|
CPToolbarItemVisibilityPriorityStandard = 0;
|
||||||
CPToolbarItemVisibilityPriorityLow = -1000;
|
CPToolbarItemVisibilityPriorityLow = -1000;
|
||||||
|
|||||||
@@ -35,11 +35,6 @@
|
|||||||
@import "_CPDisplayServer.j"
|
@import "_CPDisplayServer.j"
|
||||||
|
|
||||||
|
|
||||||
#include "Platform/Platform.h"
|
|
||||||
#include "CoreGraphics/CGAffineTransform.h"
|
|
||||||
#include "CoreGraphics/CGGeometry.h"
|
|
||||||
#include "Platform/DOM/CPDOMDisplayServer.h"
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@global
|
@global
|
||||||
@group CPViewAutoresizingMasks
|
@group CPViewAutoresizingMasks
|
||||||
|
|||||||
@@ -20,9 +20,8 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@import <AppKit/CPAnimation.j>
|
@import "CPAnimation.j"
|
||||||
|
|
||||||
#include "CoreGraphics/CGGeometry.h"
|
|
||||||
|
|
||||||
CPViewAnimationTargetKey = @"CPViewAnimationTarget";
|
CPViewAnimationTargetKey = @"CPViewAnimationTarget";
|
||||||
CPViewAnimationStartFrameKey = @"CPViewAnimationStartFrame";
|
CPViewAnimationStartFrameKey = @"CPViewAnimationStartFrame";
|
||||||
|
|||||||
@@ -22,9 +22,10 @@
|
|||||||
|
|
||||||
@import <Foundation/CPArray.j>
|
@import <Foundation/CPArray.j>
|
||||||
|
|
||||||
@import <AppKit/CPApplication.j>
|
@import "CPApplication.j"
|
||||||
@import <AppKit/CPCib.j>
|
@import "CPCib.j"
|
||||||
@import <AppKit/CPResponder.j>
|
@import "CPResponder.j"
|
||||||
|
|
||||||
|
|
||||||
var CPViewControllerCachedCibs;
|
var CPViewControllerCachedCibs;
|
||||||
|
|
||||||
|
|||||||
+2
-4
@@ -20,10 +20,8 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@import <AppKit/CPView.j>
|
@import "CPView.j"
|
||||||
@import <AppKit/CPScrollView.j>
|
@import "CPScrollView.j"
|
||||||
|
|
||||||
#include "Platform/Platform.h"
|
|
||||||
|
|
||||||
|
|
||||||
// FIXME: implement these where possible:
|
// FIXME: implement these where possible:
|
||||||
|
|||||||
@@ -30,11 +30,6 @@
|
|||||||
@import "CPResponder.j"
|
@import "CPResponder.j"
|
||||||
@import "CPScreen.j"
|
@import "CPScreen.j"
|
||||||
|
|
||||||
#include "../Platform/Platform.h"
|
|
||||||
#include "../Platform/DOM/CPDOMDisplayServer.h"
|
|
||||||
|
|
||||||
#include "../CoreGraphics/CGGeometry.h"
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Borderless window mask option.
|
Borderless window mask option.
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
@import "_CPWindowView.j"
|
@import "_CPWindowView.j"
|
||||||
|
|
||||||
|
|
||||||
var GRADIENT_HEIGHT = 41.0;
|
var GRADIENT_HEIGHT = 41.0;
|
||||||
|
|
||||||
var _CPTexturedWindowHeadGradientColor = nil,
|
var _CPTexturedWindowHeadGradientColor = nil,
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
@import "CPImageView.j"
|
@import "CPImageView.j"
|
||||||
@import "CPView.j"
|
@import "CPView.j"
|
||||||
|
|
||||||
#include "../CoreGraphics/CGGeometry.h"
|
|
||||||
|
|
||||||
|
|
||||||
var _CPWindowViewResizeIndicatorImage = nil;
|
var _CPWindowViewResizeIndicatorImage = nil;
|
||||||
|
|
||||||
|
|||||||
@@ -27,8 +27,6 @@
|
|||||||
@import "CPWindow.j"
|
@import "CPWindow.j"
|
||||||
@import "CPDocument.j"
|
@import "CPDocument.j"
|
||||||
|
|
||||||
#include "Platform/Platform.h"
|
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@ingroup appkit
|
@ingroup appkit
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
|
|
||||||
@import <Foundation/CPObject.j>
|
@import <Foundation/CPObject.j>
|
||||||
|
|
||||||
@import <AppKit/CGGeometry.j>
|
@import "CGGeometry.j"
|
||||||
@import <AppKit/CPWindow.j>
|
@import "CPWindow.j"
|
||||||
|
|
||||||
|
|
||||||
var _CPCibWindowTemplateMinSizeKey = @"_CPCibWindowTemplateMinSizeKey",
|
var _CPCibWindowTemplateMinSizeKey = @"_CPCibWindowTemplateMinSizeKey",
|
||||||
|
|||||||
@@ -22,13 +22,10 @@
|
|||||||
|
|
||||||
@import <Foundation/CPObject.j>
|
@import <Foundation/CPObject.j>
|
||||||
|
|
||||||
@import <AppKit/CABackingStore.j>
|
@import "CABackingStore.j"
|
||||||
|
|
||||||
@import <AppKit/CGContext.j>
|
@import "CGContext.j"
|
||||||
@import <AppKit/CGGeometry.j>
|
@import "CGGeometry.j"
|
||||||
|
|
||||||
#include "../CoreGraphics/CGGeometry.h"
|
|
||||||
#include "../CoreGraphics/CGAffineTransform.j"
|
|
||||||
|
|
||||||
|
|
||||||
#define DOM(aLayer) aLayer._DOMElement
|
#define DOM(aLayer) aLayer._DOMElement
|
||||||
|
|||||||
@@ -20,14 +20,11 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "CGGeometry.h"
|
|
||||||
#include "CGAffineTransform.h"
|
|
||||||
|
|
||||||
#define _function(inline) function inline { return _##inline; }
|
|
||||||
|
|
||||||
@import "CGGeometry.j"
|
@import "CGGeometry.j"
|
||||||
|
|
||||||
|
|
||||||
|
#define _function(inline) function inline { return _##inline; }
|
||||||
|
|
||||||
_function(CGAffineTransformMake(a, b, c, d, tx, ty))
|
_function(CGAffineTransformMake(a, b, c, d, tx, ty))
|
||||||
_function(CGAffineTransformMakeIdentity())
|
_function(CGAffineTransformMakeIdentity())
|
||||||
_function(CGAffineTransformMakeCopy(anAffineTransform))
|
_function(CGAffineTransformMakeCopy(anAffineTransform))
|
||||||
|
|||||||
@@ -20,14 +20,12 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "CGGeometry.h"
|
|
||||||
#include "CGAffineTransform.h"
|
|
||||||
|
|
||||||
@import "CGAffineTransform.j"
|
@import "CGAffineTransform.j"
|
||||||
@import "CPCompatibility.j"
|
@import "CPCompatibility.j"
|
||||||
@import "CGGeometry.j"
|
@import "CGGeometry.j"
|
||||||
@import "CGPath.j"
|
@import "CGPath.j"
|
||||||
|
|
||||||
|
|
||||||
kCGLineCapButt = 0;
|
kCGLineCapButt = 0;
|
||||||
kCGLineCapRound = 1;
|
kCGLineCapRound = 1;
|
||||||
kCGLineCapSquare = 2;
|
kCGLineCapSquare = 2;
|
||||||
|
|||||||
@@ -20,8 +20,6 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "CGGeometry.h"
|
|
||||||
|
|
||||||
#define _function(inline) function inline { return _##inline; }
|
#define _function(inline) function inline { return _##inline; }
|
||||||
|
|
||||||
_function(CGPointMake(x, y))
|
_function(CGPointMake(x, y))
|
||||||
|
|||||||
@@ -20,9 +20,6 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "CGGeometry.h"
|
|
||||||
#include "CGAffineTransform.h"
|
|
||||||
|
|
||||||
@import "CGGeometry.j"
|
@import "CGGeometry.j"
|
||||||
@import "CGAffineTransform.j"
|
@import "CGAffineTransform.j"
|
||||||
|
|
||||||
|
|||||||
+8
-2
@@ -27,10 +27,16 @@ appKitTask = framework ("AppKit", function(appKitTask)
|
|||||||
appKitTask.setFlattensSources(true);
|
appKitTask.setFlattensSources(true);
|
||||||
appKitTask.setInfoPlistPath("Info.plist");
|
appKitTask.setInfoPlistPath("Info.plist");
|
||||||
|
|
||||||
|
// Grab all the .h's and just include them in each file.
|
||||||
|
var INCLUDES = new FileList("**/*.h").map(function(aFilename)
|
||||||
|
{
|
||||||
|
return "--include \"" + aFilename + "\"";
|
||||||
|
}).join(" ");
|
||||||
|
|
||||||
if ($CONFIGURATION === "Release")
|
if ($CONFIGURATION === "Release")
|
||||||
appKitTask.setCompilerFlags("-O");
|
appKitTask.setCompilerFlags("-O " + INCLUDES);
|
||||||
else
|
else
|
||||||
appKitTask.setCompilerFlags("-DDEBUG -g");
|
appKitTask.setCompilerFlags("-DDEBUG -g " + INCLUDES);
|
||||||
});
|
});
|
||||||
|
|
||||||
$BUILD_CJS_CAPPUCCINO_APPKIT = FILE.join($BUILD_CJS_CAPPUCCINO_FRAMEWORKS, "AppKit");
|
$BUILD_CJS_CAPPUCCINO_APPKIT = FILE.join($BUILD_CJS_CAPPUCCINO_FRAMEWORKS, "AppKit");
|
||||||
|
|||||||
@@ -22,8 +22,6 @@
|
|||||||
|
|
||||||
@import <Foundation/CPObject.j>
|
@import <Foundation/CPObject.j>
|
||||||
|
|
||||||
#include "Platform.h"
|
|
||||||
|
|
||||||
|
|
||||||
@implementation CPBasePlatform : CPObject
|
@implementation CPBasePlatform : CPObject
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -22,9 +22,6 @@
|
|||||||
|
|
||||||
@import <Foundation/CPObject.j>
|
@import <Foundation/CPObject.j>
|
||||||
|
|
||||||
#include "../CoreGraphics/CGGeometry.h"
|
|
||||||
#include "Platform.h"
|
|
||||||
|
|
||||||
|
|
||||||
@implementation CPBasePlatformString : CPObject
|
@implementation CPBasePlatformString : CPObject
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -22,9 +22,6 @@
|
|||||||
|
|
||||||
@import <Foundation/CPObject.j>
|
@import <Foundation/CPObject.j>
|
||||||
|
|
||||||
#import "Platform.h"
|
|
||||||
#import "../CoreGraphics/CGGeometry.h"
|
|
||||||
|
|
||||||
|
|
||||||
var PrimaryPlatformWindow = NULL;
|
var PrimaryPlatformWindow = NULL;
|
||||||
|
|
||||||
|
|||||||
@@ -23,8 +23,6 @@
|
|||||||
@import <Foundation/CPArray.j>
|
@import <Foundation/CPArray.j>
|
||||||
@import <Foundation/CPObject.j>
|
@import <Foundation/CPObject.j>
|
||||||
|
|
||||||
#include "CPDOMDisplayServer.h"
|
|
||||||
|
|
||||||
|
|
||||||
@implementation CPDOMWindowLayer : CPObject
|
@implementation CPDOMWindowLayer : CPObject
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -20,8 +20,6 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "../CoreGraphics/CGGeometry.h"
|
|
||||||
|
|
||||||
var DOMFixedWidthSpanElement = nil,
|
var DOMFixedWidthSpanElement = nil,
|
||||||
DOMFlexibleWidthSpanElement = nil,
|
DOMFlexibleWidthSpanElement = nil,
|
||||||
DOMMetricsDivElement = nil,
|
DOMMetricsDivElement = nil,
|
||||||
|
|||||||
@@ -120,7 +120,6 @@
|
|||||||
@import "CPPlatformWindow.j"
|
@import "CPPlatformWindow.j"
|
||||||
@import "CPPlatformWindow+DOMKeys.j"
|
@import "CPPlatformWindow+DOMKeys.j"
|
||||||
|
|
||||||
#import "../../CoreGraphics/CGGeometry.h"
|
|
||||||
|
|
||||||
// List of all open native windows
|
// List of all open native windows
|
||||||
var PlatformWindows = [CPSet set];
|
var PlatformWindows = [CPSet set];
|
||||||
|
|||||||
@@ -20,10 +20,6 @@
|
|||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "CoreGraphics/CGGeometry.h"
|
|
||||||
#include "CoreGraphics/CGAffineTransform.h"
|
|
||||||
#include "Platform/DOM/CPDOMDisplayServer.h"
|
|
||||||
|
|
||||||
@import <Foundation/CPRunLoop.j>
|
@import <Foundation/CPRunLoop.j>
|
||||||
|
|
||||||
PREPARE_DOM_OPTIMIZATION();
|
PREPARE_DOM_OPTIMIZATION();
|
||||||
|
|||||||
@@ -28,10 +28,6 @@
|
|||||||
@import "CPView.j"
|
@import "CPView.j"
|
||||||
@import "CPControl.j"
|
@import "CPControl.j"
|
||||||
|
|
||||||
#include "CoreGraphics/CGGeometry.h"
|
|
||||||
|
|
||||||
#include "Platform/Platform.h"
|
|
||||||
#include "Platform/DOM/CPDOMDisplayServer.h"
|
|
||||||
|
|
||||||
var _CPimageAndTextViewFrameSizeChangedFlag = 1 << 0,
|
var _CPimageAndTextViewFrameSizeChangedFlag = 1 << 0,
|
||||||
_CPImageAndTextViewImageChangedFlag = 1 << 1,
|
_CPImageAndTextViewImageChangedFlag = 1 << 1,
|
||||||
|
|||||||
+4
-2
@@ -42,10 +42,12 @@ foundationTask = framework ("Foundation", function(foundationTask)
|
|||||||
foundationTask.setInfoPlistPath("Info.plist");
|
foundationTask.setInfoPlistPath("Info.plist");
|
||||||
foundationTask.setEnvironments(require("objective-j/jake/environment").ObjJ);
|
foundationTask.setEnvironments(require("objective-j/jake/environment").ObjJ);
|
||||||
|
|
||||||
|
var INCLUDES = "--include \"../AppKit/Platform/Platform.h\"";
|
||||||
|
|
||||||
if ($CONFIGURATION === "Release")
|
if ($CONFIGURATION === "Release")
|
||||||
foundationTask.setCompilerFlags("-O");
|
foundationTask.setCompilerFlags("-O " + INCLUDES);
|
||||||
else
|
else
|
||||||
foundationTask.setCompilerFlags("-DDEBUG -g");
|
foundationTask.setCompilerFlags("-DDEBUG -g " + INCLUDES);
|
||||||
});
|
});
|
||||||
|
|
||||||
$BUILD_CJS_FOUNDATION = FILE.join($BUILD_CJS_CAPPUCCINO_FRAMEWORKS, "Foundation");
|
$BUILD_CJS_FOUNDATION = FILE.join($BUILD_CJS_CAPPUCCINO_FRAMEWORKS, "Foundation");
|
||||||
|
|||||||
@@ -112,7 +112,16 @@ function resolveFlags(args)
|
|||||||
|
|
||||||
else if (argument.indexOf("-U") === 0)
|
else if (argument.indexOf("-U") === 0)
|
||||||
gccFlags.push(argument);
|
gccFlags.push(argument);
|
||||||
|
|
||||||
|
else if (argument.indexOf("--include") === 0)
|
||||||
|
{
|
||||||
|
if (++index < count)
|
||||||
|
{
|
||||||
|
gccFlags.push(argument);
|
||||||
|
gccFlags.push(args[index]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
else if (argument.indexOf("-E") === 0)
|
else if (argument.indexOf("-E") === 0)
|
||||||
objjcFlags &= ~ObjectiveJ.Preprocessor.Flags.Preprocess;
|
objjcFlags &= ~ObjectiveJ.Preprocessor.Flags.Preprocess;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user