Source/ESStatusAdvancedPreferences.m
author Zachary West <zacw@adium.im>
Tue Jun 02 17:22:19 2009 -0400 (2009-06-02)
changeset 2450 08aa9c3a346c
parent 2295 feae24a10fb6
child 3679 f4294bb53b0f
permissions -rw-r--r--
Create a new advanced preference called "Confirmations". Move Quit Confirmations there.

Adds a new confirmation type for closing message windows with more than 1 tab open. Fixes #12006.

This new preference has two options: always confirm, only confirm when there's unread content. Displays an alert sheet when trying to close the window.
David@0
     1
//
David@0
     2
//  ESStatusAdvancedPreferences.m
David@0
     3
//  Adium
David@0
     4
//
David@0
     5
//  Created by Evan Schoenberg on 1/6/06.
David@0
     6
//
David@0
     7
David@0
     8
#import "CBStatusMenuItemPlugin.h"
David@0
     9
#import "ESStatusAdvancedPreferences.h"
David@0
    10
#import "AIStatusController.h"
David@0
    11
#import "AIPreferenceWindowController.h"
David@0
    12
#import <AIUtilities/AIImageAdditions.h>
David@0
    13
#import <AIUtilities/AIStringAdditions.h>
David@0
    14
David@0
    15
@implementation ESStatusAdvancedPreferences
David@0
    16
//Preference pane properties
David@0
    17
- (AIPreferenceCategory)category{
David@0
    18
    return AIPref_Advanced;
David@0
    19
}
David@0
    20
- (NSString *)label{
David@0
    21
    return AILocalizedString(@"Status",nil);
David@0
    22
}
David@0
    23
- (NSString *)nibName{
David@0
    24
    return @"StatusPreferencesAdvanced";
David@0
    25
}
David@0
    26
- (NSImage *)image{
David@0
    27
	return [NSImage imageNamed:@"pref-status" forClass:[AIPreferenceWindowController class]];
David@0
    28
}
David@0
    29
David@0
    30
//Configure the preference view
David@0
    31
- (void)viewDidLoad
zacw@2450
    32
{
zacw@2450
    33
	[label_statusWindow setLocalizedString:AILocalizedString(@"Away Status Window", nil)];
David@0
    34
	[checkBox_statusWindowHideInBackground setLocalizedString:AILocalizedString(@"Hide the status window when Adium is not active", nil)];
David@0
    35
	[checkBox_statusWindowAlwaysOnTop setLocalizedString:AILocalizedString(@"Show the status window above other windows", nil)];
David@0
    36
	
David@0
    37
	[super viewDidLoad];
David@0
    38
}
David@0
    39
David@0
    40
David@0
    41
@end