Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use re-sizable pane and allow a horizontal paperstrip #28

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

xyzzy42
Copy link
Contributor

@xyzzy42 xyzzy42 commented Feb 18, 2021

This lets the pane between the paperstrip and waveforms be resized. If one is currently more interested in one of the other.

Also adds a menu and config file option to re-arrange the widgets so that the paperstrip is drawn horizontally instead of vertically. This allows much more space, and time, for the paperstrip, which is often much more useful than the waveforms. The layout can be changed while running.

See commits for much more detail on the changes.

Example of maximizing the paperstrip in vertical layout:
image

Example of the horizontal paperstrip. The time show in the strip is almost double what the vertical strip fits.
image

Create some utilities for creating menu items so there isn't so much
copy and paste of the code.
It's quite large.  Split it into new -functions that create the various
parts of the output panel.

The waveforms (tic, toc, period, debug), the paper strip chart and its
controls, and the window under the output display that contains them,
each get their own function.

There is some minimal support for a vertical vs horizontal paperstrip
chart, but it's not used yet.
This lets the size of the paperstrip vs the waveforms be adjusted by
sliding the pane between them.

To get the layout right, we need to give the waveforms a minimum size.
300x150 seems about the minimum.  It should look basically the same as
it did before.

Each snapshot has its own unique pane position.  Adjusting one tab in
the notebook doesn't adjust the other tabs.  It might be nice if that
weren't the case and they were all synced.
@jpolton
Copy link

jpolton commented Mar 22, 2021

I really like this functionality. I compiled and ran it on OSX10.15 (Catalina).

This allow changing the layout so the paperstrip is horizontal,
scrolling to the left, with the three waveforms arraigned horizontally
below the paperstrip.

The effect is to make the paperstrip longer and give it more space.

For many tasks the paper strip is much more useful than the waveform
displays.  This allows adjusting the layout to be more useful in those
cases.

A new checkbox in the menu is added to control this.  It can be changed
on the fly and the widgets will be re-arraigned.

A config file option, "vertical_paperstrip", is added to remember the
current setting.  Default vertical layout to true if not present in
config file.

If multiple snapshots are present, the change of orientation will affect
all of them, rather that just the current viewed one.  It would be
possible to change this.
Using the size of the main app window, what was done, doesn't work so
well now that the space allocation between the paperstrip and waveforms
can be changed.

This way making the waveforms (or paperstrip) smaller will give a
smaller font that fits in the smaller space better.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants