mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-02-19 01:51:09 +00:00
Finishing moving files from ProjectCenter subdir
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@16665 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9b1fe5d511
commit
b4e56ad563
24 changed files with 876 additions and 3983 deletions
876
ProjectCenter.pbproj/project.pbxproj
Normal file
876
ProjectCenter.pbproj/project.pbxproj
Normal file
|
@ -0,0 +1,876 @@
|
|||
// !$*UTF8*$!
|
||||
{
|
||||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 38;
|
||||
objects = {
|
||||
080E96DDFE201D6D7F000001 = {
|
||||
children = (
|
||||
F58C0B040391055801000102,
|
||||
F58C0B050391055801000102,
|
||||
F58C0B060391055801000102,
|
||||
F58C0B070391055801000102,
|
||||
F58C0B080391055801000102,
|
||||
F58C0B090391055801000102,
|
||||
F58C0B0A0391055801000102,
|
||||
F58C0B0B0391055801000102,
|
||||
F58C0B0C0391055801000102,
|
||||
F58C0B0D0391055801000102,
|
||||
F58C0B0E0391055801000102,
|
||||
F58C0B0F0391055801000102,
|
||||
F58C0B100391055801000102,
|
||||
F58C0B110391055801000102,
|
||||
F58C0B120391055801000102,
|
||||
);
|
||||
isa = PBXGroup;
|
||||
name = Classes;
|
||||
refType = 4;
|
||||
};
|
||||
089C165CFE840E0CC02AAC07 = {
|
||||
children = (
|
||||
089C165DFE840E0CC02AAC07,
|
||||
);
|
||||
isa = PBXVariantGroup;
|
||||
name = InfoPlist.strings;
|
||||
refType = 4;
|
||||
};
|
||||
089C165DFE840E0CC02AAC07 = {
|
||||
fileEncoding = 10;
|
||||
isa = PBXFileReference;
|
||||
name = English;
|
||||
path = English.lproj/InfoPlist.strings;
|
||||
refType = 4;
|
||||
};
|
||||
089C165EFE840E0CC02AAC07 = {
|
||||
fileRef = 089C165CFE840E0CC02AAC07;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
//080
|
||||
//081
|
||||
//082
|
||||
//083
|
||||
//084
|
||||
//100
|
||||
//101
|
||||
//102
|
||||
//103
|
||||
//104
|
||||
1058C7A0FEA54F0111CA2CBB = {
|
||||
children = (
|
||||
1058C7A1FEA54F0111CA2CBB,
|
||||
F58C0B22039105D001000102,
|
||||
);
|
||||
isa = PBXGroup;
|
||||
name = "Linked Frameworks";
|
||||
refType = 4;
|
||||
};
|
||||
1058C7A1FEA54F0111CA2CBB = {
|
||||
isa = PBXFrameworkReference;
|
||||
name = Cocoa.framework;
|
||||
path = /System/Library/Frameworks/Cocoa.framework;
|
||||
refType = 0;
|
||||
};
|
||||
1058C7A2FEA54F0111CA2CBB = {
|
||||
children = (
|
||||
29B97325FDCFA39411CA2CEA,
|
||||
29B97324FDCFA39411CA2CEA,
|
||||
);
|
||||
isa = PBXGroup;
|
||||
name = "Other Frameworks";
|
||||
refType = 4;
|
||||
};
|
||||
1058C7A3FEA54F0111CA2CBB = {
|
||||
fileRef = 1058C7A1FEA54F0111CA2CBB;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
//100
|
||||
//101
|
||||
//102
|
||||
//103
|
||||
//104
|
||||
//170
|
||||
//171
|
||||
//172
|
||||
//173
|
||||
//174
|
||||
17587328FF379C6511CA2CBB = {
|
||||
isa = PBXApplicationReference;
|
||||
path = ProjectCenter.app;
|
||||
refType = 3;
|
||||
};
|
||||
//170
|
||||
//171
|
||||
//172
|
||||
//173
|
||||
//174
|
||||
//190
|
||||
//191
|
||||
//192
|
||||
//193
|
||||
//194
|
||||
19C28FACFE9D520D11CA2CBB = {
|
||||
children = (
|
||||
17587328FF379C6511CA2CBB,
|
||||
);
|
||||
isa = PBXGroup;
|
||||
name = Products;
|
||||
refType = 4;
|
||||
};
|
||||
//190
|
||||
//191
|
||||
//192
|
||||
//193
|
||||
//194
|
||||
//290
|
||||
//291
|
||||
//292
|
||||
//293
|
||||
//294
|
||||
29B97313FDCFA39411CA2CEA = {
|
||||
buildStyles = (
|
||||
4A9504CCFFE6A4B311CA0CBA,
|
||||
4A9504CDFFE6A4B311CA0CBA,
|
||||
);
|
||||
isa = PBXProject;
|
||||
mainGroup = 29B97314FDCFA39411CA2CEA;
|
||||
projectDirPath = "";
|
||||
targets = (
|
||||
29B97326FDCFA39411CA2CEA,
|
||||
);
|
||||
};
|
||||
29B97314FDCFA39411CA2CEA = {
|
||||
children = (
|
||||
080E96DDFE201D6D7F000001,
|
||||
29B97315FDCFA39411CA2CEA,
|
||||
29B97317FDCFA39411CA2CEA,
|
||||
29B97323FDCFA39411CA2CEA,
|
||||
19C28FACFE9D520D11CA2CBB,
|
||||
);
|
||||
isa = PBXGroup;
|
||||
name = ProjectCenter;
|
||||
path = "";
|
||||
refType = 4;
|
||||
};
|
||||
29B97315FDCFA39411CA2CEA = {
|
||||
children = (
|
||||
);
|
||||
isa = PBXGroup;
|
||||
name = "Other Sources";
|
||||
path = "";
|
||||
refType = 4;
|
||||
};
|
||||
29B97317FDCFA39411CA2CEA = {
|
||||
children = (
|
||||
089C165CFE840E0CC02AAC07,
|
||||
F58C0B4903910AE201000102,
|
||||
F58C0B50039110C001000102,
|
||||
F58C0B51039110C001000102,
|
||||
F58C0B52039110C001000102,
|
||||
F58C0B53039110C001000102,
|
||||
F58C0B54039110C001000102,
|
||||
F58C0B55039110C001000102,
|
||||
F58C0B56039110C001000102,
|
||||
F58C0B57039110C001000102,
|
||||
F58C0B58039110C001000102,
|
||||
F58C0B59039110C001000102,
|
||||
F58C0B5A039110C001000102,
|
||||
F58C0B5B039110C001000102,
|
||||
F58C0B5C039110C001000102,
|
||||
F58C0B5D039110C001000102,
|
||||
F58C0B5E039110C001000102,
|
||||
F58C0B5F039110C001000102,
|
||||
F58C0B60039110C001000102,
|
||||
F58C0B61039110C001000102,
|
||||
F58C0B62039110C001000102,
|
||||
F58C0B63039110C001000102,
|
||||
F58C0B64039110C001000102,
|
||||
F58C0B65039110C001000102,
|
||||
F58C0B66039110C001000102,
|
||||
F58C0B67039110C001000102,
|
||||
F56C97390393974101000102,
|
||||
);
|
||||
isa = PBXGroup;
|
||||
name = Resources;
|
||||
path = "";
|
||||
refType = 4;
|
||||
};
|
||||
29B97323FDCFA39411CA2CEA = {
|
||||
children = (
|
||||
1058C7A0FEA54F0111CA2CBB,
|
||||
1058C7A2FEA54F0111CA2CBB,
|
||||
);
|
||||
isa = PBXGroup;
|
||||
name = Frameworks;
|
||||
path = "";
|
||||
refType = 4;
|
||||
};
|
||||
29B97324FDCFA39411CA2CEA = {
|
||||
isa = PBXFrameworkReference;
|
||||
name = AppKit.framework;
|
||||
path = /System/Library/Frameworks/AppKit.framework;
|
||||
refType = 0;
|
||||
};
|
||||
29B97325FDCFA39411CA2CEA = {
|
||||
isa = PBXFrameworkReference;
|
||||
name = Foundation.framework;
|
||||
path = /System/Library/Frameworks/Foundation.framework;
|
||||
refType = 0;
|
||||
};
|
||||
29B97326FDCFA39411CA2CEA = {
|
||||
buildPhases = (
|
||||
29B97327FDCFA39411CA2CEA,
|
||||
29B97328FDCFA39411CA2CEA,
|
||||
29B9732BFDCFA39411CA2CEA,
|
||||
29B9732DFDCFA39411CA2CEA,
|
||||
);
|
||||
buildSettings = {
|
||||
FRAMEWORK_SEARCH_PATHS = "\"$(HOME)/Library/Frameworks\"";
|
||||
HEADER_SEARCH_PATHS = "";
|
||||
INSTALL_PATH = "$(HOME)/Applications";
|
||||
LIBRARY_SEARCH_PATHS = "";
|
||||
OTHER_CFLAGS = "";
|
||||
OTHER_LDFLAGS = "";
|
||||
PRODUCT_NAME = ProjectCenter;
|
||||
SECTORDER_FLAGS = "";
|
||||
WARNING_CFLAGS = "-Wmost -Wno-four-char-constants -Wno-unknown-pragmas";
|
||||
WRAPPER_EXTENSION = app;
|
||||
};
|
||||
dependencies = (
|
||||
);
|
||||
isa = PBXApplicationTarget;
|
||||
name = ProjectCenter;
|
||||
productInstallPath = "$(HOME)/Applications";
|
||||
productName = ProjectCenter;
|
||||
productReference = 17587328FF379C6511CA2CBB;
|
||||
productSettingsXML = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
|
||||
<!DOCTYPE plist PUBLIC \"-//Apple Computer//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">
|
||||
<plist version=\"1.0\">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>English</string>
|
||||
<key>CFBundleDocumentTypes</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>CFBundleTypeExtensions</key>
|
||||
<array>
|
||||
<string>pcproj</string>
|
||||
</array>
|
||||
<key>CFBundleTypeRole</key>
|
||||
<string>Editor</string>
|
||||
</dict>
|
||||
</array>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>ProjectCenter</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>ProjectCenterIcon.icns</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>ProjectCenter</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>0.3</string>
|
||||
<key>NSMainNibFile</key>
|
||||
<string>MainMenu</string>
|
||||
<key>NSPrincipalClass</key>
|
||||
<string>NSApplication</string>
|
||||
</dict>
|
||||
</plist>
|
||||
";
|
||||
shouldUseHeadermap = 1;
|
||||
};
|
||||
29B97327FDCFA39411CA2CEA = {
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
F58C0B130391055801000102,
|
||||
F58C0B150391055801000102,
|
||||
F58C0B170391055801000102,
|
||||
F58C0B190391055801000102,
|
||||
F58C0B1B0391055801000102,
|
||||
F58C0B1D0391055801000102,
|
||||
F58C0B1F0391055801000102,
|
||||
);
|
||||
isa = PBXHeadersBuildPhase;
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
29B97328FDCFA39411CA2CEA = {
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
089C165EFE840E0CC02AAC07,
|
||||
F58C0B4B03910AE201000102,
|
||||
F58C0B68039110C001000102,
|
||||
F58C0B69039110C101000102,
|
||||
F58C0B6A039110C101000102,
|
||||
F58C0B6B039110C101000102,
|
||||
F58C0B6C039110C101000102,
|
||||
F58C0B6D039110C101000102,
|
||||
F58C0B6E039110C101000102,
|
||||
F58C0B6F039110C101000102,
|
||||
F58C0B70039110C101000102,
|
||||
F58C0B71039110C101000102,
|
||||
F58C0B72039110C101000102,
|
||||
F58C0B73039110C101000102,
|
||||
F58C0B74039110C101000102,
|
||||
F58C0B75039110C101000102,
|
||||
F58C0B76039110C101000102,
|
||||
F58C0B77039110C101000102,
|
||||
F58C0B78039110C101000102,
|
||||
F58C0B79039110C101000102,
|
||||
F58C0B7A039110C101000102,
|
||||
F58C0B7B039110C101000102,
|
||||
F58C0B7C039110C101000102,
|
||||
F58C0B7D039110C101000102,
|
||||
F58C0B7E039110C101000102,
|
||||
F58C0B7F039110C101000102,
|
||||
F56C973A0393974101000102,
|
||||
);
|
||||
isa = PBXResourcesBuildPhase;
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
29B9732BFDCFA39411CA2CEA = {
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
F58C0B140391055801000102,
|
||||
F58C0B160391055801000102,
|
||||
F58C0B180391055801000102,
|
||||
F58C0B1A0391055801000102,
|
||||
F58C0B1C0391055801000102,
|
||||
F58C0B1E0391055801000102,
|
||||
F58C0B200391055801000102,
|
||||
F58C0B210391055801000102,
|
||||
);
|
||||
isa = PBXSourcesBuildPhase;
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
29B9732DFDCFA39411CA2CEA = {
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
1058C7A3FEA54F0111CA2CBB,
|
||||
F58C0B24039105D001000102,
|
||||
);
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
//290
|
||||
//291
|
||||
//292
|
||||
//293
|
||||
//294
|
||||
//4A0
|
||||
//4A1
|
||||
//4A2
|
||||
//4A3
|
||||
//4A4
|
||||
4A9504CCFFE6A4B311CA0CBA = {
|
||||
buildRules = (
|
||||
);
|
||||
buildSettings = {
|
||||
COPY_PHASE_STRIP = NO;
|
||||
OPTIMIZATION_CFLAGS = "-O0";
|
||||
};
|
||||
isa = PBXBuildStyle;
|
||||
name = Development;
|
||||
};
|
||||
4A9504CDFFE6A4B311CA0CBA = {
|
||||
buildRules = (
|
||||
);
|
||||
buildSettings = {
|
||||
COPY_PHASE_STRIP = YES;
|
||||
};
|
||||
isa = PBXBuildStyle;
|
||||
name = Deployment;
|
||||
};
|
||||
//4A0
|
||||
//4A1
|
||||
//4A2
|
||||
//4A3
|
||||
//4A4
|
||||
//F50
|
||||
//F51
|
||||
//F52
|
||||
//F53
|
||||
//F54
|
||||
F56C97390393974101000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = ProjectCenterIcon.icns;
|
||||
refType = 4;
|
||||
};
|
||||
F56C973A0393974101000102 = {
|
||||
fileRef = F56C97390393974101000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B040391055801000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = PCAppController.h;
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B050391055801000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = PCAppController.m;
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B060391055801000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = "PCAppController+MenuHandling.h";
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B070391055801000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = "PCAppController+MenuHandling.m";
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B080391055801000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = PCFindController.h;
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B090391055801000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = PCFindController.m;
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B0A0391055801000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = PCInfoController.h;
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B0B0391055801000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = PCInfoController.m;
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B0C0391055801000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = PCLogController.h;
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B0D0391055801000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = PCLogController.m;
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B0E0391055801000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = PCMenuController.h;
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B0F0391055801000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = PCMenuController.m;
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B100391055801000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = PCPrefController.h;
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B110391055801000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = PCPrefController.m;
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B120391055801000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = ProjectCenter_main.m;
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B130391055801000102 = {
|
||||
fileRef = F58C0B040391055801000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B140391055801000102 = {
|
||||
fileRef = F58C0B050391055801000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B150391055801000102 = {
|
||||
fileRef = F58C0B060391055801000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B160391055801000102 = {
|
||||
fileRef = F58C0B070391055801000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B170391055801000102 = {
|
||||
fileRef = F58C0B080391055801000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B180391055801000102 = {
|
||||
fileRef = F58C0B090391055801000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B190391055801000102 = {
|
||||
fileRef = F58C0B0A0391055801000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B1A0391055801000102 = {
|
||||
fileRef = F58C0B0B0391055801000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B1B0391055801000102 = {
|
||||
fileRef = F58C0B0C0391055801000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B1C0391055801000102 = {
|
||||
fileRef = F58C0B0D0391055801000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B1D0391055801000102 = {
|
||||
fileRef = F58C0B0E0391055801000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B1E0391055801000102 = {
|
||||
fileRef = F58C0B0F0391055801000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B1F0391055801000102 = {
|
||||
fileRef = F58C0B100391055801000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B200391055801000102 = {
|
||||
fileRef = F58C0B110391055801000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B210391055801000102 = {
|
||||
fileRef = F58C0B120391055801000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B22039105D001000102 = {
|
||||
isa = PBXFrameworkReference;
|
||||
name = ProjectCenter.framework;
|
||||
path = /Users/philippe/Library/Frameworks/ProjectCenter.framework;
|
||||
refType = 0;
|
||||
};
|
||||
F58C0B24039105D001000102 = {
|
||||
fileRef = F58C0B22039105D001000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B4903910AE201000102 = {
|
||||
children = (
|
||||
F58C0B4A03910AE201000102,
|
||||
);
|
||||
isa = PBXVariantGroup;
|
||||
name = MainMenu.nib;
|
||||
path = "";
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B4A03910AE201000102 = {
|
||||
isa = PBXFileReference;
|
||||
name = English;
|
||||
path = English.lproj/MainMenu.nib;
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B4B03910AE201000102 = {
|
||||
fileRef = F58C0B4903910AE201000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B50039110C001000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = FileIcon_.c.tiff;
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B51039110C001000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = FileIcon_.h.tiff;
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B52039110C001000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = FileIcon_.m.tiff;
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B53039110C001000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = FileIcon_rtf.tiff;
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B54039110C001000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = ProjectCenter_clean.tiff;
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B55039110C001000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = ProjectCenter_debug.tiff;
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B56039110C001000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = ProjectCenter_dist.tiff;
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B57039110C001000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = ProjectCenter_install.tiff;
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B58039110C001000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = ProjectCenter_make.tiff;
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B59039110C001000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = ProjectCenter_profile.tiff;
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B5A039110C001000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = ProjectCenter_rpm.tiff;
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B5B039110C001000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = ProjectCenter.app.tiff;
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B5C039110C001000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = ProjectCenter.tiff;
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B5D039110C001000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = ProjectCentre_add.tiff;
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B5E039110C001000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = ProjectCentre_build.tiff;
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B5F039110C001000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = ProjectCentre_clean.tiff;
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B60039110C001000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = ProjectCentre_cvs.tiff;
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B61039110C001000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = ProjectCentre_documentation.tiff;
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B62039110C001000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = ProjectCentre_files.tiff;
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B63039110C001000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = ProjectCentre_find.tiff;
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B64039110C001000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = ProjectCentre_prefs.tiff;
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B65039110C001000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = ProjectCentre_run.tiff;
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B66039110C001000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = ProjectCentre_settings.tiff;
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B67039110C001000102 = {
|
||||
isa = PBXFileReference;
|
||||
path = ProjectCentre_uml.tiff;
|
||||
refType = 4;
|
||||
};
|
||||
F58C0B68039110C001000102 = {
|
||||
fileRef = F58C0B50039110C001000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B69039110C101000102 = {
|
||||
fileRef = F58C0B51039110C001000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B6A039110C101000102 = {
|
||||
fileRef = F58C0B52039110C001000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B6B039110C101000102 = {
|
||||
fileRef = F58C0B53039110C001000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B6C039110C101000102 = {
|
||||
fileRef = F58C0B54039110C001000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B6D039110C101000102 = {
|
||||
fileRef = F58C0B55039110C001000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B6E039110C101000102 = {
|
||||
fileRef = F58C0B56039110C001000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B6F039110C101000102 = {
|
||||
fileRef = F58C0B57039110C001000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B70039110C101000102 = {
|
||||
fileRef = F58C0B58039110C001000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B71039110C101000102 = {
|
||||
fileRef = F58C0B59039110C001000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B72039110C101000102 = {
|
||||
fileRef = F58C0B5A039110C001000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B73039110C101000102 = {
|
||||
fileRef = F58C0B5B039110C001000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B74039110C101000102 = {
|
||||
fileRef = F58C0B5C039110C001000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B75039110C101000102 = {
|
||||
fileRef = F58C0B5D039110C001000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B76039110C101000102 = {
|
||||
fileRef = F58C0B5E039110C001000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B77039110C101000102 = {
|
||||
fileRef = F58C0B5F039110C001000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B78039110C101000102 = {
|
||||
fileRef = F58C0B60039110C001000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B79039110C101000102 = {
|
||||
fileRef = F58C0B61039110C001000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B7A039110C101000102 = {
|
||||
fileRef = F58C0B62039110C001000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B7B039110C101000102 = {
|
||||
fileRef = F58C0B63039110C001000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B7C039110C101000102 = {
|
||||
fileRef = F58C0B64039110C001000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B7D039110C101000102 = {
|
||||
fileRef = F58C0B65039110C001000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B7E039110C101000102 = {
|
||||
fileRef = F58C0B66039110C001000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
F58C0B7F039110C101000102 = {
|
||||
fileRef = F58C0B67039110C001000102;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
};
|
||||
rootObject = 29B97313FDCFA39411CA2CEA;
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
ChangeLog entries should be added to ../ChangeLog
|
|
@ -1,670 +0,0 @@
|
|||
2003-04-21 Serg Stoyan <stoyan@hologr.com>
|
||||
|
||||
* All *.tiff files moved to Images dir.
|
||||
|
||||
* ProjectCenter_main.m (createMenu()): Set title of app menu to "PC".
|
||||
|
||||
* Replace all occurrences of #import with #include and make needed
|
||||
#ifndefs
|
||||
|
||||
* h.template and m.template removed.
|
||||
|
||||
2003-01-25 Daniel Luederwald <das_flip@gmx.de>
|
||||
|
||||
* PCBrowserController.m: Add gsmarkup to editable files.
|
||||
(isEditableFiles:): Idem, but don't allow editing if extension
|
||||
is gorm (patch from Adam Fedor <fedor@gnu.org>).
|
||||
* PCProjectDebugger.m (run:): Add PCRenaissanceProject.
|
||||
|
||||
2002-11-27 Philippe C.D. Robert <probert@siggraph.org>
|
||||
|
||||
* Extracting UI code into separate categories. PBX project file for
|
||||
Mac OS X using Cocoa.
|
||||
|
||||
2002-11-24 Philippe C.D. Robert <probert@siggraph.org>
|
||||
|
||||
* Fixing import statements in most headers and source files preparing
|
||||
a Mac OS X port.
|
||||
|
||||
2002-11-04 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* PCFileManager.m (-showAddFileWindow): Only copy file if it isn't
|
||||
already there.
|
||||
|
||||
2002-10-06 15:45 probert
|
||||
|
||||
* PCEditor.h, PCEditor.m, PCEditorView.m, PCProjectEditor.h,
|
||||
PCProjectEditor.m: Updated the AUTHORS file and applied David
|
||||
Ayers' patch.
|
||||
|
||||
2002-08-10 14:10 probert
|
||||
|
||||
* PCEditor.m: Applied patch sent in by O. Kornilov to avoid
|
||||
exception when clicking on file name in browser
|
||||
|
||||
2002-08-10 13:41 probert
|
||||
|
||||
* PCEditorView+Highlighting.m: Removed call to super's initialize
|
||||
|
||||
2002-06-01 16:00 probert
|
||||
|
||||
* ChangeLog: Updated ChangeLogs
|
||||
|
||||
2002-06-01 15:55 probert
|
||||
|
||||
* PCMakefileFactory.m: Code cleanup
|
||||
|
||||
2002-06-01 15:46 probert
|
||||
|
||||
* GNUmakefile, PCBundleLoader.m, PCMakefileFactory.m,
|
||||
ProjectCenter.pcproj: Fixed a bug in the lib makefile creation
|
||||
part.
|
||||
|
||||
2002-04-26 05:12 fedor
|
||||
|
||||
* ChangeLog, GNUmakefile, PCBrowserController.m,
|
||||
PCHistoryController.m, PCProject.m, PCProjectManager.m: removed
|
||||
bunches of duplicate calls, retains and releases.
|
||||
|
||||
2002-04-25 23:12 fedor
|
||||
|
||||
* ChangeLog, PCBrowserController.m, PCHistoryController.m: Retain
|
||||
browser
|
||||
|
||||
2002-03-25 20:37 probert
|
||||
|
||||
* ChangeLog, Version: ChangeLog updates
|
||||
|
||||
2002-03-03 14:47 probert
|
||||
|
||||
* PCHistoryController.m, PCProject.m: Fixed mem leak in the history
|
||||
controller.
|
||||
|
||||
2002-03-02 14:58 probert
|
||||
|
||||
* PCEditor.m, PCEditorView.m: Editors should now use the font
|
||||
panel.
|
||||
|
||||
2002-03-02 14:15 probert
|
||||
|
||||
* PCEditor.h, PCEditor.m, PCEditorController.m: Using
|
||||
saveFileIfNeeded instead of saveFile.
|
||||
|
||||
2002-03-02 14:11 probert
|
||||
|
||||
* PCEditorController.h, PCEditorController.m, PCProject.m,
|
||||
PCProjectManager.m: The timed safe mechanism now also saves all
|
||||
project files, if needed.
|
||||
|
||||
2002-03-01 16:19 probert
|
||||
|
||||
* PCMakefileFactory.h, PCMakefileFactory.m: Added support for tool
|
||||
projects.
|
||||
|
||||
2002-03-01 15:58 probert
|
||||
|
||||
* PCMakefileFactory.h, PCMakefileFactory.m: Support for libraries
|
||||
added.
|
||||
|
||||
2002-03-01 15:18 probert
|
||||
|
||||
* PCMakefileFactory.h, PCMakefileFactory.m: Support for bundles
|
||||
|
||||
2002-03-01 11:39 probert
|
||||
|
||||
* GNUmakefile, PCMakefileFactory.h, PCMakefileFactory.m,
|
||||
ProjectCenter.h, ProjectCenter.pcproj: Began to clean up the
|
||||
makefile creation code. Introduced a shared factory for that
|
||||
purpose which implements basic stuff used by all projects.
|
||||
|
||||
2002-02-22 19:48 probert
|
||||
|
||||
* PCEditorController.m: Fixed a bug which caused PC to crash when
|
||||
an external GS editor was used, thx to Richard for pointing me to
|
||||
the right place!
|
||||
|
||||
2002-02-21 22:26 probert
|
||||
|
||||
* PCProjectManager.m: Removed annoying alert panel raised upon
|
||||
saving all projects
|
||||
|
||||
2002-02-21 22:17 probert
|
||||
|
||||
* GNUmakefile, PCBrowserController.m, PCHistoryController.h,
|
||||
PCHistoryController.m, PCProject.h, PCProject.m, ProjectCenter.h,
|
||||
ProjectCenter.pcproj: First attempt of integrating a history
|
||||
browser for better file navigation. There are still bugs though...
|
||||
|
||||
2002-02-21 13:50 probert
|
||||
|
||||
* PCEditorController.m: When a GNUstep app is used as external
|
||||
editor, NSWorkspace is used to open the file using the repsective
|
||||
app.
|
||||
|
||||
2002-02-21 12:29 probert
|
||||
|
||||
* PCProject.m: Removing a file causes the browser to be updated
|
||||
|
||||
2002-02-21 12:25 probert
|
||||
|
||||
* PCBrowserController.m, PCProject.m: If the project changes the
|
||||
browser reloads the correct column.
|
||||
|
||||
2002-02-21 11:45 probert
|
||||
|
||||
* PCProject+ComponentHandling.h, PCProject+ComponentHandling.m,
|
||||
PCProject.h, PCProject.m: All project components are now accessible
|
||||
via menu entry. Furthermore it is also possible to launch the
|
||||
selected target via menu entry.
|
||||
|
||||
2002-02-21 11:15 probert
|
||||
|
||||
* PCEditorController.h, PCEditorController.m, PCProject.m: Single
|
||||
click always invokes the internal editor now.
|
||||
|
||||
2002-02-21 11:05 probert
|
||||
|
||||
* PCBrowserController.h, PCBrowserController.m, PCProject.h,
|
||||
PCProject.m: Cleaned up the code which is called upon seleting a
|
||||
file in the project browser. Now libraries etc. do not show up in
|
||||
the internal editor anymore.
|
||||
|
||||
2002-02-17 21:10 probert
|
||||
|
||||
* ChangeLog: Updated the ChangeLog files
|
||||
|
||||
2002-02-17 21:02 probert
|
||||
|
||||
* PCDefines.h: Added the TabBehaviour define required by the
|
||||
preferences
|
||||
|
||||
2002-02-17 18:40 probert
|
||||
|
||||
* GNUmakefile, PCEditorView+Highlighting.h,
|
||||
PCEditorView+Highlighting.m, PCEditorView.h, PCEditorView.m,
|
||||
ProjectCenter.h, ProjectCenter.pcproj: Moved the (deprecated)
|
||||
highlighting code into PCEditorView+Highlighting and implemented
|
||||
tab (\t) capabilities.
|
||||
|
||||
2002-02-17 14:14 probert
|
||||
|
||||
* PCEditor.m, PCEditorController.m, PCEditorView.m, PCProject.m,
|
||||
PCProjectEditor.m, PCProjectManager.m: Fixed 2 bugs which caused a
|
||||
severe crash.
|
||||
|
||||
2002-02-16 21:46 probert
|
||||
|
||||
* PCBrowserController.m, PCFileManager.h, PCFileManager.m,
|
||||
PCProject+ComponentHandling.m, PCProjectEditor.m: Enhanced the 'new
|
||||
file window' by adding a description view.
|
||||
|
||||
2002-02-12 22:44 probert
|
||||
|
||||
* PCProject.m: Fixed the bug that when clicking on a source file
|
||||
for the first time, the editor did not display the file's content.
|
||||
|
||||
2002-02-12 21:05 probert
|
||||
|
||||
* PCProjectBuilder.m, PCProjectDebugger.h, PCProjectDebugger.m:
|
||||
Added a launch target popup which lets the user choose between the
|
||||
default or the debug target.
|
||||
|
||||
2002-02-11 23:19 probert
|
||||
|
||||
* GNUmakefile, PCEditor.h, PCEditor.m, PCEditorController.m,
|
||||
PCEditorView.h, PCEditorView.m, PCFileManager.m,
|
||||
PCProject+ComponentHandling.h, PCProject+ComponentHandling.m,
|
||||
PCProject.h, PCProject.m, PCProjectBuilder.h, PCProjectBuilder.m,
|
||||
PCProjectDebugger.h, PCProjectEditor.h, PCProjectEditor.m,
|
||||
ProjectCenter.h, ProjectCenter.pcproj, ProjectComponent.h: Began to
|
||||
work on support for an integrated editor, thus much has been
|
||||
rewritten related to editor handling. This is work in progress...
|
||||
Every PCProject component now has to conform to the
|
||||
ProjectComponent protocol. Syntax highlighting is disabled for
|
||||
now, this will undergo a major rewrite soon. Furthermore I
|
||||
separated the component handling stuff from the main class file and
|
||||
put it into PCProject+ComponentHandling.
|
||||
|
||||
2002-02-03 20:31 probert
|
||||
|
||||
* PCEditor.h, PCEditor.m, PCProject.m, PCTextFinder.m: Optimised
|
||||
text edition reflection. Embedded editing will need more changes in
|
||||
that respect, I fear...
|
||||
|
||||
2002-02-03 17:30 probert
|
||||
|
||||
* GNUmakefile, PCEditor.m, PCTextFinder.h, PCTextFinder.m,
|
||||
ProjectCenter.h, ProjectCenter.pcproj: Added a text finder to
|
||||
ProjectCenter (based on Ali Ozer's code).
|
||||
|
||||
2002-02-02 22:13 probert
|
||||
|
||||
* PCDefines.h: Defines belong into PCDefines.h now
|
||||
|
||||
2002-02-02 22:12 probert
|
||||
|
||||
* GNUmakefile, PCBrowserController.h, PCBundleLoader.h, PCEditor.h,
|
||||
PCEditor.m, PCEditorView.m, PCFileManager.h, PCProject.h,
|
||||
PCProjectBuilder.h, PCProjectManager.h, PCProjectManager.m,
|
||||
PCServer.h, PreferenceController.h, ProjectBuilder.h,
|
||||
ProjectCenter.h, ProjectCenter.pcproj, ProjectDebugger.h,
|
||||
ProjectEditor.h, Server.h: Cleaned up the header files ( added
|
||||
ifndef/define statements ), splitted the ProjectCenter.h header and
|
||||
some other cleanups. Editor now send notifications whenever they
|
||||
become or resign key.
|
||||
|
||||
2002-02-02 20:21 probert
|
||||
|
||||
* PCBrowserController.m, PCEditor.h, PCEditor.m,
|
||||
PCEditorController.h, PCEditorController.m, PCEditorView.h,
|
||||
PCEditorView.m, PCProject.h, PCProject.m, PCProjectManager.m: Kind
|
||||
of implemented saving and reverting of common files. A long way to
|
||||
go, but for now it works...
|
||||
|
||||
2002-02-02 18:56 probert
|
||||
|
||||
* GNUmakefile, PCBrowserController.h, PCBrowserController.m,
|
||||
PCBundleLoader.h, PCBundleLoader.m, PCEditor.h, PCEditor.m,
|
||||
PCEditorController.h, PCEditorController.m, PCEditorView.h,
|
||||
PCEditorView.m, PCProject.h, PCProject.m, PCProjectManager.m,
|
||||
PCServer.h, PCServer.m, ProjectCenter.pcproj: Rewriting the entire
|
||||
editor code. Hence introduced a PCEditorController and cleaned up
|
||||
the PCServer class. Every project now has a controller which
|
||||
controls all editors. Editors itself use an editor view to display
|
||||
the files or external editors.
|
||||
|
||||
2002-01-29 22:46 probert
|
||||
|
||||
* PCEditor.h, PCEditor.m, PCProjectManager.m: Fixed a bug
|
||||
preventing reopening projects. Also added 2 methods which will be
|
||||
used to make an editor embedded.
|
||||
|
||||
2002-01-29 22:29 probert
|
||||
|
||||
* GNUmakefile, PCEditor.h, PCEditor.m, PCServer.h, PCServer.m,
|
||||
ProjectCenter.pcproj: Cleaning up the internal editor code. More to
|
||||
come...
|
||||
|
||||
2002-01-27 14:55 probert
|
||||
|
||||
* GNUmakefile, PCProject.m, PCProjectDebugger.m, PCSplitView.h,
|
||||
PCSplitView.m, ProjectCenter.pcproj: Using a customised split view
|
||||
instead of a NSSplitView - more to come...
|
||||
|
||||
2002-01-27 14:37 probert
|
||||
|
||||
* PCProject.m: Minor UI enhancement: main button alignement
|
||||
adjusted.
|
||||
|
||||
2002-01-27 14:32 probert
|
||||
|
||||
* PCProject.m, PCProjectBuilder.h, PCProjectBuilder.m,
|
||||
PCProjectDebugger.m: Removed unneeded buttons, added a title to the
|
||||
remaining ones and introduced a splitview between the project
|
||||
browser and component view. In the build view a popup button is now
|
||||
used for build targets.
|
||||
|
||||
2002-01-07 16:05 probert
|
||||
|
||||
* ChangeLog: Updated all ChangeLog files (using cvs2cl.pl)
|
||||
|
||||
2002-01-07 11:00 probert
|
||||
|
||||
* GNUmakefile, PCBrowserController.m, PCEditorView.m,
|
||||
PCFileManager.m, ProjectCenter.pcproj, Version: PCLib is now
|
||||
maintained by ProjectCenter as well!
|
||||
|
||||
2002-01-07 10:37 probert
|
||||
|
||||
* PCProject.m, PCProjectManager.m: ProjectCenter now stores the
|
||||
project files under PROJECTNAME.pcproj to avoid name clashes.
|
||||
|
||||
2002-01-02 18:43 probert
|
||||
|
||||
* PCProject.m, PCProjectBuilder.m: The build tool can now be
|
||||
customised. Make sure to enter a valid path in the inspector field!
|
||||
|
||||
2002-01-02 18:33 probert
|
||||
|
||||
* GNUmakefile: The library now gets installed in the proper
|
||||
directory as well.
|
||||
|
||||
2002-01-02 17:05 probert
|
||||
|
||||
* PCProject.h, PCProject.m, PCProjectBuilder.m, PCProjectManager.m:
|
||||
The inspector now handles the installation path and other settings.
|
||||
Furthermore it does not save changes automatically but marks the
|
||||
project as being edited. Upon 'save' the project file and
|
||||
GNUmakefile are being saved, not before! In addition the various
|
||||
PC* bundles are now maintained by ProjectCenter itself. The
|
||||
installation path for ProjectCenter.app is corrected to the SYSTEM
|
||||
ROOT as well.
|
||||
|
||||
2002-01-02 13:13 probert
|
||||
|
||||
* PCBundleLoader.m: All bundles and libProjectCenter are now
|
||||
installed under GNUSTEP_SYSTEM_ROOT. Also the PC.proj templates
|
||||
have now a correct install path default value.
|
||||
|
||||
2002-01-01 19:21 probert
|
||||
|
||||
* PCProjectBuilder.m: Added a new button for the build target
|
||||
'dist' in the builder panel
|
||||
|
||||
2002-01-01 18:27 probert
|
||||
|
||||
* PCProject.h, PCProject.m, PCProjectBuilder.m, PCProjectManager.m:
|
||||
ProjectCenter now validates project dictionaries and updates them
|
||||
if requested. I also added new keys tp the PC.project files in
|
||||
order to be able to generate valid *.spec.in files needed when
|
||||
building RPMs.
|
||||
|
||||
2001-12-29 16:37 probert
|
||||
|
||||
* ChangeLog: Removed the toplevel ChangeLog, updated the ChangeLogs
|
||||
in the subdirectories and raised the version number to 0.2.6.
|
||||
|
||||
2001-12-29 16:29 probert
|
||||
|
||||
* PCProjectManager.h, PCProjectManager.m: Automatic, periodic
|
||||
saving of all open projectfiles is now supported.
|
||||
|
||||
2001-12-29 15:41 probert
|
||||
|
||||
* PCProject.m: Fixed some minor issues with file backup handling
|
||||
|
||||
2001-12-29 15:09 probert
|
||||
|
||||
* PCProject.m, PCProjectManager.h, PCProjectManager.m,
|
||||
ProjectCenter.h: Cleaned up the writeMakefile method and
|
||||
implemented the save stuff the way it should be. Some additions for
|
||||
proper preference handling have been made as well.
|
||||
|
||||
2001-12-28 15:11 probert
|
||||
|
||||
* PCProjectDebugger.m: Fixed a typo and altered matrix button
|
||||
behaviour
|
||||
|
||||
2001-08-03 16:23 probert
|
||||
|
||||
* FileCreator.h, PCBrowserController.h, PCBrowserController.m,
|
||||
PCBundleLoader.h, PCBundleLoader.m, PCDataSource.h, PCDataSource.m,
|
||||
PCEditorView.h, PCEditorView.m, PCFileManager.h, PCFileManager.m,
|
||||
PCProject.h, PCProject.m, PCProjectBuilder.h, PCProjectBuilder.m,
|
||||
PCProjectDebugger.h, PCProjectDebugger.m, PCProjectManager.h,
|
||||
PCProjectManager.m, PCServer.h, PCServer.m, PreferenceController.h,
|
||||
ProjectBuilder.h, ProjectCenter.h, ProjectDebugger.h,
|
||||
ProjectEditor.h, ProjectType.h, Server.h: New version - now
|
||||
copyrighted by the FSF
|
||||
|
||||
2001-08-01 18:27 probert
|
||||
|
||||
* PCEditorView.m: Better highlighting of keywords
|
||||
|
||||
2001-08-01 14:35 probert
|
||||
|
||||
* GNUmakefile, GNUmakefile.postamble, GNUmakefile.preamble: New
|
||||
copyright information and minor template additions
|
||||
|
||||
2001-07-07 13:48 probert
|
||||
|
||||
* PCProjectDebugger.m, PCServer.m: Little GUI modifications, done
|
||||
by Pierre-Yves Rivaille
|
||||
|
||||
2001-07-01 21:02 probert
|
||||
|
||||
* GNUmakefile.postamble: Added makefile
|
||||
|
||||
2001-07-01 21:01 probert
|
||||
|
||||
* GNUmakefile, GNUmakefile.preamble: Applied patch from Adam Fedor
|
||||
|
||||
2001-01-29 13:17 robert
|
||||
|
||||
* PCEditorView.m, PCProjectBuilder.m, PCServer.m: new textview code
|
||||
required some changes
|
||||
|
||||
2001-01-14 18:54 robert
|
||||
|
||||
* ChangeLog: Updated the ChangeLogs
|
||||
|
||||
2001-01-14 18:01 robert
|
||||
|
||||
* PB.project: removing old PB stuff
|
||||
|
||||
2001-01-14 17:57 robert
|
||||
|
||||
* PCProjectBuilder.m, PCProjectDebugger.h, PCProjectDebugger.m:
|
||||
Major improvements to the launch/debugger part
|
||||
|
||||
2001-01-14 17:23 robert
|
||||
|
||||
* Makefile, Makefile.postamble, Makefile.preamble: removed old PB
|
||||
stuff
|
||||
|
||||
2001-01-14 16:53 robert
|
||||
|
||||
* PCProject.m: Fixed some mem leaks
|
||||
|
||||
2001-01-13 21:46 robert
|
||||
|
||||
* PCFileManager.m, PCProject.m: fix in the bundle project related
|
||||
to the principal class.
|
||||
|
||||
2001-01-11 20:21 robert
|
||||
|
||||
* PCProjectBuilder.m, PCProjectDebugger.m: some more textview
|
||||
handling...sigh
|
||||
|
||||
2001-01-11 19:42 robert
|
||||
|
||||
* PCProjectBuilder.m, PCProjectDebugger.h, PCProjectDebugger.m:
|
||||
Added a primitive app/too launcher/debugger
|
||||
|
||||
2001-01-10 16:19 robert
|
||||
|
||||
* PCProjectBuilder.h, PCProjectBuilder.m: Initial support for RPM
|
||||
SPEC file creation
|
||||
|
||||
2001-01-07 15:43 robert
|
||||
|
||||
* PCProjectManager.h, PCProjectManager.m: some more minor fix and
|
||||
cleanup work
|
||||
|
||||
2001-01-07 15:11 robert
|
||||
|
||||
* PCBrowserController.m: removed unneeded log
|
||||
|
||||
2001-01-07 15:10 robert
|
||||
|
||||
* PCProjectManager.m: logs only when in DEBUG
|
||||
|
||||
2001-01-07 15:07 robert
|
||||
|
||||
* PCBrowserController.m: opening files using the workspace now
|
||||
works a little bit better...
|
||||
|
||||
2001-01-07 14:44 robert
|
||||
|
||||
* PCServer.h, PCServer.m: reopening a file in the internal editor
|
||||
now works w/o crashing
|
||||
|
||||
2001-01-07 13:12 robert
|
||||
|
||||
* PCBrowserController.m, PCProject.m, PCProjectManager.m: reopening
|
||||
projects is now possible - finally...
|
||||
|
||||
2001-01-06 17:26 robert
|
||||
|
||||
* PCProject.h, PCProject.m, PCServer.m: minor bugfix in the editor
|
||||
textview and new method to copy files into proj
|
||||
|
||||
2000-11-10 19:27 robert
|
||||
|
||||
* PCProject.h, PCProject.m, PCProjectManager.m: some daily work...
|
||||
|
||||
2000-11-10 15:07 robert
|
||||
|
||||
* ChangeLog: changelog for 0.2.0
|
||||
|
||||
2000-11-04 17:47 robert
|
||||
|
||||
* PCBundleLoader.m: the bundle path is now depending on the env
|
||||
variable
|
||||
|
||||
2000-11-04 14:20 robert
|
||||
|
||||
* PCProject.h, PCProject.m: projects are by default not executable
|
||||
|
||||
2000-11-02 11:21 robert
|
||||
|
||||
* PCProject.m, PCProjectBuilder.m: 2 lines of information when
|
||||
launching...
|
||||
|
||||
2000-11-01 11:38 robert
|
||||
|
||||
* PCBrowserController.m, PCProject.m: removed logs
|
||||
|
||||
2000-10-29 21:17 robert
|
||||
|
||||
* PCProjectDebugger.h, PCProjectDebugger.m: added the class which
|
||||
will one day become a simple gdb frontend
|
||||
|
||||
2000-10-29 21:15 robert
|
||||
|
||||
* GNUmakefile, PCBrowserController.m, PCProject.h, PCProject.m,
|
||||
PCProjectBuilder.h, PCProjectBuilder.m, ProjectCenter.h: new style
|
||||
interface - simpler but hopefully more usable
|
||||
|
||||
2000-10-29 13:00 robert
|
||||
|
||||
* PCBundleLoader.m, PCProject.m, PCProjectBuilder.h,
|
||||
PCProjectBuilder.m, PCServer.h, PCServer.m: build logging now
|
||||
works, as well as some enhancements when using the internal
|
||||
'editor'
|
||||
|
||||
2000-10-27 19:15 robert
|
||||
|
||||
* PCProject.h, PCProject.m: removed the 2 popups, which are not
|
||||
needed on the top right side
|
||||
|
||||
2000-10-26 11:12 robert
|
||||
|
||||
* PCProject.m: more image files are allowed now
|
||||
|
||||
2000-10-20 20:13 robert
|
||||
|
||||
* PCProject.h, PCProjectBuilder.m: new build images in the build
|
||||
panel
|
||||
|
||||
2000-10-20 17:18 robert
|
||||
|
||||
* PCEditorView.m, PCProject.m: Support for protocols in file
|
||||
creation
|
||||
|
||||
2000-10-15 20:24 robert
|
||||
|
||||
* PCBrowserController.m, PCProject.h, PCProject.m,
|
||||
PCProjectBuilder.m, PCProjectManager.m: More UI enhancements - not
|
||||
really functional yet
|
||||
|
||||
2000-10-15 14:27 robert
|
||||
|
||||
* PCBrowserController.m, PCProject.m, PCProjectBuilder.h,
|
||||
PCProjectBuilder.m, PCProjectManager.m: typo and note about GNUstep
|
||||
version added
|
||||
|
||||
2000-09-22 19:11 robert
|
||||
|
||||
* PCProject.h, PCProject.m: minor UI changes
|
||||
|
||||
2000-09-22 12:33 robert
|
||||
|
||||
* PCBrowserController.m, PCProject.h, PCProject.m,
|
||||
PCProjectBuilder.h, PCProjectBuilder.m: some UI modifications
|
||||
|
||||
2000-09-21 09:36 robert
|
||||
|
||||
* PCBundleLoader.m: bundle path issues
|
||||
|
||||
2000-09-21 07:42 robert
|
||||
|
||||
* PCProjectManager.h, PCProjectManager.m: daily work
|
||||
|
||||
2000-09-21 07:20 robert
|
||||
|
||||
* PCFileManager.m: daily work
|
||||
|
||||
2000-09-21 07:16 robert
|
||||
|
||||
* PCEditorView.m: @end is now highlighted, too
|
||||
|
||||
2000-09-20 17:50 robert
|
||||
|
||||
* ChangeLog: Added a changelog
|
||||
|
||||
2000-09-20 17:46 robert
|
||||
|
||||
* GNUmakefile, PCBrowserController.m, PCEditorView.h,
|
||||
PCEditorView.m, PCProject.h, PCProject.m, PCServer.m,
|
||||
ProjectCenter.h: Added a first editor with syntax highlighting
|
||||
|
||||
2000-09-20 11:59 robert
|
||||
|
||||
* PCProjectBuilder.m: daily work
|
||||
|
||||
2000-09-20 11:53 robert
|
||||
|
||||
* PCProject.m, PCProjectBuilder.m: minor UI changes (scrollers in
|
||||
scrollviews)
|
||||
|
||||
2000-09-19 17:39 robert
|
||||
|
||||
* PCProject.m, PCProjectBuilder.m: sizeToCells was missing ...
|
||||
|
||||
2000-09-17 16:40 robert
|
||||
|
||||
* PCProject.h, PCProject.m, PCProjectBuilder.m: Basic preferences
|
||||
handling
|
||||
|
||||
2000-09-17 14:13 robert
|
||||
|
||||
* PCBrowserController.h, PCBrowserController.m, PCFileManager.h,
|
||||
PCFileManager.m, PCProject.h, PCProject.m, PCProjectBuilder.h,
|
||||
PCProjectBuilder.m, PCProjectManager.h, PCProjectManager.m,
|
||||
PCServer.h, PCServer.m, ProjectCenter.h, Server.h: Implemented a
|
||||
first 'editor', UI enhancements and other nice things
|
||||
|
||||
2000-09-03 22:10 robert
|
||||
|
||||
* GNUmakefile: renamed libPC into libProjectCenter
|
||||
|
||||
2000-08-28 21:04 robert
|
||||
|
||||
* PCBrowserController.m, PCFileManager.h: The class and header
|
||||
files are now being displayed
|
||||
|
||||
2000-08-27 21:12 robert
|
||||
|
||||
* Makefile.preamble, PB.project, h.template, m.template, Makefile,
|
||||
Makefile.postamble, ProjectEditor.h, Server.h, PCServer.h,
|
||||
PCServer.m, ProjectCenter.h, ProjectDebugger.h, ProjectType.h,
|
||||
PCProjectManager.m, PCProjectManager.h, PCBundleLoader.h,
|
||||
PCBundleLoader.m, PreferenceController.h, ProjectBuilder.h,
|
||||
PCBrowserController.h, PCDataSource.h, PCDataSource.m, PCProject.h,
|
||||
PCFileManager.h, PCProject.m, PCFileManager.m, FileCreator.h,
|
||||
GNUmakefile, GNUmakefile.preamble, PCBrowserController.m,
|
||||
PCProjectBuilder.h, PCProjectBuilder.m: Initial revision
|
||||
|
||||
2000-08-27 21:12 robert
|
||||
|
||||
* Makefile.preamble, PB.project, h.template, m.template, Makefile,
|
||||
Makefile.postamble, ProjectEditor.h, Server.h, PCServer.h,
|
||||
PCServer.m, ProjectCenter.h, ProjectDebugger.h, ProjectType.h,
|
||||
PCProjectManager.m, PCProjectManager.h, PCBundleLoader.h,
|
||||
PCBundleLoader.m, PreferenceController.h, ProjectBuilder.h,
|
||||
PCBrowserController.h, PCDataSource.h, PCDataSource.m, PCProject.h,
|
||||
PCFileManager.h, PCProject.m, PCFileManager.m, FileCreator.h,
|
||||
GNUmakefile, GNUmakefile.preamble, PCBrowserController.m,
|
||||
PCProjectBuilder.h, PCProjectBuilder.m: Initial import
|
||||
|
|
@ -1,103 +0,0 @@
|
|||
#
|
||||
# GNUmakefile - Generated by ProjectCenter
|
||||
# Written by Philippe C.D. Robert <probert@siggraph.org>
|
||||
#
|
||||
# NOTE: Do NOT change this file -- ProjectCenter maintains it!
|
||||
#
|
||||
# Put all of your customisations in GNUmakefile.preamble and
|
||||
# GNUmakefile.postamble
|
||||
#
|
||||
|
||||
include $(GNUSTEP_MAKEFILES)/common.make
|
||||
GNUSTEP_INSTALLATION_DIR = $(GNUSTEP_SYSTEM_ROOT)
|
||||
|
||||
|
||||
#
|
||||
# Subprojects
|
||||
#
|
||||
|
||||
|
||||
|
||||
#
|
||||
# Main application
|
||||
#
|
||||
|
||||
PACKAGE_NAME = ProjectCenter
|
||||
APP_NAME = ProjectCenter
|
||||
ProjectCenter_APPLICATION_ICON = Images/ProjectCenter.tiff
|
||||
|
||||
|
||||
#
|
||||
# Additional libraries
|
||||
#
|
||||
|
||||
ADDITIONAL_GUI_LIBS += -lProjectCenter
|
||||
|
||||
#
|
||||
# Resource files
|
||||
#
|
||||
|
||||
ProjectCenter_RESOURCE_FILES = \
|
||||
ProjectCenterInfo.plist \
|
||||
Images/FileIcon_.c.tiff \
|
||||
Images/FileIcon_.h.tiff \
|
||||
Images/FileIcon_.m.tiff \
|
||||
Images/FileIcon_rtf.tiff \
|
||||
Images/ProjectCenter.tiff \
|
||||
Images/ProjectCenter_add.tiff \
|
||||
Images/ProjectCenter_build.tiff \
|
||||
Images/ProjectCenter_clean.tiff \
|
||||
Images/ProjectCenter_cvs.tiff \
|
||||
Images/ProjectCenter_debug.tiff \
|
||||
Images/ProjectCenter_dist.tiff \
|
||||
Images/ProjectCenter_documentation.tiff \
|
||||
Images/ProjectCenter_files.tiff \
|
||||
Images/ProjectCenter_find.tiff \
|
||||
Images/ProjectCenter_install.tiff \
|
||||
Images/ProjectCenter_make.tiff \
|
||||
Images/ProjectCenter_prefs.tiff \
|
||||
Images/ProjectCenter_profile.tiff \
|
||||
Images/ProjectCenter_rpm.tiff \
|
||||
Images/ProjectCenter_run.tiff \
|
||||
Images/ProjectCenter_settings.tiff \
|
||||
Images/ProjectCenter_uml.tiff \
|
||||
Images/Stop.tiff
|
||||
|
||||
#
|
||||
# Header files
|
||||
#
|
||||
|
||||
ProjectCenter_HEADERS = \
|
||||
PCAppController.h \
|
||||
PCFindController.h \
|
||||
PCInfoController.h \
|
||||
PCLogController.h \
|
||||
PCMenuController.h \
|
||||
PCPrefController.h \
|
||||
PCAppController+MenuHandling.h
|
||||
|
||||
#
|
||||
# Class files
|
||||
#
|
||||
|
||||
ProjectCenter_OBJC_FILES = \
|
||||
PCAppController.m \
|
||||
PCFindController.m \
|
||||
PCInfoController.m \
|
||||
PCLogController.m \
|
||||
PCMenuController.m \
|
||||
PCPrefController.m \
|
||||
ProjectCenter_main.m \
|
||||
PCAppController+MenuHandling.m
|
||||
|
||||
#
|
||||
# C files
|
||||
#
|
||||
|
||||
ProjectCenter_C_FILES =
|
||||
|
||||
-include GNUmakefile.preamble
|
||||
-include GNUmakefile.local
|
||||
include $(GNUSTEP_MAKEFILES)/aggregate.make
|
||||
include $(GNUSTEP_MAKEFILES)/application.make
|
||||
-include GNUmakefile.postamble
|
|
@ -1,30 +0,0 @@
|
|||
#
|
||||
# GNUmakefile.postamble
|
||||
#
|
||||
# Copyright (C) 2001 Free Software Foundation, Inc.
|
||||
#
|
||||
# Author: Philippe C.D. Robert <prh@3dkit.org>
|
||||
#
|
||||
# This file is part of GNUstep
|
||||
#
|
||||
# This library is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Library General Public
|
||||
# License as published by the Free Software Foundation; either
|
||||
# version 2 of the License, or (at your option) any later version.
|
||||
#
|
||||
# This library 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 Library General Public
|
||||
# License along with this library; see the file COPYING.LIB.
|
||||
# If not, write to the Free Software Foundation,
|
||||
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
before-all::
|
||||
rm -f ProjectCenter
|
||||
$(LN_S) . ProjectCenter
|
||||
|
||||
after-clean::
|
||||
rm -f ProjectCenter
|
|
@ -1,72 +0,0 @@
|
|||
# GNUmakefile.preamble
|
||||
#
|
||||
# Copyright (C) 2001 Free Software Foundation, Inc.
|
||||
#
|
||||
# Author: Philippe C.D. Robert <prh@3dkit.org>
|
||||
#
|
||||
# This file is part of GNUstep
|
||||
#
|
||||
# This library is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Library General Public
|
||||
# License as published by the Free Software Foundation; either
|
||||
# version 2 of the License, or (at your option) any later version.
|
||||
#
|
||||
# This library 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.
|
||||
#
|
||||
# If you are interested in a warranty or support for this source code,
|
||||
# contact Scott Christley at scottc@net-community.com
|
||||
#
|
||||
# You should have received a copy of the GNU Library General Public
|
||||
# License along with this library; see the file COPYING.LIB.
|
||||
# If not, write to the Free Software Foundation,
|
||||
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
#
|
||||
# Makefile.preamble
|
||||
#
|
||||
# Project specific makefile variables, and additional
|
||||
#
|
||||
# Do not put any Makefile rules in this file, instead they should
|
||||
# be put into Makefile.postamble.
|
||||
#
|
||||
|
||||
#
|
||||
# Flags dealing with compiling and linking
|
||||
#
|
||||
|
||||
# Additional flags to pass to the preprocessor
|
||||
ADDITIONAL_CPPFLAGS +=
|
||||
|
||||
# Additional flags to pass to the Objective-C compiler
|
||||
ADDITIONAL_OBJCFLAGS +=
|
||||
|
||||
# Additional flags to pass to the C compiler
|
||||
ADDITIONAL_CFLAGS +=
|
||||
#ADDITIONAL_CFLAGS +=
|
||||
|
||||
# Additional include directories the compiler should search
|
||||
ADDITIONAL_INCLUDE_DIRS += -I../PCLib
|
||||
|
||||
# Additional LDFLAGS to pass to the linker
|
||||
#ADDITIONAL_LDFLAGS +=
|
||||
|
||||
# Additional library directories the linker should search
|
||||
ADDITIONAL_LIB_DIRS += -L../PCLib/$(GNUSTEP_OBJ_DIR)
|
||||
|
||||
ADDITIONAL_TOOL_LIBS +=
|
||||
|
||||
#
|
||||
# Flags dealing with installing and uninstalling
|
||||
#
|
||||
|
||||
# Additional directories to be created during installation
|
||||
ADDITIONAL_INSTALL_DIRS +=
|
||||
|
||||
#
|
||||
# Local configuration
|
||||
#
|
||||
|
||||
|
|
@ -1,73 +0,0 @@
|
|||
/*
|
||||
GNUstep ProjectCenter - http://www.gnustep.org
|
||||
|
||||
Copyright (C) 2001 Free Software Foundation
|
||||
|
||||
Author: Philippe C.D. Robert <phr@3dkit.org>
|
||||
|
||||
This file is part of GNUstep.
|
||||
|
||||
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.
|
||||
|
||||
$Id$
|
||||
*/
|
||||
|
||||
#ifndef _PCAPPCONTROLLER_MENUHANDLING_H
|
||||
#define _PCAPPCONTROLLER_MENUHANDLING_H
|
||||
|
||||
#include <AppKit/AppKit.h>
|
||||
#include "PCAppController.h"
|
||||
|
||||
@interface PCAppController (MenuHandling)
|
||||
|
||||
- (void)showPrefWindow:(id)sender;
|
||||
- (void)showInfoPanel:(id)sender;
|
||||
|
||||
- (void)showInspector:(id)sender;
|
||||
- (void)showEditorPanel:(id)sender;
|
||||
- (void)showRunPanel:(id)sender;
|
||||
- (void)showBuildPanel:(id)sender;
|
||||
- (void)runTarget:(id)sender;
|
||||
|
||||
- (void)showFindPanel:(id)sender;
|
||||
- (void)findNext:(id)sender;
|
||||
- (void)findPrevious:(id)sender;
|
||||
|
||||
- (void)openProject:(id)sender;
|
||||
- (void)newProject:(id)sender;
|
||||
- (void)saveProject:(id)sender;
|
||||
- (void)saveProjectAs:(id)sender;
|
||||
- (void)saveFiles:(id)sender;
|
||||
- (void)revertToSaved:(id)sender;
|
||||
|
||||
- (void)newSubproject:(id)sender;
|
||||
- (void)addSubproject:(id)sender;
|
||||
- (void)removeSubproject:(id)sender;
|
||||
|
||||
- (void)closeProject:(id)sender;
|
||||
|
||||
- (void)newFile:(id)sender;
|
||||
- (void)addFile:(id)sender;
|
||||
- (void)openFile:(id)sender;
|
||||
- (void)saveFile:(id)sender;
|
||||
- (void)revertFile:(id)sender;
|
||||
- (void)renameFile:(id)sender;
|
||||
- (void)removeFile:(id)sender;
|
||||
|
||||
- (BOOL)validateMenuItem:(id <NSMenuItem>)menuItem;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
|
@ -1,178 +0,0 @@
|
|||
/*
|
||||
GNUstep ProjectCenter - http://www.gnustep.org
|
||||
|
||||
Copyright (C) 2001 Free Software Foundation
|
||||
|
||||
Author: Philippe C.D. Robert <phr@3dkit.org>
|
||||
|
||||
This file is part of GNUstep.
|
||||
|
||||
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.
|
||||
|
||||
$Id$
|
||||
*/
|
||||
|
||||
#include "PCAppController+MenuHandling.h"
|
||||
#include "PCMenuController.h"
|
||||
#include "PCPrefController.h"
|
||||
#include "PCInfoController.h"
|
||||
|
||||
#include <ProjectCenter/PCProject+ComponentHandling.h>
|
||||
#include <ProjectCenter/PCProjectManager.h>
|
||||
#include <ProjectCenter/PCTextFinder.h>
|
||||
|
||||
@implementation PCAppController (MenuHandling)
|
||||
|
||||
- (void)showPrefWindow:(id)sender
|
||||
{
|
||||
[prefController showPrefWindow:sender];
|
||||
}
|
||||
|
||||
- (void)showInfoPanel:(id)sender
|
||||
{
|
||||
[infoController showInfoWindow:sender];
|
||||
}
|
||||
|
||||
- (void)showInspector:(id)sender
|
||||
{
|
||||
[projectManager showInspectorForProject:[projectManager activeProject]];
|
||||
}
|
||||
|
||||
- (void)showEditorPanel:(id)sender
|
||||
{
|
||||
[[projectManager activeProject] showEditorView:self];
|
||||
}
|
||||
|
||||
- (void)showRunPanel:(id)sender
|
||||
{
|
||||
[[projectManager activeProject] showRunView:self];
|
||||
}
|
||||
|
||||
- (void)showBuildPanel:(id)sender
|
||||
{
|
||||
[[projectManager activeProject] showBuildView:self];
|
||||
}
|
||||
|
||||
- (void)runTarget:(id)sender
|
||||
{
|
||||
[[projectManager activeProject] runSelectedTarget:self];
|
||||
}
|
||||
|
||||
- (void)showFindPanel:(id)sender
|
||||
{
|
||||
[[PCTextFinder sharedFinder] showFindPanel:self];
|
||||
}
|
||||
|
||||
- (void)findNext:(id)sender
|
||||
{
|
||||
[[PCTextFinder sharedFinder] findNext:self];
|
||||
}
|
||||
|
||||
- (void)findPrevious:(id)sender
|
||||
{
|
||||
[[PCTextFinder sharedFinder] findPrevious:self];
|
||||
}
|
||||
|
||||
- (void)openProject:(id)sender
|
||||
{
|
||||
[menuController openProject:sender];
|
||||
}
|
||||
|
||||
- (void)newProject:(id)sender
|
||||
{
|
||||
[menuController newProject:sender];
|
||||
}
|
||||
|
||||
- (void)saveProject:(id)sender
|
||||
{
|
||||
[menuController saveProject:sender];
|
||||
}
|
||||
|
||||
- (void)saveProjectAs:(id)sender
|
||||
{
|
||||
[menuController saveProjectAs:sender];
|
||||
}
|
||||
|
||||
- (void)saveFiles:(id)sender
|
||||
{
|
||||
[menuController saveFiles:sender];
|
||||
}
|
||||
|
||||
- (void)revertToSaved:(id)sender
|
||||
{
|
||||
[menuController revertToSaved:sender];
|
||||
}
|
||||
|
||||
- (void)newSubproject:(id)sender
|
||||
{
|
||||
[menuController newSubproject:sender];
|
||||
}
|
||||
|
||||
- (void)addSubproject:(id)sender
|
||||
{
|
||||
[menuController addSubproject:sender];
|
||||
}
|
||||
|
||||
- (void)removeSubproject:(id)sender
|
||||
{
|
||||
[menuController removeSubproject:sender];
|
||||
}
|
||||
|
||||
- (void)closeProject:(id)sender
|
||||
{
|
||||
[menuController closeProject:sender];
|
||||
}
|
||||
|
||||
- (void)newFile:(id)sender
|
||||
{
|
||||
[menuController newFile:sender];
|
||||
}
|
||||
|
||||
- (void)addFile:(id)sender
|
||||
{
|
||||
[menuController addFile:sender];
|
||||
}
|
||||
|
||||
- (void)openFile:(id)sender
|
||||
{
|
||||
[menuController openFile:sender];
|
||||
}
|
||||
|
||||
- (void)saveFile:(id)sender
|
||||
{
|
||||
[menuController saveFile:sender];
|
||||
}
|
||||
|
||||
- (void)revertFile:(id)sender
|
||||
{
|
||||
[menuController revertFile:sender];
|
||||
}
|
||||
|
||||
- (void)renameFile:(id)sender
|
||||
{
|
||||
[menuController renameFile:sender];
|
||||
}
|
||||
|
||||
- (void)removeFile:(id)sender
|
||||
{
|
||||
[menuController removeFile:sender];
|
||||
}
|
||||
|
||||
- (BOOL)validateMenuItem:(id <NSMenuItem>)menuItem
|
||||
{
|
||||
return [menuController validateMenuItem:menuItem];
|
||||
}
|
||||
|
||||
@end
|
|
@ -1,118 +0,0 @@
|
|||
/*
|
||||
GNUstep ProjectCenter - http://www.gnustep.org
|
||||
|
||||
Copyright (C) 2001 Free Software Foundation
|
||||
|
||||
Author: Philippe C.D. Robert <phr@3dkit.org>
|
||||
|
||||
This file is part of GNUstep.
|
||||
|
||||
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.
|
||||
|
||||
$Id$
|
||||
*/
|
||||
|
||||
#ifndef _PCAPPCONTROLLER_H
|
||||
#define _PCAPPCONTROLLER_H
|
||||
|
||||
#include <AppKit/AppKit.h>
|
||||
|
||||
#include "PCPrefController.h"
|
||||
#include "PCFindController.h"
|
||||
#include "PCInfoController.h"
|
||||
#include "PCLogController.h"
|
||||
|
||||
@class PCBundleLoader;
|
||||
@class PCServer;
|
||||
@class PCProjectManager;
|
||||
@class PCFileManager;
|
||||
@class PCMenuController;
|
||||
|
||||
@interface PCAppController : NSObject
|
||||
{
|
||||
PCPrefController *prefController;
|
||||
PCFindController *finder;
|
||||
PCInfoController *infoController;
|
||||
PCLogController *logger;
|
||||
PCProjectManager *projectManager;
|
||||
PCFileManager *fileManager;
|
||||
PCMenuController *menuController;
|
||||
|
||||
PCBundleLoader *bundleLoader;
|
||||
PCServer *doServer;
|
||||
NSConnection *doConnection;
|
||||
|
||||
id delegate;
|
||||
|
||||
NSMutableDictionary *projectTypes;
|
||||
}
|
||||
|
||||
//============================================================================
|
||||
//==== Intialization & deallocation
|
||||
//============================================================================
|
||||
|
||||
+ (void)initialize;
|
||||
|
||||
- (id)init;
|
||||
- (void)dealloc;
|
||||
|
||||
//============================================================================
|
||||
//==== Delegate
|
||||
//============================================================================
|
||||
|
||||
- (id)delegate;
|
||||
- (void)setDelegate:(id)aDelegate;
|
||||
|
||||
//============================================================================
|
||||
//==== Bundle Management
|
||||
//============================================================================
|
||||
|
||||
- (PCBundleLoader *)bundleLoader;
|
||||
- (PCProjectManager *)projectManager;
|
||||
- (PCPrefController *)prefController;
|
||||
- (PCServer *)doServer;
|
||||
- (PCFindController *)finder;
|
||||
- (PCLogController *)logger;
|
||||
|
||||
- (NSDictionary *)projectTypes;
|
||||
|
||||
//============================================================================
|
||||
//==== Misc...
|
||||
//============================================================================
|
||||
|
||||
- (BOOL)application:(NSApplication *)application openFile:(NSString *)fileName;
|
||||
|
||||
- (void)applicationWillFinishLaunching:(NSNotification *)notification;
|
||||
- (void)applicationDidFinishLaunching:(NSNotification *)notification;
|
||||
|
||||
- (BOOL)applicationShouldTerminate:(id)sender;
|
||||
- (void)applicationWillTerminate:(NSNotification *)notification;
|
||||
|
||||
//============================================================================
|
||||
//==== Delegate stuff
|
||||
//============================================================================
|
||||
|
||||
- (void)bundleLoader:(id)sender didLoadBundle:(NSBundle *)aBundle;
|
||||
|
||||
@end
|
||||
|
||||
@interface PCAppController (ProjectRegistration)
|
||||
|
||||
- (BOOL)registerProjectCreator:(NSString *)className forKey:(NSString *)aKey;
|
||||
// Returns YES upon successfully registering a new projecttype.
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
|
@ -1,312 +0,0 @@
|
|||
/*
|
||||
GNUstep ProjectCenter - http://www.gnustep.org
|
||||
|
||||
Copyright (C) 2001 Free Software Foundation
|
||||
|
||||
Author: Philippe C.D. Robert <phr@3dkit.org>
|
||||
|
||||
This file is part of GNUstep.
|
||||
|
||||
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.
|
||||
|
||||
$Id$
|
||||
*/
|
||||
|
||||
#include "PCAppController.h"
|
||||
#include "PCMenuController.h"
|
||||
|
||||
#include <ProjectCenter/ProjectCenter.h>
|
||||
|
||||
#define REL_LIB_PC @"Library/ProjectCenter"
|
||||
#define ABS_LIB_PC @"/usr/GNUstep/Local/Library/ProjectCenter"
|
||||
|
||||
@implementation PCAppController
|
||||
|
||||
//============================================================================
|
||||
//==== Intialization & deallocation
|
||||
//============================================================================
|
||||
|
||||
+ (void)initialize
|
||||
{
|
||||
NSMutableDictionary *defaults = [NSMutableDictionary dictionary];
|
||||
NSDictionary *env = [[NSProcessInfo processInfo] environment];
|
||||
NSString *prefix = [env objectForKey:@"GNUSTEP_SYSTEM_ROOT"];
|
||||
NSString *_bundlePath;
|
||||
|
||||
if (prefix && ![prefix isEqualToString:@""])
|
||||
{
|
||||
_bundlePath = [prefix stringByAppendingPathComponent:REL_LIB_PC];
|
||||
}
|
||||
else
|
||||
{
|
||||
_bundlePath = [NSString stringWithString:ABS_LIB_PC];
|
||||
}
|
||||
|
||||
[defaults setObject:_bundlePath forKey:BundlePaths];
|
||||
|
||||
[defaults setObject:@"/usr/bin/vim" forKey:Editor];
|
||||
[defaults setObject:@"/usr/bin/gdb" forKey:PDebugger];
|
||||
[defaults setObject:@"/usr/bin/gcc" forKey:Compiler];
|
||||
|
||||
[defaults setObject:@"YES" forKey:ExternalEditor];
|
||||
|
||||
[defaults setObject:[NSString stringWithFormat:@"%@/ProjectCenterBuildDir",NSTemporaryDirectory()] forKey:RootBuildDirectory];
|
||||
|
||||
[defaults setObject:@"YES" forKey:SaveOnQuit];
|
||||
[defaults setObject:@"YES" forKey:PromptOnClean];
|
||||
[defaults setObject:@"YES" forKey:PromptOnQuit];
|
||||
[defaults setObject:@"YES" forKey:AutoSave];
|
||||
[defaults setObject:@"YES" forKey:KeepBackup];
|
||||
[defaults setObject:@"120" forKey:AutoSavePeriod];
|
||||
[defaults setObject:@"NO" forKey:DeleteCacheWhenQuitting];
|
||||
|
||||
[[NSUserDefaults standardUserDefaults] registerDefaults:defaults];
|
||||
[[NSUserDefaults standardUserDefaults] synchronize];
|
||||
}
|
||||
|
||||
- (id)init
|
||||
{
|
||||
if ((self = [super init]))
|
||||
{
|
||||
// The bundle loader
|
||||
bundleLoader = [[PCBundleLoader alloc] init];
|
||||
[bundleLoader setDelegate:self];
|
||||
|
||||
// They are registered by the bundleLoader
|
||||
projectTypes = [[NSMutableDictionary alloc] init];
|
||||
|
||||
prefController = [[PCPrefController alloc] init];
|
||||
finder = [[PCFindController alloc] init];
|
||||
infoController = [[PCInfoController alloc] init];
|
||||
logger = [[PCLogController alloc] init];
|
||||
projectManager = [[PCProjectManager alloc] init];
|
||||
fileManager = [PCFileManager fileManager];
|
||||
menuController = [[PCMenuController alloc] init];
|
||||
|
||||
[projectManager setDelegate:self];
|
||||
[fileManager setDelegate:projectManager];
|
||||
|
||||
[menuController setAppController:self];
|
||||
[menuController setFileManager:fileManager];
|
||||
[menuController setProjectManager:projectManager];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)dealloc
|
||||
{
|
||||
if (doConnection)
|
||||
{
|
||||
[doConnection invalidate];
|
||||
[doConnection release];
|
||||
}
|
||||
|
||||
[prefController release];
|
||||
[finder release];
|
||||
[infoController release];
|
||||
[logger release];
|
||||
[projectManager release];
|
||||
[fileManager release];
|
||||
[menuController release];
|
||||
|
||||
[bundleLoader release];
|
||||
[doServer release];
|
||||
[projectTypes release];
|
||||
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
//============================================================================
|
||||
//==== Delegate
|
||||
//============================================================================
|
||||
|
||||
- (id)delegate
|
||||
{
|
||||
return delegate;
|
||||
}
|
||||
|
||||
- (void)setDelegate:(id)aDelegate
|
||||
{
|
||||
delegate = aDelegate;
|
||||
}
|
||||
|
||||
//============================================================================
|
||||
//==== Bundle Management
|
||||
//============================================================================
|
||||
|
||||
- (PCBundleLoader *)bundleLoader
|
||||
{
|
||||
return bundleLoader;
|
||||
}
|
||||
|
||||
- (PCProjectManager *)projectManager
|
||||
{
|
||||
return projectManager;
|
||||
}
|
||||
|
||||
- (PCPrefController *)prefController
|
||||
{
|
||||
return prefController;
|
||||
}
|
||||
|
||||
- (PCServer *)doServer
|
||||
{
|
||||
return doServer;
|
||||
}
|
||||
|
||||
- (PCFindController *)finder
|
||||
{
|
||||
return finder;
|
||||
}
|
||||
|
||||
- (PCLogController *)logger
|
||||
{
|
||||
return logger;
|
||||
}
|
||||
|
||||
- (NSDictionary *)projectTypes
|
||||
{
|
||||
return projectTypes;
|
||||
}
|
||||
|
||||
//============================================================================
|
||||
//==== Misc...
|
||||
//============================================================================
|
||||
|
||||
- (BOOL)application:(NSApplication *)application openFile:(NSString *)fileName
|
||||
{
|
||||
if ([[fileName pathExtension] isEqualToString:@"pcproj"] == NO)
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
|
||||
[NSApp activateIgnoringOtherApps:YES];
|
||||
return [projectManager openProjectAt:fileName];
|
||||
}
|
||||
|
||||
- (void)applicationWillFinishLaunching:(NSNotification *)notification
|
||||
{
|
||||
[bundleLoader loadBundles];
|
||||
}
|
||||
|
||||
- (void)applicationDidFinishLaunching:(NSNotification *)notification
|
||||
{
|
||||
NSString *h = [[NSProcessInfo processInfo] hostName];
|
||||
NSString *connectionName = [NSString stringWithFormat:@"ProjectCenter:%@",h];
|
||||
[logger logMessage:@"Loading additional subsystems..." tag:INFORMATION];
|
||||
|
||||
//[bundleLoader loadBundles];
|
||||
|
||||
// The DO server
|
||||
doServer = [[PCServer alloc] init];
|
||||
|
||||
NS_DURING
|
||||
|
||||
doConnection = [[NSConnection alloc] init];
|
||||
[doConnection registerName:connectionName];
|
||||
|
||||
NS_HANDLER
|
||||
|
||||
NSRunAlertPanel(@"Warning!",@"Could not register the DO connection %@",@"OK",nil,nil,nil,connectionName);
|
||||
NS_ENDHANDLER
|
||||
|
||||
[[NSNotificationCenter defaultCenter] addObserver:doServer selector:@selector(connectionDidDie:) name:NSConnectionDidDieNotification object:doConnection];
|
||||
|
||||
[doConnection setDelegate:doServer];
|
||||
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:PCAppDidInitNotification object:nil];
|
||||
}
|
||||
|
||||
- (BOOL)applicationShouldTerminate:(id)sender
|
||||
{
|
||||
NSString *poq = [[NSUserDefaults standardUserDefaults] objectForKey:PromptOnQuit];
|
||||
NSString *soq = [[NSUserDefaults standardUserDefaults] objectForKey:SaveOnQuit];
|
||||
|
||||
if( [poq isEqualToString:@"YES"] )
|
||||
{
|
||||
if (NSRunAlertPanel(@"Quit!",
|
||||
@"Do you really want to quit ProjectCenter?",
|
||||
@"No", @"Yes", nil)) {
|
||||
return NO;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if ( [soq isEqualToString:@"YES"] ) {
|
||||
[projectManager saveAllProjects];
|
||||
}
|
||||
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:PCAppWillTerminateNotification object:nil];
|
||||
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (void)applicationWillTerminate:(NSNotification *)notification
|
||||
{
|
||||
// [[PCLogController sharedController] logMessageWithTag:INFORMATION object:self format:@"ProjectCenter is going down..."];
|
||||
|
||||
if ([[[NSUserDefaults standardUserDefaults] stringForKey:DeleteCacheWhenQuitting] isEqualToString:@"YES"]) {
|
||||
[[NSFileManager defaultManager] removeFileAtPath:[projectManager rootBuildPath] handler:nil];
|
||||
}
|
||||
|
||||
[[NSUserDefaults standardUserDefaults] synchronize];
|
||||
}
|
||||
|
||||
//============================================================================
|
||||
//==== Delegate stuff
|
||||
//============================================================================
|
||||
|
||||
- (void)bundleLoader:(id)sender didLoadBundle:(NSBundle *)aBundle
|
||||
{
|
||||
Class principalClass;
|
||||
|
||||
NSAssert(aBundle,@"No valid bundle!");
|
||||
|
||||
principalClass = [aBundle principalClass];
|
||||
if ([principalClass conformsToProtocol:@protocol(ProjectType)]) {
|
||||
NSString *name = [[principalClass sharedCreator] projectTypeName];
|
||||
|
||||
[logger logMessage:[NSString stringWithFormat:@"Project type %@ successfully loaded!",name] tag:INFORMATION];
|
||||
|
||||
if ([self registerProjectCreator:NSStringFromClass(principalClass) forKey:name]) {
|
||||
[menuController addProjectTypeNamed:name];
|
||||
|
||||
[logger logMessage:[NSString stringWithFormat:@"Project type %@ successfully registered!",name] tag:INFORMATION];
|
||||
}
|
||||
}
|
||||
else if ([principalClass conformsToProtocol:@protocol(FileCreator)]) {
|
||||
[fileManager registerCreatorsWithObjectsAndKeys:[[principalClass sharedCreator] creatorDictionary]];
|
||||
|
||||
// In objc.h there is already th like (char *)name...
|
||||
// [logger logMessage:[NSString stringWithFormat:@"FileCreator %@ successfully loaded!",(NSString *)[[principalClass sharedCreator] name]] tag:INFORMATION];
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation PCAppController (ProjectRegistration)
|
||||
|
||||
- (BOOL)registerProjectCreator:(NSString *)className forKey:(NSString *)aKey
|
||||
{
|
||||
if ([projectTypes objectForKey:aKey]) {
|
||||
return NO;
|
||||
}
|
||||
|
||||
[projectTypes setObject:className forKey:aKey];
|
||||
|
||||
return YES;
|
||||
}
|
||||
|
||||
@end
|
|
@ -1,39 +0,0 @@
|
|||
/*
|
||||
GNUstep ProjectCenter - http://www.gnustep.org
|
||||
|
||||
Copyright (C) 2001 Free Software Foundation
|
||||
|
||||
Author: Philippe C.D. Robert <phr@3dkit.org>
|
||||
|
||||
This file is part of GNUstep.
|
||||
|
||||
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.
|
||||
|
||||
$Id$
|
||||
*/
|
||||
|
||||
#ifndef _PCFINDCONTROLLER_H
|
||||
#define _PCFINDCONTROLLER_H
|
||||
|
||||
#include <AppKit/AppKit.h>
|
||||
|
||||
@interface PCFindController : NSObject
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
|
@ -1,31 +0,0 @@
|
|||
/*
|
||||
GNUstep ProjectCenter - http://www.gnustep.org
|
||||
|
||||
Copyright (C) 2001 Free Software Foundation
|
||||
|
||||
Author: Philippe C.D. Robert <phr@3dkit.org>
|
||||
|
||||
This file is part of GNUstep.
|
||||
|
||||
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.
|
||||
|
||||
$Id$
|
||||
*/
|
||||
|
||||
#include "PCFindController.h"
|
||||
|
||||
@implementation PCFindController
|
||||
|
||||
@end
|
|
@ -1,45 +0,0 @@
|
|||
/*
|
||||
GNUstep ProjectCenter - http://www.gnustep.org
|
||||
|
||||
Copyright (C) 2001 Free Software Foundation
|
||||
|
||||
Author: Philippe C.D. Robert <phr@3dkit.org>
|
||||
|
||||
This file is part of GNUstep.
|
||||
|
||||
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.
|
||||
|
||||
$Id$
|
||||
*/
|
||||
|
||||
#ifndef _PCINFOCONTROLLER_H
|
||||
#define _PCINFOCONTROLLER_H
|
||||
|
||||
#include <AppKit/AppKit.h>
|
||||
|
||||
@interface PCInfoController : NSObject
|
||||
{
|
||||
id infoWindow;
|
||||
NSDictionary *infoDict;
|
||||
}
|
||||
|
||||
- (id)init;
|
||||
- (void)dealloc;
|
||||
|
||||
- (void)showInfoWindow:(id)sender;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
|
@ -1,73 +0,0 @@
|
|||
/*
|
||||
GNUstep ProjectCenter - http://www.gnustep.org
|
||||
|
||||
Copyright (C) 2001 Free Software Foundation
|
||||
|
||||
Author: Philippe C.D. Robert <phr@3dkit.org>
|
||||
|
||||
This file is part of GNUstep.
|
||||
|
||||
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.
|
||||
|
||||
$Id$
|
||||
*/
|
||||
|
||||
#include "PCInfoController.h"
|
||||
#include <ProjectCenter/ProjectCenter.h>
|
||||
|
||||
#if defined(GNUSTEP)
|
||||
#include <AppKit/IMLoading.h>
|
||||
#endif
|
||||
|
||||
@implementation PCInfoController
|
||||
|
||||
- (id)init
|
||||
{
|
||||
if ((self = [super init])) {
|
||||
NSString *file;
|
||||
|
||||
file = [[NSBundle mainBundle] pathForResource:@"Info-project" ofType:@"plist"];
|
||||
infoDict = [NSDictionary dictionaryWithContentsOfFile:file];
|
||||
[infoDict retain];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)dealloc
|
||||
{
|
||||
[infoDict release];
|
||||
|
||||
if (infoWindow) {
|
||||
[infoWindow release];
|
||||
}
|
||||
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (void)showInfoWindow:(id)sender
|
||||
{
|
||||
#if defined(GNUSTEP)
|
||||
if (!infoWindow) {
|
||||
infoWindow = [[GSInfoPanel alloc] initWithDictionary:infoDict];
|
||||
}
|
||||
|
||||
[infoWindow center];
|
||||
[infoWindow makeKeyAndOrderFront:self];
|
||||
#else
|
||||
NSRunAlertPanel(@"Info",@"OPENSTEP has no support for GSInfoPanel",@"OK",nil,nil,nil);
|
||||
#endif
|
||||
}
|
||||
|
||||
@end
|
|
@ -1,44 +0,0 @@
|
|||
/*
|
||||
GNUstep ProjectCenter - http://www.gnustep.org
|
||||
|
||||
Copyright (C) 2001 Free Software Foundation
|
||||
|
||||
Author: Philippe C.D. Robert <phr@3dkit.org>
|
||||
|
||||
This file is part of GNUstep.
|
||||
|
||||
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.
|
||||
|
||||
$Id$
|
||||
*/
|
||||
|
||||
#ifndef _PCLOGCONTROLLER_H
|
||||
#define _PCLOGCONTROLLER_H
|
||||
|
||||
#include <AppKit/AppKit.h>
|
||||
|
||||
#define INFORMATION 0
|
||||
#define WARNING 1
|
||||
|
||||
@interface PCLogController : NSObject
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
- (void)logMessage:(NSString *)message tag:(int)tag;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
|
@ -1,49 +0,0 @@
|
|||
/*
|
||||
GNUstep ProjectCenter - http://www.gnustep.org
|
||||
|
||||
Copyright (C) 2001 Free Software Foundation
|
||||
|
||||
Author: Philippe C.D. Robert <phr@3dkit.org>
|
||||
|
||||
This file is part of GNUstep.
|
||||
|
||||
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.
|
||||
|
||||
$Id$
|
||||
*/
|
||||
|
||||
#include "PCLogController.h"
|
||||
|
||||
@implementation PCLogController
|
||||
|
||||
- (void)logMessage:(NSString *)message tag:(int)tag;
|
||||
{
|
||||
NSString *_log;
|
||||
|
||||
switch (tag) {
|
||||
case 0:
|
||||
_log = [NSString stringWithFormat:@"Information from <%@: %x - %x>: %@",[self class],self,[NSThread currentThread],message];
|
||||
break;
|
||||
case 1:
|
||||
_log = [NSString stringWithFormat:@"Warning from <%@: %x - %x>: %@",[self class],self,[NSThread currentThread],message];
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
NSLog(message);
|
||||
}
|
||||
|
||||
@end
|
|
@ -1,97 +0,0 @@
|
|||
/*
|
||||
GNUstep ProjectCenter - http://www.gnustep.org
|
||||
|
||||
Copyright (C) 2001 Free Software Foundation
|
||||
|
||||
Author: Philippe C.D. Robert <phr@3dkit.org>
|
||||
|
||||
This file is part of GNUstep.
|
||||
|
||||
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.
|
||||
|
||||
$Id$
|
||||
*/
|
||||
|
||||
#ifndef _PCMENUCONTROLLER_H
|
||||
#define _PCMENUCONTROLLER_H
|
||||
|
||||
#include <AppKit/AppKit.h>
|
||||
|
||||
@class PCProjectManager;
|
||||
@class PCFileManager;
|
||||
@class PCAppController;
|
||||
|
||||
@interface PCMenuController : NSObject
|
||||
{
|
||||
PCProjectManager *projectManager;
|
||||
PCFileManager *fileManager;
|
||||
PCAppController *appController;
|
||||
|
||||
NSBox *projectTypeAccessaryView;
|
||||
id projectTypePopup;
|
||||
|
||||
BOOL editorIsKey;
|
||||
}
|
||||
|
||||
//============================================================================
|
||||
//==== Init and free
|
||||
//============================================================================
|
||||
|
||||
- (id)init;
|
||||
- (void)dealloc;
|
||||
|
||||
- (void)setAppController:(id)anObject;
|
||||
- (void)setFileManager:(id)anObject;
|
||||
- (void)setProjectManager:(id)anObject;
|
||||
|
||||
//============================================================================
|
||||
//==== Menu stuff
|
||||
//============================================================================
|
||||
|
||||
- (void)addProjectTypeNamed:(NSString *)name;
|
||||
|
||||
- (void)openProject:(id)sender;
|
||||
- (void)newProject:(id)sender;
|
||||
- (void)saveProject:(id)sender;
|
||||
- (void)saveProjectAs:(id)sender;
|
||||
- (void)saveFiles:(id)sender;
|
||||
- (void)revertToSaved:(id)sender;
|
||||
|
||||
- (void)newSubproject:(id)sender;
|
||||
- (void)addSubproject:(id)sender;
|
||||
- (void)removeSubproject:(id)sender;
|
||||
|
||||
- (void)closeProject:(id)sender;
|
||||
|
||||
- (void)newFile:(id)sender;
|
||||
- (void)addFile:(id)sender;
|
||||
- (void)openFile:(id)sender;
|
||||
- (void)saveFile:(id)sender;
|
||||
- (void)revertFile:(id)sender;
|
||||
- (void)renameFile:(id)sender;
|
||||
- (void)removeFile:(id)sender;
|
||||
|
||||
//============================================================================
|
||||
//==== Delegate stuff
|
||||
//============================================================================
|
||||
|
||||
- (BOOL)validateMenuItem:(id <NSMenuItem>)menuItem;
|
||||
|
||||
- (void)editorDidResignKey:(NSNotification *)aNotification;
|
||||
- (void)editorDidBecomeKey:(NSNotification *)aNotification;
|
||||
|
||||
@end
|
||||
|
||||
#endif
|
|
@ -1,380 +0,0 @@
|
|||
/*
|
||||
GNUstep ProjectCenter - http://www.gnustep.org
|
||||
|
||||
Copyright (C) 2001 Free Software Foundation
|
||||
|
||||
Author: Philippe C.D. Robert <phr@3dkit.org>
|
||||
|
||||
This file is part of GNUstep.
|
||||
|
||||
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.
|
||||
|
||||
$Id$
|
||||
*/
|
||||
|
||||
#include "PCMenuController.h"
|
||||
|
||||
#include <ProjectCenter/ProjectCenter.h>
|
||||
#include "PCAppController.h"
|
||||
|
||||
#if defined(GNUSTEP)
|
||||
#include <AppKit/IMLoading.h>
|
||||
#endif
|
||||
|
||||
@implementation PCMenuController
|
||||
|
||||
- (id)init
|
||||
{
|
||||
if ((self = [super init]))
|
||||
{
|
||||
NSRect fr = NSMakeRect(20,30,160,20);
|
||||
|
||||
[[NSNotificationCenter defaultCenter] addObserver:self
|
||||
selector:@selector(editorDidBecomeKey:)
|
||||
name:PCEditorDidBecomeKeyNotification
|
||||
object:nil];
|
||||
|
||||
[[NSNotificationCenter defaultCenter] addObserver:self
|
||||
selector:@selector(editorDidResignKey:)
|
||||
name:PCEditorDidResignKeyNotification
|
||||
object:nil];
|
||||
|
||||
editorIsKey = NO;
|
||||
|
||||
projectTypeAccessaryView = [[NSBox alloc] init];
|
||||
projectTypePopup = [[NSPopUpButton alloc] initWithFrame:fr pullsDown:NO];
|
||||
[projectTypePopup setAutoenablesItems: NO];
|
||||
[projectTypePopup addItemWithTitle:@"No type available!"];
|
||||
|
||||
[projectTypeAccessaryView setTitle:@"Project Types"];
|
||||
[projectTypeAccessaryView setTitlePosition:NSAtTop];
|
||||
[projectTypeAccessaryView setBorderType:NSGrooveBorder];
|
||||
[projectTypeAccessaryView addSubview:projectTypePopup];
|
||||
[projectTypeAccessaryView sizeToFit];
|
||||
[projectTypeAccessaryView setAutoresizingMask:
|
||||
NSViewMinXMargin | NSViewMaxXMargin];
|
||||
|
||||
RELEASE(projectTypePopup);
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)dealloc
|
||||
{
|
||||
[[NSNotificationCenter defaultCenter] removeObserver:self];
|
||||
|
||||
RELEASE(projectTypeAccessaryView);
|
||||
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (void)addProjectTypeNamed:(NSString *)name
|
||||
{
|
||||
static BOOL _firstItem = YES;
|
||||
|
||||
if (_firstItem)
|
||||
{
|
||||
_firstItem = NO;
|
||||
[projectTypePopup removeItemWithTitle:@"No type available!"];
|
||||
}
|
||||
|
||||
[projectTypePopup addItemWithTitle:name];
|
||||
[projectTypePopup sizeToFit];
|
||||
[projectTypeAccessaryView sizeToFit];
|
||||
}
|
||||
|
||||
- (void)setAppController:(id)anObject
|
||||
{
|
||||
[appController autorelease];
|
||||
appController = [anObject retain];
|
||||
}
|
||||
|
||||
- (void)setFileManager:(id)anObject
|
||||
{
|
||||
[fileManager autorelease];
|
||||
fileManager = [anObject retain];
|
||||
}
|
||||
|
||||
- (void)setProjectManager:(id)anObject
|
||||
{
|
||||
[projectManager autorelease];
|
||||
projectManager = [anObject retain];
|
||||
}
|
||||
|
||||
//============================================================================
|
||||
//==== Menu stuff
|
||||
//============================================================================
|
||||
|
||||
- (void)openProject:(id)sender
|
||||
{
|
||||
NSString *projPath;
|
||||
NSOpenPanel *openPanel;
|
||||
int retval;
|
||||
|
||||
openPanel = [NSOpenPanel openPanel];
|
||||
[openPanel setAllowsMultipleSelection:NO];
|
||||
[openPanel setCanChooseDirectories:NO];
|
||||
[openPanel setCanChooseFiles:YES];
|
||||
|
||||
retval = [openPanel runModalForDirectory:[[NSUserDefaults standardUserDefaults] objectForKey:@"LastOpenDirectory"] file:nil types:[NSArray arrayWithObjects:@"project",@"pcproj",nil]];
|
||||
|
||||
if (retval == NSOKButton)
|
||||
{
|
||||
BOOL isDir;
|
||||
|
||||
[[NSUserDefaults standardUserDefaults] setObject:[openPanel directory]
|
||||
forKey:@"LastOpenDirectory"];
|
||||
|
||||
projPath = [[openPanel filenames] objectAtIndex:0];
|
||||
|
||||
if ([[NSFileManager defaultManager] fileExistsAtPath:projPath
|
||||
isDirectory:&isDir] && !isDir)
|
||||
{
|
||||
if (![projectManager openProjectAt:projPath])
|
||||
{
|
||||
NSRunAlertPanel(@"Attention!",
|
||||
@"Couldn't open %@!",
|
||||
@"OK",nil,nil,
|
||||
[projPath stringByDeletingLastPathComponent]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
- (void)newProject:(id)sender
|
||||
{
|
||||
NSSavePanel *sp;
|
||||
int runResult;
|
||||
NSString *dir = nil;
|
||||
|
||||
sp = [NSSavePanel savePanel];
|
||||
|
||||
[sp setTitle:@"Create new project..."];
|
||||
[sp setAccessoryView:nil];
|
||||
[sp setAccessoryView:projectTypeAccessaryView];
|
||||
|
||||
dir = [[NSUserDefaults standardUserDefaults] objectForKey:@"LastNewDirectory"];
|
||||
if( !dir )
|
||||
{
|
||||
dir = NSHomeDirectory();
|
||||
}
|
||||
|
||||
runResult = [sp runModalForDirectory:dir file:@""];
|
||||
if (runResult == NSOKButton)
|
||||
{
|
||||
NSString *projectType = [projectTypePopup titleOfSelectedItem];
|
||||
NSString *className = [[appController projectTypes] objectForKey:projectType];
|
||||
|
||||
[[NSUserDefaults standardUserDefaults] setObject:[sp directory]
|
||||
forKey:@"LastNewDirectory"];
|
||||
|
||||
if (![projectManager createProjectOfType:className path:[sp filename]])
|
||||
{
|
||||
NSRunAlertPanel(@"Attention!",
|
||||
@"Failed to create %@!",
|
||||
@"OK",nil,nil,[sp filename]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
- (void)saveProject:(id)sender
|
||||
{
|
||||
[projectManager saveProject];
|
||||
}
|
||||
|
||||
- (void)saveProjectAs:(id)sender
|
||||
{
|
||||
NSString *proj;
|
||||
|
||||
// Show save panel
|
||||
|
||||
[projectManager saveProjectAs:proj];
|
||||
}
|
||||
|
||||
- (void)saveFiles:(id)sender
|
||||
{
|
||||
[projectManager saveFiles];
|
||||
}
|
||||
|
||||
- (void)revertToSaved:(id)sender
|
||||
{
|
||||
[projectManager revertToSaved];
|
||||
}
|
||||
|
||||
- (void)newSubproject:(id)sender
|
||||
{
|
||||
[projectManager newSubproject];
|
||||
}
|
||||
|
||||
- (void)addSubproject:(id)sender
|
||||
{
|
||||
NSString *proj;
|
||||
|
||||
// Show open panel
|
||||
|
||||
[projectManager addSubprojectAt:proj];
|
||||
}
|
||||
|
||||
- (void)removeSubproject:(id)sender
|
||||
{
|
||||
[projectManager removeSubproject];
|
||||
}
|
||||
|
||||
- (void)closeProject:(id)sender
|
||||
{
|
||||
[projectManager closeProject];
|
||||
}
|
||||
|
||||
- (void)newFile:(id)sender
|
||||
{
|
||||
[fileManager showNewFileWindow];
|
||||
}
|
||||
|
||||
- (void)openFile:(id)sender
|
||||
{
|
||||
NSString *filePath;
|
||||
NSOpenPanel *openPanel;
|
||||
int retval;
|
||||
|
||||
openPanel = [NSOpenPanel openPanel];
|
||||
[openPanel setAllowsMultipleSelection:NO];
|
||||
[openPanel setCanChooseDirectories:NO];
|
||||
[openPanel setCanChooseFiles:YES];
|
||||
|
||||
retval = [openPanel runModalForDirectory:[[NSUserDefaults standardUserDefaults] objectForKey:@"LastOpenDirectory"] file:nil types:nil];
|
||||
|
||||
if (retval == NSOKButton) {
|
||||
BOOL isDir;
|
||||
|
||||
[[NSUserDefaults standardUserDefaults] setObject:[openPanel directory] forKey:@"LastOpenDirectory"];
|
||||
|
||||
filePath = [[openPanel filenames] objectAtIndex:0];
|
||||
|
||||
if ([[NSFileManager defaultManager] fileExistsAtPath:filePath isDirectory:&isDir] && !isDir)
|
||||
{
|
||||
if (![projectManager openFile:filePath])
|
||||
{
|
||||
NSRunAlertPanel(@"Attention!",
|
||||
@"Couldn't open %@!",
|
||||
@"OK",nil,nil,filePath);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
- (void)addFile:(id)sender
|
||||
{
|
||||
[fileManager showAddFileWindow];
|
||||
}
|
||||
|
||||
- (void)saveFile:(id)sender
|
||||
{
|
||||
[projectManager saveFile];
|
||||
}
|
||||
|
||||
- (void)revertFile:(id)sender
|
||||
{
|
||||
[projectManager revertFile];
|
||||
}
|
||||
|
||||
- (void)renameFile:(id)sender
|
||||
{
|
||||
NSString *proj;
|
||||
|
||||
// Show open panel
|
||||
|
||||
[projectManager renameFileTo:proj];
|
||||
}
|
||||
|
||||
- (void)removeFile:(id)sender
|
||||
{
|
||||
NSString *file = nil;
|
||||
PCProject *proj = [projectManager activeProject];
|
||||
|
||||
if ((file = [[proj browserController] nameOfSelectedFile])) {
|
||||
int ret;
|
||||
|
||||
ret = NSRunAlertPanel(@"Remove File!",@"Really remove %@ in project %@?",@"Cancel",@"...from Project only",@"...from Project and Disk",file,[proj projectName]);
|
||||
|
||||
if (ret == NSAlertAlternateReturn || ret == NSAlertOtherReturn)
|
||||
{
|
||||
BOOL flag = (ret == NSAlertOtherReturn) ? YES : NO;
|
||||
|
||||
[projectManager removeFilePermanently:flag];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//============================================================================
|
||||
//==== Delegate stuff
|
||||
//============================================================================
|
||||
|
||||
- (BOOL)validateMenuItem:(id <NSMenuItem>)menuItem
|
||||
{
|
||||
if ([[projectManager loadedProjects] count] == 0)
|
||||
{
|
||||
// File related menu items
|
||||
if ([[menuItem title] isEqualToString:@"New in Project"]) return NO;
|
||||
if ([[menuItem title] isEqualToString:@"Add File"]) return NO;
|
||||
if ([[menuItem title] isEqualToString:@"Remove File"]) return NO;
|
||||
if ([[menuItem title] isEqualToString:@"Save File"]) return NO;
|
||||
if ([[menuItem title] isEqualToString:@"Revert"]) return NO;
|
||||
if ([[menuItem title] isEqualToString:@"Rename"]) return NO;
|
||||
|
||||
// Project related menu items
|
||||
if ([[menuItem title] isEqualToString:@"Close"]) return NO;
|
||||
if ([[menuItem title] isEqualToString:@"Save..."]) return NO;
|
||||
if ([[menuItem title] isEqualToString:@"Save As..."]) return NO;
|
||||
|
||||
// Embedded Project Views
|
||||
if ([[menuItem title] isEqualToString:@"Inspector Panel"]) return NO;
|
||||
if ([[menuItem title] isEqualToString:@"Launch Panel"]) return NO;
|
||||
if ([[menuItem title] isEqualToString:@"Build Panel"]) return NO;
|
||||
if ([[menuItem title] isEqualToString:@"Editor Panel"]) return NO;
|
||||
|
||||
if ([[menuItem title] isEqualToString:@"Run..."]) return NO;
|
||||
}
|
||||
|
||||
// File related menu items
|
||||
if( editorIsKey == NO )
|
||||
{
|
||||
if ([[menuItem title] isEqualToString:@"Save File"]) return NO;
|
||||
if ([[menuItem title] isEqualToString:@"Revert"]) return NO;
|
||||
if ([[menuItem title] isEqualToString:@"Rename"]) return NO;
|
||||
}
|
||||
|
||||
if ([[menuItem title] isEqualToString:@"Find Next"])
|
||||
{
|
||||
if( ![[[PCTextFinder sharedFinder] findPanel] isVisible] ) return NO;
|
||||
}
|
||||
|
||||
if ([[menuItem title] isEqualToString:@"Find Previous"])
|
||||
{
|
||||
if( ![[[PCTextFinder sharedFinder] findPanel] isVisible] ) return NO;
|
||||
}
|
||||
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (void)editorDidResignKey:(NSNotification *)aNotification
|
||||
{
|
||||
editorIsKey = NO;
|
||||
}
|
||||
- (void)editorDidBecomeKey:(NSNotification *)aNotification
|
||||
{
|
||||
editorIsKey = YES;
|
||||
}
|
||||
|
||||
@end
|
|
@ -1,103 +0,0 @@
|
|||
/*
|
||||
GNUstep ProjectCenter - http://www.gnustep.org
|
||||
|
||||
Copyright (C) 2001 Free Software Foundation
|
||||
|
||||
Author: Philippe C.D. Robert <phr@3dkit.org>
|
||||
|
||||
This file is part of GNUstep.
|
||||
|
||||
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.
|
||||
|
||||
$Id$
|
||||
*/
|
||||
|
||||
#ifndef _PCPREFCONTROLLER_H
|
||||
#define _PCPREFCONTROLLER_H
|
||||
|
||||
#include <AppKit/AppKit.h>
|
||||
|
||||
@interface PCPrefController : NSObject
|
||||
{
|
||||
id prefWindow;
|
||||
id prefPopup;
|
||||
|
||||
id prefEmptyView;
|
||||
id prefBuildingView;
|
||||
id prefMiscView;
|
||||
id prefEditingView;
|
||||
id prefSavingView;
|
||||
id prefInterfaceView;
|
||||
|
||||
id tabMatrix;
|
||||
|
||||
id successField;
|
||||
id failureField;
|
||||
|
||||
id autoSaveField;
|
||||
id saveAutomatically;
|
||||
id keepBackup;
|
||||
id saveOnQuit;
|
||||
|
||||
id useExternalEditor;
|
||||
id promptWhenQuit;
|
||||
id promptOnClean;
|
||||
|
||||
id editorField;
|
||||
id debuggerField;
|
||||
id compilerField;
|
||||
id bundlePathField;
|
||||
|
||||
id separateBuilder;
|
||||
id separateLauncher;
|
||||
id separateEditor;
|
||||
|
||||
NSMutableDictionary *preferencesDict;
|
||||
}
|
||||
|
||||
- (id)init;
|
||||
- (void)dealloc;
|
||||
|
||||
- (void)showPrefWindow:(id)sender;
|
||||
- (void)popupChanged:(id)sender;
|
||||
|
||||
- (void)setSuccessSound:(id)sender;
|
||||
- (void)setFailureSound:(id)sender;
|
||||
- (void)setPromptOnClean:(id)sender;
|
||||
|
||||
- (void)setSaveAutomatically:(id)sender;
|
||||
- (void)setKeepBackup:(id)sender;
|
||||
- (void)setSavePeriod:(id)sender;
|
||||
- (void)setSaveOnQuit:(id)sender;
|
||||
|
||||
- (void)setUseExternalEditor:(id)sender;
|
||||
|
||||
- (void)setEditor:(id)sender;
|
||||
- (void)setCompiler:(id)sender;
|
||||
- (void)setDebugger:(id)sender;
|
||||
- (void)setBundlePath:(id)sender;
|
||||
- (void)promptWhenQuitting:(id)sender;
|
||||
|
||||
- (void)setTabBehaviour:(id)sender;
|
||||
|
||||
- (NSDictionary *)preferencesDict;
|
||||
|
||||
- (NSString *)selectFileWithTypes:(NSArray *)types;
|
||||
|
||||
@end
|
||||
|
||||
extern NSString *SavePeriodDidChangeNotification;
|
||||
|
||||
#endif
|
|
@ -1,900 +0,0 @@
|
|||
/*
|
||||
GNUstep ProjectCenter - http://www.gnustep.org
|
||||
|
||||
Copyright (C) 2001 Free Software Foundation
|
||||
|
||||
Author: Philippe C.D. Robert <phr@3dkit.org>
|
||||
|
||||
This file is part of GNUstep.
|
||||
|
||||
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.
|
||||
|
||||
$Id$
|
||||
*/
|
||||
|
||||
#include "PCPrefController.h"
|
||||
#include <ProjectCenter/ProjectCenter.h>
|
||||
|
||||
#if defined(GNUSTEP)
|
||||
#include <AppKit/IMLoading.h>
|
||||
#endif
|
||||
|
||||
NSString *SavePeriodDidChangeNotification = @"SavePeriodDidChangeNotification";
|
||||
|
||||
@interface PCPrefController (CreateUI)
|
||||
|
||||
- (void)_initUI;
|
||||
|
||||
@end
|
||||
|
||||
@implementation PCPrefController (CreateUI)
|
||||
|
||||
- (void)_initUI
|
||||
{
|
||||
NSView *_c_view;
|
||||
unsigned int style = NSTitledWindowMask | NSClosableWindowMask;
|
||||
NSRect _w_frame;
|
||||
NSBox *line;
|
||||
NSBox *v;
|
||||
NSTextField *textField;
|
||||
NSButtonCell *cell;
|
||||
|
||||
/*
|
||||
* Pref Window
|
||||
*
|
||||
*/
|
||||
|
||||
_w_frame = NSMakeRect(200,300,270,365);
|
||||
prefWindow = [[NSWindow alloc] initWithContentRect:_w_frame
|
||||
styleMask:style
|
||||
backing:NSBackingStoreBuffered
|
||||
defer:YES];
|
||||
[prefWindow setMinSize: NSMakeSize (270,365)];
|
||||
[prefWindow setTitle: @"Preferences"];
|
||||
[prefWindow setDelegate: self];
|
||||
[prefWindow setReleasedWhenClosed: NO];
|
||||
[prefWindow center];
|
||||
[prefWindow setFrameAutosaveName: @"Preferences"];
|
||||
_c_view = [prefWindow contentView];
|
||||
|
||||
prefPopup = [[NSPopUpButton alloc] initWithFrame: NSMakeRect (72,334,120,21)];
|
||||
[prefPopup addItemWithTitle: @"None"];
|
||||
[prefPopup setTarget: self];
|
||||
[prefPopup setAction: @selector (popupChanged:)];
|
||||
[_c_view addSubview: prefPopup];
|
||||
|
||||
line = [[NSBox alloc] init];
|
||||
[line setTitlePosition: NSNoTitle];
|
||||
[line setFrameFromContentFrame: NSMakeRect(0,312,270,2)];
|
||||
[_c_view addSubview:line];
|
||||
RELEASE(line);
|
||||
|
||||
prefEmptyView = [[NSBox alloc] init];
|
||||
[prefEmptyView setTitlePosition: NSNoTitle];
|
||||
[prefEmptyView setFrameFromContentFrame: NSMakeRect(0,0,270,310)];
|
||||
[prefEmptyView setBorderType: NSNoBorder];
|
||||
[_c_view addSubview: prefEmptyView];
|
||||
|
||||
/*
|
||||
* Building view
|
||||
*
|
||||
*/
|
||||
prefBuildingView = [[NSBox alloc] initWithFrame: NSMakeRect(0,0,270,310)];
|
||||
[prefBuildingView setTitlePosition:NSNoTitle];
|
||||
[prefBuildingView setBorderType:NSNoBorder];
|
||||
|
||||
v = [[NSBox alloc] initWithFrame: NSMakeRect(5,208,254,102)];
|
||||
[v setTitle: @"Sounds"];
|
||||
[prefBuildingView addSubview: v];
|
||||
RELEASE(v);
|
||||
|
||||
textField = [[NSTextField alloc] initWithFrame: NSMakeRect(0,40,54,21)];
|
||||
[textField setAlignment: NSRightTextAlignment];
|
||||
[textField setBordered: NO];
|
||||
[textField setEditable: NO];
|
||||
[textField setBezeled: NO];
|
||||
[textField setDrawsBackground: NO];
|
||||
[textField setStringValue: @"Success:"];
|
||||
[v addSubview:textField];
|
||||
RELEASE(textField);
|
||||
|
||||
successField = [[NSTextField alloc] initWithFrame:NSMakeRect(58,40,144,21)];
|
||||
[successField setAlignment: NSLeftTextAlignment];
|
||||
[successField setBordered: NO];
|
||||
[successField setEditable: YES];
|
||||
[successField setBezeled: YES];
|
||||
[successField setDrawsBackground: YES];
|
||||
[successField setTarget: self];
|
||||
[successField setAction: @selector (setSuccessSound:)];
|
||||
[v addSubview: successField];
|
||||
|
||||
textField = [[NSTextField alloc] initWithFrame: NSMakeRect(0,16,54,21)];
|
||||
[textField setAlignment: NSRightTextAlignment];
|
||||
[textField setBordered: NO];
|
||||
[textField setEditable: NO];
|
||||
[textField setBezeled: NO];
|
||||
[textField setDrawsBackground: NO];
|
||||
[textField setStringValue: @"Failure:"];
|
||||
[v addSubview:textField];
|
||||
RELEASE(textField);
|
||||
|
||||
failureField = [[NSTextField alloc] initWithFrame:NSMakeRect(58,16,144,21)];
|
||||
[failureField setAlignment: NSLeftTextAlignment];
|
||||
[failureField setBordered: NO];
|
||||
[failureField setEditable: YES];
|
||||
[failureField setBezeled: YES];
|
||||
[failureField setDrawsBackground: YES];
|
||||
[failureField setTarget: self];
|
||||
[failureField setAction: @selector (setFailureSound:)];
|
||||
[v addSubview: failureField];
|
||||
|
||||
promptOnClean = [[NSButton alloc] initWithFrame: NSMakeRect(72,176,108,15)];
|
||||
[promptOnClean setTitle: @"Prompt on clean"];
|
||||
[promptOnClean setButtonType: NSSwitchButton];
|
||||
[promptOnClean setBordered: NO];
|
||||
[promptOnClean setRefusesFirstResponder: YES];
|
||||
[promptOnClean setTarget: self];
|
||||
[promptOnClean setAction: @selector (setPromptOnClean:)];
|
||||
[promptOnClean setContinuous: NO];
|
||||
[prefBuildingView addSubview: promptOnClean];
|
||||
[promptOnClean sizeToFit];
|
||||
|
||||
/*
|
||||
* Saving view
|
||||
*/
|
||||
prefSavingView = [[NSBox alloc] initWithFrame: NSMakeRect (0,0,270,310)];
|
||||
[prefSavingView setTitlePosition: NSNoTitle];
|
||||
[prefSavingView setBorderType: NSNoBorder];
|
||||
|
||||
v = [[NSBox alloc] initWithFrame: NSMakeRect (5,208,254,102)];
|
||||
[v setTitle: @"Saving"];
|
||||
[prefSavingView addSubview: v];
|
||||
RELEASE(v);
|
||||
|
||||
saveOnQuit=[[NSButton alloc] initWithFrame: NSMakeRect (24,52,124,15)];
|
||||
[saveOnQuit setTitle: @"Save Projects Upon Quit"];
|
||||
[saveOnQuit setButtonType: NSSwitchButton];
|
||||
[saveOnQuit setBordered: NO];
|
||||
[saveOnQuit setTarget: self];
|
||||
[saveOnQuit setAction: @selector (setSaveOnQuit:)];
|
||||
[saveOnQuit setContinuous: NO];
|
||||
[v addSubview: saveOnQuit];
|
||||
[saveOnQuit sizeToFit];
|
||||
|
||||
saveAutomatically=[[NSButton alloc] initWithFrame: NSMakeRect (24,32,124,15)];
|
||||
[saveAutomatically setTitle: @"Save Project Automatically"];
|
||||
[saveAutomatically setButtonType: NSSwitchButton];
|
||||
[saveAutomatically setBordered :NO];
|
||||
[saveAutomatically setTarget: self];
|
||||
[saveAutomatically setAction: @selector (setSaveAutomatically:)];
|
||||
[saveAutomatically setContinuous: NO];
|
||||
[v addSubview: saveAutomatically];
|
||||
[saveAutomatically sizeToFit];
|
||||
|
||||
keepBackup = [[NSButton alloc] initWithFrame: NSMakeRect (24,12,124,15)];
|
||||
[keepBackup setTitle: @"Keep Project Backup"];
|
||||
[keepBackup setButtonType: NSSwitchButton];
|
||||
[keepBackup setBordered: NO];
|
||||
[keepBackup setTarget: self];
|
||||
[keepBackup setAction: @selector (setKeepBackup:)];
|
||||
[keepBackup setContinuous: NO];
|
||||
[v addSubview: keepBackup];
|
||||
[keepBackup sizeToFit];
|
||||
|
||||
v = [[NSBox alloc] initWithFrame: NSMakeRect(5,149,254,49)];
|
||||
[v setTitle: @"Auto-Save"];
|
||||
[prefSavingView addSubview: v];
|
||||
RELEASE(v);
|
||||
|
||||
textField = [[NSTextField alloc] initWithFrame: NSMakeRect(12,0,54,21)];
|
||||
[textField setAlignment: NSRightTextAlignment];
|
||||
[textField setBordered: NO];
|
||||
[textField setEditable: NO];
|
||||
[textField setBezeled: NO];
|
||||
[textField setDrawsBackground: NO];
|
||||
[textField setStringValue: @"Seconds:"];
|
||||
[v addSubview: textField];
|
||||
RELEASE(textField);
|
||||
|
||||
autoSaveField = [[NSTextField alloc] initWithFrame:NSMakeRect(72,0,144,21)];
|
||||
[autoSaveField setAlignment: NSLeftTextAlignment];
|
||||
[autoSaveField setBordered: NO];
|
||||
[autoSaveField setEditable: YES];
|
||||
[autoSaveField setBezeled: YES];
|
||||
[autoSaveField setDrawsBackground: YES];
|
||||
[autoSaveField setTarget:self];
|
||||
[autoSaveField setAction:@selector(setSavePeriod:)];
|
||||
[v addSubview:autoSaveField];
|
||||
|
||||
/*
|
||||
* Editing view
|
||||
*/
|
||||
prefEditingView = [[NSBox alloc] initWithFrame: NSMakeRect (0,0,270,310)];
|
||||
[prefEditingView setTitlePosition: NSNoTitle];
|
||||
[prefEditingView setBorderType: NSNoBorder];
|
||||
|
||||
v = [[NSBox alloc] initWithFrame: NSMakeRect(5,208,254,102)];
|
||||
[v setTitle:@"Tab Control"];
|
||||
[prefEditingView addSubview:v];
|
||||
RELEASE(v);
|
||||
|
||||
cell = [[NSButtonCell alloc] init];
|
||||
[cell setButtonType: NSRadioButton];
|
||||
[cell setBordered: NO];
|
||||
[cell setImagePosition: NSImageLeft];
|
||||
|
||||
tabMatrix = [[NSMatrix alloc] initWithFrame: NSMakeRect(32,16,164,40)
|
||||
mode: NSRadioModeMatrix
|
||||
prototype: cell
|
||||
numberOfRows: 2
|
||||
numberOfColumns: 2];
|
||||
|
||||
[tabMatrix setIntercellSpacing: NSMakeSize (8, 8) ];
|
||||
[tabMatrix setTarget: self];
|
||||
[tabMatrix setAction: @selector (setTabBehaviour:)];
|
||||
[tabMatrix setAutosizesCells: NO];
|
||||
|
||||
cell = [tabMatrix cellAtRow: 0 column: 0];
|
||||
[cell setTitle: @"Tabulator"];
|
||||
[cell setTag: 0];
|
||||
|
||||
cell = [tabMatrix cellAtRow: 1 column: 0];
|
||||
[cell setTitle: @"2 Spaces"];
|
||||
[cell setTag: 1];
|
||||
|
||||
cell = [tabMatrix cellAtRow: 0 column: 1];
|
||||
[cell setTitle: @"4 Spaces"];
|
||||
[cell setTag: 2];
|
||||
|
||||
cell = [tabMatrix cellAtRow: 1 column: 1];
|
||||
[cell setTitle: @"8 Spaces"];
|
||||
[cell setTag: 3];
|
||||
|
||||
[v addSubview:tabMatrix];
|
||||
RELEASE(tabMatrix);
|
||||
|
||||
[tabMatrix selectCellAtRow: 0 column: 1];
|
||||
|
||||
|
||||
/*
|
||||
* Misc view
|
||||
*
|
||||
*/
|
||||
prefMiscView = [[NSBox alloc] init];
|
||||
[prefMiscView setTitlePosition:NSNoTitle];
|
||||
[prefMiscView setFrameFromContentFrame:NSMakeRect(1,1,260,308)];
|
||||
[prefMiscView setBorderType:NSNoBorder];
|
||||
|
||||
v = [[NSBox alloc] initWithFrame: NSMakeRect(5,189,254,121)];
|
||||
[v setTitle:@"External Tools"];
|
||||
[prefMiscView addSubview:v];
|
||||
RELEASE(v);
|
||||
|
||||
// Editor
|
||||
textField = [[NSTextField alloc] initWithFrame:NSMakeRect(12,16,60,21)];
|
||||
[textField setAlignment: NSRightTextAlignment];
|
||||
[textField setBordered: NO];
|
||||
[textField setEditable: NO];
|
||||
[textField setBezeled: NO];
|
||||
[textField setDrawsBackground: NO];
|
||||
[textField setStringValue:@"Editor:"];
|
||||
[v addSubview:textField];
|
||||
RELEASE(textField);
|
||||
|
||||
editorField = [[NSTextField alloc] initWithFrame:NSMakeRect(72,16,144,21)];
|
||||
[editorField setAlignment: NSLeftTextAlignment];
|
||||
[editorField setBordered: NO];
|
||||
[editorField setEditable: YES];
|
||||
[editorField setBezeled: YES];
|
||||
[editorField setDrawsBackground: YES];
|
||||
[editorField setTarget:self];
|
||||
[editorField setAction:@selector(setEditor:)];
|
||||
[v addSubview:editorField];
|
||||
|
||||
// Compiler
|
||||
textField = [[NSTextField alloc] initWithFrame:NSMakeRect(12,40,60,21)];
|
||||
[textField setAlignment: NSRightTextAlignment];
|
||||
[textField setBordered: NO];
|
||||
[textField setEditable: NO];
|
||||
[textField setBezeled: NO];
|
||||
[textField setDrawsBackground: NO];
|
||||
[textField setStringValue:@"Compiler:"];
|
||||
[v addSubview:textField];
|
||||
RELEASE(textField);
|
||||
|
||||
compilerField = [[NSTextField alloc] initWithFrame:NSMakeRect(72,40,144,21)];
|
||||
[compilerField setAlignment: NSLeftTextAlignment];
|
||||
[compilerField setBordered: NO];
|
||||
[compilerField setEditable: YES];
|
||||
[compilerField setBezeled: YES];
|
||||
[compilerField setDrawsBackground: YES];
|
||||
[compilerField setTarget:self];
|
||||
[compilerField setAction:@selector(setCompiler:)];
|
||||
[v addSubview:compilerField];
|
||||
|
||||
// Debugger
|
||||
textField = [[NSTextField alloc] initWithFrame:NSMakeRect(12,64,60,21)];
|
||||
[textField setAlignment: NSRightTextAlignment];
|
||||
[textField setBordered: NO];
|
||||
[textField setEditable: NO];
|
||||
[textField setBezeled: NO];
|
||||
[textField setDrawsBackground: NO];
|
||||
[textField setStringValue:@"Debugger:"];
|
||||
[v addSubview:textField];
|
||||
RELEASE(textField);
|
||||
|
||||
debuggerField = [[NSTextField alloc] initWithFrame:NSMakeRect(72,64,144,21)];
|
||||
[debuggerField setAlignment: NSLeftTextAlignment];
|
||||
[debuggerField setBordered: NO];
|
||||
[debuggerField setEditable: YES];
|
||||
[debuggerField setBezeled: YES];
|
||||
[debuggerField setDrawsBackground: YES];
|
||||
[debuggerField setTarget:self];
|
||||
[debuggerField setAction:@selector(setDebugger:)];
|
||||
[v addSubview:debuggerField];
|
||||
|
||||
// Bundles Box
|
||||
v = [[NSBox alloc] initWithFrame: NSMakeRect(5,131,254,48)];
|
||||
[v setTitle: @"Bundle Path"];
|
||||
[prefMiscView addSubview: v];
|
||||
RELEASE(v);
|
||||
|
||||
// Bundle path
|
||||
bundlePathField=[[NSTextField alloc] initWithFrame:NSMakeRect(12,0,212,21)];
|
||||
[bundlePathField setAlignment: NSLeftTextAlignment];
|
||||
[bundlePathField setBordered: NO];
|
||||
[bundlePathField setEditable: YES];
|
||||
[bundlePathField setBezeled: YES];
|
||||
[bundlePathField setDrawsBackground: YES];
|
||||
[bundlePathField setTarget:self];
|
||||
[bundlePathField setAction:@selector(setBundlePath:)];
|
||||
[v addSubview:bundlePathField];
|
||||
|
||||
/*
|
||||
* Interface view
|
||||
*/
|
||||
|
||||
prefInterfaceView = [[NSBox alloc] initWithFrame: NSMakeRect (0,0,270,310)];
|
||||
[prefInterfaceView setTitlePosition: NSNoTitle];
|
||||
[prefInterfaceView setBorderType: NSNoBorder];
|
||||
|
||||
v = [[NSBox alloc] initWithFrame: NSMakeRect (5,208,254,102)];
|
||||
[v setTitle: @"Display as separate panel..."];
|
||||
[prefInterfaceView addSubview: v];
|
||||
RELEASE(v);
|
||||
|
||||
separateBuilder = [[NSButton alloc] initWithFrame: NSMakeRect (48,48,124,21)];
|
||||
[separateBuilder setTitle: @"Project Builder"];
|
||||
[separateBuilder setButtonType: NSSwitchButton];
|
||||
[separateBuilder setBordered: NO];
|
||||
[separateBuilder setRefusesFirstResponder: YES];
|
||||
[separateBuilder setTarget: self];
|
||||
[separateBuilder setAction: @selector (setDisplayPanels:)];
|
||||
[separateBuilder setContinuous: NO];
|
||||
[v addSubview: separateBuilder];
|
||||
|
||||
separateLauncher = [[NSButton alloc] initWithFrame: NSMakeRect(48,27,124,21)];
|
||||
[separateLauncher setTitle: @"Project Launcher"];
|
||||
[separateLauncher setButtonType: NSSwitchButton];
|
||||
[separateLauncher setBordered: NO];
|
||||
[separateLauncher setRefusesFirstResponder: YES];
|
||||
[separateLauncher setTarget: self];
|
||||
[separateLauncher setAction: @selector (setDisplayPanels:)];
|
||||
[separateLauncher setContinuous: NO];
|
||||
[v addSubview: separateLauncher];
|
||||
|
||||
separateEditor = [[NSButton alloc] initWithFrame: NSMakeRect(48,6,124,21)];
|
||||
[separateEditor setTitle: @"Project Editor"];
|
||||
[separateEditor setButtonType: NSSwitchButton];
|
||||
[separateEditor setBordered: NO];
|
||||
[separateEditor setRefusesFirstResponder: YES];
|
||||
[separateEditor setTarget: self];
|
||||
[separateEditor setAction: @selector (setDisplayPanels:)];
|
||||
[separateEditor setContinuous: NO];
|
||||
[v addSubview: separateEditor];
|
||||
|
||||
// Some buttons
|
||||
v = [[NSBox alloc] initWithFrame: NSMakeRect(5,121,254,77)];
|
||||
[v setTitle: @"Misc"];
|
||||
[prefInterfaceView addSubview: v];
|
||||
RELEASE(v);
|
||||
|
||||
promptWhenQuit = [[NSButton alloc] initWithFrame: NSMakeRect(48,7,204,21)];
|
||||
[promptWhenQuit setTitle: @"Prompt when quitting"];
|
||||
[promptWhenQuit setButtonType: NSSwitchButton];
|
||||
[promptWhenQuit setBordered: NO];
|
||||
[promptWhenQuit setRefusesFirstResponder: YES];
|
||||
[promptWhenQuit setTarget: self];
|
||||
[promptWhenQuit setAction: @selector (promptWhenQuitting:)];
|
||||
[promptWhenQuit setContinuous: NO];
|
||||
[v addSubview: promptWhenQuit];
|
||||
[promptWhenQuit sizeToFit];
|
||||
|
||||
useExternalEditor = [[NSButton alloc] initWithFrame:NSMakeRect(48,28,204,21)];
|
||||
[useExternalEditor setTitle: @"Use external Editor"];
|
||||
[useExternalEditor setButtonType: NSSwitchButton];
|
||||
[useExternalEditor setBordered: NO];
|
||||
[useExternalEditor setRefusesFirstResponder: YES];
|
||||
[useExternalEditor setTarget: self];
|
||||
[useExternalEditor setAction: @selector(setUseExternalEditor:)];
|
||||
[useExternalEditor setContinuous: NO];
|
||||
[v addSubview: useExternalEditor];
|
||||
[useExternalEditor sizeToFit];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation PCPrefController
|
||||
|
||||
- (id)init
|
||||
{
|
||||
if ((self = [super init])) {
|
||||
NSDictionary *prefs;
|
||||
|
||||
// The prefs from the defaults
|
||||
prefs = [[NSUserDefaults standardUserDefaults] dictionaryRepresentation];
|
||||
preferencesDict = [[NSMutableDictionary alloc] initWithDictionary:prefs];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)dealloc
|
||||
{
|
||||
RELEASE(preferencesDict);
|
||||
|
||||
RELEASE(prefWindow);
|
||||
RELEASE(prefPopup);
|
||||
|
||||
RELEASE(prefEmptyView);
|
||||
RELEASE(prefBuildingView);
|
||||
RELEASE(prefMiscView);
|
||||
RELEASE(prefEditingView);
|
||||
RELEASE(prefSavingView);
|
||||
|
||||
RELEASE(useExternalEditor);
|
||||
RELEASE(promptWhenQuit);
|
||||
RELEASE(promptOnClean);
|
||||
RELEASE(saveOnQuit);
|
||||
RELEASE(saveAutomatically);
|
||||
RELEASE(keepBackup);
|
||||
|
||||
RELEASE(editorField);
|
||||
RELEASE(debuggerField);
|
||||
RELEASE(compilerField);
|
||||
RELEASE(bundlePathField);
|
||||
|
||||
RELEASE(autoSaveField);
|
||||
|
||||
[[NSUserDefaults standardUserDefaults] synchronize];
|
||||
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (void) showPrefWindow: (id)sender
|
||||
{
|
||||
NSDictionary *prefs;
|
||||
NSString *val;
|
||||
|
||||
if (!prefWindow)
|
||||
{
|
||||
id view;
|
||||
|
||||
[self _initUI];
|
||||
|
||||
// The popup and selected view
|
||||
[prefPopup removeAllItems];
|
||||
[prefPopup addItemWithTitle: @"Building"];
|
||||
[prefPopup addItemWithTitle: @"Saving"];
|
||||
[prefPopup addItemWithTitle: @"Editing"];
|
||||
[prefPopup addItemWithTitle: @"Miscellaneous"];
|
||||
[prefPopup addItemWithTitle: @"Interface"];
|
||||
|
||||
[prefPopup selectItemWithTitle: @"Building"];
|
||||
|
||||
view = [prefBuildingView retain];
|
||||
[(NSBox *)prefEmptyView setContentView: view];
|
||||
[prefEmptyView display];
|
||||
}
|
||||
|
||||
prefs = [[NSUserDefaults standardUserDefaults] dictionaryRepresentation];
|
||||
[preferencesDict addEntriesFromDictionary: prefs];
|
||||
|
||||
// Fill in the defaults
|
||||
|
||||
// Building
|
||||
[successField setStringValue:
|
||||
(val = [preferencesDict objectForKey: SuccessSound]) ? val : @""];
|
||||
[failureField setStringValue:
|
||||
(val = [preferencesDict objectForKey: FailureSound]) ? val : @""];
|
||||
[promptOnClean setState:
|
||||
([[preferencesDict objectForKey: PromptOnClean]
|
||||
isEqualToString: @"YES"]) ? NSOnState : NSOffState];
|
||||
|
||||
// Saving
|
||||
[saveOnQuit setState:
|
||||
([[preferencesDict objectForKey: SaveOnQuit]
|
||||
isEqualToString: @"YES"]) ? NSOnState : NSOffState];
|
||||
|
||||
[saveAutomatically setState:
|
||||
([[preferencesDict objectForKey: AutoSave]
|
||||
isEqualToString: @"YES"]) ? NSOnState : NSOffState];
|
||||
|
||||
[keepBackup setState:
|
||||
([[preferencesDict objectForKey: KeepBackup]
|
||||
isEqualToString: @"YES"]) ? NSOnState : NSOffState];
|
||||
|
||||
[autoSaveField setStringValue:
|
||||
(val = [preferencesDict objectForKey: AutoSavePeriod]) ? val : @"120"];
|
||||
|
||||
// Editing
|
||||
if([[preferencesDict objectForKey: TabBehaviour] isEqualToString:@"Tab"])
|
||||
{
|
||||
[tabMatrix selectCellAtRow: 0 column: 0];
|
||||
}
|
||||
else if([[preferencesDict objectForKey: TabBehaviour] isEqualToString:@"Sp2"])
|
||||
{
|
||||
[tabMatrix selectCellAtRow: 1 column: 0];
|
||||
}
|
||||
else if([[preferencesDict objectForKey: TabBehaviour] isEqualToString:@"Sp4"])
|
||||
{
|
||||
[tabMatrix selectCellAtRow: 0 column: 1];
|
||||
}
|
||||
else if([[preferencesDict objectForKey: TabBehaviour] isEqualToString:@"Sp8"])
|
||||
{
|
||||
[tabMatrix selectCellAtRow: 1 column: 1];
|
||||
}
|
||||
|
||||
// Miscellaneous
|
||||
[compilerField setStringValue:
|
||||
(val = [preferencesDict objectForKey: Compiler]) ? val : @""];
|
||||
[debuggerField setStringValue:
|
||||
(val = [preferencesDict objectForKey: PDebugger]) ? val : @""];
|
||||
[editorField setStringValue:
|
||||
(val = [preferencesDict objectForKey: Editor]) ? val : @""];
|
||||
[bundlePathField setStringValue:
|
||||
(val = [preferencesDict objectForKey: BundlePaths]) ? val : @""];
|
||||
|
||||
// Interface
|
||||
[separateBuilder setState:
|
||||
([[preferencesDict objectForKey: SeparateBuilder]
|
||||
isEqualToString:@"YES"]) ? NSOnState : NSOffState];
|
||||
[separateLauncher setState:
|
||||
([[preferencesDict objectForKey: SeparateLauncher]
|
||||
isEqualToString:@"YES"]) ? NSOnState : NSOffState];
|
||||
[separateEditor setState:
|
||||
([[preferencesDict objectForKey: SeparateEditor]
|
||||
isEqualToString:@"YES"]) ? NSOnState : NSOffState];
|
||||
|
||||
[promptWhenQuit setState:
|
||||
([[preferencesDict objectForKey: PromptOnQuit]
|
||||
isEqualToString:@"YES"]) ? NSOnState : NSOffState];
|
||||
[useExternalEditor setState:
|
||||
([[preferencesDict objectForKey: ExternalEditor]
|
||||
isEqualToString:@"YES"]) ? NSOnState : NSOffState];
|
||||
|
||||
|
||||
if (![prefWindow isVisible])
|
||||
{
|
||||
[prefWindow setFrameUsingName: @"Preferences"];
|
||||
}
|
||||
[prefWindow makeKeyAndOrderFront: self];
|
||||
}
|
||||
|
||||
- (void)popupChanged:(id)sender
|
||||
{
|
||||
NSView *view = nil;
|
||||
|
||||
switch([sender indexOfSelectedItem])
|
||||
{
|
||||
case 0:
|
||||
view = [prefBuildingView retain];
|
||||
break;
|
||||
case 1:
|
||||
view = [prefSavingView retain];
|
||||
break;
|
||||
case 2:
|
||||
view = [prefEditingView retain];
|
||||
break;
|
||||
case 3:
|
||||
view = [prefMiscView retain];
|
||||
break;
|
||||
case 4:
|
||||
view = [prefInterfaceView retain];
|
||||
break;
|
||||
}
|
||||
|
||||
[(NSBox *)prefEmptyView setContentView:view];
|
||||
[prefEmptyView display];
|
||||
}
|
||||
|
||||
- (void)setSuccessSound:(id)sender
|
||||
{
|
||||
NSArray *types = [NSArray arrayWithObjects:@"snd",@"au",nil];
|
||||
NSString *path = [self selectFileWithTypes:types];
|
||||
|
||||
if (path) {
|
||||
[successField setStringValue: path];
|
||||
|
||||
[[NSUserDefaults standardUserDefaults] setObject:path forKey:SuccessSound];
|
||||
[preferencesDict setObject:path forKey:SuccessSound];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)setFailureSound:(id)sender
|
||||
{
|
||||
NSString *path = [self selectFileWithTypes:[NSArray arrayWithObjects:@"snd",@"au",nil]];
|
||||
|
||||
if (path) {
|
||||
[failureField setStringValue:path];
|
||||
|
||||
[[NSUserDefaults standardUserDefaults] setObject:path forKey:FailureSound];
|
||||
[preferencesDict setObject:path forKey:FailureSound];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)setPromptOnClean:(id)sender
|
||||
{
|
||||
NSUserDefaults *def = [NSUserDefaults standardUserDefaults];
|
||||
|
||||
switch ([[sender selectedCell] state]) {
|
||||
case 0:
|
||||
[def setObject:@"NO" forKey:PromptOnClean];
|
||||
break;
|
||||
case 1:
|
||||
[def setObject:@"YES" forKey:PromptOnClean];
|
||||
break;
|
||||
}
|
||||
[def synchronize];
|
||||
|
||||
[preferencesDict setObject:[def objectForKey:PromptOnClean]
|
||||
forKey:PromptOnClean];
|
||||
}
|
||||
|
||||
- (void)setSaveAutomatically:(id)sender
|
||||
{
|
||||
NSUserDefaults *def = [NSUserDefaults standardUserDefaults];
|
||||
|
||||
switch ([[sender selectedCell] state]) {
|
||||
case 0:
|
||||
[def setObject:@"NO" forKey:AutoSave];
|
||||
break;
|
||||
case 1:
|
||||
[def setObject:@"YES" forKey:AutoSave];
|
||||
break;
|
||||
}
|
||||
[def synchronize];
|
||||
|
||||
[preferencesDict setObject:[def objectForKey:AutoSave] forKey:AutoSave];
|
||||
}
|
||||
|
||||
- (void)setKeepBackup:(id)sender
|
||||
{
|
||||
NSUserDefaults *def = [NSUserDefaults standardUserDefaults];
|
||||
|
||||
switch ([[sender selectedCell] state]) {
|
||||
case 0:
|
||||
[def setObject:@"NO" forKey:KeepBackup];
|
||||
break;
|
||||
case 1:
|
||||
[def setObject:@"YES" forKey:KeepBackup];
|
||||
break;
|
||||
}
|
||||
[def synchronize];
|
||||
|
||||
[preferencesDict setObject:[def objectForKey:KeepBackup]
|
||||
forKey:KeepBackup];
|
||||
}
|
||||
|
||||
- (void)setSavePeriod:(id)sender
|
||||
{
|
||||
NSString *periodString = [autoSaveField stringValue];
|
||||
|
||||
if (periodString == nil || [periodString isEqualToString:@""]) {
|
||||
periodString = [NSString stringWithString:@"300"];
|
||||
}
|
||||
|
||||
[[NSUserDefaults standardUserDefaults] setObject:periodString
|
||||
forKey:AutoSavePeriod];
|
||||
[preferencesDict setObject:periodString forKey:AutoSavePeriod];
|
||||
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:SavePeriodDidChangeNotification object:periodString];
|
||||
}
|
||||
|
||||
- (void)setSaveOnQuit:(id)sender
|
||||
{
|
||||
NSUserDefaults *def = [NSUserDefaults standardUserDefaults];
|
||||
|
||||
switch ([[sender selectedCell] state]) {
|
||||
case 0:
|
||||
[def setObject:@"NO" forKey:SaveOnQuit];
|
||||
break;
|
||||
case 1:
|
||||
[def setObject:@"YES" forKey:SaveOnQuit];
|
||||
break;
|
||||
}
|
||||
[def synchronize];
|
||||
|
||||
[preferencesDict setObject:[def objectForKey:SaveOnQuit]
|
||||
forKey:SaveOnQuit];
|
||||
}
|
||||
|
||||
- (void)setUseExternalEditor:(id)sender
|
||||
{
|
||||
NSUserDefaults *def = [NSUserDefaults standardUserDefaults];
|
||||
|
||||
switch ([[sender selectedCell] state]) {
|
||||
case 0:
|
||||
[def setObject:@"NO" forKey:ExternalEditor];
|
||||
break;
|
||||
case 1:
|
||||
[def setObject:@"YES" forKey:ExternalEditor];
|
||||
break;
|
||||
}
|
||||
[def synchronize];
|
||||
|
||||
[preferencesDict setObject:[def objectForKey:ExternalEditor]
|
||||
forKey:ExternalEditor];
|
||||
}
|
||||
|
||||
- (void)setEditor:(id)sender
|
||||
{
|
||||
NSString *path = [editorField stringValue];
|
||||
|
||||
if (path) {
|
||||
[[NSUserDefaults standardUserDefaults] setObject:path forKey:Editor];
|
||||
[preferencesDict setObject:path forKey:Editor];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)setCompiler:(id)sender
|
||||
{
|
||||
NSString *path = [compilerField stringValue];
|
||||
|
||||
if (path) {
|
||||
[[NSUserDefaults standardUserDefaults] setObject:path forKey:Compiler];
|
||||
[preferencesDict setObject:path forKey:Compiler];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)setDebugger:(id)sender
|
||||
{
|
||||
NSString *path = [debuggerField stringValue];
|
||||
|
||||
if (path) {
|
||||
[[NSUserDefaults standardUserDefaults] setObject:path forKey:PDebugger];
|
||||
[preferencesDict setObject:path forKey:PDebugger];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)setBundlePath:(id)sender
|
||||
{
|
||||
NSString *path = [bundlePathField stringValue];
|
||||
|
||||
if (path) {
|
||||
[[NSUserDefaults standardUserDefaults] setObject:path forKey:BundlePaths];
|
||||
[preferencesDict setObject:path forKey:BundlePaths];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)promptWhenQuitting:(id)sender
|
||||
{
|
||||
NSUserDefaults *def = [NSUserDefaults standardUserDefaults];
|
||||
|
||||
switch ([[sender selectedCell] state]) {
|
||||
case 0:
|
||||
[def setObject:@"NO" forKey:PromptOnQuit];
|
||||
break;
|
||||
case 1:
|
||||
[def setObject:@"YES" forKey:PromptOnQuit];
|
||||
break;
|
||||
}
|
||||
[def synchronize];
|
||||
|
||||
[preferencesDict setObject:[def objectForKey:PromptOnQuit]
|
||||
forKey:PromptOnQuit];
|
||||
}
|
||||
|
||||
- (void)setTabBehaviour:(id)sender
|
||||
{
|
||||
NSUserDefaults *def = [NSUserDefaults standardUserDefaults];
|
||||
|
||||
switch ([[sender selectedCell] tag])
|
||||
{
|
||||
case 0:
|
||||
// [PCEditorView setTabBehaviour:PCTabTab];
|
||||
[def setObject:@"Tab" forKey:TabBehaviour];
|
||||
break;
|
||||
case 1:
|
||||
// [PCEditorView setTabBehaviour:PCTab2Sp];
|
||||
[def setObject:@"Sp2" forKey:TabBehaviour];
|
||||
break;
|
||||
case 2:
|
||||
// [PCEditorView setTabBehaviour:PCTab4Sp];
|
||||
[def setObject:@"Sp4" forKey:TabBehaviour];
|
||||
break;
|
||||
case 3:
|
||||
// [PCEditorView setTabBehaviour:PCTab8Sp];
|
||||
[def setObject:@"Sp8" forKey:TabBehaviour];
|
||||
break;
|
||||
}
|
||||
[def synchronize];
|
||||
|
||||
[preferencesDict setObject:[def objectForKey:TabBehaviour]
|
||||
forKey:TabBehaviour];
|
||||
}
|
||||
|
||||
- (void)setDisplayPanels: (id)sender
|
||||
{
|
||||
NSUserDefaults *def = [NSUserDefaults standardUserDefaults];
|
||||
NSString *key;
|
||||
|
||||
if (sender == separateBuilder)
|
||||
{
|
||||
key = [NSString stringWithString: SeparateBuilder];
|
||||
}
|
||||
else if (sender == separateLauncher)
|
||||
{
|
||||
key = [NSString stringWithString: SeparateLauncher];
|
||||
}
|
||||
else if (sender == separateEditor)
|
||||
{
|
||||
key = [NSString stringWithString: SeparateEditor];
|
||||
}
|
||||
|
||||
switch ([sender state])
|
||||
{
|
||||
case NSOffState:
|
||||
[def setObject: @"NO" forKey: key];
|
||||
break;
|
||||
case NSOnState:
|
||||
[def setObject:@"YES" forKey: key];
|
||||
break;
|
||||
}
|
||||
[def synchronize];
|
||||
|
||||
[preferencesDict setObject: [def objectForKey: key]
|
||||
forKey: key];
|
||||
}
|
||||
|
||||
- (NSDictionary *)preferencesDict
|
||||
{
|
||||
return preferencesDict;
|
||||
}
|
||||
|
||||
- (NSString *)selectFileWithTypes:(NSArray *)types
|
||||
{
|
||||
NSString *file = nil;
|
||||
NSOpenPanel *openPanel;
|
||||
int retval;
|
||||
NSUserDefaults *def = [NSUserDefaults standardUserDefaults];
|
||||
|
||||
openPanel = [NSOpenPanel openPanel];
|
||||
[openPanel setAllowsMultipleSelection:NO];
|
||||
[openPanel setCanChooseDirectories:YES];
|
||||
[openPanel setCanChooseFiles:YES];
|
||||
|
||||
retval = [openPanel runModalForDirectory:[def objectForKey:@"LastOpenDirectory"] file:nil types:types];
|
||||
|
||||
if (retval == NSOKButton)
|
||||
{
|
||||
[def setObject:[openPanel directory] forKey:@"LastOpenDirectory"];
|
||||
file = [[openPanel filenames] objectAtIndex:0];
|
||||
|
||||
}
|
||||
return file;
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
@ -1,108 +0,0 @@
|
|||
{
|
||||
APPKIT = "GNUSTEP-GUI";
|
||||
BUILDTOOL = "/usr/bin/make";
|
||||
CLASS_FILES = (
|
||||
PCBrowserController.m,
|
||||
PCBundleLoader.m,
|
||||
PCDataSource.m,
|
||||
PCEditorView.m,
|
||||
PCFileManager.m,
|
||||
PCProject.m,
|
||||
PCProjectBuilder.m,
|
||||
PCProjectDebugger.m,
|
||||
PCProjectManager.m,
|
||||
PCServer.m,
|
||||
PCSplitView.m,
|
||||
PCEditor.m,
|
||||
PCEditorController.m,
|
||||
PCTextFinder.m,
|
||||
PCProjectEditor.m,
|
||||
"PCProject+ComponentHandling.m",
|
||||
"PCEditorView+Highlighting.m",
|
||||
PCHistoryController.m,
|
||||
PCMakefileFactory.m,
|
||||
"PCEditor+UInterface.m",
|
||||
"PCFileManager+UInterface.m",
|
||||
"PCProjectManager+UInterface.m",
|
||||
"PCProject+UInterface.m",
|
||||
"PCTextFinder+UInterface.m"
|
||||
);
|
||||
COMPILEROPTIONS = "";
|
||||
CREATION_DATE = "";
|
||||
DOCU_FILES = (
|
||||
);
|
||||
FOUNDATION = "GNUSTEP-BASE";
|
||||
FRAMEWORKS = (
|
||||
);
|
||||
HEADER_FILES = (
|
||||
PCBrowserController.h,
|
||||
PCBundleLoader.h,
|
||||
PCDataSource.h,
|
||||
PCEditorView.h,
|
||||
PCFileManager.h,
|
||||
PCProject.h,
|
||||
PCProjectBuilder.h,
|
||||
PCProjectDebugger.h,
|
||||
PCProjectManager.h,
|
||||
PCServer.h,
|
||||
FileCreator.h,
|
||||
PreferenceController.h,
|
||||
ProjectBuilder.h,
|
||||
ProjectCenter.h,
|
||||
ProjectDebugger.h,
|
||||
ProjectEditor.h,
|
||||
ProjectType.h,
|
||||
Server.h,
|
||||
PCSplitView.h,
|
||||
PCEditor.h,
|
||||
PCEditorController.h,
|
||||
PCDefines.h,
|
||||
PCTextFinder.h,
|
||||
PCProjectEditor.h,
|
||||
ProjectComponent.h,
|
||||
"PCProject+ComponentHandling.h",
|
||||
"PCEditorView+Highlighting.h",
|
||||
PCHistoryController.h,
|
||||
PCMakefileFactory.h,
|
||||
"PCEditor+UInterface.h",
|
||||
"PCFileManager+UInterface.h",
|
||||
"PCProjectManager+UInterface.h",
|
||||
"PCProject+UInterface.h",
|
||||
"PCTextFinder+UInterface.h"
|
||||
);
|
||||
INSTALLDIR = "$(GNUSTEP_INSTALLATION_DIR)";
|
||||
LANGUAGE = English;
|
||||
LAST_EDITING = "";
|
||||
LIBRARIES = (
|
||||
"gnustep-gui",
|
||||
"gnustep-base"
|
||||
);
|
||||
LINKEROPTIONS = "";
|
||||
MAKEFILEDIR = "$(GNUSTEP_SYSTEM_ROOT)/Makefiles";
|
||||
OTHER_FILES = (
|
||||
);
|
||||
OTHER_RESOURCES = (
|
||||
Version
|
||||
);
|
||||
OTHER_SOURCES = (
|
||||
);
|
||||
PROJECT_BUILDER = PCLibProj;
|
||||
PROJECT_COPYRIGHT = "No license specified!";
|
||||
PROJECT_CREATOR = "";
|
||||
PROJECT_DESCRIPTION = "No description avaliable!";
|
||||
PROJECT_GROUP = "No description avaliable!";
|
||||
PROJECT_MAINTAINER = "";
|
||||
PROJECT_NAME = ProjectCenter;
|
||||
PROJECT_RELEASE = 1;
|
||||
PROJECT_SOURCE = "%{gs_name}-%{gs_version}.tar.gz";
|
||||
PROJECT_SUMMARY = "No summary avaliable!";
|
||||
PROJECT_TYPE = PCLibProject;
|
||||
PROJECT_VERSION = 1.0;
|
||||
SUBPROJECTS = (
|
||||
);
|
||||
SUPPORTING_FILES = (
|
||||
GNUmakefile.preamble,
|
||||
GNUmakefile,
|
||||
GNUmakefile.postamble
|
||||
);
|
||||
}
|
Binary file not shown.
|
@ -1,36 +0,0 @@
|
|||
{
|
||||
NSIcon = "ProjectCenter.tiff";
|
||||
NSRole = "Editor";
|
||||
NSTypes = (
|
||||
{
|
||||
NSUnixExtensions = ( "project" );
|
||||
NSIcon = "ProjectCenter.tiff";
|
||||
},
|
||||
{
|
||||
NSUnixExtensions = ( "pcproj" );
|
||||
NSIcon = "ProjectCenter.tiff";
|
||||
},
|
||||
{
|
||||
NSUnixExtensions = ( "m" );
|
||||
NSIcon = "FileIcon_.m.tiff";
|
||||
},
|
||||
{
|
||||
NSUnixExtensions = ( "h" );
|
||||
NSIcon = "FileIcon_.h.tiff";
|
||||
},
|
||||
{
|
||||
NSUnixExtensions = ( "c" );
|
||||
NSIcon = "FileIcon_.c.tiff";
|
||||
}
|
||||
);
|
||||
NOTE = "Automatically generated, do not edit!";
|
||||
ApplicationName = "ProjectCenter";
|
||||
ApplicationDescription = "GNUstep IDE";
|
||||
ApplicationIcon = "ProjectCenter.tiff";
|
||||
ApplicationRelease = "ProjectCenter 0.3.2";
|
||||
FullVersionID = "0.3.2";
|
||||
Authors = ("Philippe C.D. Robert <probert@siggraph.org>");
|
||||
URL = "http://www.gnustep.org";
|
||||
Copyright = "Copyright (C) 1999 - 2003 Free Software Foundation";
|
||||
CopyrightDescription = "Released under the GNU General Public License 2.0";
|
||||
}
|
|
@ -1,521 +0,0 @@
|
|||
/*
|
||||
GNUstep ProjectCenter - http://www.gnustep.org
|
||||
|
||||
Copyright (C) 2001 Free Software Foundation
|
||||
|
||||
Author: Philippe C.D. Robert <probert@siggraph.org>
|
||||
|
||||
This file is part of GNUstep.
|
||||
|
||||
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.
|
||||
|
||||
$Id$
|
||||
*/
|
||||
|
||||
#include <AppKit/AppKit.h>
|
||||
|
||||
#include <ProjectCenter/PCDefines.h>
|
||||
#include"PCAppController.h"
|
||||
|
||||
void createMenu();
|
||||
|
||||
int main(int argc, const char **argv)
|
||||
{
|
||||
#ifdef GNUSTEP_BASE_VERSION
|
||||
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
|
||||
PCAppController *controller;
|
||||
|
||||
[NSApplication sharedApplication];
|
||||
|
||||
createMenu();
|
||||
|
||||
controller = [[PCAppController alloc] init];
|
||||
[NSApp setDelegate:controller];
|
||||
|
||||
RELEASE(pool);
|
||||
#endif
|
||||
|
||||
return NSApplicationMain (argc, argv);
|
||||
}
|
||||
|
||||
void
|
||||
createMenu()
|
||||
{
|
||||
NSMenu *menu;
|
||||
NSMenu *info;
|
||||
|
||||
NSMenu *project;
|
||||
NSMenu *subprojects;
|
||||
|
||||
NSMenu *file;
|
||||
NSMenu *file_view;
|
||||
|
||||
NSMenu *edit;
|
||||
NSMenu *edit_find;
|
||||
NSMenu *edit_undo;
|
||||
NSMenu *edit_indent;
|
||||
|
||||
NSMenu *format;
|
||||
NSMenu *format_font;
|
||||
NSMenu *format_text;
|
||||
|
||||
NSMenu *tools;
|
||||
NSMenu *tools_build;
|
||||
NSMenu *tools_find;
|
||||
NSMenu *tools_files;
|
||||
NSMenu *tools_launcher;
|
||||
NSMenu *tools_indexer;
|
||||
|
||||
NSMenu *windows;
|
||||
NSMenu *services;
|
||||
|
||||
SEL action = @selector(method:);
|
||||
|
||||
menu = [[NSMenu alloc] initWithTitle: @"PC"];
|
||||
|
||||
/*
|
||||
* The main menu
|
||||
*/
|
||||
|
||||
[menu addItemWithTitle:@"Info" action:action keyEquivalent:@""];
|
||||
[menu addItemWithTitle:@"Project" action:action keyEquivalent:@""];
|
||||
[menu addItemWithTitle:@"File" action:action keyEquivalent:@""];
|
||||
[menu addItemWithTitle:@"Edit" action:action keyEquivalent:@""];
|
||||
[menu addItemWithTitle:@"Format" action:action keyEquivalent:@""];
|
||||
[menu addItemWithTitle:@"Tools" action:action keyEquivalent:@""];
|
||||
[menu addItemWithTitle:@"Windows" action:action keyEquivalent:@""];
|
||||
[menu addItemWithTitle:@"Print..." action:action keyEquivalent:@"p"];
|
||||
[menu addItemWithTitle:@"Services" action:action keyEquivalent:@""];
|
||||
[menu addItemWithTitle:@"Hide" action:@selector(hide:) keyEquivalent:@"h"];
|
||||
[menu addItemWithTitle:@"Quit" action:@selector(terminate:)
|
||||
keyEquivalent:@"q"];
|
||||
|
||||
/*
|
||||
* Info submenu
|
||||
*/
|
||||
|
||||
info = [[[NSMenu alloc] init] autorelease];
|
||||
[menu setSubmenu:info forItem:[menu itemWithTitle:@"Info"]];
|
||||
[info addItemWithTitle:@"Info Panel..."
|
||||
action:@selector(showInfoPanel:)
|
||||
keyEquivalent:@""];
|
||||
[info addItemWithTitle:@"Preferences..."
|
||||
action:@selector(showPrefWindow:)
|
||||
keyEquivalent:@""];
|
||||
[info addItemWithTitle:@"Help"
|
||||
action:action
|
||||
keyEquivalent:@"?"];
|
||||
|
||||
/*
|
||||
* Project submenu
|
||||
*/
|
||||
|
||||
project = [[[NSMenu alloc] init] autorelease];
|
||||
[menu setSubmenu:project forItem:[menu itemWithTitle:@"Project"]];
|
||||
[project addItemWithTitle:@"Open..."
|
||||
action:@selector(openProject:)
|
||||
keyEquivalent:@"O"];
|
||||
[project addItemWithTitle:@"New..."
|
||||
action:@selector(newProject:)
|
||||
keyEquivalent:@"N"];
|
||||
[project addItemWithTitle:@"Save"
|
||||
action:@selector(saveProject:)
|
||||
keyEquivalent:@"S"];
|
||||
[project addItemWithTitle:@"Save As..."
|
||||
action:@selector(saveProjectAs:)
|
||||
keyEquivalent:@""];
|
||||
[project addItemWithTitle:@"Add Files..."
|
||||
action:@selector(addFile:)
|
||||
keyEquivalent:@"A"];
|
||||
[project addItemWithTitle:@"Save Files..."
|
||||
action:action
|
||||
keyEquivalent:@"Q"];
|
||||
[project addItemWithTitle:@"Remove Files..."
|
||||
action:@selector(removeFile:)
|
||||
keyEquivalent:@"r"];
|
||||
[project addItemWithTitle:@"Subprojects"
|
||||
action:action
|
||||
keyEquivalent:@""];
|
||||
[project addItemWithTitle:@"Close"
|
||||
action:@selector(closeProject:)
|
||||
keyEquivalent:@""];
|
||||
|
||||
subprojects = [[[NSMenu alloc] init] autorelease];
|
||||
[project setSubmenu:subprojects
|
||||
forItem:[project itemWithTitle:@"Subprojects"]];
|
||||
[subprojects addItemWithTitle:@"New..."
|
||||
action:@selector(newSubproject:)
|
||||
keyEquivalent:@""];
|
||||
[subprojects addItemWithTitle:@"Add..."
|
||||
action:@selector(addSubproject:)
|
||||
keyEquivalent:@""];
|
||||
[subprojects addItemWithTitle:@"Remove..."
|
||||
action:@selector(removeSubproject:)
|
||||
keyEquivalent:@""];
|
||||
|
||||
/*
|
||||
* File submenu
|
||||
*/
|
||||
file = [[[NSMenu alloc] init] autorelease];
|
||||
[menu setSubmenu:file forItem:[menu itemWithTitle:@"File"]];
|
||||
[file addItemWithTitle:@"Open..."
|
||||
action:@selector(openFile:)
|
||||
keyEquivalent:@"o"];
|
||||
[file addItemWithTitle:@"New in Project"
|
||||
action:@selector(newFile:)
|
||||
keyEquivalent:@"n"];
|
||||
[file addItemWithTitle:@"Save"
|
||||
action:@selector(saveFile:)
|
||||
keyEquivalent:@"s"];
|
||||
[file addItemWithTitle:@"Save As..."
|
||||
action:@selector(saveFile:)
|
||||
keyEquivalent:@""];
|
||||
[file addItemWithTitle:@"Save To..."
|
||||
action:action
|
||||
keyEquivalent:@""];
|
||||
[file addItemWithTitle:@"Revert to Saved"
|
||||
action:@selector(revertFile:)
|
||||
keyEquivalent:@"u"];
|
||||
[file addItemWithTitle:@"Close"
|
||||
action:action
|
||||
keyEquivalent:@"W"];
|
||||
[file addItemWithTitle:@"View"
|
||||
action:action
|
||||
keyEquivalent:@""];
|
||||
[file addItemWithTitle:@"Open Quickly..."
|
||||
action:action
|
||||
keyEquivalent:@"D"];
|
||||
[file addItemWithTitle:@"Rename"
|
||||
action:@selector(renameFile:)
|
||||
keyEquivalent:@""];
|
||||
[file addItemWithTitle:@"New Untitled"
|
||||
action:action
|
||||
keyEquivalent:@""];
|
||||
|
||||
file_view = [[[NSMenu alloc] init] autorelease];
|
||||
[file setSubmenu:file_view
|
||||
forItem:[file itemWithTitle:@"View"]];
|
||||
[file_view addItemWithTitle:@"Split"
|
||||
action:action
|
||||
keyEquivalent:@"2"];
|
||||
[file_view addItemWithTitle:@"Maximize"
|
||||
action:action
|
||||
keyEquivalent:@"1"];
|
||||
[file_view addItemWithTitle:@"Tear Off"
|
||||
action:action
|
||||
keyEquivalent:@"T"];
|
||||
|
||||
/*
|
||||
* Edit submenu
|
||||
*/
|
||||
|
||||
edit = [[[NSMenu alloc] init] autorelease];
|
||||
[menu setSubmenu:edit forItem:[menu itemWithTitle:@"Edit"]];
|
||||
[edit addItemWithTitle:@"Cut"
|
||||
action:@selector(cut:)
|
||||
keyEquivalent:@"x"];
|
||||
[edit addItemWithTitle:@"Copy"
|
||||
action:@selector(copy:)
|
||||
keyEquivalent:@"c"];
|
||||
[edit addItemWithTitle:@"Paste"
|
||||
action:@selector(paste:)
|
||||
keyEquivalent:@"v"];
|
||||
[edit addItemWithTitle:@"Delete"
|
||||
action:@selector(delete:)
|
||||
keyEquivalent:@""];
|
||||
[edit addItemWithTitle:@"Select All"
|
||||
action:@selector(selectAll:)
|
||||
keyEquivalent:@"a"];
|
||||
[edit addItemWithTitle:@"Find"
|
||||
action:action
|
||||
keyEquivalent:@""];
|
||||
[edit addItemWithTitle:@"Undo"
|
||||
action:action
|
||||
keyEquivalent:@""];
|
||||
[edit addItemWithTitle:@"Indentation"
|
||||
action:action
|
||||
keyEquivalent:@""];
|
||||
[edit addItemWithTitle:@"Spelling..."
|
||||
action:action
|
||||
keyEquivalent:@""];
|
||||
[edit addItemWithTitle:@"Check Spelling"
|
||||
action:action
|
||||
keyEquivalent:@";"];
|
||||
|
||||
// Find
|
||||
edit_find = [[[NSMenu alloc] init] autorelease];
|
||||
[edit setSubmenu:edit_find
|
||||
forItem:[edit itemWithTitle:@"Find"]];
|
||||
[edit_find addItemWithTitle:@"Find Panel..."
|
||||
action:@selector(showFindPanel:)
|
||||
keyEquivalent:@"f"];
|
||||
[edit_find addItemWithTitle:@"Find Next"
|
||||
action:@selector(findNext:)
|
||||
keyEquivalent:@"g"];
|
||||
[edit_find addItemWithTitle:@"Find Previuos"
|
||||
action:@selector(findPrevious:)
|
||||
keyEquivalent:@"d"];
|
||||
[edit_find addItemWithTitle:@"Enter Selection"
|
||||
action:action
|
||||
keyEquivalent:@"e"];
|
||||
[edit_find addItemWithTitle:@"Jump to Selection"
|
||||
action:action
|
||||
keyEquivalent:@"j"];
|
||||
[edit_find addItemWithTitle:@"Line Number..."
|
||||
action:action
|
||||
keyEquivalent:@"I"];
|
||||
[edit_find addItemWithTitle:@"Man Page"
|
||||
action:action
|
||||
keyEquivalent:@"M"];
|
||||
|
||||
// Undo
|
||||
edit_undo = [[[NSMenu alloc] init] autorelease];
|
||||
[edit setSubmenu:edit_undo
|
||||
forItem:[edit itemWithTitle:@"Undo"]];
|
||||
[edit_undo addItemWithTitle:@"Undo"
|
||||
action:action
|
||||
keyEquivalent:@"z"];
|
||||
[edit_undo addItemWithTitle:@"Redo"
|
||||
action:action
|
||||
keyEquivalent:@"Z"];
|
||||
[edit_undo addItemWithTitle:@"Undo Region"
|
||||
action:action
|
||||
keyEquivalent:@""];
|
||||
|
||||
// Indentation
|
||||
edit_indent = [[[NSMenu alloc] init] autorelease];
|
||||
[edit setSubmenu:edit_indent
|
||||
forItem:[edit itemWithTitle:@"Indentation"]];
|
||||
[edit_indent addItemWithTitle:@"Indent"
|
||||
action:action
|
||||
keyEquivalent:@"i"];
|
||||
[edit_indent addItemWithTitle:@"Shift Left"
|
||||
action:action
|
||||
keyEquivalent:@"["];
|
||||
[edit_indent addItemWithTitle:@"Shift Right"
|
||||
action:action
|
||||
keyEquivalent:@"]"];
|
||||
[edit_indent addItemWithTitle:@"Compress Whitesapce"
|
||||
action:action
|
||||
keyEquivalent:@"{"];
|
||||
[edit_indent addItemWithTitle:@"Expand Message Expression"
|
||||
action:action
|
||||
keyEquivalent:@"}"];
|
||||
|
||||
/*
|
||||
* Format submenu
|
||||
*/
|
||||
format = [[[NSMenu alloc] init] autorelease];
|
||||
[menu setSubmenu:format
|
||||
forItem:[menu itemWithTitle:@"Format"]];
|
||||
[format addItemWithTitle:@"Font"
|
||||
action:action
|
||||
keyEquivalent:@""];
|
||||
[format addItemWithTitle:@"Text"
|
||||
action:action
|
||||
keyEquivalent:@""];
|
||||
[format addItemWithTitle:@"Make Rich Text"
|
||||
action:action
|
||||
keyEquivalent:@"R"];
|
||||
[format addItemWithTitle:@"Show All Characters"
|
||||
action:action
|
||||
keyEquivalent:@""];
|
||||
[format addItemWithTitle:@"Page Layout..."
|
||||
action:action
|
||||
keyEquivalent:@"P"];
|
||||
|
||||
// Font
|
||||
[format setSubmenu:[[NSFontManager sharedFontManager] fontMenu: YES]
|
||||
forItem:[format itemWithTitle:@"Font"]];
|
||||
// Text
|
||||
format_text = [[[NSMenu alloc] init] autorelease];
|
||||
[format setSubmenu:format_text
|
||||
forItem:[format itemWithTitle:@"Text"]];
|
||||
[format_text addItemWithTitle:@"Align Left"
|
||||
action:action
|
||||
keyEquivalent:@""];
|
||||
[format_text addItemWithTitle:@"Center"
|
||||
action:action
|
||||
keyEquivalent:@""];
|
||||
[format_text addItemWithTitle:@"Align Right"
|
||||
action:action
|
||||
keyEquivalent:@""];
|
||||
[format_text addItemWithTitle:@"Show Ruler"
|
||||
action:action
|
||||
keyEquivalent:@""];
|
||||
[format_text addItemWithTitle:@"Copy Ruler"
|
||||
action:action
|
||||
keyEquivalent:@""];
|
||||
[format_text addItemWithTitle:@"Paste Ruler"
|
||||
action:action
|
||||
keyEquivalent:@""];
|
||||
|
||||
/*
|
||||
* Tools submenu
|
||||
*/
|
||||
|
||||
tools = [[[NSMenu alloc] init] autorelease];
|
||||
[menu setSubmenu:tools forItem:[menu itemWithTitle:@"Tools"]];
|
||||
[tools addItemWithTitle:@"Hide Tool Bar"
|
||||
action:action
|
||||
keyEquivalent:@""];
|
||||
[tools addItemWithTitle:@"Inspector..."
|
||||
action:@selector(showInspector:)
|
||||
keyEquivalent:@""];
|
||||
[tools addItemWithTitle:@"Loaded Projects..."
|
||||
action:action
|
||||
keyEquivalent:@""];
|
||||
[tools addItemWithTitle:@"Project Build"
|
||||
action:action
|
||||
keyEquivalent:@""];
|
||||
[tools addItemWithTitle:@"Project Find"
|
||||
action:action
|
||||
keyEquivalent:@""];
|
||||
[tools addItemWithTitle:@"Loaded Files"
|
||||
action:action
|
||||
keyEquivalent:@""];
|
||||
[tools addItemWithTitle:@"Launcher"
|
||||
action:action
|
||||
keyEquivalent:@""];
|
||||
[tools addItemWithTitle:@"Indexer"
|
||||
action:action
|
||||
keyEquivalent:@""];
|
||||
|
||||
// Project Build
|
||||
tools_build = [[[NSMenu alloc] init] autorelease];
|
||||
[tools setSubmenu:tools_build
|
||||
forItem:[tools itemWithTitle:@"Project Build"]];
|
||||
[tools_build addItemWithTitle:@"Show Panel..."
|
||||
action:@selector(showBuildPanel:)
|
||||
keyEquivalent:@""];
|
||||
[tools_build addItemWithTitle:@"Build"
|
||||
action:action
|
||||
keyEquivalent:@"B"];
|
||||
[tools_build addItemWithTitle:@"Stop Build"
|
||||
action:action
|
||||
keyEquivalent:@"/"];
|
||||
[tools_build addItemWithTitle:@"Clean"
|
||||
action:action
|
||||
keyEquivalent:@""];
|
||||
[tools_build addItemWithTitle:@"Next Error"
|
||||
action:action
|
||||
keyEquivalent:@">"];
|
||||
[tools_build addItemWithTitle:@"Previous Error"
|
||||
action:action
|
||||
keyEquivalent:@"<"];
|
||||
|
||||
// Project Find
|
||||
tools_find = [[[NSMenu alloc] init] autorelease];
|
||||
[tools setSubmenu:tools_find
|
||||
forItem:[tools itemWithTitle:@"Project Find"]];
|
||||
[tools_find addItemWithTitle:@"Show Panel..."
|
||||
action:action
|
||||
keyEquivalent:@"F"];
|
||||
[tools_find addItemWithTitle:@"Find References"
|
||||
action:action
|
||||
keyEquivalent:@"0"];
|
||||
[tools_find addItemWithTitle:@"Find Definitions"
|
||||
action:action
|
||||
keyEquivalent:@"9"];
|
||||
[tools_find addItemWithTitle:@"Find Text"
|
||||
action:action
|
||||
keyEquivalent:@"8"];
|
||||
[tools_find addItemWithTitle:@"Find Regular Expr"
|
||||
action:action
|
||||
keyEquivalent:@"7"];
|
||||
[tools_find addItemWithTitle:@"Next match"
|
||||
action:action
|
||||
keyEquivalent:@""];
|
||||
[tools_find addItemWithTitle:@"Previuos match"
|
||||
action:action
|
||||
keyEquivalent:@""];
|
||||
|
||||
// Loaded Files
|
||||
tools_files = [[[NSMenu alloc] init] autorelease];
|
||||
[tools setSubmenu:tools_files
|
||||
forItem:[tools itemWithTitle:@"Loaded Files"]];
|
||||
[tools_files addItemWithTitle:@"Show Panel..."
|
||||
action:action
|
||||
keyEquivalent:@"L"];
|
||||
[tools_files addItemWithTitle:@"Sort by Time Viewed"
|
||||
action:action
|
||||
keyEquivalent:@""];
|
||||
[tools_files addItemWithTitle:@"Sort by Name"
|
||||
action:action
|
||||
keyEquivalent:@""];
|
||||
[tools_files addItemWithTitle:@"Next File"
|
||||
action:action
|
||||
keyEquivalent:@"+"];
|
||||
[tools_files addItemWithTitle:@"Previuos File"
|
||||
action:action
|
||||
keyEquivalent:@"_"];
|
||||
// Launcher
|
||||
tools_launcher = [[[NSMenu alloc] init] autorelease];
|
||||
[tools setSubmenu:tools_launcher
|
||||
forItem:[tools itemWithTitle:@"Launcher"]];
|
||||
[tools_launcher addItemWithTitle:@"Show Panel..."
|
||||
action:@selector(showRunPanel:)
|
||||
keyEquivalent:@""];
|
||||
[tools_launcher addItemWithTitle:@"Run"
|
||||
action:@selector(runTarget:)
|
||||
keyEquivalent:@""];
|
||||
[tools_launcher addItemWithTitle:@"Debug"
|
||||
action:action
|
||||
keyEquivalent:@""];
|
||||
// Indexer
|
||||
tools_indexer = [[[NSMenu alloc] init] autorelease];
|
||||
[tools setSubmenu:tools_indexer
|
||||
forItem:[tools itemWithTitle:@"Indexer"]];
|
||||
[tools_indexer addItemWithTitle:@"Show Panel..."
|
||||
action:action
|
||||
keyEquivalent:@""];
|
||||
[tools_indexer addItemWithTitle:@"Purge Indices"
|
||||
action:action
|
||||
keyEquivalent:@""];
|
||||
[tools_indexer addItemWithTitle:@"Index Subproject"
|
||||
action:action
|
||||
keyEquivalent:@"|"];
|
||||
[tools_indexer addItemWithTitle:@"Index File"
|
||||
action:action
|
||||
keyEquivalent:@"*"];
|
||||
|
||||
/*
|
||||
* Windows submenu
|
||||
*/
|
||||
|
||||
windows = [[[NSMenu alloc] init] autorelease];
|
||||
[menu setSubmenu:windows forItem:[menu itemWithTitle:@"Windows"]];
|
||||
[windows addItemWithTitle:@"Arrange in Front"
|
||||
action:@selector(arrangeInFront:)
|
||||
keyEquivalent:@""];
|
||||
[windows addItemWithTitle:@"Miniaturize Window"
|
||||
action:@selector(performMiniaturize:)
|
||||
keyEquivalent:@"m"];
|
||||
[windows addItemWithTitle:@"Close Window"
|
||||
action:@selector(performClose:)
|
||||
keyEquivalent:@"w"];
|
||||
|
||||
/*
|
||||
* Services submenu
|
||||
*/
|
||||
|
||||
services = [[[NSMenu alloc] init] autorelease];
|
||||
[menu setSubmenu:services forItem:[menu itemWithTitle:@"Services"]];
|
||||
|
||||
[[NSApplication sharedApplication] setWindowsMenu: windows];
|
||||
[[NSApplication sharedApplication] setServicesMenu: services];
|
||||
[[NSApplication sharedApplication] setMainMenu:menu];
|
||||
}
|
||||
|
Loading…
Reference in a new issue