-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
471 additions
and
3 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
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,132 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="5056" systemVersion="13C1021" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES"> | ||
<dependencies> | ||
<deployment defaultVersion="1070" identifier="macosx"/> | ||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="5056"/> | ||
</dependencies> | ||
<objects> | ||
<customObject id="-2" userLabel="File's Owner" customClass="DropletFormWindowController"> | ||
<connections> | ||
<outlet property="availableImagesPopup" destination="HOD-3f-UnV" id="3eM-Uc-OaK"/> | ||
<outlet property="availableRegionsPopup" destination="hRU-K1-H45" id="YMr-bi-6eR"/> | ||
<outlet property="availableSizePopup" destination="JW5-1S-KNR" id="fJQ-iv-LbD"/> | ||
<outlet property="dropletNameField" destination="uQP-4q-iYW" id="Ul6-Jl-cRL"/> | ||
<outlet property="window" destination="QvC-M9-y7g" id="aZo-QT-QuT"/> | ||
</connections> | ||
</customObject> | ||
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/> | ||
<customObject id="-3" userLabel="Application"/> | ||
<window title="Create New Droplet" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" oneShot="NO" releasedWhenClosed="NO" animationBehavior="default" id="QvC-M9-y7g"> | ||
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/> | ||
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/> | ||
<rect key="contentRect" x="196" y="240" width="481" height="254"/> | ||
<rect key="screenRect" x="0.0" y="0.0" width="1920" height="1058"/> | ||
<view key="contentView" id="EiT-Mj-1SZ"> | ||
<rect key="frame" x="0.0" y="0.0" width="481" height="254"/> | ||
<autoresizingMask key="autoresizingMask"/> | ||
<subviews> | ||
<textField verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="uQP-4q-iYW"> | ||
<rect key="frame" x="158" y="203" width="294" height="24"/> | ||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> | ||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" drawsBackground="YES" id="Evf-Nj-han"> | ||
<font key="font" metaFont="system" size="16"/> | ||
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/> | ||
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/> | ||
</textFieldCell> | ||
</textField> | ||
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="s84-ND-Tfd"> | ||
<rect key="frame" x="20" y="206" width="112" height="19"/> | ||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> | ||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Droplet Name" id="3aX-AL-bLZ"> | ||
<font key="font" metaFont="system" size="16"/> | ||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> | ||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> | ||
</textFieldCell> | ||
</textField> | ||
<popUpButton verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="HOD-3f-UnV"> | ||
<rect key="frame" x="156" y="160" width="299" height="26"/> | ||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> | ||
<popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" id="Rd3-qR-dss"> | ||
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/> | ||
<font key="font" metaFont="menu"/> | ||
<menu key="menu" title="OtherViews" id="3Ia-dG-sDc"/> | ||
</popUpButtonCell> | ||
<connections> | ||
<action selector="didSelectImage:" target="-2" id="xzf-em-bxh"/> | ||
</connections> | ||
</popUpButton> | ||
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="0I8-GF-FcC"> | ||
<rect key="frame" x="20" y="164" width="52" height="19"/> | ||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> | ||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Image" id="I0q-0V-87u"> | ||
<font key="font" metaFont="system" size="16"/> | ||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> | ||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> | ||
</textFieldCell> | ||
</textField> | ||
<button verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="rJn-La-dEC"> | ||
<rect key="frame" x="358" y="21" width="100" height="32"/> | ||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> | ||
<buttonCell key="cell" type="push" title="Cancel" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="b4Y-zh-Md5"> | ||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/> | ||
<font key="font" metaFont="system"/> | ||
<string key="keyEquivalent" base64-UTF8="YES"> | ||
Gw | ||
</string> | ||
</buttonCell> | ||
<connections> | ||
<action selector="cancelDroplet:" target="-2" id="uFm-ly-MX0"/> | ||
</connections> | ||
</button> | ||
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Qvi-LW-wpR"> | ||
<rect key="frame" x="18" y="122" width="58" height="21"/> | ||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> | ||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Region" id="rdC-xT-eyz"> | ||
<font key="font" metaFont="system" size="16"/> | ||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> | ||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> | ||
</textFieldCell> | ||
</textField> | ||
<popUpButton verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="hRU-K1-H45"> | ||
<rect key="frame" x="156" y="119" width="299" height="26"/> | ||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> | ||
<popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" id="hA7-bR-sXv"> | ||
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/> | ||
<font key="font" metaFont="menu"/> | ||
<menu key="menu" title="OtherViews" id="qk1-GQ-h0A"/> | ||
</popUpButtonCell> | ||
</popUpButton> | ||
<button verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="h3U-ux-qE8"> | ||
<rect key="frame" x="256" y="21" width="100" height="32"/> | ||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> | ||
<buttonCell key="cell" type="push" title="Create" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="VRe-9s-MJH"> | ||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/> | ||
<font key="font" metaFont="system"/> | ||
</buttonCell> | ||
<connections> | ||
<action selector="createDroplet:" target="-2" id="9jC-9g-pyO"/> | ||
</connections> | ||
</button> | ||
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="5Et-pb-ROF"> | ||
<rect key="frame" x="18" y="81" width="58" height="21"/> | ||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> | ||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Size" id="bxy-zx-caH"> | ||
<font key="font" metaFont="system" size="16"/> | ||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> | ||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> | ||
</textFieldCell> | ||
</textField> | ||
<popUpButton verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="JW5-1S-KNR"> | ||
<rect key="frame" x="156" y="78" width="299" height="26"/> | ||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> | ||
<popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" id="fcK-Sm-kjC"> | ||
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/> | ||
<font key="font" metaFont="menu"/> | ||
<menu key="menu" title="OtherViews" id="3jW-FP-ORy"/> | ||
</popUpButtonCell> | ||
</popUpButton> | ||
</subviews> | ||
</view> | ||
</window> | ||
</objects> | ||
</document> |
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,22 @@ | ||
// | ||
// DropletFormWindowController.h | ||
// DODropletManager | ||
// | ||
// Created by Adam Tootle on 4/28/14. | ||
// Copyright (c) 2014 David Hsieh. All rights reserved. | ||
// | ||
|
||
#import <Cocoa/Cocoa.h> | ||
|
||
@interface DropletFormWindowController : NSWindowController <NSURLConnectionDataDelegate, NSURLConnectionDelegate> | ||
|
||
@property(nonatomic, strong) IBOutlet NSTextField *dropletNameField; | ||
@property(nonatomic, strong) IBOutlet NSPopUpButton *availableImagesPopup; | ||
@property(nonatomic, strong) IBOutlet NSPopUpButton *availableRegionsPopup; | ||
@property(nonatomic, strong) IBOutlet NSPopUpButton *availableSizePopup; | ||
|
||
- (IBAction)didSelectImage:(id)sender; | ||
- (IBAction)createDroplet:(id)sender; | ||
- (IBAction)cancelDroplet:(id)sender; | ||
|
||
@end |
Oops, something went wrong.