2 // ESStatusPreferencesPlugin.m
5 // Created by Evan Schoenberg on 2/26/05.
6 // Copyright 2006 The Adium Team. All rights reserved.
9 #import "ESStatusPreferencesPlugin.h"
10 #import "ESStatusAdvancedPreferences.h"
11 #import "ESStatusPreferences.h"
12 #import <Adium/AIMenuControllerProtocol.h>
13 #import "AIStatusController.h"
14 #import <AIUtilities/AIMenuAdditions.h>
15 #import <AIUtilities/AIDictionaryAdditions.h>
16 #import <AIUtilities/AIStringAdditions.h>
18 #define STATUS_DEFAULT_PREFS @"StatusDefaults"
21 * @class ESStatusPreferencesPlugin
22 * @brief Component to install our status preferences pane
24 @implementation ESStatusPreferencesPlugin
29 * Install our preference pane, and add a menu item to the Status menu which opens it.
35 //Install our preference view
36 preferences = [[ESStatusPreferences preferencePaneForPlugin:self] retain];
37 advancedPreferences = [[ESStatusAdvancedPreferences preferencePaneForPlugin:self] retain];
40 menuItem = [[NSMenuItem allocWithZone:[NSMenu menuZone]] initWithTitle:[AILocalizedString(@"Edit Status Menu",nil) stringByAppendingEllipsis]
42 action:@selector(showStatusPreferences:)
44 [[adium menuController] addMenuItem:menuItem toLocation:LOC_Status_Additions];
47 [[adium preferenceController] registerDefaults:[NSDictionary dictionaryNamed:STATUS_DEFAULT_PREFS
48 forClass:[self class]]
49 forGroup:PREF_GROUP_STATUS_PREFERENCES];
54 * Open the preferences to the status pane
56 - (void)showStatusPreferences:(id)sender
58 [[adium preferenceController] openPreferencesToCategoryWithIdentifier:@"Status"];