2 * Adium is the legal property of its developers, whose names are listed in the copyright file included
3 * with this source distribution.
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.
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/AIMenuControllerProtocol.h>
19 @
class AIListObject
, AIChat
;
22 @interface AIMenuController
: NSObject
<AIMenuController
> {
23 IBOutlet NSObject
<AIAdium
> *adium
;
24 int menuItemProcessingDelays
;
26 IBOutlet id nilMenuItem
;
27 IBOutlet id menu_Adium_About
;
28 IBOutlet id menu_Adium_Preferences
;
29 IBOutlet id menu_Adium_Other
;
30 IBOutlet id menu_File_New
;
31 IBOutlet id menu_File_Close
;
32 IBOutlet id menu_File_Save
;
33 IBOutlet id menu_File_Accounts
;
34 IBOutlet id menu_File_Additions
;
35 IBOutlet id menu_Edit_Bottom
;
36 IBOutlet id menu_Edit_Links
;
37 IBOutlet id menu_Edit_Additions
;
38 IBOutlet id menu_View_General
;
39 IBOutlet id menu_View_Sorting
;
40 IBOutlet id menu_View_Toggles
;
41 IBOutlet id menu_View_Appearance_Toggles
;
42 IBOutlet id menu_View_Additions
;
43 IBOutlet id menu_Status_State
;
44 IBOutlet id menu_Status_Accounts
;
45 IBOutlet id menu_Status_Additions
;
46 IBOutlet id menu_Format_Styles
;
47 IBOutlet id menu_Format_Palettes
;
48 IBOutlet id menu_Format_Additions
;
49 IBOutlet id menu_Window_Top
;
50 IBOutlet id menu_Window_Commands
;
51 IBOutlet id menu_Window_Auxiliary
;
52 IBOutlet id menu_Window_Fixed
;
53 IBOutlet id menu_Help_Local
;
54 IBOutlet id menu_Help_Web
;
55 IBOutlet id menu_Help_Additions
;
56 IBOutlet id menu_Contact_Manage
;
57 IBOutlet id menu_Contact_Info
;
58 IBOutlet id menu_Contact_Action
;
59 IBOutlet id menu_Contact_NegativeAction
;
60 IBOutlet id menu_Contact_Additions
;
61 IBOutlet id menu_Dock_Status
;
62 IBOutlet id menuItem_Format_Italics
;
64 //Menu items below this point are connected in MainMenu.nib for localization purposes
65 IBOutlet NSMenuItem
*menuItem_file
;
66 IBOutlet NSMenuItem
*menuItem_edit
;
67 IBOutlet NSMenuItem
*menuItem_view
;
68 IBOutlet NSMenuItem
*menuItem_status
;
69 IBOutlet NSMenuItem
*menuItem_contact
;
70 IBOutlet NSMenuItem
*menuItem_format
;
71 IBOutlet NSMenuItem
*menuItem_window
;
72 IBOutlet NSMenuItem
*menuItem_help
;
75 IBOutlet NSMenuItem
*menuItem_aboutAdium
;
76 IBOutlet NSMenuItem
*menuItem_adiumXtras
;
77 IBOutlet NSMenuItem
*menuItem_checkForUpdates
;
78 IBOutlet NSMenuItem
*menuItem_preferences
;
79 IBOutlet NSMenuItem
*menuItem_donate
;
80 IBOutlet NSMenuItem
*menuItem_helpOut
;
81 IBOutlet NSMenuItem
*menuItem_services
;
82 IBOutlet NSMenuItem
*menuItem_hideAdium
;
83 IBOutlet NSMenuItem
*menuItem_hideOthers
;
84 IBOutlet NSMenuItem
*menuItem_showAll
;
85 IBOutlet NSMenuItem
*menuItem_quitAdium
;
88 IBOutlet NSMenuItem
*menuItem_close
;
89 IBOutlet NSMenuItem
*menuItem_closeChat
;
90 IBOutlet NSMenuItem
*menuItem_closeAllChats
;
91 IBOutlet NSMenuItem
*menuItem_saveAs
;
92 IBOutlet NSMenuItem
*menuItem_pageSetup
;
93 IBOutlet NSMenuItem
*menuItem_print
;
96 IBOutlet NSMenuItem
*menuItem_cut
;
97 IBOutlet NSMenuItem
*menuItem_copy
;
98 IBOutlet NSMenuItem
*menuItem_paste
;
99 IBOutlet NSMenuItem
*menuItem_pasteWithImagesAndColors
;
100 IBOutlet NSMenuItem
*menuItem_pasteAndMatchStyle
;
101 IBOutlet NSMenuItem
*menuItem_clear
;
102 IBOutlet NSMenuItem
*menuItem_selectAll
;
104 IBOutlet NSMenuItem
*menuItem_find
;
105 IBOutlet NSMenuItem
*menuItem_findCommand
;
106 IBOutlet NSMenuItem
*menuItem_findNext
;
107 IBOutlet NSMenuItem
*menuItem_findPrevious
;
108 IBOutlet NSMenuItem
*menuItem_findUseSelectionForFind
;
109 IBOutlet NSMenuItem
*menuItem_findJumpToSelection
;
111 IBOutlet NSMenuItem
*menuItem_spelling
;
112 IBOutlet NSMenuItem
*menuItem_spellingCommand
;
113 IBOutlet NSMenuItem
*menuItem_spellingCheckSpelling
;
114 IBOutlet NSMenuItem
*menuItem_spellingCheckSpellingAsYouType
;
116 IBOutlet NSMenuItem
*menuItem_speech
;
117 IBOutlet NSMenuItem
*menuItem_startSpeaking
;
118 IBOutlet NSMenuItem
*menuItem_stopSpeaking
;
121 IBOutlet NSMenuItem
*menuItem_customizeToolbar
;
124 IBOutlet NSMenuItem
*menuItem_bold
;
125 IBOutlet NSMenuItem
*menuItem_italic
;
126 IBOutlet NSMenuItem
*menuItem_underline
;
127 IBOutlet NSMenuItem
*menuItem_showFonts
;
128 IBOutlet NSMenuItem
*menuItem_showColors
;
129 IBOutlet NSMenuItem
*menuItem_copyStyle
;
130 IBOutlet NSMenuItem
*menuItem_pasteStyle
;
131 IBOutlet NSMenuItem
*menuItem_writingDirection
;
132 IBOutlet NSMenuItem
*menuItem_rightToLeft
;
135 IBOutlet NSMenuItem
*menuItem_minimize
;
136 IBOutlet NSMenuItem
*menuItem_bringAllToFront
;
139 IBOutlet NSMenuItem
*menuItem_adiumHelp
;
140 IBOutlet NSMenuItem
*menuItem_reportABug
;
141 IBOutlet NSMenuItem
*menuItem_sendFeedback
;
142 IBOutlet NSMenuItem
*menuItem_adiumForums
;
144 NSMenu
*contextualMenu
;
145 NSMutableDictionary
*contextualMenuItemDict
;
146 AIListObject
*currentContextMenuObject
;
147 AIChat
*currentContextMenuChat
;
149 NSMenu
*textViewContextualMenu
;
150 NSTextView
*contextualMenu_TextView
;
152 NSMutableArray
*locationArray
;