git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@16109 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2003-03-02 19:26:51 +00:00
parent 106830ca99
commit 0f8a9bc08c
5 changed files with 31 additions and 15 deletions

View file

@ -1,3 +1,7 @@
2003-03-02 Richard Frith-Macdonald <rfm@gnu.org>
* GormDocument.m: Give scrollviews bezelled border.
2003-02-13 Richard Frith-Macdonald <rfm@gnu.org>
* GormOutlineView.m: Fix code to update view when outlet/action

View file

@ -1478,7 +1478,7 @@ static NSImage *classesImage = nil;
objToName = NSCreateMapTableWithZone(NSObjectMapKeyCallBacks,
NSObjectMapValueCallBacks, 128, [self zone]);
// for saving objects when the gorm file is persisted. Used for templates.
// saving objects when the gorm file is persisted. Used for templates.
tempNameTable = [[NSMutableDictionary alloc] initWithCapacity: 8];
// for saving the editors when the gorm file is persisted.
@ -1592,12 +1592,16 @@ static NSImage *classesImage = nil;
scrollView = [[NSScrollView alloc] initWithFrame: scrollRect];
[scrollView setHasVerticalScroller: YES];
[scrollView setHasHorizontalScroller: NO];
[scrollView setAutoresizingMask: NSViewHeightSizable|NSViewWidthSizable];
[scrollView setAutoresizingMask:
NSViewHeightSizable|NSViewWidthSizable];
[scrollView setBorderType: NSBezelBorder];
objectsView = [[GormObjectEditor alloc] initWithObject: nil
inDocument: self];
inDocument: self];
AUTORELEASE(objectsView);
[objectsView setFrame: mainRect];
[objectsView setAutoresizingMask: NSViewHeightSizable|NSViewWidthSizable];
[objectsView setAutoresizingMask:
NSViewHeightSizable|NSViewWidthSizable];
[scrollView setDocumentView: objectsView];
RELEASE(objectsView);
@ -1606,9 +1610,12 @@ static NSImage *classesImage = nil;
imagesScrollView = [[NSScrollView alloc] initWithFrame: scrollRect];
[imagesScrollView setHasVerticalScroller: YES];
[imagesScrollView setHasHorizontalScroller: NO];
[imagesScrollView setAutoresizingMask: NSViewHeightSizable|NSViewWidthSizable];
[imagesScrollView setAutoresizingMask:
NSViewHeightSizable|NSViewWidthSizable];
[imagesScrollView setBorderType: NSBezelBorder];
imagesView = [[GormImageEditor alloc] initWithObject: nil
inDocument: self];
inDocument: self];
AUTORELEASE(imagesView);
[imagesView setFrame: mainRect];
[imagesView setAutoresizingMask: NSViewHeightSizable|NSViewWidthSizable];
@ -1620,9 +1627,12 @@ static NSImage *classesImage = nil;
soundsScrollView = [[NSScrollView alloc] initWithFrame: scrollRect];
[soundsScrollView setHasVerticalScroller: YES];
[soundsScrollView setHasHorizontalScroller: NO];
[soundsScrollView setAutoresizingMask: NSViewHeightSizable|NSViewWidthSizable];
[soundsScrollView setAutoresizingMask:
NSViewHeightSizable|NSViewWidthSizable];
[soundsScrollView setBorderType: NSBezelBorder];
soundsView = [[GormSoundEditor alloc] initWithObject: nil
inDocument: self];
inDocument: self];
AUTORELEASE(soundsView);
[soundsView setFrame: mainRect];
[soundsView setAutoresizingMask: NSViewHeightSizable|NSViewWidthSizable];
@ -1634,7 +1644,8 @@ static NSImage *classesImage = nil;
[classesScrollView setHasVerticalScroller: YES];
[classesScrollView setHasHorizontalScroller: NO];
[classesScrollView setAutoresizingMask:
NSViewHeightSizable|NSViewWidthSizable];
NSViewHeightSizable|NSViewWidthSizable];
[classesScrollView setBorderType: NSBezelBorder];
mainRect.origin = NSMakePoint(0,0);
classesView = [[GormOutlineView alloc] initWithFrame: mainRect];

View file

@ -364,12 +364,10 @@
}
// Operate on the document view if the selected object is a NSScrollView
if ([obj isKindOfClass: [NSScrollView class]] &&
([(NSScrollView *)obj documentView] != nil) &&
([[(NSScrollView *)obj documentView] isKindOfClass: [NSTableView class]]
|| [[(NSScrollView *)obj documentView] isKindOfClass: [NSTextView class]])
)
if ([obj isKindOfClass: [NSScrollView class]]
&& ([(NSScrollView *)obj documentView] != nil)
&& ([[(NSScrollView *)obj documentView] isKindOfClass: [NSTableView class]]
|| [[(NSScrollView *)obj documentView] isKindOfClass: [NSTextView class]]))
{
obj = [(NSScrollView *)obj documentView];
}

View file

@ -260,6 +260,8 @@ static NSImage *dragImage = nil;
[scrollView setHasHorizontalScroller: YES];
[scrollView setHasVerticalScroller: NO];
[scrollView setAutoresizingMask: NSViewMinYMargin | NSViewWidthSizable];
[scrollView setBorderType: NSBezelBorder];
selectionView = [[NSMatrix alloc] initWithFrame: selectionRect
mode: NSRadioModeMatrix
cellClass: [NSImageCell class]

View file

@ -960,6 +960,7 @@
scrollView = [[NSScrollView alloc] initWithFrame: rect];
[scrollView setHasHorizontalScroller: YES];
[scrollView setHasVerticalScroller: YES];
[scrollView setBorderType: NSBezelBorder];
[document attachObject: scrollView
toParent: _editedObject];