mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-05-31 17:20:57 +00:00
o added Anchor
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@18168 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
238150c714
commit
75da131759
4 changed files with 23 additions and 6 deletions
|
@ -1,7 +1,14 @@
|
||||||
|
Anchor: GSWGenericContainer
|
||||||
|
{
|
||||||
|
elementName = "a";
|
||||||
|
name = anchorName;
|
||||||
|
}
|
||||||
|
|
||||||
Link: GSWHyperlink
|
Link: GSWHyperlink
|
||||||
{
|
{
|
||||||
action = toggleVisibilityAction;
|
action = toggleVisibilityAction;
|
||||||
disabled = ^disabled;
|
disabled = ^disabled;
|
||||||
|
fragmentIdentifier = anchorName;
|
||||||
};
|
};
|
||||||
|
|
||||||
Image: GSWImage
|
Image: GSWImage
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
<gsweb name="Link"><gsweb name="Image"></gsweb></gsweb> <gsweb name="Label"></gsweb><gsweb name="Condition"><gsweb name="Content"></gsweb></gsweb>
|
<gsweb name="Anchor"></gsweb><gsweb name="Link"><gsweb name="Image"></gsweb></gsweb> <gsweb name="Label"></gsweb><gsweb name="Condition"><gsweb name="Content"></gsweb></gsweb>
|
|
@ -28,6 +28,7 @@
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
@interface GSWCollapsibleComponentContent: GSWComponent
|
@interface GSWCollapsibleComponentContent: GSWComponent
|
||||||
{
|
{
|
||||||
|
NSString* _tmpAnchorName;
|
||||||
BOOL _isVisibleConditionPassed;
|
BOOL _isVisibleConditionPassed;
|
||||||
BOOL _isVisible;
|
BOOL _isVisible;
|
||||||
NSString* _openedImageFileName;
|
NSString* _openedImageFileName;
|
||||||
|
@ -36,10 +37,6 @@
|
||||||
NSString* _closedHelpString;
|
NSString* _closedHelpString;
|
||||||
};
|
};
|
||||||
|
|
||||||
-(void)awake;
|
|
||||||
-(void)sleep;
|
|
||||||
-(void)dealloc;
|
|
||||||
-(BOOL)synchronizesVariablesWithBindings;
|
|
||||||
-(BOOL)isVisible;
|
-(BOOL)isVisible;
|
||||||
-(GSWComponent*)toggleVisibilityAction;
|
-(GSWComponent*)toggleVisibilityAction;
|
||||||
-(NSString*)imageFileName;
|
-(NSString*)imageFileName;
|
||||||
|
|
|
@ -66,6 +66,15 @@ RCS_ID("$Id$")
|
||||||
return NO;
|
return NO;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
-(void)appendToResponse:(GSWResponse*)aResponse
|
||||||
|
inContext:(GSWContext*)aContext
|
||||||
|
{
|
||||||
|
_tmpAnchorName=[NSString stringWithString:[[self context] elementID]];
|
||||||
|
[super appendToResponse:aResponse
|
||||||
|
inContext:aContext];
|
||||||
|
_tmpAnchorName=nil;
|
||||||
|
};
|
||||||
|
|
||||||
-(BOOL)isVisible
|
-(BOOL)isVisible
|
||||||
{
|
{
|
||||||
LOGObjectFnStart();
|
LOGObjectFnStart();
|
||||||
|
@ -189,5 +198,9 @@ RCS_ID("$Id$")
|
||||||
return _helpString;
|
return _helpString;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
-(NSString*)anchorName
|
||||||
|
{
|
||||||
|
return _tmpAnchorName;
|
||||||
|
};
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue