1 /* HiddenFilesPref.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., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
23  */
24 
25 #ifndef HIDDEN_FILES_PREF_H
26 #define HIDDEN_FILES_PREF_H
27 
28 #include <Foundation/Foundation.h>
29 #include "PrefProtocol.h"
30 
31 @class NSFileManager;
32 @class NSWorkspace;
33 @class GWorkspace;
34 @class FSNode;
35 
36 @interface HiddenFilesPref : NSObject <PrefProtocol>
37 {
38   IBOutlet id win;
39   IBOutlet id prefbox;
40 
41   IBOutlet id tabView;
42 
43   IBOutlet id iconView;
44   IBOutlet id pathField;
45 
46   IBOutlet id hiddenlabel;
47   IBOutlet id leftScroll;
48   IBOutlet id shownlabel;
49   IBOutlet id rightScroll;
50 
51   IBOutlet id addButt;
52   IBOutlet id removeButt;
53   IBOutlet id loadButt;
54 
55   IBOutlet id labelinfo;
56 
57   IBOutlet id setButt;
58 
59   NSMatrix *leftMatrix, *rightMatrix;
60   id cellPrototipe;
61 
62   FSNode *currentNode;
63 
64   IBOutlet id hiddenDirslabel;
65   IBOutlet id hiddenDirsScroll;
66   NSMatrix *dirsMatrix;
67   IBOutlet id addDirButt;
68   IBOutlet id removeDirButt;
69   IBOutlet id setDirButt;
70 
71   NSMutableArray *hiddenPaths;
72 
73 	NSFileManager *fm;
74   NSWorkspace *ws;
75   GWorkspace *gw;
76 }
77 
78 - (IBAction)loadContents:(id)sender;
79 
80 - (IBAction)moveToHidden:(id)sender;
81 
82 - (IBAction)moveToShown:(id)sender;
83 
84 - (IBAction)activateChanges:(id)sender;
85 
86 - (IBAction)addDir:(id)sender;
87 
88 - (IBAction)removeDir:(id)sender;
89 
90 - (IBAction)activateDirChanges:(id)sender;
91 
92 - (void)selectionChanged:(NSNotification *)n;
93 
94 - (void)clearAll;
95 
96 - (void)addCellsWithNames:(NSArray *)names inMatrix:(NSMatrix *)matrix;
97 
98 - (void)removeCellsWithNames:(NSArray *)names inMatrix:(NSMatrix *)matrix;
99 
100 - (void)selectCellsWithNames:(NSArray *)names inMatrix:(NSMatrix *)matrix;
101 
102 - (id)cellWithTitle:(NSString *)title inMatrix:(NSMatrix *)matrix;
103 
104 @end
105 
106 #endif // HIDDEN_FILES_PREF_H
107