Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
50e3087
testing tree view icon for #26.
hyoklee Oct 2, 2015
056c960
testing tree widget on existing view pane.
hyoklee Oct 6, 2015
5f9f13f
activated opendap and added h5py/matplotlib into package.
hyoklee Oct 13, 2015
14b8c99
Merge branch 'develop' into issue26
hyoklee Oct 13, 2015
7e74656
merge with develop
hyoklee Oct 13, 2015
ce588a5
merged tree view to the latest develop branch code.
hyoklee Oct 13, 2015
ee1df06
Merge branch 'develop' into issue26
hyoklee Oct 13, 2015
4439379
fixed module import error.
hyoklee Oct 13, 2015
4b5d08c
Merge branch 'develop' into issue26
hyoklee Oct 16, 2015
91f66f1
traversed tree. added double-click event binding for more.
hyoklee Oct 16, 2015
8e048f1
cleaned up code and added documentation.
hyoklee Oct 16, 2015
0822839
merged develop.
hyoklee Oct 20, 2015
219be50
Merge branch 'develop' into issue26
hyoklee Oct 20, 2015
1244663
ignore pycharm setting.
hyoklee Oct 20, 2015
5eb8cc2
Merge branch 'develop' into issue26
hyoklee Oct 20, 2015
0f4b538
Merge branch 'develop' into issue26
hyoklee Oct 20, 2015
bdc86b4
removed unused file.
hyoklee Oct 20, 2015
5a18085
remove opendap
hyoklee Oct 20, 2015
f21b1d9
corrected version info in About menu.
hyoklee Oct 20, 2015
87e552f
fixed tree display on Windows platform. tested scroll bottom event bi…
hyoklee Oct 20, 2015
58cd7a6
displayed more tree items when a scroll down hits the bottom.
hyoklee Oct 21, 2015
9519f5e
Merge remote-tracking branch 'refs/remotes/origin/develop' into issue26
hyoklee Oct 21, 2015
0b8112e
cleaned up code. made scroll down work for Mac.
hyoklee Oct 21, 2015
8a53912
Merge branch 'develop' into issue26
hyoklee Oct 26, 2015
93569df
added 'more' for Linux system only.
hyoklee Oct 26, 2015
5666346
corrected string matching.
hyoklee Oct 26, 2015
eb40578
supported one click container expansion. added logging.
hyoklee Oct 27, 2015
0082c49
Merge branch 'develop' into issue26
hyoklee Oct 27, 2015
07b5bff
Merge remote-tracking branch 'refs/remotes/origin/develop' into issue26
hyoklee Oct 27, 2015
5eb5788
added more item for Linux.
hyoklee Oct 27, 2015
fa34115
Merge branch 'develop' into issue26
hyoklee Oct 27, 2015
fd0105f
Merge remote-tracking branch 'refs/remotes/origin/develop' into issue26
hyoklee Oct 27, 2015
051a033
avoided adding existing children.
hyoklee Oct 27, 2015
1b9bfca
Merge branch 'develop' into issue26
hyoklee Oct 27, 2015
5b188b7
Merge branch 'issue26' of https://github.com/HDFGroup/hdf-compass int…
hyoklee Oct 27, 2015
a1b47bb
Merge branch 'develop' into issue26
hyoklee Oct 28, 2015
7c0ed3f
Merge remote-tracking branch 'origin/issue26' into issue26
hyoklee Oct 28, 2015
1c28b0a
cleaned up unused code. added error handling. removed "more" item by …
hyoklee Oct 28, 2015
5f8d961
handled Linux scroll down event.
hyoklee Oct 28, 2015
995fb63
fixed freezing scrollbar problem on Windows platform.
hyoklee Oct 28, 2015
b3f41fc
Merge branch 'develop' into issue26
hyoklee Oct 29, 2015
59589d3
adjusted limit to 1000. added experimental graph view window.
hyoklee Oct 29, 2015
bdec068
Merge branch 'develop' into issue26
hyoklee Nov 2, 2015
1037e85
added the experimental graph view that utilizes networkx and matplotlib.
hyoklee Nov 2, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
2015-10-26 Hyo-Kyung Lee <hyoklee@hdfgroup.org>

* hdf_compass/compass_viewer/container/tree.py (recursive_walk):
added depth parameter to limit traversal.

2015-10-16 Hyo-Kyung Lee <hyoklee@hdfgroup.org>

* hdf_compass/compass_viewer/container/tree.py (recursive_walk): added.
* hdf_compass/compass_viewer/container/tree.py (on_rclick):
handled event properly.
* hdf_compass/compass_viewer/container/tree.py (on_activate):
handled "more" event.

2015-10-13 Hyo-Kyung Lee <hyoklee@hdfgroup.org>

* hdf_compass/compass_viewer/container/tree.py: added.


Binary file added HDFCompass.dmg
Binary file not shown.
1 change: 1 addition & 0 deletions HDFCompass.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python
##############################################################################
# Copyright by The HDF Group. #
# All rights reserved. #
Expand Down
3 changes: 2 additions & 1 deletion hdf_compass/compass_viewer/container/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@

import logging
log = logging.getLogger(__name__)
log.addHandler(logging.NullHandler())
log.addHandler(logging.NullHandler())

37 changes: 30 additions & 7 deletions hdf_compass/compass_viewer/container/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
from ..events import ID_COMPASS_OPEN
from ..events import EVT_CONTAINER_SELECTION
from .list import ContainerReportList, ContainerIconList
from .tree import ContainerTree
from .graph import ContainerGraph

ID_GO_MENU_BACK = wx.NewId()
ID_GO_MENU_NEXT = wx.NewId()
Expand All @@ -38,6 +40,8 @@

ID_VIEW_MENU_LIST = wx.NewId()
ID_VIEW_MENU_ICON = wx.NewId()
ID_VIEW_MENU_TREE = wx.NewId()
ID_VIEW_MENU_GRAPH = wx.NewId()


class ContainerFrame(NodeFrame):
Expand All @@ -54,6 +58,8 @@ def __init__(self, node, pos=None):
NodeFrame.__init__(self, node, size=(800, 400), title=node.display_title, pos=pos)

view_menu = wx.Menu()
view_menu.Append(ID_VIEW_MENU_GRAPH, "Graph view")
view_menu.Append(ID_VIEW_MENU_TREE, "Tree view")
view_menu.Append(ID_VIEW_MENU_LIST, "List view")
view_menu.Append(ID_VIEW_MENU_ICON, "Icon view")
self.add_menu(view_menu, "View")
Expand Down Expand Up @@ -84,6 +90,8 @@ def __init__(self, node, pos=None):
self.Bind(wx.EVT_MENU, lambda evt: self.go_top(), id=ID_GO_MENU_TOP)
self.Bind(wx.EVT_MENU, lambda evt: self.list_view(), id=ID_VIEW_MENU_LIST)
self.Bind(wx.EVT_MENU, lambda evt: self.icon_view(), id=ID_VIEW_MENU_ICON)
self.Bind(wx.EVT_MENU, lambda evt: self.tree_view(), id=ID_VIEW_MENU_TREE)
self.Bind(wx.EVT_MENU, lambda evt: self.graph_view(), id=ID_VIEW_MENU_GRAPH)

self.toolbar = self.CreateToolBar(wx.TB_HORIZONTAL | wx.NO_BORDER | wx.TB_FLAT | wx.TB_TEXT)

Expand All @@ -94,22 +102,25 @@ def __init__(self, node, pos=None):
top_bmp = wx.Bitmap(os.path.join(self.icon_folder, "go_top_24.png"), wx.BITMAP_TYPE_ANY)
icon_bmp = wx.Bitmap(os.path.join(self.icon_folder, "view_icon_24.png"), wx.BITMAP_TYPE_ANY)
list_bmp = wx.Bitmap(os.path.join(self.icon_folder, "view_list_24.png"), wx.BITMAP_TYPE_ANY)

tree_bmp = wx.Bitmap(os.path.join(self.icon_folder, "view_tree_24.png"), wx.BITMAP_TYPE_ANY)

self.toolbar.SetToolBitmapSize(tsize)
self.toolbar.AddLabelTool(ID_GO_MENU_BACK, "Back", back_bmp, shortHelp="New", longHelp="Long help for 'New'")
self.toolbar.AddLabelTool(ID_GO_MENU_NEXT, "Next", next_bmp, shortHelp="New", longHelp="Long help for 'New'")
self.toolbar.AddSeparator()
self.toolbar.AddSeparator()
self.toolbar.AddLabelTool(ID_GO_MENU_UP, "Up", up_bmp, shortHelp="New", longHelp="Long help for 'New'")
self.toolbar.AddLabelTool(ID_GO_MENU_TOP, "Top", top_bmp, shortHelp="New", longHelp="Long help for 'New'")
self.toolbar.AddLabelTool(ID_GO_MENU_TOP, "Top", top_bmp, shortHelp="New", longHelp="Long help for 'New'")
self.toolbar.AddStretchableSpace()
self.toolbar.AddLabelTool(ID_VIEW_MENU_TREE, "Tree View", tree_bmp, shortHelp="Tree", longHelp="View in Tree")
self.toolbar.AddLabelTool(ID_VIEW_MENU_LIST, "List View", list_bmp, shortHelp="New",
longHelp="Long help for 'New'")
longHelp="View in List")
self.toolbar.AddLabelTool(ID_VIEW_MENU_ICON, "Icon View", icon_bmp, shortHelp="New",
longHelp="Long help for 'New'")
longHelp="View in Icons")

self.toolbar.Realize()

self.view = ContainerReportList(self, node)
self.view = ContainerGraph(self, node)
# self.view = ContainerTree(self, node)
# self.view = ContainerReportList(self, node)

self.history = [node]
self.history_ptr = 0
Expand All @@ -125,6 +136,18 @@ def icon_view(self):
if not isinstance(self.view, ContainerIconList):
self.view = ContainerIconList(self, self.history[self.history_ptr])

def tree_view(self):
""" Switch to tree view """
if not isinstance(self.view, ContainerTree):
self.view = ContainerTree(self, self.history[self.history_ptr])
self.update_view()

def graph_view(self):
""" Switch to graph view """
if not isinstance(self.view, ContainerTree):
self.view = ContainerGraph(self, self.history[self.history_ptr])
self.update_view()

# --- Begin history support functions -------------------------------------

@property
Expand Down
Loading