27 |
#include <AppKit/AppKit.h> |
#include <AppKit/AppKit.h> |
28 |
#include <math.h> |
#include <math.h> |
29 |
#ifdef GNUSTEP |
#ifdef GNUSTEP |
30 |
|
#include "GWLib.h" |
31 |
#include "GWProtocol.h" |
#include "GWProtocol.h" |
32 |
#include "GWFunctions.h" |
#include "GWFunctions.h" |
33 |
#include "GWNotifications.h" |
#include "GWNotifications.h" |
34 |
#include "BNameEditor.h" |
#include "BNameEditor.h" |
35 |
#else |
#else |
36 |
|
#include <GWorkspace/GWLib.h> |
37 |
#include <GWorkspace/GWProtocol.h> |
#include <GWorkspace/GWProtocol.h> |
38 |
#include <GWorkspace/GWFunctions.h> |
#include <GWorkspace/GWFunctions.h> |
39 |
#include <GWorkspace/GWNotifications.h> |
#include <GWorkspace/GWNotifications.h> |
41 |
#endif |
#endif |
42 |
#include "IconsPath.h" |
#include "IconsPath.h" |
43 |
#include "PathIcon.h" |
#include "PathIcon.h" |
44 |
#include "GNUstep.h" |
#include "GNUstep.h" |
45 |
|
|
46 |
#define LABEL_MARGIN 8 |
#define LABEL_MARGIN 8 |
47 |
#define EDIT_MARGIN 4 |
#define EDIT_MARGIN 4 |
73 |
self = [super init]; |
self = [super init]; |
74 |
|
|
75 |
if (self) { |
if (self) { |
|
#ifdef GNUSTEP |
|
|
Class gwclass = [[NSBundle mainBundle] principalClass]; |
|
|
#else |
|
|
Class gwclass = [[NSBundle mainBundle] classNamed: @"GWorkspace"]; |
|
|
#endif |
|
|
|
|
|
gworkspace = (id<GWProtocol>)[gwclass gworkspace]; |
|
76 |
ASSIGN (root, rpath); |
ASSIGN (root, rpath); |
77 |
columnsWidth = cwidth; |
columnsWidth = cwidth; |
78 |
[self setDelegate: adelegate]; |
[self setDelegate: adelegate]; |