Allow localization of the Alert Text label in the Display an Alert action
[adiumx.git] / Source / AINewContactWindowController.h
blobc0bf2859b57a9776c74e02ad359fb28d2af0a377
1 /*
2 * Adium is the legal property of its developers, whose names are listed in the copyright file included
3 * with this source distribution.
4 *
5 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
6 * General Public License as published by the Free Software Foundation; either version 2 of the License,
7 * or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
10 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
11 * Public License for more details.
13 * You should have received a copy of the GNU General Public License along with this program; if not,
14 * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 #import <Adium/AIWindowController.h>
18 #import <Adium/AIContactControllerProtocol.h>
20 #define PREF_GROUP_ADD_CONTACT @"Add Contact"
21 #define KEY_ADD_CONTACT_TO @"Add Contacts to account"
23 @class AIAccount, AIService, AILocalizationButton, AILocalizationTextField;
25 @interface AINewContactWindowController : AIWindowController <AIListObjectObserver> {
26 IBOutlet NSPopUpButton *popUp_contactType;
27 IBOutlet NSPopUpButton *popUp_targetGroup;
28 IBOutlet NSTextField *textField_contactName;
29 IBOutlet NSTextField *textField_contactAlias;
30 IBOutlet NSTableView *tableView_accounts;
31 IBOutlet NSImageView *imageView_service;
33 IBOutlet AILocalizationButton *button_add;
34 IBOutlet AILocalizationButton *button_cancel;
36 IBOutlet AILocalizationTextField *textField_type;
37 IBOutlet AILocalizationTextField *textField_alias;
38 IBOutlet AILocalizationTextField *textField_inGroup;
39 IBOutlet AILocalizationTextField *textField_addToAccounts;
40 IBOutlet NSTextField *textField_contactNameLabel;
42 IBOutlet AILocalizationTextField *textField_searchInAB;
44 NSArray *accounts;
45 NSMutableSet *checkedAccounts;
46 NSString *contactName;
47 AIService *service;
48 AIAccount *initialAccount;
49 NSString *uniqueID;
52 + (void)promptForNewContactOnWindow:(NSWindow *)parentWindow name:(NSString *)contact service:(AIService *)inService account:(AIAccount *)inAccount;
53 - (IBAction)cancel:(id)sender;
54 - (IBAction)addContact:(id)sender;
55 - (IBAction)searchInAB:(id)sender;
57 @end