Merged [14875]:
[adiumx.git] / Source / AINewContactWindowController.h
blob32fbb8b73437cdac01cb15b7316a1c3e7b417e6a
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>
19 #define PREF_GROUP_ADD_CONTACT @"Add Contact"
20 #define KEY_ADD_CONTACT_TO @"Add Contacts to account"
22 @class AIService, AILocalizationButton, AILocalizationTextField;
23 @protocol AIListObjectObserver;
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;
32 IBOutlet AILocalizationButton *button_add;
33 IBOutlet AILocalizationButton *button_cancel;
35 IBOutlet AILocalizationTextField *textField_type;
36 IBOutlet AILocalizationTextField *textField_alias;
37 IBOutlet AILocalizationTextField *textField_inGroup;
38 IBOutlet AILocalizationTextField *textField_addToAccounts;
39 IBOutlet NSTextField *textField_contactNameLabel;
41 NSArray *accounts;
42 NSString *contactName;
43 AIService *service;
45 NSRect originalContactNameLabelFrame;
48 + (void)promptForNewContactOnWindow:(NSWindow *)parentWindow name:(NSString *)contact service:(AIService *)inService;
49 - (IBAction)cancel:(id)sender;
50 - (IBAction)addContact:(id)sender;
52 @end