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
Ugo Landini
committed
Jan 31, 2010
1 parent
3139ceb
commit b203ffb
Showing
12 changed files
with
931 additions
and
2 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,2 @@ | ||
/* Localized versions of Info.plist keys */ | ||
|
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,21 @@ | ||
// | ||
// PomodoroMenuExtra.h | ||
// pomodoro | ||
// | ||
// Created by Ugo Landini on 06/09/09. | ||
// Copyright 2009 __MyCompanyName__. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "SystemUIPlugin.h" | ||
|
||
@class PomodoroMenuExtraView; | ||
|
||
@interface PomodoroMenuExtra : NSMenuExtra { | ||
|
||
NSMenu *theMenu; | ||
PomodoroMenuExtraView *theView; | ||
|
||
} | ||
|
||
@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,44 @@ | ||
// | ||
// PomodoroMenuExtra.m | ||
// pomodoro | ||
// | ||
// Created by Ugo Landini on 06/09/09. | ||
// Copyright 2009 __MyCompanyName__. All rights reserved. | ||
// | ||
|
||
#import "PomodoroMenuExtra.h" | ||
#import "PomodoroMenuExtraView.h" | ||
|
||
@implementation PomodoroMenuExtra | ||
|
||
- (id)initWithBundle:(NSBundle *)bundle { | ||
self = [super initWithBundle:bundle]; | ||
if( self == nil ) | ||
return nil; | ||
|
||
// we will create and set the MenuExtraView | ||
theView = [[PomodoroMenuExtraView alloc] initWithFrame: | ||
[[self view] frame] menuExtra:self]; | ||
[self setView:theView]; | ||
|
||
// prepare "dummy" menu, without any actions | ||
theMenu = [[NSMenu alloc] initWithTitle: @"Ciao"]; | ||
[theMenu setAutoenablesItems: NO]; | ||
[theMenu addItemWithTitle: @"1" action: nil keyEquivalent: @""]; | ||
[theMenu addItemWithTitle: @"2" action: nil keyEquivalent: @""]; | ||
[theMenu addItemWithTitle: @"3" action: nil keyEquivalent: @""]; | ||
|
||
return self; | ||
} | ||
|
||
- (void)dealloc { | ||
[theMenu release]; | ||
[theView release]; | ||
[super dealloc]; | ||
} | ||
|
||
- (NSMenu *)menu { | ||
return theMenu; | ||
} | ||
|
||
@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,16 @@ | ||
// | ||
// PomodoroMenuExtraView.h | ||
// pomodoro | ||
// | ||
// Created by Ugo Landini on 06/09/09. | ||
// Copyright 2009 __MyCompanyName__. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "SystemUIPlugin.h" | ||
|
||
@interface PomodoroMenuExtraView : NSMenuExtraView { | ||
|
||
} | ||
|
||
@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,21 @@ | ||
// | ||
// PomodoroMenuExtraView.m | ||
// pomodoro | ||
// | ||
// Created by Ugo Landini on 06/09/09. | ||
// Copyright 2009 __MyCompanyName__. All rights reserved. | ||
// | ||
|
||
#import "PomodoroMenuExtraView.h" | ||
|
||
|
||
@implementation PomodoroMenuExtraView | ||
|
||
- (void)drawRect:(NSRect)rect { | ||
[[NSColor purpleColor] set]; | ||
NSRect smallerRect = NSInsetRect( rect, 4.0, 4.0 ); | ||
[[NSBezierPath bezierPathWithOvalInRect: smallerRect] fill]; | ||
} | ||
|
||
@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,14 @@ | ||
// | ||
// main.m | ||
// pomodoro | ||
// | ||
// Created by Ugo Landini on 05/09/09. | ||
// Copyright 2009 __MyCompanyName__. All rights reserved. | ||
// | ||
|
||
#import <Cocoa/Cocoa.h> | ||
|
||
int main(int argc, char *argv[]) | ||
{ | ||
return NSApplicationMain(argc, (const char **) argv); | ||
} |
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 @@ | ||
<?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>CFBundleDevelopmentRegion</key> | ||
<string>English</string> | ||
<key>CFBundleExecutable</key> | ||
<string>${EXECUTABLE_NAME}</string> | ||
<key>CFBundleIconFile</key> | ||
<string>icon.icns</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>com.ugolandini.${PRODUCT_NAME:rfc1034identifier}</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>${PRODUCT_NAME}</string> | ||
<key>CFBundlePackageType</key> | ||
<string>APPL</string> | ||
<key>CFBundleSignature</key> | ||
<string>????</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>0.32</string> | ||
<key>LSMinimumSystemVersion</key> | ||
<string>${MACOSX_DEPLOYMENT_TARGET}</string> | ||
<key>CFBundleVersion</key> | ||
<string>0.32</string> | ||
<key>NSMainNibFile</key> | ||
<string>MainMenu</string> | ||
<key>NSPrincipalClass</key> | ||
<string>NSApplication</string> | ||
<key>LSUIElement</key> | ||
<true/> | ||
<key>SUPublicDSAKeyFile</key> | ||
<string>dsa_pub.pem</string> | ||
<key>SUFeedURL</key> | ||
<string>http://pomodoro.ugolandini.com/appcast.xml</string> | ||
</dict> | ||
</plist> |
Oops, something went wrong.