Removed GormPosingView.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@20728 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2005-02-16 04:31:25 +00:00
parent f9af79eb27
commit 2688176533
3 changed files with 4 additions and 101 deletions

View file

@ -1,3 +1,7 @@
2005-02-15 23:37 Gregory John Casamento <greg_casamento@yahoo.com>
* GormPosingView.[hm]: Removed.
2005-02-15 23:24 Gregory John Casamento <greg_casamento@yahoo.com>
* Gorm.m: Disabled poseAs: and poseAsClass: while in Gorm.

View file

@ -1,12 +0,0 @@
#ifndef INCLUDED_GormPosingView_h
#define INCLUDED_GormPosingView_h
#include <AppKit/AppKit.h>
@interface GormPosingView : NSView
{
}
@end
#endif

View file

@ -1,89 +0,0 @@
#include "GormPosingView.h"
@implementation GormPosingView
struct _rFlagsType2 {
/*
* 'flipped_view' is set in NSViews designated initialiser (and other
* methods that create views) to be the value returned by [-isFlipped]
* This caching assumes that the value returned by [-isFlipped] will
* not change during the views lifetime - if it does, the view must
* be sure to change the flag accordingly.
*/
unsigned flipped_view:1;
unsigned has_subviews:1; /* The view has subviews. */
unsigned has_currects:1; /* The view has cursor rects. */
unsigned has_trkrects:1; /* The view has tracking rects. */
unsigned has_draginfo:1; /* View/window has drag types. */
unsigned opaque_view:1; /* For views whose opacity may */
/* change to keep track of it. */
unsigned valid_rects:1; /* Some cursor rects may be ok. */
unsigned needs_display:1; /* Window/view needs display. */
unsigned isCustom:1;
} ;
- (id) initWithFrame: (NSRect)frameRect
{
struct _rFlagsType2 *rft2;
rft2 = (struct _rFlagsType2 *) &_rFlags;
rft2->isCustom = 0;
[super initWithFrame: frameRect];
}
- (void) viewWillMoveToWindow: (NSWindow*)newWindow
{
if ([newWindow isKindOfClass: NSClassFromString(@"GormNSWindow")])
{
[self setCustom: YES];
}
[super viewWillMoveToWindow: newWindow];
}
- (BOOL) isCustom
{
struct _rFlagsType2 *rft2;
rft2 = (struct _rFlagsType2 *) &_rFlags;
if (rft2->isCustom == 0)
return NO;
else
return YES;
}
- (void) display
{
if ([self isCustom])
{
NSDebugLog(@"%@ display", self);
}
[super display];
}
- (void) displayIfNeeded
{
if ([self isCustom])
{
NSDebugLog(@"%@ displayIfNeeded", self);
}
[super displayIfNeeded];
}
- (void) setCustom: (BOOL) value
{
struct _rFlagsType2 *rft2;
rft2 = (struct _rFlagsType2 *) &_rFlags;
if (value)
rft2->isCustom = 1;
else
rft2->isCustom = 0;
}
@end