2 // OWABSearchWindowController.h
5 // Created by Ofri Wolfus on 19/07/05.
6 // Copyright 2006 The Adium Team. All rights reserved.
9 #import <Adium/AIWindowController.h>
11 @
class AILocalizationButton
, ABPeoplePickerView
, AIService
, ABPerson
, AIImageViewWithImagePicker
;
13 @interface OWABSearchWindowController
: AIWindowController
{
15 IBOutlet ABPeoplePickerView
*peoplePicker
;
17 IBOutlet AILocalizationButton
*selectButton
;
18 IBOutlet AILocalizationButton
*cancelButton
;
19 IBOutlet AILocalizationButton
*newPersonButton
;
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
;
47 NSWindow
*carryingWindow
;
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
;
62 - (void)setDelegate
:(id
)newDelegate
;
64 - (ABPerson
*)selectedPerson
;
65 - (NSString
*)selectedScreenName
;
66 - (NSString
*)selectedName
;
67 - (NSString
*)selectedAlias
;
68 - (AIService
*)selectedService
;
73 @interface
NSObject (OWABSearchWindowControllerDelegate
)
74 - (void)absearchWindowControllerDidSelectPerson
:(OWABSearchWindowController
*)controller
;
78 #define OWABSearchWindowControllerDidSelectPersonNotification @"OWABSearchWindowControllerDidSelectPerson"