Changes

Jump to: navigation, search

GEPS 019: Improved Sidebar and Split Views

1,930 bytes added, 15:04, 8 March 2010
terminology
* workspace sidepane: a sidepane that can be added to a workspace to hold eg the filter sidebar which can be added to listviews to filter the lists.
* active view: the view that has focus.
 
= Related Issues =
 
== How to configure a view? ==
 
We should look at reuse the Options (aka Menu, Report Options) for the
Configure View. We already have a set of gui widgets for gramps that
allow one to set items for the reports and tools, and I've been using
these for Gramplets, too, for the last year or two. It might take a
little work to integrate with a Configure, but it should be worth it.
Otherwise, we have to duplicate all of those widgets.
 
We should also work on a hierarchical Configure paradigm. It should
be the case that a top-level object composed of many, small widgets
should ask each of the subwidgets if they want to be configured, and
they can report back their options. Workspaces should ask views for
options, and views ask gramplets, etc. One can do this manually (see [http://gramps-addons.svn.sourceforge.net/viewvc/gramps-addons/trunk/contrib/GrampletSidebarViews/sidebarviews.py?view=markup sidebarviews.py])
but we can do better.
 
We may also want to abstract the ui_definition, and make it part of
this future Configure. This could be an object that is added
to/subtracted from, and displays the "<ui>...</ui>" when needed.
 
= Prototype =
 
There is a prototype in gramps-addons/branches/gramps32 and gramps-addons/trunk:
 
* http://gramps-addons.svn.sourceforge.net/viewvc/gramps-addons/trunk/contrib/GrampletSidebarViews/
 
[[Image:SplitView.jpg]]
 
This uses the following decisions:
 
* A split pane is either in vertical, horizontal, or no-split orientation
* A split view is composed of exactly the regular view and (optionally) a gramplet view
* A config file is composed based on the "Splitviews_NAME_gramplets.ini" in the root of version directory
** orientation, columns, and pane divider position are stored in the [Gramplet View Options] section.
** config file is a gramplet config file (needs to be updated to use new config)
* Pane divider position should be "-1" until manually set.
=Desired outcome=

Navigation menu