Add new bindings inspector

This commit is contained in:
Gregory John Casamento 2023-01-16 10:05:27 -05:00
parent 99edd0e4de
commit 6c2d6d9416
4 changed files with 121 additions and 2 deletions

View file

@ -153,6 +153,7 @@ Gorm_RESOURCE_FILES = \
Images/browserView.tiff
Gorm_LOCALIZED_RESOURCE_FILES = \
GormBindingsInspector.gorm \
GormClassEditor.gorm \
GormClassInspector.gorm \
GormClassPanel.gorm \

View file

@ -102,7 +102,8 @@ GormCore_HEADER_FILES = \
NSCell+GormAdditions.h \
NSColorWell+GormExtensions.h \
NSFontManager+GormExtensions.h \
NSView+GormExtensions.h
NSView+GormExtensions.h \
GormBindingsInspector.h
GormCore_OBJC_FILES = \
GormBoxEditor.m \
@ -165,7 +166,8 @@ GormCore_OBJC_FILES = \
NSColorWell+GormExtensions.m \
NSFontManager+GormExtensions.m \
NSView+GormExtensions.m \
GormPrivate.m
GormPrivate.m \
GormBindingsInspector.m
-include GNUmakefile.preamble
-include GNUmakefile.local

View file

@ -0,0 +1,43 @@
/** <title>GormBindingsInspector</title>
<abstract>allow user to select custom classes</abstract>
Copyright (C) 2002 Free Software Foundation, Inc.
Author: Gregory John Casamento <greg_casamento@yahoo.com>
Date: September 2002
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 3 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.
*/
/* All Rights reserved */
#ifndef INCLUDED_GormBindingsInspector_h
#define INCLUDED_GormBindingsInspector_h
#import <AppKit/AppKit.h>
#import <InterfaceBuilder/InterfaceBuilder.h>
@interface GormBindingsInspector : IBInspector
{
// outlets
IBOutlet NSPopUpButton *_bindingsPopup;
}
@end
#endif // INCLUDED_GormBindingsInspector_h

View file

@ -0,0 +1,73 @@
/** <title>GormClassInspector</title>
<abstract>allow user to select custom classes</abstract>
Copyright (C) 2003 Free Software Foundation, Inc.
Author: Gregory John Casamento <greg_casamento@yahoo.com>
Date: March 2003
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 3 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.
*/
/* All rights reserved */
#import "GormBindingsInspector.h"
#import "GormDocument.h"
#import "GormFunctions.h"
#import "GormPrivate.h"
#import "GormProtocol.h"
@implementation GormBindingsInspector
+ (void) initialize
{
if (self == [GormBindingsInspector class])
{
}
}
- (id) init
{
self = [super init];
if (self != nil)
{
// load the gui...
if (![NSBundle loadNibNamed: @"GormBindingsInspector"
owner: self])
{
NSLog(@"Could not open gorm file");
return nil;
}
}
return self;
}
- (void) awakeFromNib
{
}
- (void) ok: (id)sender
{
[super ok: sender];
}
- (void) revert: (id)sender
{
[super revert: sender];
}
@end