Prevent dragging groups into groups. Fixes #8706
[adiumx.git] / Source / AIInterfaceController.h
blobe8e35daab2961e072dec3c880b63947674058f50
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/AIInterfaceControllerProtocol.h>
18 #import <Adium/AIAdiumProtocol.h>
20 @class AIMenuController, AIChat, AIListObject;
22 @interface AIInterfaceController : NSObject <AIInterfaceController> {
23 IBOutlet NSObject<AIAdium> *adium;
25 IBOutlet NSMenuItem *menuItem_close;
26 IBOutlet NSMenuItem *menuItem_closeChat;
27 IBOutlet NSMenuItem *menuItem_closeAllChats;
29 IBOutlet NSMenuItem *menuItem_paste;
30 IBOutlet NSMenuItem *menuItem_pasteWithImagesAndColors;
31 IBOutlet NSMenuItem *menuItem_pasteAndMatchStyle;
33 IBOutlet NSMenuItem *menuItem_showFonts;
34 IBOutlet NSMenuItem *menuItem_bold;
35 IBOutlet NSMenuItem *menuItem_italic;
37 IBOutlet NSMenuItem *menuItem_showToolbar;
38 IBOutlet NSMenuItem *menuItem_customizeToolbar;
40 IBOutlet NSMenuItem *menuItem_print;
42 NSMutableArray *contactListViewArray;
43 NSMutableArray *messageViewArray;
44 NSMutableArray *interfaceArray;
45 NSMutableArray *contactListTooltipEntryArray;
46 NSMutableArray *contactListTooltipSecondaryEntryArray;
47 float maxLabelWidth;
50 NSMutableArray *flashObserverArray;
51 NSTimer *flashTimer;
52 int flashState;
53 AIListObject *tooltipListObject;
54 NSMutableAttributedString *tooltipBody;
55 NSMutableAttributedString *tooltipTitle;
56 NSImage *tooltipImage;
59 NSString *errorTitle;
60 NSString *errorDesc;
62 BOOL closeMenuConfiguredForChat;
64 NSArray *_cachedOpenChats;
66 NSMutableArray *windowMenuArray;
68 AIChat *activeChat;
69 AIChat *mostRecentActiveChat;
71 BOOL tabbedChatting;
73 id <AIInterfaceComponent> interfacePlugin;
74 id <AIMultiContactListComponent> contactListPlugin;
76 BOOL groupChatsByContactGroup;
78 NSMenuItem *menuItem_toggleUserlist;
80 IBOutlet NSView *fontPanelAccessoryView;
81 IBOutlet NSButton *button_fontPanelSetAsDefault;
84 - (IBAction)toggleContactList:(id)sender;
85 - (IBAction)showContactListAndBringToFront:(id)sender;
87 - (IBAction)closeMenu:(id)sender;
88 - (IBAction)closeChatMenu:(id)sender;
89 - (IBAction)closeAllChats:(id)sender;
91 - (IBAction)paste:(id)sender;
92 - (IBAction)pasteAndMatchStyle:(id)sender;
93 - (IBAction)pasteWithImagesAndColors:(id)sender;
95 - (IBAction)adiumPrint:(id)sender;
97 - (IBAction)toggleFontPanel:(id)sender;
98 - (IBAction)setFontPanelSettingsAsDefaultFont:(id)sender;
100 - (IBAction)toggleFontTrait:(id)sender;
101 - (void)toggleToolbarShown:(id)sender;
102 - (void)runToolbarCustomizationPalette:(id)sender;
104 - (IBAction)showPreferenceWindow:(id)sender;
106 @end