| 1 |
// |
| 2 |
// NSWindowControllerAdditions.h |
| 3 |
// |
| 4 |
// Created by Toshi Nagata on Mon Nov 08 2004. |
| 5 |
// |
| 6 |
/* |
| 7 |
Copyright (c) 2004-2011 Toshi Nagata. All rights reserved. |
| 8 |
|
| 9 |
This program is free software; you can redistribute it and/or modify |
| 10 |
it under the terms of the GNU General Public License as published by |
| 11 |
the Free Software Foundation version 2 of the License. |
| 12 |
|
| 13 |
This program is distributed in the hope that it will be useful, |
| 14 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 |
GNU General Public License for more details. |
| 17 |
*/ |
| 18 |
|
| 19 |
#import <Cocoa/Cocoa.h> |
| 20 |
|
| 21 |
extern NSString *gTrackWindowType; |
| 22 |
extern NSString *gGraphicWindowType; |
| 23 |
extern NSString *gListWindowType; |
| 24 |
|
| 25 |
@interface NSWindowController (MyWindowControllerAddition) |
| 26 |
+ (BOOL)canContainMultipleTracks; |
| 27 |
+ (Class)classForWindowType: (NSString *)windowType; |
| 28 |
- (NSMutableDictionary *)encodeWindow; |
| 29 |
- (void)decodeWindowWithDictionary: (NSDictionary *)dictionary; |
| 30 |
- (NSString *)windowType; |
| 31 |
- (BOOL)containsTrack: (int)trackNum; |
| 32 |
- (void)addTrack: (int)trackNum; |
| 33 |
- (void)setFocusFlag: (BOOL) flag onTrack: (int)trackNum extending: (BOOL)extendFlag; |
| 34 |
- (BOOL)isFocusTrack: (int)trackNum; |
| 35 |
- (void)reloadSelection; |
| 36 |
+ (NSLayoutManager *)sharedLayoutManager; |
| 37 |
@end |
| 38 |
|
| 39 |
@interface NSWindowController (viewWithTag) |
| 40 |
- (id)viewWithTag: (NSInteger)tag; |
| 41 |
@end |