Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Commit

Permalink
hiding that new feature for now
Browse files Browse the repository at this point in the history
  • Loading branch information
thesoftwarephilosopher committed Apr 4, 2013
1 parent bf396aa commit 598d08e
Show file tree
Hide file tree
Showing 15 changed files with 478 additions and 175 deletions.
34 changes: 30 additions & 4 deletions DeskLabels/DeskLabels.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,17 @@
948B4F0B16F425E600FB155E /* DLNotesManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 948B4F0A16F425E600FB155E /* DLNotesManager.m */; };
948B4F0E16F4B59A00FB155E /* DLDesktopIcon.m in Sources */ = {isa = PBXBuildFile; fileRef = 948B4F0D16F4B59A00FB155E /* DLDesktopIcon.m */; };
948B4F1116F567AF00FB155E /* DLCloseButton.m in Sources */ = {isa = PBXBuildFile; fileRef = 948B4F1016F567AE00FB155E /* DLCloseButton.m */; };
948B4F1316F57D5A00FB155E /* howto.mov in Resources */ = {isa = PBXBuildFile; fileRef = 948B4F1216F57D5A00FB155E /* howto.mov */; };
948B4F1716F57DF900FB155E /* QTKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 948B4F1616F57DF900FB155E /* QTKit.framework */; };
94B50B8016F5F5AC001EAAB1 /* DLDragGroupWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 94B50B7E16F5F5AC001EAAB1 /* DLDragGroupWindowController.m */; };
94B50B8116F5F5AC001EAAB1 /* DragGroupWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 94B50B7F16F5F5AC001EAAB1 /* DragGroupWindow.xib */; };
94B50B8516F5F9CA001EAAB1 /* DLDragGroupWindow.m in Sources */ = {isa = PBXBuildFile; fileRef = 94B50B8416F5F9CA001EAAB1 /* DLDragGroupWindow.m */; };
94B50B8816F5FDE3001EAAB1 /* DLDragGroupView.m in Sources */ = {isa = PBXBuildFile; fileRef = 94B50B8716F5FDE3001EAAB1 /* DLDragGroupView.m */; };
94BAF35D170D29B600913147 /* SDHowToRoundedImageView.m in Sources */ = {isa = PBXBuildFile; fileRef = 94BAF358170D29B600913147 /* SDHowToRoundedImageView.m */; };
94BAF35E170D29B600913147 /* SDHowToWindow.m in Sources */ = {isa = PBXBuildFile; fileRef = 94BAF35A170D29B600913147 /* SDHowToWindow.m */; };
94BAF35F170D29B600913147 /* SDHowToWindowInsetTextField.m in Sources */ = {isa = PBXBuildFile; fileRef = 94BAF35C170D29B600913147 /* SDHowToWindowInsetTextField.m */; };
94BAF364170D29D200913147 /* sd_howto_1.png in Resources */ = {isa = PBXBuildFile; fileRef = 94BAF361170D29D200913147 /* sd_howto_1.png */; };
94BAF365170D29D200913147 /* sd_howto_2.png in Resources */ = {isa = PBXBuildFile; fileRef = 94BAF362170D29D200913147 /* sd_howto_2.png */; };
94BAF366170D29D200913147 /* sd_howto_3.png in Resources */ = {isa = PBXBuildFile; fileRef = 94BAF363170D29D200913147 /* sd_howto_3.png */; };
94D3382216F3A87800D1D0FD /* DeskLabels.icns in Resources */ = {isa = PBXBuildFile; fileRef = 94D3381A16F3A87800D1D0FD /* DeskLabels.icns */; };
94D3382616F3A87800D1D0FD /* statusimage.png in Resources */ = {isa = PBXBuildFile; fileRef = 94D3381E16F3A87800D1D0FD /* statusimage.png */; };
94D3382716F3A87800D1D0FD /* statusimage_pressed.png in Resources */ = {isa = PBXBuildFile; fileRef = 94D3381F16F3A87800D1D0FD /* statusimage_pressed.png */; };
Expand Down Expand Up @@ -100,7 +105,6 @@
948B4F0D16F4B59A00FB155E /* DLDesktopIcon.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DLDesktopIcon.m; sourceTree = "<group>"; };
948B4F0F16F567AE00FB155E /* DLCloseButton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DLCloseButton.h; sourceTree = "<group>"; };
948B4F1016F567AE00FB155E /* DLCloseButton.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DLCloseButton.m; sourceTree = "<group>"; };
948B4F1216F57D5A00FB155E /* howto.mov */ = {isa = PBXFileReference; lastKnownFileType = video.quicktime; path = howto.mov; sourceTree = "<group>"; };
948B4F1616F57DF900FB155E /* QTKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QTKit.framework; path = System/Library/Frameworks/QTKit.framework; sourceTree = SDKROOT; };
94B50B7D16F5F5AC001EAAB1 /* DLDragGroupWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DLDragGroupWindowController.h; sourceTree = "<group>"; };
94B50B7E16F5F5AC001EAAB1 /* DLDragGroupWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DLDragGroupWindowController.m; sourceTree = "<group>"; };
Expand All @@ -109,6 +113,15 @@
94B50B8416F5F9CA001EAAB1 /* DLDragGroupWindow.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DLDragGroupWindow.m; sourceTree = "<group>"; };
94B50B8616F5FDE3001EAAB1 /* DLDragGroupView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DLDragGroupView.h; sourceTree = "<group>"; };
94B50B8716F5FDE3001EAAB1 /* DLDragGroupView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DLDragGroupView.m; sourceTree = "<group>"; };
94BAF357170D29B600913147 /* SDHowToRoundedImageView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDHowToRoundedImageView.h; sourceTree = "<group>"; };
94BAF358170D29B600913147 /* SDHowToRoundedImageView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDHowToRoundedImageView.m; sourceTree = "<group>"; };
94BAF359170D29B600913147 /* SDHowToWindow.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDHowToWindow.h; sourceTree = "<group>"; };
94BAF35A170D29B600913147 /* SDHowToWindow.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDHowToWindow.m; sourceTree = "<group>"; };
94BAF35B170D29B600913147 /* SDHowToWindowInsetTextField.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDHowToWindowInsetTextField.h; sourceTree = "<group>"; };
94BAF35C170D29B600913147 /* SDHowToWindowInsetTextField.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDHowToWindowInsetTextField.m; sourceTree = "<group>"; };
94BAF361170D29D200913147 /* sd_howto_1.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = sd_howto_1.png; sourceTree = "<group>"; };
94BAF362170D29D200913147 /* sd_howto_2.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = sd_howto_2.png; sourceTree = "<group>"; };
94BAF363170D29D200913147 /* sd_howto_3.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = sd_howto_3.png; sourceTree = "<group>"; };
94D3381A16F3A87800D1D0FD /* DeskLabels.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = DeskLabels.icns; sourceTree = "<group>"; };
94D3381E16F3A87800D1D0FD /* statusimage.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = statusimage.png; sourceTree = "<group>"; };
94D3381F16F3A87800D1D0FD /* statusimage_pressed.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = statusimage_pressed.png; sourceTree = "<group>"; };
Expand Down Expand Up @@ -300,8 +313,10 @@
94D3381916F3A86A00D1D0FD /* Graphics */ = {
isa = PBXGroup;
children = (
94BAF361170D29D200913147 /* sd_howto_1.png */,
94BAF362170D29D200913147 /* sd_howto_2.png */,
94BAF363170D29D200913147 /* sd_howto_3.png */,
94D3381A16F3A87800D1D0FD /* DeskLabels.icns */,
948B4F1216F57D5A00FB155E /* howto.mov */,
94D3381E16F3A87800D1D0FD /* statusimage.png */,
94D3381F16F3A87800D1D0FD /* statusimage_pressed.png */,
94D3382016F3A87800D1D0FD /* closebox_pressed.png */,
Expand All @@ -321,6 +336,12 @@
94D3384016F3BC8900D1D0FD /* SDHowToWindow.xib */,
94D3384116F3BC8900D1D0FD /* SDHowToWindowController.h */,
94D3384216F3BC8900D1D0FD /* SDHowToWindowController.m */,
94BAF357170D29B600913147 /* SDHowToRoundedImageView.h */,
94BAF358170D29B600913147 /* SDHowToRoundedImageView.m */,
94BAF359170D29B600913147 /* SDHowToWindow.h */,
94BAF35A170D29B600913147 /* SDHowToWindow.m */,
94BAF35B170D29B600913147 /* SDHowToWindowInsetTextField.h */,
94BAF35C170D29B600913147 /* SDHowToWindowInsetTextField.m */,
);
name = SDToolkit;
sourceTree = "<group>";
Expand Down Expand Up @@ -417,8 +438,10 @@
94D3385216F3BCBC00D1D0FD /* SDPreferencesWindow.xib in Resources */,
94D3385816F3BCD700D1D0FD /* GeneralPrefPane.xib in Resources */,
94D338A116F3CBD900D1D0FD /* ArrangeDesktopWindow.xib in Resources */,
948B4F1316F57D5A00FB155E /* howto.mov in Resources */,
94B50B8116F5F5AC001EAAB1 /* DragGroupWindow.xib in Resources */,
94BAF364170D29D200913147 /* sd_howto_1.png in Resources */,
94BAF365170D29D200913147 /* sd_howto_2.png in Resources */,
94BAF366170D29D200913147 /* sd_howto_3.png in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -467,6 +490,9 @@
94B50B8016F5F5AC001EAAB1 /* DLDragGroupWindowController.m in Sources */,
94B50B8516F5F9CA001EAAB1 /* DLDragGroupWindow.m in Sources */,
94B50B8816F5FDE3001EAAB1 /* DLDragGroupView.m in Sources */,
94BAF35D170D29B600913147 /* SDHowToRoundedImageView.m in Sources */,
94BAF35E170D29B600913147 /* SDHowToWindow.m in Sources */,
94BAF35F170D29B600913147 /* SDHowToWindowInsetTextField.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
10 changes: 10 additions & 0 deletions DeskLabels/DeskLabels/SDHowToRoundedImageView.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//
// Created by Steven Degutis
// Copyright (c) 2013 Steven Degutis. All rights reserved.
//

#import <Cocoa/Cocoa.h>

@interface SDHowToRoundedImageView : NSImageView

@end
32 changes: 32 additions & 0 deletions DeskLabels/DeskLabels/SDHowToRoundedImageView.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
//
// Created by Steven Degutis
// Copyright (c) 2013 Steven Degutis. All rights reserved.
//

#import "SDHowToRoundedImageView.h"


@implementation SDHowToRoundedImageView

- (void) drawRect:(NSRect)dirtyRect {
float r = 7.0;
float r2 = r - 0.9;

NSRect bounds = [self bounds];
NSRect imageClipBounds = NSInsetRect(bounds, 1.0, 1.0);

NSBezierPath *borderFillPath = [NSBezierPath bezierPathWithRoundedRect:bounds xRadius:r yRadius:r];
NSBezierPath *imageClipPath = [NSBezierPath bezierPathWithRoundedRect:imageClipBounds xRadius:r2 yRadius:r2];

// draw border
[[NSColor colorWithCalibratedWhite:0.20 alpha:1.0] setFill];
[borderFillPath fill];

// clip
[imageClipPath addClip];

// draw image
[super drawRect:dirtyRect];
}

@end
10 changes: 10 additions & 0 deletions DeskLabels/DeskLabels/SDHowToWindow.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//
// Created by Steven Degutis
// Copyright (c) 2013 Steven Degutis. All rights reserved.
//

#import <Cocoa/Cocoa.h>

@interface SDHowToWindow : NSWindow

@end
19 changes: 19 additions & 0 deletions DeskLabels/DeskLabels/SDHowToWindow.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//
// Created by Steven Degutis
// Copyright (c) 2013 Steven Degutis. All rights reserved.
//

#import "SDHowToWindow.h"


@implementation SDHowToWindow

- (void) swipeWithEvent:(NSEvent*)event {
NSInteger dir = (NSInteger)[event deltaX];
if (dir > 0)
[self tryToPerform:@selector(navigateInDirection:) with:[NSNumber numberWithInt:(-1)]];
if (dir < 0)
[self tryToPerform:@selector(navigateInDirection:) with:[NSNumber numberWithInt:(+1)]];
}

@end
Loading

0 comments on commit 598d08e

Please sign in to comment.