Skip to content

Commit

Permalink
Merge pull request #63 from matt-curtis/development
Browse files Browse the repository at this point in the history
1.7 Release
  • Loading branch information
matt-curtis committed Dec 3, 2015
2 parents 52fb6f2 + bda9c4a commit 58f1048
Show file tree
Hide file tree
Showing 43 changed files with 320 additions and 49 deletions.
Binary file modified Constraint Demos.sketch
Binary file not shown.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//
// MCSketchBundleLoaderFramework.h
// MCSketchBundleLoaderFramework
//
// Created by Matt Curtis on 7/22/15.
// Copyright (c) 2015 Matt. All rights reserved.
//

#import <Cocoa/Cocoa.h>

//! Project version number for MCSketchBundleLoaderFramework.
FOUNDATION_EXPORT double MCSketchBundleLoaderFrameworkVersionNumber;

//! Project version string for MCSketchBundleLoaderFramework.
FOUNDATION_EXPORT const unsigned char MCSketchBundleLoaderFrameworkVersionString[];

#import "MCSketchBundleLoader.h"

This file was deleted.

Binary file not shown.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
framework module MCSketchBundleLoaderFramework {
umbrella header "MCSketchBundleLoaderFramework.h"

export *
module * { export * }
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>14F27</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>MCSketchBundleLoaderFramework</string>
<key>CFBundleIdentifier</key>
<string>matt-curtis.MCSketchBundleLoaderFramework</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>MCSketchBundleLoaderFramework</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>1</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>7A1001</string>
<key>DTPlatformVersion</key>
<string>GM</string>
<key>DTSDKBuild</key>
<string>15A278</string>
<key>DTSDKName</key>
<string>macosx10.11</string>
<key>DTXcode</key>
<string>0701</string>
<key>DTXcodeBuild</key>
<string>7A1001</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2015 Matt. All rights reserved.</string>
</dict>
</plist>

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//
// MCSketchBundleLoaderFramework.h
// MCSketchBundleLoaderFramework
//
// Created by Matt Curtis on 7/22/15.
// Copyright (c) 2015 Matt. All rights reserved.
//

#import <Cocoa/Cocoa.h>

//! Project version number for MCSketchBundleLoaderFramework.
FOUNDATION_EXPORT double MCSketchBundleLoaderFrameworkVersionNumber;

//! Project version string for MCSketchBundleLoaderFramework.
FOUNDATION_EXPORT const unsigned char MCSketchBundleLoaderFrameworkVersionString[];

#import "MCSketchBundleLoader.h"
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
framework module MCSketchBundleLoaderFramework {
umbrella header "MCSketchBundleLoaderFramework.h"

export *
module * { export * }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>14F27</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>MCSketchBundleLoaderFramework</string>
<key>CFBundleIdentifier</key>
<string>matt-curtis.MCSketchBundleLoaderFramework</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>MCSketchBundleLoaderFramework</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>1</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>7A1001</string>
<key>DTPlatformVersion</key>
<string>GM</string>
<key>DTSDKBuild</key>
<string>15A278</string>
<key>DTSDKName</key>
<string>macosx10.11</string>
<key>DTXcode</key>
<string>0701</string>
<key>DTXcodeBuild</key>
<string>7A1001</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2015 Matt. All rights reserved.</string>
</dict>
</plist>
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>7B91b</string>
<string>7B1005</string>
<key>DTPlatformVersion</key>
<string>GM</string>
<key>DTSDKBuild</key>
<string>15A278</string>
<key>DTSDKName</key>
<string>macosx10.11</string>
<key>DTXcode</key>
<string>0710</string>
<string>0711</string>
<key>DTXcodeBuild</key>
<string>7B91b</string>
<string>7B1005</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2015 Matt. All rights reserved.</string>
</dict>
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>14F27</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>MCSketchPluginFramework</string>
<key>CFBundleIdentifier</key>
<string>matt-curtis.MCSketchPluginFramework</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>MCSketchPluginFramework</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>1</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>7B1005</string>
<key>DTPlatformVersion</key>
<string>GM</string>
<key>DTSDKBuild</key>
<string>15A278</string>
<key>DTSDKName</key>
<string>macosx10.11</string>
<key>DTXcode</key>
<string>0711</string>
<key>DTXcodeBuild</key>
<string>7B1005</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2015 Matt. All rights reserved.</string>
</dict>
</plist>
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>7B91b</string>
<string>7B1005</string>
<key>DTPlatformVersion</key>
<string>GM</string>
<key>DTSDKBuild</key>
<string>15A278</string>
<key>DTSDKName</key>
<string>macosx10.11</string>
<key>DTXcode</key>
<string>0710</string>
<string>0711</string>
<key>DTXcodeBuild</key>
<string>7B91b</string>
<string>7B1005</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2015 Matt. All rights reserved.</string>
</dict>
Expand Down
Binary file not shown.

This file was deleted.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>14F27</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>MCSketchPluginFramework</string>
<key>CFBundleIdentifier</key>
<string>matt-curtis.MCSketchPluginFramework</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>MCSketchPluginFramework</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>1</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>7B1005</string>
<key>DTPlatformVersion</key>
<string>GM</string>
<key>DTSDKBuild</key>
<string>15A278</string>
<key>DTSDKName</key>
<string>macosx10.11</string>
<key>DTXcode</key>
<string>0711</string>
<key>DTXcodeBuild</key>
<string>7B1005</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2015 Matt. All rights reserved.</string>
</dict>
</plist>
Binary file not shown.
1 change: 1 addition & 0 deletions Fluid.sketchplugin/Contents/Sketch/SketchLibrary.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@

//
// CONTEXT
// -------
//

var ctx;
Expand Down
22 changes: 17 additions & 5 deletions Fluid.sketchplugin/Contents/Sketch/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,37 @@
// --------

$.commands.createCommand("toggleToolbarVisiblity", function(ctx){
var pluginController = MCSConstraintsPluginController.pluginController_(ctx.command);
var pluginController = [MCFluidPluginController pluginController:ctx.plugin pluginCommand:ctx.command];

pluginController.toggleToolbarVisiblity();
});

$.commands.createCommand("editConstraints", function(ctx){
var pluginController = MCSConstraintsPluginController.pluginController_(ctx.command);
var pluginController = [MCFluidPluginController pluginController:ctx.plugin pluginCommand:ctx.command];

pluginController.showConstriantInspectorUnderMouse();
pluginController.showConstraintInspector();
});

$.commands.createCommand("updateLayout", function(ctx){
var pluginController = MCSConstraintsPluginController.pluginController_(ctx.command);
var pluginController = [MCFluidPluginController pluginController:ctx.plugin pluginCommand:ctx.command];

pluginController.updateLayout();
});

$.commands.createCommand("preview", function(ctx){
var pluginController = MCSConstraintsPluginController.pluginController_(ctx.command);
var pluginController = [MCFluidPluginController pluginController:ctx.plugin pluginCommand:ctx.command];

pluginController.preview();
});

$.commands.createCommand("toggleArtboardSize", function(ctx){
var pluginController = [MCFluidPluginController pluginController:ctx.plugin pluginCommand:ctx.command];

pluginController.showArtboardSizePresetsPopover();
});

$.commands.createCommand("showSettingsWindow", function(ctx){
var pluginController = [MCFluidPluginController pluginController:ctx.plugin pluginCommand:ctx.command];

pluginController.showSettingsWindow();
});
15 changes: 8 additions & 7 deletions Fluid.sketchplugin/Contents/Sketch/main.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
@import 'SketchLibrary.js'
@import "SketchLibrary.js"

// Load Bundle

if($.runtime.classExists("MCSConstraintsPluginController") == false){
if($.runtime.classExists("MCFluidPluginController") == false){
$.runtime.loadBundle($.paths.resourcesPath+"/MCSketchConstraints.bundle");
}

// Plugin Methods

// ...

/*
Note to self and whoever else reads these (say hi on twitter :) special word: efficacy):
A more robust method for detecting/identifying the existing plugin in the runtime is needed...
*/
}

0 comments on commit 58f1048

Please sign in to comment.