And disable it by default in new installations, otherwise leave the setting alone. The disablement setting is shared with the engine setting, so the default should not really change anything, except for new installs. Also, the time/pitch shifting dialog disables itself and displays an obvious notice button, which opens the Rubber Band settings. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
47 lines
1.1 KiB
Objective-C
47 lines
1.1 KiB
Objective-C
//
|
|
// PreferencesController.m
|
|
// Cog
|
|
//
|
|
// Created by Vincent Spader on 9/4/06.
|
|
// Copyright 2006 Vincent Spader. All rights reserved.
|
|
//
|
|
|
|
#import "PreferencesController.h"
|
|
#import "PreferencePluginController.h"
|
|
#import "PreferencesWindow.h"
|
|
|
|
@implementation PreferencesController
|
|
|
|
- (void)initWindow {
|
|
if(nil == window) {
|
|
// Determine path to the sample preference panes
|
|
NSString *pluginPath = [[NSBundle mainBundle] pathForResource:@"Preferences" ofType:@"preferencePane"];
|
|
NSBundle *bundle = [NSBundle bundleWithPath:pluginPath];
|
|
|
|
PreferencePluginController *pluginController = [[PreferencePluginController alloc] initWithPlugins:@[bundle]];
|
|
|
|
window = [[PreferencesWindow alloc] initWithPreferencePanes:[pluginController preferencePanes]];
|
|
}
|
|
}
|
|
|
|
- (IBAction)showPreferences:(id)sender {
|
|
[self initWindow];
|
|
|
|
// Show the preferences window.
|
|
[window show];
|
|
}
|
|
|
|
- (IBAction)showPathSuggester:(id)sender {
|
|
[self initWindow];
|
|
|
|
// Show the path suggester
|
|
[window showPathSuggester];
|
|
}
|
|
|
|
- (IBAction)showRubberbandSettings:(id)sender {
|
|
[self initWindow];
|
|
|
|
[window showRubberbandSettings];
|
|
}
|
|
|
|
@end
|