mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-24 03:51:22 +00:00
* 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:
parent
e2c3acfe5d
commit
9e5f9c8fe0
6 changed files with 23 additions and 7 deletions
|
@ -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>
|
||||
|
||||
* GormCore/GormBoxEditor.m
|
||||
|
|
|
@ -51,6 +51,7 @@
|
|||
NSForm *tagForm;
|
||||
NSForm *titleForm;
|
||||
NSPopUpButton *typeButton;
|
||||
NSPopUpButton *bezelButton;
|
||||
NSPopUpButton *keyEquiv;
|
||||
NSSwitch *altMod;
|
||||
NSSwitch *shiftMod;
|
||||
|
|
|
@ -136,12 +136,12 @@ NSString *rtString = nil;
|
|||
{
|
||||
if (sender == alignMatrix)
|
||||
{
|
||||
[object setAlignment: (NSTextAlignment)[[sender selectedCell] tag]];
|
||||
[(NSButton *)object setAlignment: (NSTextAlignment)[[sender selectedCell] tag]];
|
||||
}
|
||||
else if (sender == iconMatrix)
|
||||
{
|
||||
[object setImagePosition:
|
||||
(NSCellImagePosition)[[sender selectedCell] tag]];
|
||||
[(NSButton *)object setImagePosition:
|
||||
(NSCellImagePosition)[[sender selectedCell] tag]];
|
||||
}
|
||||
else if (sender == keyForm)
|
||||
{
|
||||
|
@ -222,7 +222,7 @@ NSString *rtString = nil;
|
|||
}
|
||||
else if (sender == tagForm)
|
||||
{
|
||||
[object setTag: [[sender cellAtIndex: 0] intValue]];
|
||||
[(NSButton *)object setTag: [[sender cellAtIndex: 0] intValue]];
|
||||
}
|
||||
else if (sender == titleForm)
|
||||
{
|
||||
|
@ -249,6 +249,10 @@ NSString *rtString = nil;
|
|||
{
|
||||
[object setButtonType: [[sender selectedItem] tag]];
|
||||
}
|
||||
else if (sender == bezelButton)
|
||||
{
|
||||
[object setBezelStyle: [[sender selectedItem] tag]];
|
||||
}
|
||||
else if ([sender isKindOfClass: [NSMenuItem class]] )
|
||||
{
|
||||
/*
|
||||
|
@ -257,7 +261,7 @@ NSString *rtString = nil;
|
|||
* FIXME: Ideally we should also test if the menu item belongs
|
||||
* to the 'type button' control. How to do that?
|
||||
*/
|
||||
[object setButtonType: [sender tag]];
|
||||
[(NSButton *)object setButtonType: [sender tag]];
|
||||
}
|
||||
else if (sender == altMod)
|
||||
{
|
||||
|
@ -369,7 +373,7 @@ NSString *rtString = nil;
|
|||
if ([object isTransparent])
|
||||
[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: 1] setStringValue: VSTR([object alternateTitle])];
|
||||
|
@ -419,6 +423,9 @@ NSString *rtString = nil;
|
|||
[typeButton selectItemAtIndex:
|
||||
[typeButton indexOfItemWithTag:
|
||||
[self buttonTypeForObject: object]]];
|
||||
|
||||
[bezelButton selectItemAtIndex:
|
||||
[bezelButton indexOfItemWithTag: [object bezelStyle]]];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -15,7 +15,8 @@
|
|||
altMod,
|
||||
ctrlMod,
|
||||
shiftMod,
|
||||
cmdMod
|
||||
cmdMod,
|
||||
bezelButton
|
||||
);
|
||||
Super = IBInspector;
|
||||
};
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue