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. |
---|
12 | * |
---|
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. |
---|
15 | */ |
---|
16 | |
---|
17 | #import <Adium/AIWindowController.h> |
---|
18 | #import <Adium/AIStatus.h> |
---|
19 | |
---|
20 | @class AIAccount, AITextViewWithPlaceholder, AIService, AIAutoScrollView, AISendingTextView; |
---|
21 | |
---|
22 | @interface AIEditStateWindowController : AIWindowController { |
---|
23 | IBOutlet NSBox *box_title; |
---|
24 | IBOutlet NSTextField *label_title; |
---|
25 | IBOutlet NSTextField *textField_title; |
---|
26 | |
---|
27 | IBOutlet NSBox *box_separatorLine; |
---|
28 | |
---|
29 | IBOutlet NSBox *box_state; |
---|
30 | IBOutlet NSTextField *label_state; |
---|
31 | IBOutlet NSPopUpButton *popUp_state; |
---|
32 | BOOL needToRebuildPopUpState; |
---|
33 | |
---|
34 | IBOutlet NSTextField *label_statusMessage; |
---|
35 | IBOutlet NSBox *box_statusMessage; |
---|
36 | IBOutlet AISendingTextView *textView_statusMessage; |
---|
37 | IBOutlet AIAutoScrollView *scrollView_statusMessage; |
---|
38 | |
---|
39 | IBOutlet NSButton *checkbox_autoReply; |
---|
40 | IBOutlet NSButton *checkbox_customAutoReply; |
---|
41 | IBOutlet AISendingTextView *textView_autoReply; |
---|
42 | IBOutlet AIAutoScrollView *scrollView_autoReply; |
---|
43 | |
---|
44 | IBOutlet NSButton *checkbox_idle; |
---|
45 | IBOutlet NSBox *box_idle; |
---|
46 | IBOutlet NSTextField *textField_idleMinutes; |
---|
47 | IBOutlet NSStepper *stepper_idleMinutes; |
---|
48 | IBOutlet NSTextField *textField_idleHours; |
---|
49 | IBOutlet NSStepper *stepper_idleHours; |
---|
50 | |
---|
51 | IBOutlet NSButton *checkBox_save; |
---|
52 | IBOutlet NSButton *checkBox_muteSounds; |
---|
53 | IBOutlet NSButton *checkBox_silenceGrowl; |
---|
54 | IBOutlet NSButton *checkBox_okay; |
---|
55 | IBOutlet NSButton *checkBox_cancel; |
---|
56 | |
---|
57 | AIStatus *originalStatusState; |
---|
58 | AIStatus *workingStatusState; |
---|
59 | AIAccount *account; |
---|
60 | |
---|
61 | id target; |
---|
62 | |
---|
63 | BOOL showSaveCheckbox; |
---|
64 | } |
---|
65 | |
---|
66 | + (id)editCustomState:(AIStatus *)inStatusState forType:(AIStatusType)inStatusType andAccount:(AIAccount *)inAccount withSaveOption:(BOOL)allowSave onWindow:(id)parentWindow notifyingTarget:(id)inTarget; |
---|
67 | |
---|
68 | - (IBAction)cancel:(id)sender; |
---|
69 | - (IBAction)okay:(id)sender; |
---|
70 | - (IBAction)statusControlChanged:(id)sender; |
---|
71 | - (void)updateControlVisibilityAndResizeWindow; |
---|
72 | |
---|
73 | - (void)configureForState:(AIStatus *)state; |
---|
74 | - (AIStatus *)currentConfiguration; |
---|
75 | |
---|
76 | @end |
---|
77 | |
---|
78 | @interface NSObject (AICustomStatusWindowTarget) |
---|
79 | - (void)customStatusState:(AIStatus *)originalState changedTo:(AIStatus *)newState forAccount:(AIAccount *)account; |
---|
80 | @end |
---|