From 6ddb90bd884bf64b2c24011460085ec186b4c6e7 Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Fri, 30 Aug 2013 02:17:17 +0000 Subject: Better prefs managing on the main app. Moving a few things around on the Mac side of the plug-ins. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@87025 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- .../Bladesio1/macsrc/PluginConfigController.m | 2 +- .../DFCdrom/macsrc/PluginConfigController.m | 2 +- macosx/plugins/DFInput/macsrc/ControllerList.h | 4 +- macosx/plugins/DFInput/macsrc/ControllerList.m | 80 ++++----- macosx/plugins/DFInput/macsrc/MappingCell.h | 3 +- macosx/plugins/DFInput/macsrc/MappingCell.m | 2 +- macosx/plugins/DFInput/macsrc/PadController.m | 1 - macosx/plugins/DFInput/macsrc/PadView.m | 2 +- macosx/plugins/DFInput/macsrc/cfgHelper.m | 2 +- .../English.lproj/NetSfPeopsSpuPluginMain.xib | 183 +++++++++++---------- .../plugins/DFSound/macsrc/SPUPluginController.h | 4 +- 11 files changed, 138 insertions(+), 147 deletions(-) (limited to 'macosx/plugins') diff --git a/macosx/plugins/Bladesio1/macsrc/PluginConfigController.m b/macosx/plugins/Bladesio1/macsrc/PluginConfigController.m index 55de5c0b..3e77c3ec 100755 --- a/macosx/plugins/Bladesio1/macsrc/PluginConfigController.m +++ b/macosx/plugins/Bladesio1/macsrc/PluginConfigController.m @@ -20,9 +20,9 @@ */ #import "PluginConfigController.h" +#import "ARCBridge.h" #include "typedefs.h" #include "sio1.h" -#import "ARCBridge.h" #define APP_ID @"net.pcsxr.Bladesio1" #define PrefsKey APP_ID @" Settings" diff --git a/macosx/plugins/DFCdrom/macsrc/PluginConfigController.m b/macosx/plugins/DFCdrom/macsrc/PluginConfigController.m index 97249754..855d6df0 100755 --- a/macosx/plugins/DFCdrom/macsrc/PluginConfigController.m +++ b/macosx/plugins/DFCdrom/macsrc/PluginConfigController.m @@ -20,8 +20,8 @@ */ #import "PluginConfigController.h" -#include "cdr.h" #import "ARCBridge.h" +#include "cdr.h" #define APP_ID @"net.pcsxr.DFCdrom" #define PrefsKey APP_ID @" Settings" diff --git a/macosx/plugins/DFInput/macsrc/ControllerList.h b/macosx/plugins/DFInput/macsrc/ControllerList.h index 6abdd3e8..aae13954 100755 --- a/macosx/plugins/DFInput/macsrc/ControllerList.h +++ b/macosx/plugins/DFInput/macsrc/ControllerList.h @@ -24,10 +24,8 @@ #import #include "cfg.h" -@class KeyConfig; +@interface ControllerList : NSObject -@interface ControllerList : NSObject { -} - (id)initWithConfig; + (void)setCurrentController:(int)which; diff --git a/macosx/plugins/DFInput/macsrc/ControllerList.m b/macosx/plugins/DFInput/macsrc/ControllerList.m index 01116c2d..a88058bc 100755 --- a/macosx/plugins/DFInput/macsrc/ControllerList.m +++ b/macosx/plugins/DFInput/macsrc/ControllerList.m @@ -20,67 +20,55 @@ */ #import "ControllerList.h" +#import "ARCBridge.h" #include "pad.h" #include "cfg.h" -#import "ARCBridge.h" static int currentController; static NSArray *labelText; @implementation ControllerList -+ (void)initialize -{ - if (!labelText) { - NSBundle *plugBundle = [NSBundle bundleForClass:[ControllerList class]]; - labelText = @[[plugBundle localizedStringForKey:@"D-Pad Up" value:@"" table:nil], - [plugBundle localizedStringForKey:@"D-Pad Down" value:@"" table:nil], - [plugBundle localizedStringForKey:@"D-Pad Left" value:@"" table:nil], - [plugBundle localizedStringForKey:@"D-Pad Right" value:@"" table:nil], - [plugBundle localizedStringForKey:@"Cross" value:@"" table:nil], - [plugBundle localizedStringForKey:@"Circle" value:@"" table:nil], - [plugBundle localizedStringForKey:@"Square" value:@"" table:nil], - [plugBundle localizedStringForKey:@"Triangle" value:@"" table:nil], - [plugBundle localizedStringForKey:@"L1" value:@"" table:nil], - [plugBundle localizedStringForKey:@"R1" value:@"" table:nil], - [plugBundle localizedStringForKey:@"L2" value:@"" table:nil], - [plugBundle localizedStringForKey:@"R2" value:@"" table:nil], - [plugBundle localizedStringForKey:@"Select" value:@"" table:nil], - [plugBundle localizedStringForKey:@"Start" value:@"" table:nil], - - [plugBundle localizedStringForKey:@"L3" value:@"" table:nil], - [plugBundle localizedStringForKey:@"R3" value:@"" table:nil], - [plugBundle localizedStringForKey:@"Analog" value:@"" table:nil], - - [plugBundle localizedStringForKey:@"L-Stick Right" value:@"" table:nil], - [plugBundle localizedStringForKey:@"L-Stick Left" value:@"" table:nil], - [plugBundle localizedStringForKey:@"L-Stick Down" value:@"" table:nil], - [plugBundle localizedStringForKey:@"L-Stick Up" value:@"" table:nil], - - [plugBundle localizedStringForKey:@"R-Stick Right" value:@"" table:nil], - [plugBundle localizedStringForKey:@"R-Stick Left" value:@"" table:nil], - [plugBundle localizedStringForKey:@"R-Stick Down" value:@"" table:nil], - [plugBundle localizedStringForKey:@"R-Stick Up" value:@"" table:nil]]; - RETAINOBJ(labelText); - } -} - - (id)initWithConfig { if (self = [super init]) { - + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + NSBundle *plugBundle = [NSBundle bundleForClass:[ControllerList class]]; + labelText = @[[plugBundle localizedStringForKey:@"D-Pad Up" value:@"" table:nil], + [plugBundle localizedStringForKey:@"D-Pad Down" value:@"" table:nil], + [plugBundle localizedStringForKey:@"D-Pad Left" value:@"" table:nil], + [plugBundle localizedStringForKey:@"D-Pad Right" value:@"" table:nil], + [plugBundle localizedStringForKey:@"Cross" value:@"" table:nil], + [plugBundle localizedStringForKey:@"Circle" value:@"" table:nil], + [plugBundle localizedStringForKey:@"Square" value:@"" table:nil], + [plugBundle localizedStringForKey:@"Triangle" value:@"" table:nil], + [plugBundle localizedStringForKey:@"L1" value:@"" table:nil], + [plugBundle localizedStringForKey:@"R1" value:@"" table:nil], + [plugBundle localizedStringForKey:@"L2" value:@"" table:nil], + [plugBundle localizedStringForKey:@"R2" value:@"" table:nil], + [plugBundle localizedStringForKey:@"Select" value:@"" table:nil], + [plugBundle localizedStringForKey:@"Start" value:@"" table:nil], + + [plugBundle localizedStringForKey:@"L3" value:@"" table:nil], + [plugBundle localizedStringForKey:@"R3" value:@"" table:nil], + [plugBundle localizedStringForKey:@"Analog" value:@"" table:nil], + + [plugBundle localizedStringForKey:@"L-Stick Right" value:@"" table:nil], + [plugBundle localizedStringForKey:@"L-Stick Left" value:@"" table:nil], + [plugBundle localizedStringForKey:@"L-Stick Down" value:@"" table:nil], + [plugBundle localizedStringForKey:@"L-Stick Up" value:@"" table:nil], + + [plugBundle localizedStringForKey:@"R-Stick Right" value:@"" table:nil], + [plugBundle localizedStringForKey:@"R-Stick Left" value:@"" table:nil], + [plugBundle localizedStringForKey:@"R-Stick Down" value:@"" table:nil], + [plugBundle localizedStringForKey:@"R-Stick Up" value:@"" table:nil]]; + RETAINOBJNORETURN(labelText); + }); } return self; } -//#if !__has_feature(objc_arc) -#if 0 -- (void)dealloc -{ - [super dealloc]; -} -#endif - /* sets current controller data returned by data source */ + (void)setCurrentController:(int)which { diff --git a/macosx/plugins/DFInput/macsrc/MappingCell.h b/macosx/plugins/DFInput/macsrc/MappingCell.h index 2dc8cd49..58ebc7e1 100755 --- a/macosx/plugins/DFInput/macsrc/MappingCell.h +++ b/macosx/plugins/DFInput/macsrc/MappingCell.h @@ -23,7 +23,6 @@ #import -@interface MappingCell : NSTextFieldCell { -} +@interface MappingCell : NSTextFieldCell @end diff --git a/macosx/plugins/DFInput/macsrc/MappingCell.m b/macosx/plugins/DFInput/macsrc/MappingCell.m index 885c1b74..a61e9087 100755 --- a/macosx/plugins/DFInput/macsrc/MappingCell.m +++ b/macosx/plugins/DFInput/macsrc/MappingCell.m @@ -21,7 +21,7 @@ #import "MappingCell.h" #import "ControllerList.h" -#import "cfg.h" +#include "cfg.h" @implementation MappingCell diff --git a/macosx/plugins/DFInput/macsrc/PadController.m b/macosx/plugins/DFInput/macsrc/PadController.m index 52342ea0..91f0baf0 100755 --- a/macosx/plugins/DFInput/macsrc/PadController.m +++ b/macosx/plugins/DFInput/macsrc/PadController.m @@ -23,7 +23,6 @@ #import "PadController.h" #import "ARCBridge.h" #include "pad.h" -#include static inline void RunOnMainThreadSync(dispatch_block_t block) { diff --git a/macosx/plugins/DFInput/macsrc/PadView.m b/macosx/plugins/DFInput/macsrc/PadView.m index dea3c2b6..7cafa4b1 100755 --- a/macosx/plugins/DFInput/macsrc/PadView.m +++ b/macosx/plugins/DFInput/macsrc/PadView.m @@ -20,8 +20,8 @@ */ #import "PadView.h" -#include "pad.h" #import "ARCBridge.h" +#include "pad.h" @implementation PadView diff --git a/macosx/plugins/DFInput/macsrc/cfgHelper.m b/macosx/plugins/DFInput/macsrc/cfgHelper.m index b51c5ee4..e15a9a1e 100644 --- a/macosx/plugins/DFInput/macsrc/cfgHelper.m +++ b/macosx/plugins/DFInput/macsrc/cfgHelper.m @@ -6,10 +6,10 @@ // // -#include "cfg.h" #import #import "ARCBridge.h" #import "PadController.h" +#include "cfg.h" #define padType @"Pad Type" #define deviceNumber @"Device Number" diff --git a/macosx/plugins/DFSound/Resorces/Shared/English.lproj/NetSfPeopsSpuPluginMain.xib b/macosx/plugins/DFSound/Resorces/Shared/English.lproj/NetSfPeopsSpuPluginMain.xib index 6deb8a23..0aedd66e 100644 --- a/macosx/plugins/DFSound/Resorces/Shared/English.lproj/NetSfPeopsSpuPluginMain.xib +++ b/macosx/plugins/DFSound/Resorces/Shared/English.lproj/NetSfPeopsSpuPluginMain.xib @@ -339,37 +339,61 @@ 274 - + 256 - {{15, 57}, {153, 18}} + {{17, 55}, {153, 18}} YES - + NO + 1 + 1 + + + 67108864 + 0 + Change XA Speed + + + 1211912448 + 2 + + NSSwitch + + + + 200 + 25 + + + {153, 18} + {0, 0} + -2080374784 + + 67108864 0 Change XA Speed - 1211912448 2 - - NSSwitch - + - 200 25 - NO + -1 + -1 + + {{2, 2}, {199, 83}} - + {{246, 69}, {203, 100}} @@ -408,6 +432,7 @@ {{17, 13}, {199, 60}} + YES NO 3 @@ -486,7 +511,7 @@ {{2, 2}, {223, 83}} - + {{17, 69}, {227, 100}} @@ -632,14 +657,6 @@ 75 - - - xaSpeedBox - - - - 66 - reset: @@ -688,6 +705,14 @@ 205 + + + xaSpeedBox + + + + 246 + delegate @@ -1479,15 +1504,15 @@ 19 - - - 5 + + + 3 0 - 5 + 3 1 - 16 + 25 1000 @@ -1495,15 +1520,15 @@ 29 3 - - - 3 + + + 5 0 - 3 + 5 1 - 25 + 16 1000 @@ -1511,7 +1536,7 @@ 29 3 - + @@ -1806,35 +1831,6 @@ - - 22 - - - - - - 7 - 0 - - 0 - 1 - - 149 - - 1000 - - 3 - 9 - 1 - - - - - - 89 - - - 107 @@ -1865,11 +1861,6 @@ - - 127 - - - 129 @@ -2074,16 +2065,6 @@ - - 194 - - - - - 195 - - - 196 @@ -2180,6 +2161,35 @@ + + 233 + + + + + + + + + 234 + + + + + 89 + + + + + 240 + + + + + 247 + + + @@ -2204,7 +2214,6 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -2261,15 +2270,13 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - + com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -2279,11 +2286,6 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - - - - - com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -2291,6 +2293,9 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin @@ -2298,6 +2303,8 @@ com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin @@ -2379,7 +2386,7 @@ - 232 + 247 @@ -2428,8 +2435,8 @@ NSCell NamedSlider NamedSlider - NSControl - NSControl + NSCell + NSCell @@ -2458,11 +2465,11 @@ xaEnableBox - NSControl + NSCell xaSpeedBox - NSControl + NSCell diff --git a/macosx/plugins/DFSound/macsrc/SPUPluginController.h b/macosx/plugins/DFSound/macsrc/SPUPluginController.h index 53b64aec..c826e58f 100644 --- a/macosx/plugins/DFSound/macsrc/SPUPluginController.h +++ b/macosx/plugins/DFSound/macsrc/SPUPluginController.h @@ -17,8 +17,8 @@ IBOutlet NSCell *irqWaitBox; IBOutlet NSCell *monoSoundBox; IBOutlet NamedSlider *reverbValue; - IBOutlet NSControl *xaEnableBox; - IBOutlet NSControl *xaSpeedBox; + IBOutlet NSCell *xaEnableBox; + IBOutlet NSCell *xaSpeedBox; IBOutlet NamedSlider *volumeValue; NSMutableDictionary *keyValues; -- cgit v1.2.3