2000-08-27 19:11:42 +00:00
|
|
|
/*
|
2006-12-26 10:58:39 +00:00
|
|
|
GNUstep ProjectCenter - http://www.gnustep.org/experience/ProjectCenter.html
|
2000-08-27 19:11:42 +00:00
|
|
|
|
2004-06-15 20:41:49 +00:00
|
|
|
Copyright (C) 2000-2004 Free Software Foundation
|
2000-08-27 19:11:42 +00:00
|
|
|
|
2004-06-12 19:23:26 +00:00
|
|
|
Authors: Philippe C.D. Robert
|
|
|
|
Serg Stoyan
|
2000-08-27 19:11:42 +00:00
|
|
|
|
2001-08-03 14:23:25 +00:00
|
|
|
This file is part of GNUstep.
|
2000-08-27 19:11:42 +00:00
|
|
|
|
|
|
|
This application 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 application 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
|
|
|
|
Library General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public
|
|
|
|
License along with this library; if not, write to the Free
|
|
|
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
|
|
|
|
*/
|
|
|
|
|
2006-12-26 10:58:39 +00:00
|
|
|
#ifndef _PCProjectBrowser_h_
|
|
|
|
#define _PCProjectBrowser_h_
|
2002-02-02 21:12:49 +00:00
|
|
|
|
2008-12-30 13:47:27 +00:00
|
|
|
#import <AppKit/AppKit.h>
|
2000-08-27 19:11:42 +00:00
|
|
|
|
2003-06-20 14:52:19 +00:00
|
|
|
extern NSString *PCBrowserDidSetPathNotification;
|
|
|
|
|
2000-08-27 19:11:42 +00:00
|
|
|
@class PCProject;
|
|
|
|
|
2004-06-11 13:43:02 +00:00
|
|
|
@interface PCProjectBrowser : NSObject
|
2000-08-27 19:11:42 +00:00
|
|
|
{
|
|
|
|
PCProject *project;
|
2004-06-11 13:43:02 +00:00
|
|
|
NSBrowser *browser;
|
2000-08-27 19:11:42 +00:00
|
|
|
}
|
|
|
|
|
2004-06-11 13:43:02 +00:00
|
|
|
// ============================================================================
|
|
|
|
// ==== Intialization & deallocation
|
|
|
|
// ============================================================================
|
2000-08-27 19:11:42 +00:00
|
|
|
|
2004-06-11 13:43:02 +00:00
|
|
|
- (id)initWithProject:(PCProject *)aProject;
|
|
|
|
- (void)dealloc;
|
2000-08-27 19:11:42 +00:00
|
|
|
|
2004-06-11 13:43:02 +00:00
|
|
|
// ============================================================================
|
|
|
|
// ==== Accessory methods
|
|
|
|
// ============================================================================
|
|
|
|
- (NSView *)view;
|
2002-02-21 10:05:42 +00:00
|
|
|
|
2006-12-26 10:58:39 +00:00
|
|
|
// Returns nil if multiple files selected
|
2004-06-11 13:43:02 +00:00
|
|
|
- (NSString *)nameOfSelectedFile;
|
|
|
|
- (NSString *)pathToSelectedFile;
|
2006-12-26 10:58:39 +00:00
|
|
|
|
|
|
|
// Returns nil if multiple categories selected
|
2004-06-11 13:43:02 +00:00
|
|
|
- (NSString *)nameOfSelectedCategory;
|
|
|
|
- (NSString *)pathToSelectedCategory;
|
2006-12-26 10:58:39 +00:00
|
|
|
- (NSString *)pathFromSelectedCategory;
|
|
|
|
|
2004-06-11 13:43:02 +00:00
|
|
|
- (NSString *)nameOfSelectedRootCategory;
|
2000-08-27 19:11:42 +00:00
|
|
|
|
2006-12-26 10:58:39 +00:00
|
|
|
// Returns nil if multiple category selected
|
2003-05-16 14:06:51 +00:00
|
|
|
- (NSArray *)selectedFiles;
|
2000-08-27 19:11:42 +00:00
|
|
|
|
2004-06-11 13:43:02 +00:00
|
|
|
- (NSString *)path;
|
|
|
|
- (BOOL)setPath:(NSString *)path;
|
2004-06-19 21:55:29 +00:00
|
|
|
- (void)reloadLastColumnAndNotify:(BOOL)yn;
|
|
|
|
- (void)reloadLastColumnAndSelectFile:(NSString *)file;
|
2004-06-11 13:43:02 +00:00
|
|
|
|
|
|
|
// ============================================================================
|
|
|
|
// ==== Actions
|
|
|
|
// ============================================================================
|
|
|
|
- (void)click:(id)sender;
|
|
|
|
- (void)doubleClick:(id)sender;
|
|
|
|
|
|
|
|
// ============================================================================
|
|
|
|
// ==== Notifications
|
|
|
|
// ============================================================================
|
|
|
|
- (void)projectDictDidChange:(NSNotification *)aNotif;
|
2000-08-27 19:11:42 +00:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
2004-06-11 13:43:02 +00:00
|
|
|
@interface PCProjectBrowser (ProjectBrowserDelegate)
|
2000-08-27 19:11:42 +00:00
|
|
|
|
2013-02-10 18:34:12 +00:00
|
|
|
- (void)browser:(NSBrowser *)sender createRowsForColumn:(NSInteger)column
|
2004-06-11 13:43:02 +00:00
|
|
|
inMatrix:(NSMatrix *)matrix;
|
2000-08-27 19:11:42 +00:00
|
|
|
|
|
|
|
@end
|
2002-02-02 21:12:49 +00:00
|
|
|
|
|
|
|
#endif
|