mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 22:20:44 +00:00
Fix spacing in GormNSSplitViewInspector.
This commit is contained in:
parent
3b2d0d2e77
commit
09c3b5e556
5 changed files with 12 additions and 2 deletions
|
@ -10,7 +10,8 @@
|
|||
Actions = (
|
||||
);
|
||||
Outlets = (
|
||||
orientation
|
||||
orientation,
|
||||
divider
|
||||
);
|
||||
Super = IBInspector;
|
||||
};
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -7,5 +7,6 @@
|
|||
@interface GormNSSplitViewInspector : IBInspector
|
||||
{
|
||||
id orientation;
|
||||
id divider;
|
||||
}
|
||||
@end
|
||||
|
|
|
@ -52,6 +52,8 @@
|
|||
- (void) _getValuesFromObject
|
||||
{
|
||||
BOOL state = [(NSSplitView *)object isVertical];
|
||||
NSUInteger dividerStyle = [(NSSplitView *)object dividerStyle];
|
||||
|
||||
// get the values from the object
|
||||
if(state == NO)
|
||||
{
|
||||
|
@ -61,6 +63,8 @@
|
|||
{
|
||||
[orientation selectCellAtRow: 1 column: 0];
|
||||
}
|
||||
|
||||
[divider selectItemWithTag: dividerStyle];
|
||||
}
|
||||
|
||||
- (void) setObject: (id)anObject
|
||||
|
@ -73,13 +77,17 @@
|
|||
{
|
||||
id cell = nil;
|
||||
BOOL state = NO;
|
||||
|
||||
NSUInteger styleTag = 0;
|
||||
|
||||
// horizontal switch.. if it's active/inactive we
|
||||
// know what the selection is.
|
||||
[super ok: sender];
|
||||
cell = [orientation cellAtRow: 0 column: 0];
|
||||
state = ([cell state] == NSOnState)?NO:YES;
|
||||
styleTag = [divider selectedTag];
|
||||
|
||||
[object setVertical: state];
|
||||
[object adjustSubviews];
|
||||
[object setDividerStyle: styleTag];
|
||||
}
|
||||
@end
|
||||
|
|
Loading…
Reference in a new issue