* Palettes/2Controls/GormButtonAttributesInspector.[hm]:

Added code to handle button style.
        * Palettes/2Controls/GormNSButtonInspector.gorm: Added button
        style popup to the inspector.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@27761 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2009-02-02 22:05:56 +00:00
parent e2c3acfe5d
commit 9e5f9c8fe0
6 changed files with 23 additions and 7 deletions

View file

@ -1,3 +1,10 @@
2009-02-02 17:13-EST Gregory John Casamento <greg_casamento@yahoo.com>
* Palettes/2Controls/GormButtonAttributesInspector.[hm]:
Added code to handle button style.
* Palettes/2Controls/GormNSButtonInspector.gorm: Added button
style popup to the inspector.
2009-02-01 09:20-EST Gregory John Casamento <greg_casamento@yahoo.com> 2009-02-01 09:20-EST Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormBoxEditor.m * GormCore/GormBoxEditor.m

View file

@ -51,6 +51,7 @@
NSForm *tagForm; NSForm *tagForm;
NSForm *titleForm; NSForm *titleForm;
NSPopUpButton *typeButton; NSPopUpButton *typeButton;
NSPopUpButton *bezelButton;
NSPopUpButton *keyEquiv; NSPopUpButton *keyEquiv;
NSSwitch *altMod; NSSwitch *altMod;
NSSwitch *shiftMod; NSSwitch *shiftMod;

View file

@ -136,12 +136,12 @@ NSString *rtString = nil;
{ {
if (sender == alignMatrix) if (sender == alignMatrix)
{ {
[object setAlignment: (NSTextAlignment)[[sender selectedCell] tag]]; [(NSButton *)object setAlignment: (NSTextAlignment)[[sender selectedCell] tag]];
} }
else if (sender == iconMatrix) else if (sender == iconMatrix)
{ {
[object setImagePosition: [(NSButton *)object setImagePosition:
(NSCellImagePosition)[[sender selectedCell] tag]]; (NSCellImagePosition)[[sender selectedCell] tag]];
} }
else if (sender == keyForm) else if (sender == keyForm)
{ {
@ -222,7 +222,7 @@ NSString *rtString = nil;
} }
else if (sender == tagForm) else if (sender == tagForm)
{ {
[object setTag: [[sender cellAtIndex: 0] intValue]]; [(NSButton *)object setTag: [[sender cellAtIndex: 0] intValue]];
} }
else if (sender == titleForm) else if (sender == titleForm)
{ {
@ -249,6 +249,10 @@ NSString *rtString = nil;
{ {
[object setButtonType: [[sender selectedItem] tag]]; [object setButtonType: [[sender selectedItem] tag]];
} }
else if (sender == bezelButton)
{
[object setBezelStyle: [[sender selectedItem] tag]];
}
else if ([sender isKindOfClass: [NSMenuItem class]] ) else if ([sender isKindOfClass: [NSMenuItem class]] )
{ {
/* /*
@ -257,7 +261,7 @@ NSString *rtString = nil;
* FIXME: Ideally we should also test if the menu item belongs * FIXME: Ideally we should also test if the menu item belongs
* to the 'type button' control. How to do that? * to the 'type button' control. How to do that?
*/ */
[object setButtonType: [sender tag]]; [(NSButton *)object setButtonType: [sender tag]];
} }
else if (sender == altMod) else if (sender == altMod)
{ {
@ -369,7 +373,7 @@ NSString *rtString = nil;
if ([object isTransparent]) if ([object isTransparent])
[optionMatrix selectCellAtRow: 4 column: 0]; [optionMatrix selectCellAtRow: 4 column: 0];
[[tagForm cellAtIndex: 0] setIntValue: [object tag]]; [[tagForm cellAtIndex: 0] setIntValue: [(NSButton *)object tag]];
[[titleForm cellAtIndex: 0] setStringValue: VSTR([object title])]; [[titleForm cellAtIndex: 0] setStringValue: VSTR([object title])];
[[titleForm cellAtIndex: 1] setStringValue: VSTR([object alternateTitle])]; [[titleForm cellAtIndex: 1] setStringValue: VSTR([object alternateTitle])];
@ -419,6 +423,9 @@ NSString *rtString = nil;
[typeButton selectItemAtIndex: [typeButton selectItemAtIndex:
[typeButton indexOfItemWithTag: [typeButton indexOfItemWithTag:
[self buttonTypeForObject: object]]]; [self buttonTypeForObject: object]]];
[bezelButton selectItemAtIndex:
[bezelButton indexOfItemWithTag: [object bezelStyle]]];
} }
} }

View file

@ -15,7 +15,8 @@
altMod, altMod,
ctrlMod, ctrlMod,
shiftMod, shiftMod,
cmdMod cmdMod,
bezelButton
); );
Super = IBInspector; Super = IBInspector;
}; };