mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 22:20:44 +00:00
Tidyup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@5669 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4087f8cf3e
commit
5c947ee917
3 changed files with 37 additions and 13 deletions
|
@ -1,9 +1,11 @@
|
|||
Wed Jan 5 13:32:00 2000 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
Wed Jan 5 17:00:00 2000 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* Palettes/1Menu/main.m: First cut at code for providing menus items
|
||||
on the palette.
|
||||
* GormWindowEditor.m: accept first mouse so we act immediately that
|
||||
the mouse is clicked anywhere in the window.
|
||||
* Palettes/2Window/main.m: Tidy attributes editor and add support
|
||||
for setting window title.
|
||||
|
||||
Tue Jan 4 17:42:00 2000 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
NSView *contents;
|
||||
NSButton *button;
|
||||
|
||||
window = [[NSWindow alloc] initWithContentRect: NSMakeRect(0, 0, IVW, 360)
|
||||
window = [[NSWindow alloc] initWithContentRect: NSMakeRect(0, 0, IVW, IVH)
|
||||
styleMask: NSBorderlessWindowMask
|
||||
backing: NSBackingStoreRetained
|
||||
defer: NO];
|
||||
|
@ -86,7 +86,7 @@
|
|||
NSView *contents;
|
||||
NSButton *button;
|
||||
|
||||
window = [[NSWindow alloc] initWithContentRect: NSMakeRect(0, 0, IVW, 360)
|
||||
window = [[NSWindow alloc] initWithContentRect: NSMakeRect(0, 0, IVW, IVH)
|
||||
styleMask: NSBorderlessWindowMask
|
||||
backing: NSBackingStoreRetained
|
||||
defer: NO];
|
||||
|
@ -125,7 +125,7 @@
|
|||
NSView *contents;
|
||||
NSButton *button;
|
||||
|
||||
window = [[NSWindow alloc] initWithContentRect: NSMakeRect(0, 0, IVW, 360)
|
||||
window = [[NSWindow alloc] initWithContentRect: NSMakeRect(0, 0, IVW, IVH)
|
||||
styleMask: NSBorderlessWindowMask
|
||||
backing: NSBackingStoreRetained
|
||||
defer: NO];
|
||||
|
|
|
@ -139,13 +139,21 @@
|
|||
|
||||
@interface GormWindowAttributesInspector : IBInspector
|
||||
{
|
||||
NSTextField *titleText;
|
||||
NSButton *visibleAtLaunchTime;
|
||||
}
|
||||
@end
|
||||
|
||||
@implementation GormWindowAttributesInspector
|
||||
|
||||
- (void) controlTextDidEndEditing: (NSNotification*)aNotification
|
||||
{
|
||||
[object setTitle: [titleText stringValue]];
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
||||
RELEASE(window);
|
||||
[super dealloc];
|
||||
}
|
||||
|
@ -155,22 +163,35 @@
|
|||
self = [super init];
|
||||
if (self != nil)
|
||||
{
|
||||
NSView *contents;
|
||||
NSBox *box;
|
||||
NSView *contents;
|
||||
NSTextField *title;
|
||||
NSBox *box;
|
||||
|
||||
window = [[NSWindow alloc] initWithContentRect: NSMakeRect(0, 0, 272, 360)
|
||||
window = [[NSWindow alloc] initWithContentRect: NSMakeRect(0, 0, IVW, IVH)
|
||||
styleMask: NSBorderlessWindowMask
|
||||
backing: NSBackingStoreRetained
|
||||
defer: NO];
|
||||
contents = [window contentView];
|
||||
|
||||
box = [[NSBox alloc] initWithFrame: NSMakeRect(10, 300, 100, 50)];
|
||||
[box setTitle: @"Backing"];
|
||||
[box setBorderType: NSGrooveBorder];
|
||||
[contents addSubview: box];
|
||||
RELEASE(box);
|
||||
title
|
||||
= [[NSTextField alloc] initWithFrame: NSMakeRect(10,IVH-30,70,20)];
|
||||
[title setEditable: NO];
|
||||
[title setSelectable: NO];
|
||||
[title setBezeled: NO];
|
||||
[title setAlignment: NSLeftTextAlignment];
|
||||
[title setFont: [NSFont systemFontOfSize: 14.0]];
|
||||
[title setDrawsBackground: NO];
|
||||
[title setStringValue: @"Title:"];
|
||||
[contents addSubview: title];
|
||||
RELEASE(title);
|
||||
|
||||
box = [[NSBox alloc] initWithFrame: NSMakeRect(10, 10, 210, 250)];
|
||||
titleText
|
||||
= [[NSTextField alloc] initWithFrame: NSMakeRect(60,IVH-30,IVW-80,20)];
|
||||
[titleText setDelegate: self];
|
||||
[contents addSubview: titleText];
|
||||
RELEASE(titleText);
|
||||
|
||||
box = [[NSBox alloc] initWithFrame: NSMakeRect(10, 10, IVW-20, IVW)];
|
||||
[box setTitle: @"Options"];
|
||||
[box setBorderType: NSGrooveBorder];
|
||||
[contents addSubview: box];
|
||||
|
@ -221,6 +242,7 @@
|
|||
{
|
||||
[visibleAtLaunchTime setState: NSOffState];
|
||||
}
|
||||
[titleText setStringValue: [object title]];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in a new issue