Use initialize, not load, wherever possible.
[adiumx.git] / Source / OWABSearchWindowController.h
blob3458cf880ce54a901e5b121fef91d747f1da1686
1 //
2 // OWABSearchWindowController.h
3 // Adium
4 //
5 // Created by Ofri Wolfus on 19/07/05.
6 // Copyright 2006 The Adium Team. All rights reserved.
7 //
9 #import <Adium/AIWindowController.h>
11 @class AILocalizationButton, ABPeoplePickerView, AIService, ABPerson, AIImageViewWithImagePicker;
13 @interface OWABSearchWindowController : AIWindowController {
14 //Search View
15 IBOutlet ABPeoplePickerView *peoplePicker;
17 IBOutlet AILocalizationButton *selectButton;
18 IBOutlet AILocalizationButton *cancelButton;
19 IBOutlet AILocalizationButton *newPersonButton;
21 //New Contact View
22 IBOutlet NSPanel *newContactPanel;
23 IBOutlet NSPopUpButton *popUp_contactType;
25 IBOutlet NSTextField *textField_contactID;
26 IBOutlet NSTextField *textField_firstName;
27 IBOutlet NSTextField *textField_lastName;
28 IBOutlet NSTextField *textField_nickname;
29 IBOutlet NSTextField *textField_email;
31 IBOutlet AIImageViewWithImagePicker *imageView_contactIcon;
33 IBOutlet AILocalizationTextField *label_mainTitle;
34 IBOutlet AILocalizationTextField *label_contactType;
35 IBOutlet AILocalizationTextField *label_contactID;
36 IBOutlet AILocalizationTextField *label_secondaryTitle;
37 IBOutlet AILocalizationTextField *label_firstName;
38 IBOutlet AILocalizationTextField *label_lastName;
39 IBOutlet AILocalizationTextField *label_nickname;
40 IBOutlet AILocalizationTextField *label_email;
41 IBOutlet AILocalizationTextField *label_contactIcon;
43 IBOutlet AILocalizationButton *addContactButton;
44 IBOutlet AILocalizationButton *addContactCancelButton;
46 //Other variables
47 NSWindow *carryingWindow;
48 id delegate;
49 ABPerson *person;
50 NSString *screenName;
51 AIService *service;
52 NSData *contactImage;
55 + (id)promptForNewPersonSearchOnWindow:(NSWindow *)parentWindow initialService:(AIService *)inService;
56 - (IBAction)select:(id)sender;
57 - (IBAction)cancel:(id)sender;
58 - (IBAction)createNewPerson:(id)sender;
59 - (IBAction)addPerson:(id)sender;
61 - (id)delegate;
62 - (void)setDelegate:(id)newDelegate;
64 - (ABPerson *)selectedPerson;
65 - (NSString *)selectedScreenName;
66 - (NSString *)selectedName;
67 - (NSString *)selectedAlias;
68 - (AIService *)selectedService;
70 @end
72 //Delegate Methods
73 @interface NSObject (OWABSearchWindowControllerDelegate)
74 - (void)absearchWindowControllerDidSelectPerson:(OWABSearchWindowController *)controller;
75 @end
77 //Notifications
78 #define OWABSearchWindowControllerDidSelectPersonNotification @"OWABSearchWindowControllerDidSelectPerson"