On 4/24/11, Nick Hall <nick__hall@...> wrote:
> So far I have only specified default gramplets for the ListViews. Do
> you think that we should add some for the Relationships and ancestry views?
Your choices seem fine to me.
> All GrampsBars will show the dummy tab when empty.
Yes, I understand. That's fine. Having the dummy tab is fine.
But that's for when there are no gramplets at all.
I'm trying to cover the case where there are gramplets,
for instance the default set, which I want to keep, to
allow me the future functionality of using them. I just
just don't want one (any) displayed until I want to use it.
I don't want that vertical space at the bottom of my view
taken up unless I actively want to look at some gramplet,
as I was trying to say:
>> I would like to suggest that some way be developed to work
>> around that, so that I can end up with a bottombar showing
>> nothing but the tab names, only the names, until one of them
>> is selected, chosen, whatever. ...
> Yes. Each gramplet will have its own size requirements, the gtk
> notebook will resize to accommodate the largest tab. The bottombar
> gramplets also use the height field in the plugin data to set their size.
I don't understand what a "notebook" is. I'll ignore that.
I don't care for the present case, where evidently the
(vertical) size of the largest gramplet is used to control
the height of that bottombar area, for all the gramplets.
I would like it -- but maybe it isn't possible -- if each
bottombar gramplet saved away its last-used-height, in
pixels say.
That way, when I select different tabs, to run different
gramplets, that bottombar gramplet area would expand and
contract, vertically only, to be whatever size it was when
I last had clicked on its tab -- or its default height if
I had never run it before.
Right now if I drag that demarcation line up and down, to
make some particular gramplet bigger or smaller, it seems
to be a global setting, a global change. That area then
becomes whatever I dragged it to be, even when I switch to
a different gramplet, which may be better viewed in a smaller
or larger (vertical) area.
>> I would like to suggest that some way be developed to work
>> around that, so that I can end up with a bottombar showing
>> nothing but the tab names, only the names, until one of them
>> is selected, chosen, whatever. Perhaps there could be a tab
>> called "None" or something, which would be empty and have no
>> vertical space, which I could then select unless I wanted to
>> start using one of the real gramplets.
>
> You can switch off the GramsBars from the menu. Changing the size of a
> notebook depending on the tab selected isn't default gtk behaviour. I
> don't think that it would look right to change the size of the notebook
> either.
I don't want to "switch off" the bottom grampsbar.
I understand that I can do that (and indeed I have
switched off the side one -- which I have to do for
each view apparently, even "tree" vs. linear) but
it is not what I want. I want to keep the various
gramplets available in the bottombar. I just don't
want to see their results until I am ready to.
Maybe what I call "their results" is what you mean
by "the notebook"? If so, are you saying there can
only ever be one "notebook" (and thus one size for it),
which all the various gramplets then use to display
their results? Not one "notebook" per gramplet?
As an experiment I created a file (which is at the
bottom of this comment) called null.gpr.py and put it
into my ~/.gramps/gramps33/plugins directory. I also
created an empty (zero-length) file there, Null.py.
If I then, say, was in the People view, I was able to
add this "gramplet" to the others. I could then drag
the demarcation line for that bottombar gramplet area
down, so that there was nothing visible but the tabs
with the names of the gramplets, including my "empty"
one. So far so good. That's my goal, what I want.
(Note that my "gramplet" has a "height" of "1".)
But when I switched to one of the regular gramplets
I still had that minimal-height bottombar area. I
then had to drag the demarcation line back up, to
see the regular gramplet. (Thus my suggestion up
above, to have the last-used height be remembered.)
Also, if I left it at the minimal height with my
"empty" tab the one selected, and then closed gramps,
when gramps restarted my "empty" tab/gramplet was
then displayed at the full (200 pixels?) height, even
though its box was totally empty. So I'd have to
drag the demarcation line up and down all the time.
Is there any way to avoid that? Perhaps eventually,
if it's not possible or easy now?
> I think that it is helpful to discuss this functionality in the mailing
> list first. I'd like to get feedback from as many people as possible.
Great idea.
I'll be interested to see what the "beta users" say.
========================================================
register(GRAMPLET,
id="Null Gramplet",
name=_("Empty Gramplet"),
description = _("Gramplet showing nothing, of minimal height"),
version="1.0.0",
gramps_target_version="3.3",
status = STABLE,
fname="Null.py",
height=1,
gramplet_title=_("empty"),
)
|