mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-04-23 15:33:43 +00:00
2000-08-01 Mirko Viviani <mirko.viviani@rccr.cremona.it>
* GSWDisplayGroup.m/.h: implemented (-setSelectedObject) to support KeyValueCoding mechanism (-selectObject:) now search object into allObjects array * GSWPopUpButton.m: removed dashes (--) in the label. * GSWActiveImage.m: if image is disabled whitin a FORM it displays its image as a passive element * GSWComponent.m: displays start/stop comments if gswcomponents debug is enabled git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@7104 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6e5b8f5f11
commit
9b01a7e182
6 changed files with 40 additions and 6 deletions
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
|||
2000-08-01 Mirko Viviani <mirko.viviani@rccr.cremona.it>
|
||||
|
||||
* GSWDisplayGroup.m/.h: implemented (-setSelectedObject) to support
|
||||
KeyValueCoding mechanism
|
||||
(-selectObject:) now search object into allObjects array
|
||||
* GSWPopUpButton.m: removed dashes (--) in the label.
|
||||
* GSWActiveImage.m: if image is disabled whitin a FORM it displays its
|
||||
image as a passive element
|
||||
* GSWComponent.m: displays start/stop comments if gswcomponents debug
|
||||
is enabled
|
||||
|
||||
2000-07-27 Mirko Viviani <mirko.viviani@rccr.cremona.it>
|
||||
|
||||
* GSWInput.m/.h: implemented (-valueInContext:) and (-resetAutoValue) to manage auto value attribute
|
||||
|
|
|
@ -369,7 +369,10 @@ static char rcsId[] = "$Id$";
|
|||
_isInForm=[context_ isInForm]; //TODO
|
||||
if (_isInForm)
|
||||
{
|
||||
[response_ _appendContentAsciiString:@"<INPUT "];
|
||||
if (!_disabledInContext)
|
||||
[response_ _appendContentAsciiString:@"<INPUT "];
|
||||
else
|
||||
[response_ _appendContentAsciiString:@"<IMG "];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -453,7 +456,10 @@ static char rcsId[] = "$Id$";
|
|||
_component=[context_ component];
|
||||
_disabledInContext=[self disabledInContext:context_];
|
||||
_isInForm=[context_ isInForm];
|
||||
if (_isInForm)
|
||||
|
||||
if (!_disabledInContext)
|
||||
{
|
||||
if (_isInForm)
|
||||
{
|
||||
NSString* _nameInContext=[self nameInContext:context_];
|
||||
[response_ _appendContentAsciiString:@" type=image"];
|
||||
|
@ -461,10 +467,11 @@ static char rcsId[] = "$Id$";
|
|||
[response_ appendContentHTMLAttributeValue:_nameInContext];
|
||||
[response_ appendContentCharacter:'"'];
|
||||
}
|
||||
else if (!_disabledInContext)
|
||||
else
|
||||
{
|
||||
[response_ _appendContentAsciiString:@" ismap"];
|
||||
};
|
||||
}
|
||||
|
||||
NSDebugMLLog(@"gswdync",@"data=%@",data);
|
||||
NSDebugMLLog(@"gswdync",@"filename=%@",filename);
|
||||
|
|
|
@ -950,7 +950,8 @@ associationsKeys:(NSArray*)_associationsKeys
|
|||
NSDebugMLLog(@"gswcomponents",@"ET=%@ id=%@",[self class],[context_ elementID]);
|
||||
GSWSaveAppendToResponseElementID(context_);//Debug Only
|
||||
_template=[self _template];
|
||||
[response_ appendContentString:[NSString stringWithFormat:@"\n<!-- Start %@ -->\n",[self _templateName]]];//TODO enlever
|
||||
if(GSDebugSet(@"gswcomponents") == YES)
|
||||
[response_ appendContentString:[NSString stringWithFormat:@"\n<!-- Start %@ -->\n",[self _templateName]]];//TODO enlever
|
||||
|
||||
_request=[context_ request];
|
||||
_isFromClientComponent=[_request isFromClientComponent];
|
||||
|
@ -967,7 +968,8 @@ associationsKeys:(NSArray*)_associationsKeys
|
|||
|
||||
};
|
||||
#endif
|
||||
[response_ appendContentString:[NSString stringWithFormat:@"\n<!-- Stop %@ -->\n",[self _templateName]]];//TODO enlever
|
||||
if(GSDebugSet(@"gswcomponents") == YES)
|
||||
[response_ appendContentString:[NSString stringWithFormat:@"\n<!-- Stop %@ -->\n",[self _templateName]]];//TODO enlever
|
||||
LOGObjectFnStop();
|
||||
};
|
||||
|
||||
|
|
|
@ -165,6 +165,7 @@
|
|||
- (NSArray *)relationalQualifierOperators;
|
||||
- (NSMutableDictionary *)secondObjectForQualifier;
|
||||
- (id)selectedObject;
|
||||
- (void)setSelectedObject:(id)object;
|
||||
- (NSArray *)selectedObjects;
|
||||
- (NSArray *)selectionIndexes;
|
||||
- (id)selectNext;
|
||||
|
|
|
@ -1517,7 +1517,7 @@ static char rcsId[] = "$Id$";
|
|||
|
||||
- (BOOL)selectObject:(id)object
|
||||
{
|
||||
if([displayedObjects containsObject:object] == NO)
|
||||
if([allObjects containsObject:object] == NO)
|
||||
return NO;
|
||||
|
||||
return [self setSelectionIndexes:
|
||||
|
@ -1796,6 +1796,14 @@ static char rcsId[] = "$Id$";
|
|||
ASSIGN(qualifier, qualifier_);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
// setSelectedObject:
|
||||
|
||||
- (void)setSelectedObject:(id)object
|
||||
{
|
||||
[self selectObject:object];
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
// setSelectionIndexes:
|
||||
|
||||
|
|
|
@ -264,8 +264,13 @@ static char rcsId[] = "$Id$";
|
|||
#ifdef ENABLE_OPTGROUP
|
||||
[response_ _appendContentAsciiString:@"\n<OPTGROUP label=\""];
|
||||
#else
|
||||
#if 0
|
||||
[response_ _appendContentAsciiString:@"\n<OPTION>-- "];
|
||||
_optGroupLabel=YES;
|
||||
#else
|
||||
[response_ _appendContentAsciiString:@"\n<OPTION>"];
|
||||
#endif
|
||||
_optGroupLabel=YES;
|
||||
#endif
|
||||
_inOptGroup=YES;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue