mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-23 19:51:00 +00:00
* Palettes/2Controls/GormNSSliderInspector.gorm: Added switch
and textfield to hold the number of tickmarks. * Palettes/2Controls/GormSliderAttributesInspector.[hm]: Added method and ivar to handle tick marks. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@24072 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
09b7d2c257
commit
dbfa8e281f
6 changed files with 19 additions and 4 deletions
|
@ -1,3 +1,10 @@
|
|||
2006-11-11 00:04-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Palettes/2Controls/GormNSSliderInspector.gorm: Added switch
|
||||
and textfield to hold the number of tickmarks.
|
||||
* Palettes/2Controls/GormSliderAttributesInspector.[hm]: Added
|
||||
method and ivar to handle tick marks.
|
||||
|
||||
2006-10-29 19:21-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Palettes/3Containers/GormTableViewEditor.m: Add scrollToPoint:
|
||||
|
|
|
@ -9,7 +9,8 @@
|
|||
tagForm,
|
||||
valuesForm,
|
||||
continuousSwitch,
|
||||
enabledSwitch
|
||||
enabledSwitch,
|
||||
stopOnTicksSwitch
|
||||
);
|
||||
Super = IBInspector;
|
||||
};
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -46,6 +46,7 @@
|
|||
NSForm *altIncrementForm;
|
||||
NSButton *continuousSwitch;
|
||||
NSButton *enabledSwitch;
|
||||
NSButton *stopOnTicksSwitch;
|
||||
NSForm *knobThicknessForm;
|
||||
NSForm *tagForm;
|
||||
}
|
||||
|
|
|
@ -75,6 +75,11 @@
|
|||
[object setMinValue: [[sender cellAtIndex: 0] doubleValue]];
|
||||
[object setDoubleValue: [[sender cellAtIndex: 1] doubleValue]];
|
||||
[object setMaxValue: [[sender cellAtIndex: 2] doubleValue]];
|
||||
[object setNumberOfTickMarks: [[sender cellAtIndex: 3] intValue]];
|
||||
}
|
||||
else if ( sender == stopOnTicksSwitch )
|
||||
{
|
||||
[object setAllowsTickMarkValuesOnly: [stopOnTicksSwitch state]];
|
||||
}
|
||||
else if ( sender == continuousSwitch )
|
||||
{
|
||||
|
@ -109,9 +114,11 @@
|
|||
[[valuesForm cellAtIndex: 0] setDoubleValue: [object minValue]];
|
||||
[[valuesForm cellAtIndex: 1] setDoubleValue: [object doubleValue]];
|
||||
[[valuesForm cellAtIndex: 2] setDoubleValue: [object maxValue]];
|
||||
[[valuesForm cellAtIndex: 3] setIntValue: [object numberOfTickMarks]];
|
||||
|
||||
[continuousSwitch setState:[object isContinuous]];
|
||||
[enabledSwitch setState:[object isEnabled]];
|
||||
[continuousSwitch setState: [object isContinuous]];
|
||||
[enabledSwitch setState: [object isEnabled]];
|
||||
[stopOnTicksSwitch setState: [object allowsTickMarkValuesOnly]];
|
||||
|
||||
[[altIncrementForm cellAtIndex: 0] setDoubleValue:
|
||||
[[object cell] altIncrementValue]];
|
||||
|
@ -120,7 +127,6 @@
|
|||
[[object cell] knobThickness]];
|
||||
|
||||
[[tagForm cellAtIndex: 0] setIntValue: [[object cell] tag]];
|
||||
|
||||
[super revert:sender];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue