Sequence and pattern widget

From Buzztard

Jump to: navigation, search

Currently we use the GtkTreeView for the pattern and sequence view. That seems not to fit the bill exactly.

Contents

[edit] requirements

  • multi row headers: we would like to group columns with column-spanning headers
  • cell focus: we need a cursor/focus on single cells, and we need to disable cells getting the focus
  • rectangular selections: we need to mark not just whole rows, but arbitrary regions
  • custom cell editors: in the future it would be nice to mouse edit the values in the pattern widget (while wholing a key pressed, to distinguish from selection)
    • for notes: draging the mose left <-> right changes the note
    • for range values: a slider underneath would be cool (draging left <-> right)
    • for boolean values: toggle by clicking
    • for enums: drag mouse left <-> right to change

[edit] existing Widgets

[edit] comparison

GtkTreeView GtkGrid GtkSheet
multi row headers

no

no

no

cell focus

buggy

???

yes

rectangular selections

no

probably

yes

custom cell renderers

yes

yes

yes

Green means "is no problem", Yello means "not complete or we do not know", Red mean "there is a problem".

[edit] Ideas

[edit] multi-row-headings

Can we emulate this, by having one treeview with first level headings and just one row, and having several treeviews in each. Needs special care to allow to jump from one treeview to the next on cursor left/right.

[edit] cell focus

Again what about having one treeview without headings and in there one that is not focusable with the line numbers and one with the data.

[edit] cell-renderer for numbers in pattern-view

We need a cell-renderer for the patternview that renders sub-cells for each digit-position. Cursor right/left needs to be trapped to only move to next/prev column if cursor in on first/last cell. I also needs to highligh the background coloring to only highligh the subcell.

[edit] float mappings

We also need to think for how we map float/double values (min...max -> word range?)

[edit] Thoughts

[edit] hex values

We cannot easily drop hex values - tracker fx need them.

Personal tools
collaboration

SourceForge Logo

GStreamer Logo

Linux Sound Logo

MediaWiki

Valgrind

GNU Library Public Licence

GNU Free Documentation License 1.2