/*************************************************************************** TabMasterController.h ------------------- begin : Mon Jan 19 11:59:32 CST 2004 copyright : (C) 2005 by Andrew Ruder email : aeruder@ksu.edu ***************************************************************************/ /*************************************************************************** * * * 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. * * * ***************************************************************************/ @class TabMasterController; #ifndef TAB_MASTER_CONTROLLER_H #define TAB_MASTER_CONTROLLER_H #import "Controllers/ContentControllers/ContentController.h" #import #import @class NSTextField, NSTabView, NSWindow, NSMutableArray; @class NSAttributedString, NSCountedSet, FocusNotificationTextView; @interface TabMasterController : NSObject < MasterController > { NSMutableArray *indexToViewController; NSMapTable *viewControllerToIndex; NSMapTable *viewControllerToTab; NSMapTable *viewControllerToContent; NSMapTable *tabToViewController; NSCountedSet *contentControllers; id selectedController; id typingController; FocusNotificationTextView *typeView; NSTextField *nickView; NSTabView *tabView; NSWindow *window; unsigned numItems; } - (void)addViewController: (id )aController withLabel: (NSAttributedString *)aLabel forContentController: (id )aContentController; - (void)addViewController: (id )aController withLabel: (NSAttributedString *)aLabel atIndex: (unsigned)aIndex forContentController: (id )aContentController; - (void)selectViewController: (id )aController; - (void)selectViewControllerAtIndex: (unsigned)aIndex; - (id )selectedViewController; - (void)removeViewController: (id )aController; - (void)removeViewControllerAtIndex: (unsigned)aIndex; - (void)moveViewController: (id )aController toIndex: (unsigned)aIndex; - (void)moveViewControllerAtIndex: (unsigned)aIndex toIndex: (unsigned)aNewIndex; - (unsigned)indexForViewController: (id )aController; - (unsigned)count; - (NSAttributedString *)labelForViewController: (id )aController; - (void)setLabel: (NSAttributedString *)aLabel forViewController: (id )aController; - (NSArray *)containedContentControllers; - (NSArray *)viewControllerListForContentController: (id )aContentController; - (NSArray *)allViewControllers; - (KeyTextView *)typeView; - (NSTextField *)nickView; - (void)bringToFront; - (NSWindow *)window; @end #endif