1 |
/* Contents.h |
2 |
* |
3 |
* Copyright (C) 2003 Free Software Foundation, Inc. |
4 |
* |
5 |
* Author: Enrico Sersale <enrico@imago.ro> |
6 |
* Date: August 2001 |
7 |
* |
8 |
* This file is part of the GNUstep GWorkspace application |
9 |
* |
10 |
* This program is free software; you can redistribute it and/or modify |
11 |
* it under the terms of the GNU General Public License as published by |
12 |
* the Free Software Foundation; either version 2 of the License, or |
13 |
* (at your option) any later version. |
14 |
* |
15 |
* This program is distributed in the hope that it will be useful, |
16 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
17 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
18 |
* GNU General Public License for more details. |
19 |
* |
20 |
* You should have received a copy of the GNU General Public License |
21 |
* along with this program; if not, write to the Free Software |
22 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
23 |
*/ |
24 |
|
25 |
|
26 |
#ifndef CONTENTS_H |
27 |
#define CONTENTS_H |
28 |
|
29 |
#include <Foundation/Foundation.h> |
30 |
#ifdef GNUSTEP |
31 |
#include "InspectorsProtocol.h" |
32 |
#else |
33 |
#include <GWorkspace/InspectorsProtocol.h> |
34 |
#endif |
35 |
|
36 |
@class NSWiew; |
37 |
@class NSTextField; |
38 |
@class GWorkspace; |
39 |
@class NSFileManager; |
40 |
@class NSWorkspace; |
41 |
|
42 |
@interface Contents : NSObject <InspectorsProtocol> |
43 |
{ |
44 |
IBOutlet id win; |
45 |
IBOutlet id inspBox; |
46 |
|
47 |
IBOutlet id vwrsBox; |
48 |
|
49 |
IBOutlet id revertButt; |
50 |
IBOutlet id okButt; |
51 |
|
52 |
NSMutableArray *searchPaths; |
53 |
NSArray *insppaths; |
54 |
NSString *currentPath; |
55 |
int pathscount; |
56 |
NSView *noContsView; |
57 |
NSView *genericView; |
58 |
NSTextField *genericField; |
59 |
|
60 |
NSMutableArray *viewers; |
61 |
id currentViewer; |
62 |
NSFileManager *fm; |
63 |
NSWorkspace *ws; |
64 |
NSString *winName; |
65 |
} |
66 |
|
67 |
- (NSMutableArray *)bundlesWithExtension:(NSString *)extension |
68 |
inPath:(NSString *)path; |
69 |
|
70 |
- (void)addViewer:(id)vwr; |
71 |
|
72 |
- (void)removeViewer:(id)vwr; |
73 |
|
74 |
- (void)watcherNotification:(NSNotification *)notification; |
75 |
|
76 |
- (id)viewerWithBundlePath:(NSString *)path; |
77 |
|
78 |
- (id)viewerForFileAtPath:(NSString *)path; |
79 |
|
80 |
- (IBAction)doNothing:(id)sender; |
81 |
|
82 |
@end |
83 |
|
84 |
#endif // CONTENTS_H |