Changeset 292
- Timestamp:
- 02/11/08 13:49:26 (1 year ago)
- Files:
-
- trunk/cocoa/BezelBanner/BezelBanner.xcodeproj/project.pbxproj (modified) (5 diffs)
- trunk/cocoa/BezelBanner/BezelBanner.xcodeproj/wolf.mode1v3 (added)
- trunk/cocoa/BezelBanner/BezelBanner.xcodeproj/wolf.pbxuser (modified) (7 diffs)
- trunk/cocoa/BezelBanner/BezelBannerWindow.m (modified) (2 diffs)
- trunk/cocoa/BezelBanner/Growl License.txt (deleted)
- trunk/cocoa/BezelBanner/Info.plist (modified) (2 diffs)
- trunk/cocoa/BezelBanner/NSBezierPath+bezierPathWithRoundedRect.h (added)
- trunk/cocoa/BezelBanner/NSBezierPath+bezierPathWithRoundedRect.m (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cocoa/BezelBanner/BezelBanner.xcodeproj/project.pbxproj
r128 r292 10 10 795A7F92099D0E3600450061 /* AppController.m in Sources */ = {isa = PBXBuildFile; fileRef = 795A7F91099D0E3600450061 /* AppController.m */; }; 11 11 79A967B30A5A203700567299 /* BezelBannerWindow.m in Sources */ = {isa = PBXBuildFile; fileRef = 79A967B20A5A203700567299 /* BezelBannerWindow.m */; }; 12 79C94B500D612FC500C7EB07 /* NSBezierPath+bezierPathWithRoundedRect.m in Sources */ = {isa = PBXBuildFile; fileRef = 79C94B4E0D612FC400C7EB07 /* NSBezierPath+bezierPathWithRoundedRect.m */; }; 12 13 8D11072A0486CEB800E47090 /* MainMenu.nib in Resources */ = {isa = PBXBuildFile; fileRef = 29B97318FDCFA39411CA2CEA /* MainMenu.nib */; }; 13 14 8D11072B0486CEB800E47090 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */; }; … … 29 30 79A967B10A5A203700567299 /* BezelBannerWindow.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BezelBannerWindow.h; sourceTree = "<group>"; }; 30 31 79A967B20A5A203700567299 /* BezelBannerWindow.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BezelBannerWindow.m; sourceTree = "<group>"; }; 32 79C94B4E0D612FC400C7EB07 /* NSBezierPath+bezierPathWithRoundedRect.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSBezierPath+bezierPathWithRoundedRect.m"; sourceTree = "<group>"; }; 33 79C94B4F0D612FC500C7EB07 /* NSBezierPath+bezierPathWithRoundedRect.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSBezierPath+bezierPathWithRoundedRect.h"; sourceTree = "<group>"; }; 31 34 8D1107310486CEB800E47090 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; }; 32 35 8D1107320486CEB800E47090 /* BezelBanner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = BezelBanner.app; sourceTree = BUILT_PRODUCTS_DIR; }; … … 52 55 79A967B10A5A203700567299 /* BezelBannerWindow.h */, 53 56 79A967B20A5A203700567299 /* BezelBannerWindow.m */, 57 79C94B4F0D612FC500C7EB07 /* NSBezierPath+bezierPathWithRoundedRect.h */, 58 79C94B4E0D612FC400C7EB07 /* NSBezierPath+bezierPathWithRoundedRect.m */, 54 59 ); 55 60 name = Classes; … … 149 154 isa = PBXProject; 150 155 buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "BezelBanner" */; 156 compatibilityVersion = "Xcode 2.4"; 151 157 hasScannedForEncodings = 1; 152 158 mainGroup = 29B97314FDCFA39411CA2CEA /* BezelBanner */; 153 159 projectDirPath = ""; 160 projectRoot = ""; 154 161 targets = ( 155 162 8D1107260486CEB800E47090 /* BezelBanner */, … … 178 185 795A7F92099D0E3600450061 /* AppController.m in Sources */, 179 186 79A967B30A5A203700567299 /* BezelBannerWindow.m in Sources */, 187 79C94B500D612FC500C7EB07 /* NSBezierPath+bezierPathWithRoundedRect.m in Sources */, 180 188 ); 181 189 runOnlyForDeploymentPostprocessing = 0; trunk/cocoa/BezelBanner/BezelBanner.xcodeproj/wolf.pbxuser
r128 r292 1 1 // !$*UTF8*$! 2 2 { 3 089C165DFE840E0CC02AAC07 /* English */ = { 4 uiCtxt = { 5 sepNavIntBoundsRect = "{{0, 0}, {976, 793}}"; 6 sepNavSelRange = "{100, 0}"; 7 sepNavVisRange = "{0, 100}"; 8 sepNavWindowFrame = "{{498, 235}, {1035, 897}}"; 9 }; 10 }; 3 11 29B97313FDCFA39411CA2CEA /* Project object */ = { 12 activeArchitecture = i386; 4 13 activeBuildConfigurationName = Release; 5 14 activeExecutable = 79A967970A5A1F8300567299 /* BezelBanner */; … … 22 31 243, 23 32 20, 24 48 .1626,33 48, 25 34 43, 26 35 43, … … 37 46 ); 38 47 }; 39 PBXPerProjectTemplateStateSaveDate = 173678467;40 PBXWorkspaceStateSaveDate = 173678467;48 PBXPerProjectTemplateStateSaveDate = 224472508; 49 PBXWorkspaceStateSaveDate = 224472508; 41 50 }; 42 51 sourceControlManager = 79A9679D0A5A1F8C00567299 /* Source Control */; … … 62 71 79A967970A5A1F8300567299 /* BezelBanner */ = { 63 72 isa = PBXExecutable; 64 activeArgIndex = 2147483647;65 73 activeArgIndices = ( 66 74 ); … … 68 76 ); 69 77 autoAttachOnCrash = 1; 78 breakpointsEnabled = 0; 70 79 configStateDict = { 71 80 }; … … 106 115 79A967B20A5A203700567299 /* BezelBannerWindow.m */ = { 107 116 uiCtxt = { 108 sepNavIntBoundsRect = "{{0, 0}, {938, 2352}}"; 109 sepNavSelRange = "{5786, 0}"; 117 sepNavIntBoundsRect = "{{0, 0}, {918, 1806}}"; 118 sepNavSelRange = "{2655, 0}"; 119 sepNavVisRange = "{2217, 1528}"; 110 120 sepNavVisRect = "{{0, 0}, {938, 762}}"; 111 sepNavWindowFrame = "{{407, 43}, {977, 835}}"; 121 sepNavWindowFrame = "{{552, 445}, {977, 835}}"; 122 }; 123 }; 124 79C94B4E0D612FC400C7EB07 /* NSBezierPath+bezierPathWithRoundedRect.m */ = { 125 uiCtxt = { 126 sepNavIntBoundsRect = "{{0, 0}, {976, 793}}"; 127 sepNavSelRange = "{0, 50}"; 128 sepNavVisRange = "{0, 1710}"; 129 sepNavWindowFrame = "{{452, 277}, {1035, 897}}"; 130 }; 131 }; 132 79C94B4F0D612FC500C7EB07 /* NSBezierPath+bezierPathWithRoundedRect.h */ = { 133 uiCtxt = { 134 sepNavIntBoundsRect = "{{0, 0}, {976, 793}}"; 135 sepNavSelRange = "{0, 0}"; 136 sepNavVisRange = "{0, 277}"; 137 sepNavWindowFrame = "{{475, 256}, {1035, 897}}"; 112 138 }; 113 139 }; … … 118 144 ); 119 145 }; 146 8D1107310486CEB800E47090 /* Info.plist */ = { 147 uiCtxt = { 148 sepNavIntBoundsRect = "{{0, 0}, {976, 793}}"; 149 sepNavSelRange = "{412, 0}"; 150 sepNavVisRange = "{0, 848}"; 151 sepNavWindowFrame = "{{429, 298}, {1035, 897}}"; 152 }; 153 }; 120 154 } trunk/cocoa/BezelBanner/BezelBannerWindow.m
r128 r292 1 1 #import "BezelBannerWindow.h" 2 3 // +bezierPathWithRoundedRect: is mostly stolen from Growl, so read Growl License.txt for the terms (BSD-style). 4 @interface NSBezierPath (bezierPathWithRoundedRect) 5 + (NSBezierPath*) bezierPathWithRoundedRect:(NSRect)rect radius:(float)radius; 6 @end 7 @implementation NSBezierPath (bezierPathWithRoundedRect) 8 + (NSBezierPath*) bezierPathWithRoundedRect:(NSRect)rect radius:(float)radius { 9 NSRect irect = NSInsetRect( rect, radius, radius ); 10 float minX = NSMinX( irect ); 11 float minY = NSMinY( irect ); 12 float maxX = NSMaxX( irect ); 13 float maxY = NSMaxY( irect ); 14 15 NSBezierPath *path = [NSBezierPath bezierPath]; 16 17 [path appendBezierPathWithArcWithCenter:NSMakePoint( minX, minY ) 18 radius:radius 19 startAngle:180.0f 20 endAngle:270.0f]; 21 22 [path appendBezierPathWithArcWithCenter:NSMakePoint( maxX, minY ) 23 radius:radius 24 startAngle:270.0f 25 endAngle:360.0f]; 26 27 [path appendBezierPathWithArcWithCenter:NSMakePoint( maxX, maxY ) 28 radius:radius 29 startAngle:0.0f 30 endAngle:90.0f]; 31 32 [path appendBezierPathWithArcWithCenter:NSMakePoint( minX, maxY ) 33 radius:radius 34 startAngle:90.0f 35 endAngle:180.0f]; 36 37 [path closePath]; 38 39 return path; 40 } 41 @end 2 #import "NSBezierPath+bezierPathWithRoundedRect.h" 42 3 43 4 @implementation BezelBannerWindow … … 76 37 stringSize = [string_ sizeWithAttributes:textAttributes]; 77 38 fontSize -= 2.0; 78 } while ( stringSize.width >maxStringWidth);39 } while ((stringSize.width + kLeftWindowMargin*2 + kRightWindowMargin*2) >= maxStringWidth); 79 40 80 41 // Pad out the text size to arrive at the desired window size. trunk/cocoa/BezelBanner/Info.plist
r128 r292 10 10 <string></string> 11 11 <key>CFBundleIdentifier</key> 12 <string>com. yourcompany.BezelBanner</string>12 <string>com.rentzsch.BezelBanner</string> 13 13 <key>CFBundleInfoDictionaryVersion</key> 14 14 <string>6.0</string> … … 20 20 <string>????</string> 21 21 <key>CFBundleVersion</key> 22 <string>1.0 </string>22 <string>1.0.1</string> 23 23 <key>NSMainNibFile</key> 24 24 <string>MainMenu</string>
