* Adium is the legal property of its developers, whose names are listed in the copyright file included * with this source distribution. * This program is free software; you can redistribute it and/or modify it under the terms of the GNU * General Public License as published by the Free Software Foundation; either version 2 of the License, * or (at your option) any later version. * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General * Public License for more details. * You should have received a copy of the GNU General Public License along with this program; if not, * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #import <Adium/AIWindowController.h> #define AIMessageWindow_ControllersChanged @"AIMessageWindow_ControllersChanged" #define AIMessageWindow_ControllerOrderChanged @"AIMessageWindow_ControllerOrderChanged" #define AIMessageWindow_SelectedControllerChanged @"AIMessageWindow_SelectedControllerChanged" AdiumTabPositionBottom = 0, @class AIMessageSendingTextView,
AIMessageTabViewItem,
AIMessageViewController,
AIDualWindowInterfacePlugin,
AIMessageTabSplitView;
@class PSMTabBarControl,
PSMAdiumTabStyle;
@protocol AIFlexibleToolbarItemDelegate;
@interface AIMessageWindowController :
AIWindowController <NSToolbarDelegate, NSSplitViewDelegate> { IBOutlet NSTabView *tabView_messages; IBOutlet PSMTabBarControl *tabView_tabBar; PSMAdiumTabStyle *tabView_tabStyle; AIMessageTabSplitView *tabView_splitView; AIDualWindowInterfacePlugin *interface; BOOL alwaysShowTabs; //YES if the tabs should always be visible, even if there is only 1 AdiumTabPosition tabPosition; NSDictionary *toolbarItems; NSMutableArray *m_containedChats; BOOL toolbar_selectedTabChanged; + (AIMessageWindowController *)messageWindowControllerForInterface:(AIDualWindowInterfacePlugin *)inInterface withID:(NSString *)inContainerID - (IBAction)closeWindow:(id)sender; @property (readonly, nonatomic) NSString *containerID; @property (readonly, nonatomic) PSMTabBarControl *tabBar; @property (readonly, nonatomic) AdiumTabPosition tabPosition; @property (readonly, nonatomic) NSString *name; @property (readonly, nonatomic) AIChat *activeChat; * @brief Get an array of all the chats within this window controller's window. @property (readonly, nonatomic) NSArray *containedChats; @property (readonly, nonatomic) NSWindow *window; - (void)addTabViewItem:(AIMessageTabViewItem *)inTabViewItem; - (void)addTabViewItem:(AIMessageTabViewItem *)inTabViewItem atIndex:(NSInteger)index silent:(BOOL)silent; - (void)removeTabViewItem:(AIMessageTabViewItem *)inTabViewItem silent:(BOOL)silent; - (void)moveTabViewItem:(AIMessageTabViewItem *)inTabViewItem toIndex:(NSInteger)index; @property (readonly, nonatomic) BOOL containerIsEmpty; - (void)updateIconForTabViewItem:(AIMessageTabViewItem *)tabViewItem; -(void)removeToolbarItemWithIdentifier:(NSString*)identifier;