Skip to content

Latest commit

 

History

History
114 lines (94 loc) · 2.73 KB

Notes.md

File metadata and controls

114 lines (94 loc) · 2.73 KB

Notes

  • IDEA: store signal xPtrs in Signal
  • X-scale glitch:
    • ✓ Start
    • ✓ X-zoom in
    • ✓ X-resize to max
    • × X-zoom out

Signal table:

  • QTableWidget + Line in cell
  • QGridLayout + Line
  • QGraphicalGridLayout + Line
  • QRubberBand (band)
  • QSizeGrip (grip == catch (band))
  • RTFM QHeaderView (resize by margin: mouseXEvent())
  • QSplitters: parent widget not v-resizable
  • QListWidget + Line as cell: rows not v-resizable
  • QTableWidget + Line ac cell: too complex

Variants:

  • QTableWidget:
    • ⊖ not resizable by cells
    • ⊖ cell independent
  • QTableWidget + Lines as cells
    • ⊕ Drop over only
    • ⊖ Too complex calc/navigation
  • QTableWidget + Lines in cells
  • QListWidget:
    • not resizable rows
    • not resizable col (?)
  • QAbstractItemView + (QAbstractItemDelegate | model):
    • ...
  • QGridLayout + Lines
  • QSplitter x 2:
    • ⊖ not v-resize parent widget
    • ⊖ DnD
    • ⊖ not scrollable
  • QGraphics*:
    • QGraphicsLayout:
      • QGraphicsGridLayout
      • QGraphicsAnchorLayout (examples/graphicsviews/anchorlayout.py)

Line = QFrame().setFrameShape(QtWidgets.QFrame.VLine)

YSlider

Variants:

  • chg pagestep (range = base * zoom_y_max)
  • chg range (page = base)

X-scaling:

  • Main value: precision (px/s):
    • min: ... (1px = 1ms, grid = 100ms, 1s == 1 Kpx)
    • max: ... (1px = 1μs, grid = 0.1ms, 1s = 1 Mpx)
  • Steps (10):
    • prec (px/s): 1/2/5 * 10ⁿ (n = 3..6) = 1K..1M
    • px weight (μs/px): 1..1000

2do:

Dst:

  • XScroller
  • TopBar
  • BarPlot

Src:

  • Signal windows resize (TopBar):
    • XScroller:
      • setPageSize(TopBar width)
      • setMaximum(x_width - pageSize())
      • [setValue(recalc)]
    • TopBar/BarPlot: rerange_x
  • x-zoom:
    • XScroller:
      • setMaximum(x_width - pageSize())
      • [setValue(recalc)]
    • TopBar/BarPlot:
      • rerange_x
      • grid
  • XScroller value change:
    • TopBar/BarPlot: rerange_x

Samples:

  • IMF3R-7783--13-03-11-15-19-07.cfg:
    • Samples: 120
    • Freq: 50 Hz
    • Rate: 600 Hz
    • SPP: 12
    • Sample width, ms: 1.(6)
    • Z-point: №49

RTFM

CVD