Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some very basic UI for the application.
- Loading branch information
Showing
10 changed files
with
875 additions
and
93 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// | ||
// BusinessTimeAppDelegate.m | ||
// BusinessTime | ||
// | ||
// Created by Sam Mcdonald on 1/7/10. | ||
// Copyright 2010 141312 LLC. All rights reserved. | ||
// | ||
|
||
#import "BTBusinessTimeAppDelegate.h" | ||
#import "BTMainWindowController.h" | ||
|
||
@implementation BTBusinessTimeAppDelegate | ||
|
||
@synthesize window; | ||
|
||
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification { | ||
// Insert code here to initialize your application | ||
} | ||
|
||
|
||
- (void)awakeFromNib { | ||
// This nib has awoken lets create our main window. | ||
BTMainWindowController* mainWindowController = [[BTMainWindowController alloc] initWithWindowNibName:@"MainWindow"]; | ||
[[mainWindowController window] makeKeyAndOrderFront:self]; | ||
} | ||
|
||
@end |
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,19 @@ | ||
// | ||
// MainWindowController.h | ||
// BusinessTime | ||
// | ||
// Created by Sam Mcdonald on 1/7/10. | ||
// Copyright 2010 141312 LLC. All rights reserved. | ||
// | ||
|
||
#import <Cocoa/Cocoa.h> | ||
|
||
|
||
@interface BTMainWindowController : NSWindowController { | ||
|
||
|
||
} | ||
|
||
- (IBAction)toggleBusinessTime:(id)sender; | ||
|
||
@end |
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 @@ | ||
// | ||
// MainWindowController.m | ||
// BusinessTime | ||
// | ||
// Created by Sam Mcdonald on 1/7/10. | ||
// Copyright 2010 141312 LLC. All rights reserved. | ||
// | ||
|
||
#import "BTMainWindowController.h" | ||
#import "BTStatusWindow.h" | ||
|
||
|
||
@implementation BTMainWindowController | ||
|
||
- (IBAction)toggleBusinessTime:(id)sender { | ||
BTStatusWindow* windowController = [[BTStatusWindow alloc] init]; | ||
[[windowController window] makeKeyAndOrderFront:self]; | ||
|
||
} | ||
|
||
|
||
@end |
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,18 @@ | ||
// | ||
// untitled.h | ||
// BusinessTime | ||
// | ||
// Created by Sam Mcdonald on 1/7/10. | ||
// Copyright 2010 141312 LLC. All rights reserved. | ||
// | ||
|
||
#import <Cocoa/Cocoa.h> | ||
|
||
|
||
@interface BTStatusWindow : NSWindowController { | ||
|
||
} | ||
|
||
- (id)init; | ||
|
||
@end |
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,38 @@ | ||
// | ||
// untitled.m | ||
// BusinessTime | ||
// | ||
// Created by Sam Mcdonald on 1/7/10. | ||
// Copyright 2010 141312 LLC. All rights reserved. | ||
// | ||
|
||
#import "BTStatusWindow.h" | ||
|
||
|
||
@implementation BTStatusWindow | ||
|
||
|
||
- (id)init { | ||
|
||
// Size of screen | ||
NSRect screenRect = [[NSScreen mainScreen] frame]; | ||
|
||
NSRect windowRect; | ||
windowRect.size.width = 200; | ||
windowRect.size.height = 100; | ||
windowRect.origin.x = screenRect.size.width - windowRect.size.width - 20; | ||
windowRect.origin.y = screenRect.size.height - windowRect.size.height - 40; | ||
|
||
NSWindow* window = [[NSWindow alloc] initWithContentRect:windowRect styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO]; | ||
|
||
|
||
self = [super initWithWindow:window]; | ||
if (self) { | ||
|
||
|
||
} | ||
return self; | ||
} | ||
|
||
|
||
@end |
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 was deleted.
Oops, something went wrong.
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
Oops, something went wrong.