gwenhywfar 4.0.3

CocoaGroupBox.m

Go to the documentation of this file.
00001 //
00002 //  CocoaGroupBox.m
00003 //  
00004 //
00005 //  Created by Samuel Strupp on 10.08.10.
00006 //
00007 #ifdef HAVE_CONFIG_H
00008 # include <config.h>
00009 #endif
00010 
00011 
00012 #import "CocoaGroupBox.h"
00013 
00014 
00015 @implementation CocoaGroupBox
00016 
00017 @synthesize fillX;
00018 @synthesize fillY;
00019 
00020 - (id)initWithFrame:(NSRect)frame {
00021     self = [super initWithFrame:frame];
00022     if (self) {
00023                 fillX = NO;
00024                 fillY = NO;
00025     }
00026     return self;
00027 }
00028 
00029 -(void) dealloc {
00030         [super dealloc];
00031 }
00032 
00033 #pragma mark Protocoll Methods
00034 
00035 - (NSSize) minSize {
00036         if ([[self contentView] conformsToProtocol:@protocol(CocoaGwenGUIProtocol)]) {
00037                 NSSize size = [(<CocoaGwenGUIProtocol>)[self contentView] minSize];
00038                 size.height += 24.0;
00039                 size.width += 14.0;
00040                 return size;
00041         }
00042         return NSMakeSize(22.0, 40.0);
00043 }
00044 
00045 - (BOOL) fillX {
00046         return fillX;
00047 }
00048 
00049 - (BOOL) fillY {
00050         return fillY;
00051 }
00052 
00053 @end