mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-23 06:20:47 +00:00
* GormCore/GormStandaloneViewEditor.h:
* GormCore/GormStandaloneViewEditor.m: Improve support for standalone views. Correct issue with ungrouping. Correct issues with editing subviews in a standalone view. * GormCore/GormViewSizeInspector.m: Remove code which made standalone views uneditable in the size inspector. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@33058 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a539c80e3f
commit
280ec14edf
4 changed files with 18 additions and 3 deletions
|
@ -1,3 +1,12 @@
|
|||
2011-05-17 20:43-EDT Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* GormCore/GormStandaloneViewEditor.h:
|
||||
* GormCore/GormStandaloneViewEditor.m: Improve support for standalone
|
||||
views. Correct issue with ungrouping. Correct issues with editing
|
||||
subviews in a standalone view.
|
||||
* GormCore/GormViewSizeInspector.m: Remove code which
|
||||
made standalone views uneditable in the size inspector.
|
||||
|
||||
2011-05-17 17:32-EDT Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* GormLib/COPYING.LIB: Update license text for files.
|
||||
|
|
|
@ -24,9 +24,9 @@
|
|||
#ifndef INCLUDED_GormStandaloneViewEditor_h
|
||||
#define INCLUDED_GormStandaloneViewEditor_h
|
||||
|
||||
#include <GormCore/GormViewWithSubviewsEditor.h>
|
||||
#include <GormCore/GormViewWithContentViewEditor.h>
|
||||
|
||||
@interface GormStandaloneViewEditor : GormViewWithSubviewsEditor <IBSelectionOwners>
|
||||
@interface GormStandaloneViewEditor : GormViewWithContentViewEditor <IBSelectionOwners>
|
||||
@end
|
||||
|
||||
#endif
|
||||
|
|
|
@ -33,6 +33,7 @@ static NSImage *horizontalImage;
|
|||
@class GormEditorToParent;
|
||||
|
||||
@implementation GormStandaloneViewEditor
|
||||
|
||||
- (void) mouseDown: (NSEvent *) theEvent
|
||||
{
|
||||
BOOL onKnob = NO;
|
||||
|
@ -122,10 +123,10 @@ static NSImage *horizontalImage;
|
|||
}
|
||||
}
|
||||
|
||||
// get the view we are on
|
||||
{
|
||||
GormViewEditor *editorView;
|
||||
|
||||
// get the view we are on
|
||||
{
|
||||
NSPoint mouseDownPoint;
|
||||
NSView *result = nil;
|
||||
|
@ -359,4 +360,5 @@ static NSImage *horizontalImage;
|
|||
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
@ -156,11 +156,13 @@ NSImage *mVLine = nil;
|
|||
if (anObject != object)
|
||||
return;
|
||||
|
||||
/*
|
||||
if([[anObject window] isKindOfClass: [GormViewWindow class]])
|
||||
{
|
||||
[sizeForm setEnabled: NO];
|
||||
}
|
||||
else
|
||||
*/
|
||||
{
|
||||
[sizeForm setEnabled: YES];
|
||||
}
|
||||
|
@ -252,6 +254,7 @@ NSImage *mVLine = nil;
|
|||
[[sizeForm cellAtIndex: 3] setFloatValue: NSHeight(frame)];
|
||||
[anObject setPostsFrameChangedNotifications: YES];
|
||||
|
||||
/*
|
||||
if([[anObject window] isKindOfClass: [GormViewWindow class]] ||
|
||||
[anObject window] == nil)
|
||||
{
|
||||
|
@ -266,6 +269,7 @@ NSImage *mVLine = nil;
|
|||
[[sizeForm cellAtIndex: 3] setEditable: NO];
|
||||
}
|
||||
else
|
||||
*/
|
||||
{
|
||||
[[sizeForm cellAtIndex: 0] setEnabled: YES];
|
||||
[[sizeForm cellAtIndex: 1] setEnabled: YES];
|
||||
|
|
Loading…
Reference in a new issue