improve ui , set nextKeyView: initialFirstResponder and delegate method for textfield

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@21414 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fabien Vallon 2005-07-07 12:45:45 +00:00
parent 9bb2454f1f
commit 0f59658a99
48 changed files with 103 additions and 36 deletions

View file

@ -222,6 +222,12 @@ NSwindow inspector
@implementation GormWindowAttributesInspector
/* delegate method for changing the Window title */
- (void)controlTextDidChange:(NSNotification *)aNotification
{
[self ok:[aNotification object]];
}
- (void) _setValuesFromControl: control
{
if (control == titleForm)
@ -428,6 +434,13 @@ NSwindow inspector
@implementation GormWindowSizeInspector
- (void)controlTextDidChange:(NSNotification *)aNotification
{
[self ok:[aNotification object]];
}
- (void) _setValuesFromControl: control
{
if (control == sizeForm)

View file

@ -2,41 +2,7 @@
"## Comment" = "Do NOT change this file, Gorm maintains it";
FirstResponder = {
Actions = (
"alignLeft:",
"capitalizeWord:",
"changeFont:",
"copy:",
"delete:",
"deleteToBeginningOfParagraph:",
"deleteWordBackward:",
"fax:",
"loosenKerning:",
"miniaturize:",
"moveDown:",
"moveLeft:",
"moveToBeginningOfParagraph:",
"moveUp:",
"moveWordForward:",
"openDocument:",
"orderFrontDataLinkPanel:",
"orderFrontFontPanel:",
"orderOut:",
"pasteAsPlainText:",
"performClose:",
"raiseBaseline:",
"saveAllDocuments:",
"scrollLineDown:",
"scrollViaScroller:",
"selectParagraph:",
"selectWord:",
"showWindow:",
"swapWithMark:",
"takeObjectValueFrom:",
"toggle:",
"toggleTraditionalCharacterShape:",
"turnOffLigatures:",
"unscript:",
"useStandardLigatures:",
"borderSelected:",
"verticalSelected:",
"indeterminateSelected:",

View file

@ -67,6 +67,11 @@
@implementation GormBoxAttributesInspector
- (void)controlTextDidChange:(NSNotification *)aNotification
{
[self ok:[aNotification object]];
}
- (void) _setValuesFromControl: control
{
if (control == positionMatrix)
@ -207,6 +212,13 @@
@implementation GormButtonAttributesInspector
/* delegate method for changing the NSButton title */
- (void)controlTextDidChange:(NSNotification *)aNotification
{
[self ok:[aNotification object]];
}
/* The button type isn't stored in the button, so reverse-engineer it */
- (NSButtonType) buttonTypeForObject: button
{
@ -523,6 +535,12 @@
@end
@implementation GormCellAttributesInspector
- (void)controlTextDidChange:(NSNotification *)aNotification
{
[self ok:[aNotification object]];
}
- (void) _setValuesFromControl: control
{
if (control == disabledSwitch)
@ -599,6 +617,11 @@
@implementation GormFormAttributesInspector
-(void) controlTextDidChange:(NSNotification*) aNotification
{
[self ok:[aNotification object]];
}
- (void) _setValuesFromControl: control
{
int rows;
@ -768,6 +791,11 @@
@implementation GormMatrixAttributesInspector
-(void) controlTextDidChange:(NSNotification*) aNotification
{
[self ok:[aNotification object]];
}
- (void) _setValuesFromControl: control
{
if (control == autosizeSwitch)
@ -922,6 +950,11 @@
@implementation GormPopUpButtonAttributesInspector
-(void) controlTextDidChange:(NSNotification*) aNotification
{
[self ok:[aNotification object]];
}
- (void) _setValuesFromControl: control
{
if (control == typeMatrix)
@ -1029,6 +1062,11 @@
@implementation GormSliderAttributesInspector
-(void) controlTextDidChange:(NSNotification *)aNotification
{
[self ok:[aNotification object]];
}
- (void) _setValuesFromControl: control
{
if (control == valueForm)
@ -1138,6 +1176,11 @@
@implementation GormStepperAttributesInspector
-(void) controlTextDidChange:(NSNotification *)aNotification
{
[self ok:[aNotification object]];
}
- (void) _setValuesFromControl: control
{
if (control == valueField)
@ -1287,6 +1330,12 @@
@implementation GormTextFieldAttributesInspector
-(void) controlTextDidChange:(NSNotification *)aNotification
{
[self ok:[aNotification object]];
}
- (void) _setValuesFromControl: control
{
if (control == alignMatrix)
@ -1426,6 +1475,7 @@
@end
@implementation NSProgressIndicator (IBObjectAdditions)
- (NSString *) inspectorClassName
{
return @"GormProgressIndicatorInspector";
@ -1433,7 +1483,17 @@
@end
@implementation GormProgressIndicatorInspector
- init
- (void)controlTextDidChange:(NSNotification *)aNotification
{
if ( [aNotification object] == minValue )
[object setMinValue: [minValue doubleValue]];
else if ( [aNotification object] == maxValue )
[object setMinValue: [maxValue doubleValue]];
}
-(id) init
{
NSDebugLog(@"Starting to instantiate...");
self = [super init];
@ -1526,7 +1586,14 @@
@end
@implementation GormColorWellInspector
- init
- (void)controlTextDidChange:(NSNotification *)aNotification
{
[self tagSelected: [aNotification object]];
}
-(id) init
{
self = [super init];
if (self != nil)

View file

@ -57,6 +57,10 @@
@implementation GormBrowserAttributesInspector
-(void) controlTextDidChange:(NSNotification *)aNotification
{
[self ok:[aNotification object]];
}
- (void) _setValuesFromControl: (id)control
{
@ -197,6 +201,13 @@
@end
@implementation GormTableColumnAttributesInspector
-(void) controlTextDidChange:(NSNotification *)aNotification
{
[self ok:[aNotification object]];
}
- (id) init
{
if ([super init] == nil)
@ -454,6 +465,7 @@ shouldEditTableColumn: (NSTableColumn *)aTableColumn
@end
@implementation GormTableColumnSizeInspector
- (id) init
{
if ([super init] == nil)
@ -540,6 +552,10 @@ shouldEditTableColumn: (NSTableColumn *)aTableColumn
@implementation GormTableViewAttributesInspector
-(void) controlTextDidChange:(NSNotification *)aNotification
{
[self ok:[aNotification object]];
}
- (void) _setValuesFromControl: (id)control
{
@ -767,6 +783,11 @@ static NSString *ITEM=@"item";
@implementation GormTabViewInspector
-(void) controlTextDidChange:(NSNotification *)aNotification
{
[self ok:[aNotification object]];
}
- (void) _setValuesFromControl: (id)control
{