mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-24 03:51:22 +00:00
Removed GormTest.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@20898 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c80afb4514
commit
a703c5f2ae
6 changed files with 14 additions and 278 deletions
13
ChangeLog
13
ChangeLog
|
@ -1,3 +1,16 @@
|
||||||
|
2005-03-11 21:25 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||||
|
|
||||||
|
* GormTest: Removed the "GormTest" application. Since most
|
||||||
|
.gorm files use classes which will never be linked into that
|
||||||
|
application and since the "test interface" functionality in
|
||||||
|
Gorm itself provides the same functionality, this app is being
|
||||||
|
removed.
|
||||||
|
|
||||||
|
2005-03-09 23:58 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||||
|
|
||||||
|
* Documentation/GNUmakefile: Install docs into correct
|
||||||
|
location under ${GNUSTEP_SYSTEM_ROOT}/Library/Documentation.
|
||||||
|
|
||||||
2005-03-08 00:15 Gregory John Casamento <greg_casamento@yahoo.com>
|
2005-03-08 00:15 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||||
|
|
||||||
* GNUmakefile: Added new files.
|
* GNUmakefile: Added new files.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
|
GNUSTEP_INSTALLATION_DIR = $(GNUSTEP_SYSTEM_ROOT)
|
||||||
GNUSTEP_MAKEFILES = $(GNUSTEP_SYSTEM_ROOT)/Makefiles
|
GNUSTEP_MAKEFILES = $(GNUSTEP_SYSTEM_ROOT)/Makefiles
|
||||||
|
|
||||||
include $(GNUSTEP_MAKEFILES)/common.make
|
include $(GNUSTEP_MAKEFILES)/common.make
|
||||||
|
|
|
@ -1,42 +0,0 @@
|
||||||
# GNUmakefile: makefile for GNUstep nib loading test
|
|
||||||
#
|
|
||||||
# Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
#
|
|
||||||
# Author: Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
|
||||||
# Date: 1999
|
|
||||||
#
|
|
||||||
# This file is part of GNUstep.
|
|
||||||
#
|
|
||||||
# This program 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 program 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 General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program; if not, write to the Free Software
|
|
||||||
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA
|
|
||||||
#
|
|
||||||
|
|
||||||
include $(GNUSTEP_MAKEFILES)/common.make
|
|
||||||
|
|
||||||
#
|
|
||||||
# MAIN APP
|
|
||||||
#
|
|
||||||
APP_NAME = GormTest
|
|
||||||
GormTest_MAIN_MODEL_FILE = GormTest.gorm
|
|
||||||
GormTest_RESOURCE_FILES = GormTest.gorm
|
|
||||||
GormTest_OBJC_FILES = \
|
|
||||||
GormTest.m
|
|
||||||
|
|
||||||
-include GNUmakefile.preamble
|
|
||||||
|
|
||||||
-include GNUmakefile.local
|
|
||||||
|
|
||||||
include $(GNUSTEP_MAKEFILES)/application.make
|
|
||||||
|
|
||||||
-include GNUmakefile.postamble
|
|
|
@ -1,154 +0,0 @@
|
||||||
{
|
|
||||||
Controller = {
|
|
||||||
Actions = (
|
|
||||||
"open:"
|
|
||||||
);
|
|
||||||
Outlets = (
|
|
||||||
);
|
|
||||||
Super = NSObject;
|
|
||||||
};
|
|
||||||
FirstResponder = {
|
|
||||||
Actions = (
|
|
||||||
"activateContextHelpMode:",
|
|
||||||
"alignCenter:",
|
|
||||||
"alignJustified:",
|
|
||||||
"alignLeft:",
|
|
||||||
"alignRight:",
|
|
||||||
"arrangeInFront:",
|
|
||||||
"cancel:",
|
|
||||||
"capitalizeWord:",
|
|
||||||
"changeColor:",
|
|
||||||
"changeFont:",
|
|
||||||
"checkSpelling:",
|
|
||||||
"close:",
|
|
||||||
"complete:",
|
|
||||||
"copy:",
|
|
||||||
"copyFont:",
|
|
||||||
"copyRuler:",
|
|
||||||
"cut:",
|
|
||||||
"delete:",
|
|
||||||
"deleteBackward:",
|
|
||||||
"deleteForward:",
|
|
||||||
"deleteToBeginningOfLine:",
|
|
||||||
"deleteToBeginningOfParagraph:",
|
|
||||||
"deleteToEndOfLine:",
|
|
||||||
"deleteToEndOfParagraph:",
|
|
||||||
"deleteToMark:",
|
|
||||||
"deleteWordBackward:",
|
|
||||||
"deleteWordForward:",
|
|
||||||
"deminiaturize:",
|
|
||||||
"deselectAll:",
|
|
||||||
"fax:",
|
|
||||||
"hide:",
|
|
||||||
"hideOtherApplications:",
|
|
||||||
"indent:",
|
|
||||||
"loosenKerning:",
|
|
||||||
"lowerBaseline:",
|
|
||||||
"lowercaseWord:",
|
|
||||||
"makeKeyAndOrderFront:",
|
|
||||||
"miniaturize:",
|
|
||||||
"miniaturizeAll:",
|
|
||||||
"moveBackward:",
|
|
||||||
"moveBackwardAndModifySelection:",
|
|
||||||
"moveDown:",
|
|
||||||
"moveDownAndModifySelection:",
|
|
||||||
"moveForward:",
|
|
||||||
"moveForwardAndModifySelection:",
|
|
||||||
"moveLeft:",
|
|
||||||
"moveRight:",
|
|
||||||
"moveToBeginningOfDocument:",
|
|
||||||
"moveToBeginningOfLine:",
|
|
||||||
"moveToBeginningOfParagraph:",
|
|
||||||
"moveToEndOfDocument:",
|
|
||||||
"moveToEndOfLine:",
|
|
||||||
"moveToEndOfParagraph:",
|
|
||||||
"moveUp:",
|
|
||||||
"moveUpAndModifySelection:",
|
|
||||||
"moveWordBackward:",
|
|
||||||
"moveWordBackwardAndModifySelection:",
|
|
||||||
"moveWordForward:",
|
|
||||||
"moveWordForwardAndModifySelection:",
|
|
||||||
"newDocument:",
|
|
||||||
"ok:",
|
|
||||||
"openDocument:",
|
|
||||||
"orderBack:",
|
|
||||||
"orderFront:",
|
|
||||||
"orderFrontColorPanel:",
|
|
||||||
"orderFrontDataLinkPanel:",
|
|
||||||
"orderFrontFontPanel:",
|
|
||||||
"orderFrontHelpPanel:",
|
|
||||||
"orderFrontStandardAboutPanel:",
|
|
||||||
"orderFrontStandardInfoPanel:",
|
|
||||||
"orderOut:",
|
|
||||||
"pageDown:",
|
|
||||||
"pageUp:",
|
|
||||||
"paste:",
|
|
||||||
"pasteAsPlainText:",
|
|
||||||
"pasteAsRichText:",
|
|
||||||
"pasteFont:",
|
|
||||||
"pasteRuler:",
|
|
||||||
"performClose:",
|
|
||||||
"performMiniaturize:",
|
|
||||||
"performZoom:",
|
|
||||||
"print:",
|
|
||||||
"raiseBaseline:",
|
|
||||||
"revertDocumentToSaved:",
|
|
||||||
"runPageLayout:",
|
|
||||||
"runToolbarCustomizationPalette:",
|
|
||||||
"saveAllDocuments:",
|
|
||||||
"saveDocument:",
|
|
||||||
"saveDocumentAs:",
|
|
||||||
"saveDocumentTo:",
|
|
||||||
"scrollLineDown:",
|
|
||||||
"scrollLineUp:",
|
|
||||||
"scrollPageDown:",
|
|
||||||
"scrollPageUp:",
|
|
||||||
"scrollViaScroller:",
|
|
||||||
"selectAll:",
|
|
||||||
"selectLine:",
|
|
||||||
"selectNextKeyView:",
|
|
||||||
"selectParagraph:",
|
|
||||||
"selectPreviousKeyView:",
|
|
||||||
"selectText:",
|
|
||||||
"selectText:",
|
|
||||||
"selectToMark:",
|
|
||||||
"selectWord:",
|
|
||||||
"showContextHelp:",
|
|
||||||
"showGuessPanel:",
|
|
||||||
"showHelp:",
|
|
||||||
"showWindow:",
|
|
||||||
"stop:",
|
|
||||||
"subscript:",
|
|
||||||
"superscript:",
|
|
||||||
"swapWithMark:",
|
|
||||||
"takeDoubleValueFrom:",
|
|
||||||
"takeFloatValueFrom:",
|
|
||||||
"takeIntValueFrom:",
|
|
||||||
"takeObjectValueFrom:",
|
|
||||||
"takeStringValueFrom:",
|
|
||||||
"terminate:",
|
|
||||||
"tightenKerning:",
|
|
||||||
"toggle:",
|
|
||||||
"toggleContinuousSpellChecking:",
|
|
||||||
"toggleRuler:",
|
|
||||||
"toggleToolbarShown:",
|
|
||||||
"toggleTraditionalCharacterShape:",
|
|
||||||
"transpose:",
|
|
||||||
"transposeWords:",
|
|
||||||
"turnOffKerning:",
|
|
||||||
"turnOffLigatures:",
|
|
||||||
"underline:",
|
|
||||||
"unhide:",
|
|
||||||
"unhideAllApplications:",
|
|
||||||
"unscript:",
|
|
||||||
"uppercaseWord:",
|
|
||||||
"useAllLigatures:",
|
|
||||||
"useStandardKerning:",
|
|
||||||
"useStandardLigatures:",
|
|
||||||
"yank:",
|
|
||||||
"zoom:",
|
|
||||||
"open:"
|
|
||||||
);
|
|
||||||
Super = NSObject;
|
|
||||||
};
|
|
||||||
}
|
|
Binary file not shown.
|
@ -1,81 +0,0 @@
|
||||||
/* GormTest.m
|
|
||||||
*
|
|
||||||
* Copyright (C) 1999 Free Software Foundation, Inc.
|
|
||||||
*
|
|
||||||
* Author: Richard Frith-Macdonald <richard@brainstrom.co.uk>
|
|
||||||
* Date: 1999
|
|
||||||
*
|
|
||||||
* This file is part of GNUstep.
|
|
||||||
*
|
|
||||||
* This program 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 program 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 General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <Foundation/Foundation.h>
|
|
||||||
#include <AppKit/AppKit.h>
|
|
||||||
|
|
||||||
@interface Controller: NSObject
|
|
||||||
{
|
|
||||||
}
|
|
||||||
- (id)open: (id) sender;
|
|
||||||
@end
|
|
||||||
|
|
||||||
@implementation Controller
|
|
||||||
|
|
||||||
- (id) open: (id)sender
|
|
||||||
{
|
|
||||||
NSArray *fileTypes = [NSArray arrayWithObjects: @"gorm", nil];
|
|
||||||
NSOpenPanel *oPanel = [NSOpenPanel openPanel];
|
|
||||||
id oldDelegate = [NSApp delegate];
|
|
||||||
int result;
|
|
||||||
|
|
||||||
[oPanel setAllowsMultipleSelection: NO];
|
|
||||||
[oPanel setCanChooseFiles: YES];
|
|
||||||
[oPanel setCanChooseDirectories: NO];
|
|
||||||
result = [oPanel runModalForDirectory: NSHomeDirectory()
|
|
||||||
file: nil
|
|
||||||
types: fileTypes];
|
|
||||||
if (result == NSOKButton)
|
|
||||||
{
|
|
||||||
[NSBundle loadNibFile: [oPanel filename]
|
|
||||||
externalNameTable:
|
|
||||||
[NSDictionary dictionaryWithObject: NSApp forKey: @"NSOwner"]
|
|
||||||
withZone: NSDefaultMallocZone()];
|
|
||||||
if ([NSApp delegate] == oldDelegate)
|
|
||||||
{
|
|
||||||
NSRunAlertPanel(NULL,
|
|
||||||
[NSString stringWithFormat: @"Nib did not set app delegate"],
|
|
||||||
@"OK", NULL, NULL);
|
|
||||||
return nil;
|
|
||||||
}
|
|
||||||
if ([[NSApp delegate] isKindOfClass: [NSWindow class]] == NO)
|
|
||||||
{
|
|
||||||
NSRunAlertPanel(NULL,
|
|
||||||
[NSString stringWithFormat:
|
|
||||||
@"Nib set app delegate to something other than a window"],
|
|
||||||
@"OK", NULL, NULL);
|
|
||||||
return nil;
|
|
||||||
}
|
|
||||||
[[NSApp delegate] makeKeyAndOrderFront: self];
|
|
||||||
return self;
|
|
||||||
}
|
|
||||||
return nil; /* Failed */
|
|
||||||
}
|
|
||||||
@end
|
|
||||||
|
|
||||||
int
|
|
||||||
main(int argc, const char **argv)
|
|
||||||
{
|
|
||||||
return NSApplicationMain(argc, argv);
|
|
||||||
}
|
|
Loading…
Reference in a new issue