Commit Graph

34 Commits

Author SHA1 Message Date
Dean Lee 29f24c7491 Cabana: Fix title overlapping on chart with long names (#26494)
fix title overlapping
2022-11-14 10:04:14 -08:00
Dean Lee 7b0f7312e5 Cabana: miscellaneous fixes (#26477)
* update pos after adjusted margins

* ts >=0

* output debug message to console

* fix freq&count incorrect after replay auto loop restart replay

* fix different height of play/pause

* delay posting CAN message if UI thread is busy

* >=

* clear undo stack after saving

* no space allowed in names

* const referer
2022-11-13 12:55:46 -08:00
Dean Lee 7c922eafe9 Cabana: Added support for undo & redo (#26440)
* undo/redo

* display command list to rolling the state backwards or forward

* update detailview after rolling states

* add * to title bar to indicate dbc has changed

* fix signal pointer address changed after removed

* cleanup

* fix id error

* clear undo stack after dbc file changed

* cleanup

* use map

* cleanup

* typo
2022-11-10 10:37:38 -08:00
Dean Lee 59bf2fc008 Cabana: support deleting message (#26418)
delete message
2022-11-09 14:19:11 -08:00
Dean Lee fc872271ae Cabana: add menu bar to main window (#26419)
* add menu bar

* show DBC name in title

* cleanup
2022-11-09 11:10:57 -08:00
Dean Lee 45891c7907 Cabana: use QToolBar to manage the controls in ChartsView (#26388)
use QToolBar
2022-11-06 11:06:42 -08:00
Dean Lee 3dc5dbf103 Cabana: move the chart title into graphics view (#26389)
remove class ChartWidget
2022-11-06 11:05:46 -08:00
Dean Lee ac76cc9325 Cabana: cleanup code (#26369)
* remove ChartView::enterEvent

* cleanup ChartsWidget::removeAll

* group graphics items

* remove rubber->setPalette

* helper function DBCManager::parseId

* remove variable name from dbcManager

* fix readme/Usage

* use QSlider::setRange

* cleanup include

* use emplace_back

* remove varialbe routeName from CanMessages

* remove tmp variable

* remove blank line

* cleanup layout

* clean settings layout

* connect to streamStarted

* cleanup signal/slot
2022-11-05 16:52:16 -07:00
Dean Lee 241d88c018 Cabana: update viewport after mouse released (#26355)
update viewport after mouse released
2022-11-03 20:09:14 -07:00
Dean Lee e4ec1d7c4c Cabana: update line series concurrently (#26339)
update series concurrently
2022-11-03 10:44:49 -07:00
Dean Lee e355d7383f Cabana: add y-axis padding (#26326)
add padding
2022-11-02 10:46:17 -07:00
Dean Lee 4c90bb8635 cabana: optimize chart update (#26327)
optimize update
2022-11-02 10:45:54 -07:00
Dean Lee 6ca6a26d4c Cabana: fix update issues when the the replay is paused (#26311)
fix state not updated if replay is paused
2022-11-01 09:31:47 -07:00
Dean Lee 3fc373b4e4 Cabana: fix mouse freezes / hangs (#26292)
* fix mouseReleaseEvent

* trigger ci
2022-10-31 13:59:16 -07:00
Dean Lee 9c7e375944 Cabana: sync button state with chart (#26285)
sync button state with charts
2022-10-30 07:31:43 -07:00
Dean Lee 8de9bbaa73 Cabana: improve track line (#26231)
* improve track line

* show text label on the left if reach the right edge

* cleanup

* cleanup
2022-10-28 10:55:05 -07:00
Dean Lee ba570b963f Cabana: change the chart theme in setting (#26220)
* change the chart theme in setting

* change title colors

* cleanup
2022-10-27 14:48:40 -07:00
Dean Lee d679659018 Cabana: fix marker z-index (#26254) 2022-10-27 13:59:52 -07:00
Dean Lee 728d969249 Cabana: limit X-axis range from settings (#26213)
* limit X-axis range from settings

* continue

* update range if events merged

* update line series by range

* cleanup removeChart

* cleanup updateAxisy
2022-10-26 12:59:37 -07:00
Dean Lee 8697e928fc Cabana: Fix unable to display charts for same signals from different buses. (#26191)
keep charts in list instead of hash
2022-10-21 08:31:28 -07:00
Dean Lee 544526edeb cabana: fix chart margins (#26125) 2022-10-17 21:00:36 -07:00
Dean Lee 60586e0d58 Cabana: align the charts properly (#26116) 2022-10-17 14:39:18 -07:00
Dean Lee 93346c31d3 Cabana: add chart_height setting (#26066)
add chart_height setting
2022-10-17 10:20:27 -07:00
Dean Lee e25ea85296 Cabana: complete edit functions (#26097)
complete forms
2022-10-16 07:55:53 -07:00
Dean Lee deac907cb4 Cabana: right click on the chart to reset zoom (#26088) 2022-10-15 11:36:09 -07:00
Dean Lee cc6dd18cf0 Cabana: display the (x,y) values while MouseMove on the chart (#26064) 2022-10-13 13:24:55 -07:00
Dean Lee b65fad9e8f cabana: keep scrollarea frame (#26056)
add frame back
2022-10-12 17:04:53 -07:00
Dean Lee 0fa1588f6c Cabana: stable initial release (#26004)
* increase form size & fix wrong charts number

* set max axisy to 1.0 if no value

* show 'close' button in floating window

* alwasy show scroll bar

* complete the logs

* more

* increase size to 50

* keep logs for all messages

* more

* rename signal

* better height

* avoid flicker

* dont call setupdatesenabled

* filter dbc files bye typing

* remove all charts if dbc file changed

* fix wrong idx

* bolder dbc filename

* update chart if signal has been edited

* new signals signalAdded,signalUpdated

* split class Parser into CanMessages and DBCManager

* cleanup

* updateState after set message

* cleanup

* emit msgUpdated

* clear history log if selected range changed

* always update time

* change title layout

* show selected range

hide title bar if no charts

less space between title and chart

* custome historylogmodel for extreme fast update

* move historylog to seperate file

* 2 decimal

* cleanup

cleanup

* left click on the chart to set start time

* todo

* show tooltip for header item&cleanup binaryview

add hline to signal form

* better paint

* cleanup signals/slots

* better range if min==max

* set historylog's minheight to 300

* 3x faster,sortable message list.

* zero copy in queued connection

* proxymodel

* clear log if loop to the begin

* simplify history log

* remove icon

* remove assets

* hide linemarker on initialization

* rubber width may less than 0

* dont zoom char if selected range is too small

* cleanup messageslist

* don't zoom chart if selected range less than 500ms

* typo

* check boundary

* check msg_id

* capital first letter

* move history log out of scrollarea

* Show only one form at a time

* auto scroll to header

d

* reduce msg size
entire row clickable

rename filter_msgs
2022-10-12 13:55:17 -07:00
Dean Lee 2ed82387a5 cabana: fix Incorrect Y-Axis Scale (#26018) 2022-10-08 14:10:00 -07:00
Dean Lee 9ec262bbfd cabana: Docking and undocking charts (#25983)
* floating dock charts

* more button

* setMinimumSize

* move reset zoom button to title bar

* show chart count

* cleanup

* reduce flicker

* dont update linemarker if pos not changed

* cleanup

* remove blank line

* always show dock/undock button
2022-10-06 13:57:11 -07:00
Dean Lee 2d9e797259 cabana: Fix the incorrect Y axis (#25984) 2022-10-06 13:35:56 -07:00
Dean Lee 4cd3753d98 cabana: insert new chart at the top (#25981)
* small cleanup

* new chart insert at the top
2022-10-06 11:20:49 -07:00
Dean Lee a6ba073231 canbana: complete basic functions (#25965)
* add chart header

* get all signal val from logs

* loop in selected range

* clear list before append

* automatically zoom on yaxis

* cleanup

* sync charts

* fix event_begin_sec

* set the color of rubber

* add TODO

* sync slider with charts

* keep video aspect ratio

* sync plot buttons

* reduce flickers

* cleanup

* refactor detail view

* clear counters

* more

use qcamera
2022-10-05 21:17:22 -07:00
Dean Lee 1b8324af87 c++ cabana: Initial version (#25946)
* draft

* continue

* fix QChart unresponsive with large points

* build with --extras

* add filter

* save DBC button

* more buttons

* add flag to use qcamera

* stop replay in dctor

* README

* use getMsg

* video control

* edit signal

* add colors

* correct ts

* add/edit signals

* use bus:address as key
2022-10-03 15:19:42 -07:00