-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add setting xib to bridge "alt-login" setting from skype4pidgin
- Loading branch information
Showing
9 changed files
with
152 additions
and
10 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
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,33 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14490.70" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none"> | ||
<dependencies> | ||
<deployment version="101400" identifier="macosx"/> | ||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14490.70"/> | ||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> | ||
</dependencies> | ||
<objects> | ||
<customObject id="-2" userLabel="File's Owner" customClass="SkypeSettingsViewController"> | ||
<connections> | ||
<outlet property="optionsView" destination="Hz6-mo-xeY" id="QMG-wV-Nrq"/> | ||
<outlet property="useAltLogin" destination="qag-WQ-G0t" id="gIi-M3-Smv"/> | ||
</connections> | ||
</customObject> | ||
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/> | ||
<customObject id="-3" userLabel="Application" customClass="NSObject"/> | ||
<customView id="Hz6-mo-xeY" userLabel="Options"> | ||
<rect key="frame" x="0.0" y="0.0" width="326" height="171"/> | ||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> | ||
<subviews> | ||
<button verticalHuggingPriority="750" id="qag-WQ-G0t"> | ||
<rect key="frame" x="112" y="135" width="103" height="18"/> | ||
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxX="YES" flexibleMinY="YES"/> | ||
<buttonCell key="cell" type="check" title="Use Alt Login" bezelStyle="regularSquare" imagePosition="left" state="on" inset="2" id="fsb-Xl-vC5"> | ||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> | ||
<font key="font" metaFont="system"/> | ||
</buttonCell> | ||
</button> | ||
</subviews> | ||
<point key="canvasLocation" x="-164" y="30.5"/> | ||
</customView> | ||
</objects> | ||
</document> |
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 @@ | ||
// | ||
// SkypeSettingsViewController.h | ||
// skypeweb4adium | ||
// | ||
// Created by Tobias Tangemann on 25.05.19. | ||
// Copyright © 2019 Tobias Tangemann. All rights reserved. | ||
// | ||
|
||
#import <Cocoa/Cocoa.h> | ||
#import <AdiumLibpurple/PurpleAccountViewController.h> | ||
|
||
@interface SkypeSettingsViewController : PurpleAccountViewController { | ||
IBOutlet NSButton *useAltLogin; | ||
__unsafe_unretained IBOutlet NSView *optionsView; | ||
} | ||
|
||
@property (nonatomic, assign) IBOutlet NSView *optionsView; | ||
|
||
@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,36 @@ | ||
// | ||
// SkypeSettingsViewController.m | ||
// skypeweb4adium | ||
// | ||
// Created by Tobias Tangemann on 25.05.19. | ||
// Copyright © 2019 Tobias Tangemann. All rights reserved. | ||
// | ||
|
||
#import "SkypeSettingsViewController.h" | ||
#import <AdiumLibpurple/CBPurpleAccount.h> | ||
#import "PurpleSkypeWebAccount.h" | ||
|
||
@interface SkypeSettingsViewController () | ||
@end | ||
|
||
@implementation SkypeSettingsViewController | ||
@synthesize optionsView; | ||
|
||
- (NSView*) optionsView { return optionsView; } | ||
- (NSString*) nibName { return @"SkypeSettings"; } | ||
|
||
- (void)configureForAccount:(AIAccount *) inAccount | ||
{ | ||
[super configureForAccount:inAccount]; | ||
[useAltLogin setState:[[account preferenceForKey:@"alt-login" group:GROUP_ACCOUNT_STATUS] boolValue]]; | ||
} | ||
|
||
//Save controls | ||
- (void)saveConfiguration | ||
{ | ||
[super saveConfiguration]; | ||
[account setPreference:[NSNumber numberWithBool:[useAltLogin state]] | ||
forKey:@"alt-login" group:GROUP_ACCOUNT_STATUS]; | ||
} | ||
|
||
@end |