Source/AIAdvancedPreferencesPlugin.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
//  AIAdvancedPreferencesPlugin.m
David@0
     3
//  Adium
David@0
     4
//
David@0
     5
//  Created by Evan Schoenberg on 4/7/07.
David@0
     6
//
David@0
     7
David@0
     8
#import "AIAdvancedPreferencesPlugin.h"
David@0
     9
#import "AIAdvancedPreferences.h"
zacw@2295
    10
#import "AIMessageAlertsAdvancedPreferences.h"
zacw@2450
    11
#import "AIConfirmationsAdvancedPreferences.h"
David@0
    12
David@0
    13
@implementation AIAdvancedPreferencesPlugin
David@0
    14
David@0
    15
- (void)installPlugin
David@0
    16
{
David@0
    17
	[AIAdvancedPreferences preferencePane];
zacw@2295
    18
	
zacw@2295
    19
	// Generic advanced panes with no specific plugins.
zacw@2295
    20
	messageAlertsPreferences = [[AIMessageAlertsAdvancedPreferences preferencePane] retain];
zacw@2450
    21
	confirmationsPreferences = [[AIConfirmationsAdvancedPreferences preferencePane] retain];
David@0
    22
}
David@0
    23
David@0
    24
@end