Skip to content
This repository has been archived by the owner on May 8, 2018. It is now read-only.

Commit

Permalink
Release 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Eun committed Sep 25, 2014
1 parent 745e91c commit 463b47b
Show file tree
Hide file tree
Showing 107 changed files with 2,445 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .travis.yml

This file was deleted.

12 changes: 12 additions & 0 deletions DisableMonitor-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,17 @@
<string>MainMenu</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>SUFeedURL</key>
<string>https://raw.githubusercontent.com/Eun/DisableMonitor/res/appcast.xml</string>
<key>SUEnableAutomaticChecks</key>
<false/>
<key>SUEnableSystemProfiling</key>
<false/>
<key>SUAllowsAutomaticUpdates</key>
<true/>
<key>SUScheduledCheckInterval</key>
<integer>604800</integer>
<key>SUPublicDSAKeyFile</key>
<string>dsa_pub.pem</string>
</dict>
</plist>
25 changes: 25 additions & 0 deletions DisableMonitor.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
591A9C2F19B8457A00848073 /* DisplayData.m in Sources */ = {isa = PBXBuildFile; fileRef = 591A9C2E19B8457A00848073 /* DisplayData.m */; };
592CED7E18FEB66E00FDDF65 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 592CED7D18FEB66E00FDDF65 /* IOKit.framework */; };
592CED8118FEBDB300FDDF65 /* GLFW.m in Sources */ = {isa = PBXBuildFile; fileRef = 592CED8018FEBDB300FDDF65 /* GLFW.m */; };
593E314119D445C6000B07DE /* Sparkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 593E314019D445C6000B07DE /* Sparkle.framework */; };
593E314319D445F5000B07DE /* Sparkle.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 593E314019D445C6000B07DE /* Sparkle.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
593E314719D44873000B07DE /* dsa_pub.pem in Resources */ = {isa = PBXBuildFile; fileRef = 593E314519D44873000B07DE /* dsa_pub.pem */; };
594D69681988D0F500D48AD7 /* OnlyIntegerValueFormatter.m in Sources */ = {isa = PBXBuildFile; fileRef = 594D69671988D0F500D48AD7 /* OnlyIntegerValueFormatter.m */; };
5960567319D2E00E00B4525E /* DisplayIDAndName.m in Sources */ = {isa = PBXBuildFile; fileRef = 5960567219D2E00E00B4525E /* DisplayIDAndName.m */; };
598E9892193DC99B005DEB10 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 598E9891193DC99B005DEB10 /* MainMenu.xib */; };
Expand All @@ -26,6 +29,19 @@
8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */; };
/* End PBXBuildFile section */

/* Begin PBXCopyFilesBuildPhase section */
593E314219D445E0000B07DE /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 10;
files = (
593E314319D445F5000B07DE /* Sparkle.framework in CopyFiles */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
089C165DFE840E0CC02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/Localizable.strings; sourceTree = "<group>"; };
1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = "<absolute>"; };
Expand Down Expand Up @@ -290,6 +306,8 @@
591AEFF5197924CA00277858 /* DisplayData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DisplayData.h; sourceTree = "<group>"; };
592CED7D18FEB66E00FDDF65 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOKit.framework; path = Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/IOKit.framework; sourceTree = DEVELOPER_DIR; };
592CED8018FEBDB300FDDF65 /* GLFW.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GLFW.m; sourceTree = "<group>"; };
593E314019D445C6000B07DE /* Sparkle.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Sparkle.framework; sourceTree = "<group>"; };
593E314519D44873000B07DE /* dsa_pub.pem */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = dsa_pub.pem; sourceTree = "<group>"; };
594D69661988D0F500D48AD7 /* OnlyIntegerValueFormatter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OnlyIntegerValueFormatter.h; sourceTree = "<group>"; };
594D69671988D0F500D48AD7 /* OnlyIntegerValueFormatter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OnlyIntegerValueFormatter.m; sourceTree = "<group>"; };
5960567119D2E00E00B4525E /* DisplayIDAndName.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DisplayIDAndName.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -319,6 +337,7 @@
files = (
591A9C2D19B83E3F00848073 /* DisplayServices.framework in Frameworks */,
5997614F19864C25008D8C44 /* Security.framework in Frameworks */,
593E314119D445C6000B07DE /* Sparkle.framework in Frameworks */,
592CED7E18FEB66E00FDDF65 /* IOKit.framework in Frameworks */,
8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */,
);
Expand Down Expand Up @@ -394,6 +413,7 @@
29B97315FDCFA39411CA2CEA /* Other Sources */ = {
isa = PBXGroup;
children = (
593E314519D44873000B07DE /* dsa_pub.pem */,
256AC3F00F4B6AF500CF3369 /* DisableMonitor_Prefix.pch */,
29B97316FDCFA39411CA2CEA /* main.m */,
);
Expand All @@ -412,6 +432,7 @@
29B97323FDCFA39411CA2CEA /* Frameworks */ = {
isa = PBXGroup;
children = (
593E314019D445C6000B07DE /* Sparkle.framework */,
591A9B2E19B83E2800848073 /* Library */,
591A9B2C19B83E0700848073 /* DesktopServicesPriv.framework */,
5997615019865637008D8C44 /* Carbon.framework */,
Expand Down Expand Up @@ -731,6 +752,7 @@
8D1107290486CEB800E47090 /* Resources */,
8D11072C0486CEB800E47090 /* Sources */,
8D11072E0486CEB800E47090 /* Frameworks */,
593E314219D445E0000B07DE /* CopyFiles */,
);
buildRules = (
);
Expand Down Expand Up @@ -772,6 +794,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
593E314719D44873000B07DE /* dsa_pub.pem in Resources */,
8D11072B0486CEB800E47090 /* Localizable.strings in Resources */,
59B5766718FFDC6700B57E77 /* icon.icns in Resources */,
598E9892193DC99B005DEB10 /* MainMenu.xib in Resources */,
Expand Down Expand Up @@ -824,6 +847,7 @@
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(SDKROOT)$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks",
"$(PROJECT_DIR)",
);
GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_FIX_AND_CONTINUE = YES;
Expand All @@ -849,6 +873,7 @@
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(SDKROOT)$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks",
"$(PROJECT_DIR)",
);
GCC_MODEL_TUNING = G5;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
Expand Down
2 changes: 2 additions & 0 deletions DisableMonitorAppDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/

#import <Cocoa/Cocoa.h>
#import <Sparkle/Sparkle.h>
#import "CustomResolution.h"
#import "DisplayData.h"
@interface DisableMonitorAppDelegate : NSObject <NSApplicationDelegate, NSMenuDelegate, NSWindowDelegate, NSOutlineViewDelegate> {
Expand Down Expand Up @@ -49,6 +50,7 @@
@property (assign) IBOutlet NSTextField *about_lblVersion;

@property (assign) CGDirectDisplayID window_display;
@property (assign) IBOutlet SUUpdater *updater;


+(NSMutableArray*) GetSortedDisplays;
Expand Down
6 changes: 6 additions & 0 deletions DisableMonitorAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ @implementation DisableMonitorAppDelegate
@synthesize about_lblVersion;

@synthesize window_display;
@synthesize updater;


CFStringRef const kDisplayBrightness = CFSTR(kIODisplayBrightnessKey);
Expand Down Expand Up @@ -634,6 +635,11 @@ -(IBAction)GotoHomePage:(id)sender
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"https://github.com/Eun/DisableMonitor"]];
}

-(IBAction)CheckForUpdates:(id)sender
{
[updater checkForUpdates:sender];
}




Expand Down
6 changes: 5 additions & 1 deletion MainMenu.xib
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="6245" systemVersion="13F34" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
<dependencies>
<deployment defaultVersion="1060" identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="6245"/>
</dependencies>
<objects>
Expand Down Expand Up @@ -49,6 +48,7 @@
<outlet property="pref_lstResolutions" destination="cMr-0V-T92" id="dOu-mz-tCq"/>
<outlet property="pref_window" destination="B4q-iO-a3J" id="r5c-af-qQR"/>
<outlet property="statusMenu" destination="533" id="537"/>
<outlet property="updater" destination="qSi-Sj-bZh" id="yBK-eB-bv4"/>
<outlet property="window" destination="B4q-iO-a3J" id="JQS-QZ-C3w"/>
<outlet property="window_btnadd" destination="I3n-Kc-7oN" id="Xjq-PY-QkV"/>
<outlet property="window_btnclose" destination="67K-Sz-8O1" id="G0r-RH-4od"/>
Expand Down Expand Up @@ -287,6 +287,9 @@
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="system"/>
</buttonCell>
<connections>
<action selector="CheckForUpdates:" target="494" id="xMk-9B-P6v"/>
</connections>
</button>
<button id="fxB-RB-TIE">
<rect key="frame" x="0.0" y="0.0" width="180" height="12"/>
Expand All @@ -303,6 +306,7 @@
</view>
<point key="canvasLocation" x="532.5" y="-30"/>
</window>
<customObject id="qSi-Sj-bZh" customClass="SUUpdater"/>
</objects>
<resources>
<image name="NSAddTemplate" width="8" height="8"/>
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ Easily disable, enable or change the resolution of a monitor!

Changelog
=========
1.7:
* Added Updater
* Added Quit Menu (Alternative Menu)
* Added Start Screensaver Menu (Alternative Menu)
* Added console usage (Issue #8)
* Added About Dialog

1.6:
* Added Icons
* Added Lock Screens
Expand Down
1 change: 1 addition & 0 deletions Sparkle.framework/Headers
1 change: 1 addition & 0 deletions Sparkle.framework/Resources
1 change: 1 addition & 0 deletions Sparkle.framework/Sparkle
33 changes: 33 additions & 0 deletions Sparkle.framework/Versions/A/Headers/SUAppcast.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
//
// SUAppcast.h
// Sparkle
//
// Created by Andy Matuschak on 3/12/06.
// Copyright 2006 Andy Matuschak. All rights reserved.
//

#ifndef SUAPPCAST_H
#define SUAPPCAST_H

@class SUAppcastItem;
@interface SUAppcast : NSObject {
NSArray *items;
NSString *userAgentString;
id delegate;
NSMutableData *incrementalData;
}

- (void)fetchAppcastFromURL:(NSURL *)url;
- (void)setDelegate:delegate;
- (void)setUserAgentString:(NSString *)userAgentString;

- (NSArray *)items;

@end

@interface NSObject (SUAppcastDelegate)
- (void)appcastDidFinishLoading:(SUAppcast *)appcast;
- (void)appcast:(SUAppcast *)appcast failedToLoadWithError:(NSError *)error;
@end

#endif
47 changes: 47 additions & 0 deletions Sparkle.framework/Versions/A/Headers/SUAppcastItem.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
//
// SUAppcastItem.h
// Sparkle
//
// Created by Andy Matuschak on 3/12/06.
// Copyright 2006 Andy Matuschak. All rights reserved.
//

#ifndef SUAPPCASTITEM_H
#define SUAPPCASTITEM_H

@interface SUAppcastItem : NSObject {
NSString *title;
NSDate *date;
NSString *itemDescription;

NSURL *releaseNotesURL;

NSString *DSASignature;
NSString *minimumSystemVersion;

NSURL *fileURL;
NSString *versionString;
NSString *displayVersionString;

NSDictionary *propertiesDictionary;
}

// Initializes with data from a dictionary provided by the RSS class.
- initWithDictionary:(NSDictionary *)dict;

- (NSString *)title;
- (NSString *)versionString;
- (NSString *)displayVersionString;
- (NSDate *)date;
- (NSString *)itemDescription;
- (NSURL *)releaseNotesURL;
- (NSURL *)fileURL;
- (NSString *)DSASignature;
- (NSString *)minimumSystemVersion;

// Returns the dictionary provided in initWithDictionary; this might be useful later for extensions.
- (NSDictionary *)propertiesDictionary;

@end

#endif
Loading

0 comments on commit 463b47b

Please sign in to comment.