thientung / winforms-geplugin-control-library

Automatically exported from code.google.com/p/winforms-geplugin-control-library
GNU General Public License v3.0
0 stars 0 forks source link

Allow KmlTreeView to accept ListStyle checkHideChildren property #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Attached is a patch that will allow the KmlTreeView to accept: -

                <ListStyle>
                    <listItemType>checkHideChildren</listItemType>
                </ListStyle>

Original issue reported on code.google.com by blai...@gmail.com on 30 Sep 2009 at 9:21

Attachments:

GoogleCodeExporter commented 9 years ago
Hi,

Thanks for this! I will add it ASAP...
I have however have tweaked it a little. 
I am using the 'as' operator rather than casting (isinst rather than castclass) 
and I 
am checking against geplugin.LIST_ITEM_CHECK_HIDE_CHILDREN rather than int 3

Top stuff thanks :)

Fraser

Original comment by fraser.c...@gmail.com on 30 Sep 2009 at 12:10

GoogleCodeExporter commented 9 years ago
{{{

// patch from blairuk
// issue 10 : Allow KmlTreeView to accept ListStyle checkHideChildren property
if (obj.getOwnerDocument().getComputedStyle().getListStyle().getListItemType() 
!=
    geplugin.LIST_ITEM_CHECK_HIDE_CHILDREN)
{
    this.Nodes.Add(
        this.ParsekmlContainer(obj as IKmlContainer));
}
else
{
    this.Nodes.Add(
        this.CreateTreeNodeFromKmlFeature(obj as IKmlFeature));
}

}}}

Original comment by fraser.c...@gmail.com on 30 Sep 2009 at 12:25

GoogleCodeExporter commented 9 years ago

Original comment by fraser.c...@gmail.com on 1 Oct 2009 at 11:32

GoogleCodeExporter commented 9 years ago

Original comment by fraser.c...@gmail.com on 12 Oct 2009 at 2:28