Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Turbo Boost control feature. #100

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
/smcFanControl.xcodeproj/project.xcworkspace/xcshareddata/
/smcFanControl.xcodeproj/project.xcworkspace/xcuserdata/
/smcFanControl.xcodeproj/xcuserdata/
.idea/
124 changes: 69 additions & 55 deletions Classes/FanControl.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,111 +37,125 @@
#import "Constants.h"


#define kMenuBarHeight 22
#define kMenuBarHeight 22


@interface FanControl : NSObject <NSMenuDelegate>

{
@interface FanControl : NSObject <NSMenuDelegate> {
IBOutlet id currentSpeed;
IBOutlet id currentSpeed1;

IBOutlet id slider1;
IBOutlet id slider2;

IBOutlet id field1;
IBOutlet id field2;
IBOutlet id currentSpeed1;

IBOutlet id slider1;
IBOutlet id slider2;

IBOutlet id field1;
IBOutlet id field2;

IBOutlet id mainwindow;

IBOutlet id tabview;

IBOutlet id applybutton;

IBOutlet id programinfo;

IBOutlet id copyright;

IBOutlet id mainwindow;
IBOutlet id syncslider;

IBOutlet id tabview;
IBOutlet id TemperatureController;

IBOutlet id applybutton;
IBOutlet id levelIndicator;

IBOutlet id programinfo;
IBOutlet id newfavoritewindow;

IBOutlet id copyright;
IBOutlet id newfavorite_title;

IBOutlet id syncslider;
IBOutlet id autochange;

IBOutlet id TemperatureController;

IBOutlet id levelIndicator;
IBOutlet NSMenu *theMenu;

IBOutlet id newfavoritewindow;
IBOutlet id faqWindow;

IBOutlet id newfavorite_title;
IBOutlet id faqText;

IBOutlet id autochange;
IBOutlet id sliderCell;

IBOutlet id sync;

IBOutlet NSMenu *theMenu;

IBOutlet id faqWindow;
IBOutlet id colorSelector;

IBOutlet id faqText;

IBOutlet id sliderCell;

IBOutlet id sync;
NSStatusItem *statusItem;

IBOutlet id colorSelector;

NSStatusItem *statusItem;

NSMutableArray* s_menus;

NSTimer *_readTimer;

Power *pw;

IBOutlet id FavoritesController;
IBOutlet id FanController;
IBOutlet id DefaultsController;

MachineDefaults *mdefaults;
NSMutableArray *s_menus;

NSDictionary *undo_dic;

NSImage *menu_image;
NSImage *menu_image_alt;
NSTimer *_readTimer;

Power *pw;

IBOutlet id FavoritesController;
IBOutlet id FanController;
IBOutlet id DefaultsController;

MachineDefaults *mdefaults;

NSDictionary *undo_dic;

NSImage *menu_image;
NSImage *menu_image_alt;
}

@property (nonatomic, strong ) NSMutableDictionary *machineDefaultsDict;
@property(nonatomic, strong) NSMutableDictionary *machineDefaultsDict;


-(void)terminate:(id)sender;
- (void)terminate:(id)sender;

- (IBAction)paypal:(id)sender;

- (IBAction)visitHomepage:(id)sender;

- (IBAction)closePreferences:(id)sender;

- (IBAction)savePreferences:(id)sender;

- (IBAction)updateCheck:(id)sender;

- (IBAction)resetSettings:(id)sender;

- (void)init_statusitem;

//new ones, check old later
- (IBAction)loginItem:(id)sender;

- (IBAction)add_favorite:(id)sender;

- (IBAction)close_favorite:(id)sender;

- (IBAction)save_favorite:(id)sender;

- (IBAction)delete_favorite:(id)sender;

- (IBAction)syncSliders:(id)sender;

- (void)apply_quickselect:(id)sender;

- (void)apply_settings:(id)sender controllerindex:(int)cIndex;

+ (void)setRights;
- (void) syncBinder:(Boolean)bind;

- (void)syncBinder:(Boolean)bind;

- (IBAction) changeMenu:(id)sender;

- (IBAction)menuSelect:(id)sender;
- (void)menuNeedsUpdate:(NSMenu*)menu;

- (void)menuNeedsUpdate:(NSMenu *)menu;
@end


@interface NSNumber (NumberAdditions)
@property (NS_NONATOMIC_IOSONLY, readonly, copy) NSString *tohex;
@property (NS_NONATOMIC_IOSONLY, readonly, copy) NSNumber *celsius_fahrenheit;
@property(NS_NONATOMIC_IOSONLY, readonly, copy) NSString *tohex;
@property(NS_NONATOMIC_IOSONLY, readonly, copy) NSNumber *celsius_fahrenheit;

@end

Loading