Permalink
Browse files

Add a setting to show Growl notifications

  • Loading branch information...
1 parent 820552d commit 8b39e3c8f0b31fafdd41faabd73f45dff52e6c98 @eofster committed Nov 7, 2013
@@ -246,6 +246,7 @@ + (void)initialize {
[defaultsDict setObject:[NSNumber numberWithBool:NO] forKey:kAutoCloseCallWindow];
[defaultsDict setObject:[NSNumber numberWithBool:NO] forKey:kAutoCloseMissedCallWindow];
[defaultsDict setObject:[NSNumber numberWithBool:YES] forKey:kCallWaiting];
+ [defaultsDict setObject:[NSNumber numberWithBool:NO] forKey:kShowGrowlNotifications];
NSString *preferredLocalization = [[[NSBundle mainBundle] preferredLocalizations] objectAtIndex:0];
@@ -66,6 +66,7 @@ extern NSString * const kPauseITunes;
extern NSString * const kAutoCloseCallWindow;
extern NSString * const kAutoCloseMissedCallWindow;
extern NSString * const kCallWaiting;
+extern NSString * const kShowGrowlNotifications;
extern NSString * const kUseG711Only;
//
// Account keys
@@ -64,6 +64,7 @@
NSString * const kAutoCloseCallWindow = @"AutoCloseCallWindow";
NSString * const kAutoCloseMissedCallWindow = @"AutoCloseMissedCallWindow";
NSString * const kCallWaiting = @"CallWaiting";
+NSString * const kShowGrowlNotifications = @"ShowGrowlNotifications";
NSString * const kUseG711Only = @"UseG711Only";;
NSString * const kDescription = @"Description";
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="4514" systemVersion="13A603" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" promptedForUpgradeToXcode5="NO">
+<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="4514" systemVersion="13A603" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
<dependencies>
- <deployment defaultVersion="1060" identifier="macosx"/>
+ <deployment defaultVersion="1080" identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="4514"/>
</dependencies>
<objects>
@@ -14,11 +14,11 @@
<customObject id="-3" userLabel="Application"/>
<userDefaultsController representsSharedInstance="YES" id="201"/>
<customView id="150" userLabel="General">
- <rect key="frame" x="0.0" y="0.0" width="508" height="128"/>
+ <rect key="frame" x="0.0" y="0.0" width="508" height="148"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<subviews>
<button id="524">
- <rect key="frame" x="83" y="38" width="229" height="18"/>
+ <rect key="frame" x="83" y="58" width="229" height="18"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="check" title="Automatically close call windows" bezelStyle="regularSquare" imagePosition="left" alignment="left" state="on" inset="2" id="525">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
@@ -29,7 +29,7 @@
</connections>
</button>
<button id="520">
- <rect key="frame" x="83" y="58" width="176" height="18"/>
+ <rect key="frame" x="83" y="78" width="176" height="18"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="check" title="Pause iTunes during call" bezelStyle="regularSquare" imagePosition="left" alignment="left" state="on" inset="2" id="521">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
@@ -40,7 +40,7 @@
</connections>
</button>
<button id="257">
- <rect key="frame" x="103" y="78" width="197" height="18"/>
+ <rect key="frame" x="103" y="98" width="197" height="18"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="check" title="Split last four digits in pairs" bezelStyle="regularSquare" imagePosition="left" alignment="left" inset="2" id="258">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
@@ -52,7 +52,7 @@
</connections>
</button>
<button id="255">
- <rect key="frame" x="83" y="98" width="258" height="18"/>
+ <rect key="frame" x="83" y="118" width="258" height="18"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="check" title="Automatically format phone numbers" bezelStyle="regularSquare" imagePosition="left" alignment="left" state="on" inset="2" id="256">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
@@ -63,7 +63,7 @@
</connections>
</button>
<button id="529">
- <rect key="frame" x="83" y="18" width="96" height="18"/>
+ <rect key="frame" x="83" y="38" width="96" height="18"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="check" title="Call waiting" bezelStyle="regularSquare" imagePosition="left" alignment="left" state="on" inset="2" id="530">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
@@ -73,6 +73,17 @@
<binding destination="201" name="value" keyPath="values.CallWaiting" id="532"/>
</connections>
</button>
+ <button id="3Nk-0N-yNW">
+ <rect key="frame" x="83" y="18" width="178" height="18"/>
+ <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
+ <buttonCell key="cell" type="check" title="Show Growl notifications" bezelStyle="regularSquare" imagePosition="left" inset="2" id="ZWh-yr-cyC">
+ <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
+ <font key="font" metaFont="system"/>
+ </buttonCell>
+ <connections>
+ <binding destination="201" name="value" keyPath="values.ShowGrowlNotifications" id="T3y-pC-iIM"/>
+ </connections>
+ </button>
</subviews>
</customView>
</objects>
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="4514" systemVersion="13A603" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" promptedForUpgradeToXcode5="NO">
+<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="4514" systemVersion="13A603" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
<dependencies>
- <deployment defaultVersion="1060" identifier="macosx"/>
+ <deployment defaultVersion="1080" identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="4514"/>
</dependencies>
<objects>
@@ -14,11 +14,11 @@
<customObject id="-3" userLabel="Application"/>
<userDefaultsController representsSharedInstance="YES" id="201"/>
<customView id="150" userLabel="General">
- <rect key="frame" x="0.0" y="0.0" width="540" height="108"/>
+ <rect key="frame" x="0.0" y="0.0" width="540" height="128"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<subviews>
<button id="419">
- <rect key="frame" x="83" y="38" width="246" height="18"/>
+ <rect key="frame" x="83" y="58" width="246" height="18"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="check" title="Anruffenster automatisch schließen" bezelStyle="regularSquare" imagePosition="left" alignment="left" state="on" inset="2" id="420">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
@@ -29,7 +29,7 @@
</connections>
</button>
<button id="415">
- <rect key="frame" x="83" y="58" width="192" height="18"/>
+ <rect key="frame" x="83" y="78" width="192" height="18"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="check" title="Bei Anruf iTunes pausieren" bezelStyle="regularSquare" imagePosition="left" alignment="left" state="on" inset="2" id="416">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
@@ -40,7 +40,7 @@
</connections>
</button>
<button id="255">
- <rect key="frame" x="83" y="78" width="290" height="18"/>
+ <rect key="frame" x="83" y="98" width="290" height="18"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="check" title="Telefonnummern automatisch formatieren" bezelStyle="regularSquare" imagePosition="left" alignment="left" state="on" inset="2" id="256">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
@@ -51,7 +51,7 @@
</connections>
</button>
<button id="424">
- <rect key="frame" x="83" y="18" width="87" height="18"/>
+ <rect key="frame" x="83" y="38" width="87" height="18"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<buttonCell key="cell" type="check" title="Anklopfen" bezelStyle="regularSquare" imagePosition="left" alignment="left" state="on" inset="2" id="425">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
@@ -61,6 +61,17 @@
<binding destination="201" name="value" keyPath="values.CallWaiting" id="427"/>
</connections>
</button>
+ <button id="KPE-EC-yBR">
+ <rect key="frame" x="83" y="18" width="252" height="18"/>
+ <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
+ <buttonCell key="cell" type="check" title="Growl-Benachrichtigungen anzeigen" bezelStyle="regularSquare" imagePosition="left" inset="2" id="Xb6-mJ-xqz">
+ <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
+ <font key="font" metaFont="system"/>
+ </buttonCell>
+ <connections>
+ <binding destination="201" name="value" keyPath="values.ShowGrowlNotifications" id="1Jo-7Z-CNW"/>
+ </connections>
+ </button>
</subviews>
</customView>
</objects>
Oops, something went wrong.

0 comments on commit 8b39e3c

Please sign in to comment.