Commit Graph

29 Commits

Author SHA1 Message Date
Dean Lee 9aee43274f Cabana: save & restore splitter state (#26526)
save & restore splitter state
old-commit-hash: b6de850dd7b9935ded59895a84b3edf5c767dae0
2022-11-16 15:45:08 -08:00
Dean Lee ac0055307f Cabana: fix right panel layout after undocking charts (#26497)
* fix stretch

* set window title
old-commit-hash: 73ec91f3bc20409e672480428f125dd6c8b9f2a1
2022-11-15 21:10:05 -08:00
Dean Lee 53922eaed4 Cabana: Move history logs to a tabbed widget (#26481)
* tabwidget

* cleanup

* update state  before show

* cleanup

* remove spacing

* fix right panel stretch issue

* fix missing }
old-commit-hash: 8e91ce1eb4f91c976570056fd8979a4afcf43a53
2022-11-14 19:09:19 -08:00
Dean Lee 9897d0dda8 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
old-commit-hash: 7b0f7312e577754958468ff6a176077976f1d6e2
2022-11-13 12:55:46 -08:00
Dean Lee 2ed7ce2eed Cabana: confirm exit without saving (#26452)
* confirm exit without saving

* typo
old-commit-hash: e08896c45d84f4005de156317ae902d601e9b895
2022-11-10 12:57:52 -08:00
Dean Lee 26fb7d0db0 Cabana: remember last directory in open file dialog (#26449)
* remember last directory in open file dialog

* use QFileInfo
old-commit-hash: 122c0ec135804ac6a106f1e06f4cb3467fb13b1a
2022-11-10 10:37:52 -08:00
Dean Lee 5f80ca6359 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
old-commit-hash: 7c922eafe9d9c8e07de80f8bafcd9b2dc2932c13
2022-11-10 10:37:38 -08:00
Dean Lee ca2faafdb9 Cabana: add menu bar to main window (#26419)
* add menu bar

* show DBC name in title

* cleanup
old-commit-hash: fc872271ae73a0139be6b085b90467c2e8d83c66
2022-11-09 11:10:57 -08:00
Dean Lee aa4d1816a5 Cabana: move dbc related code from MessagesWidget to MainWin (#26387)
* move dbc related code to mainwin

* trigger ci
old-commit-hash: 529504e201a4130bad7ff9ab712e01c1341ac349
2022-11-06 11:05:14 -08:00
Dean Lee 1bc0166499 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
old-commit-hash: ac76cc93256578f24db255cefd10c013dd906c28
2022-11-05 16:52:16 -07:00
Dean Lee 37b0ba7535 Cabana: sync button state with chart (#26285)
sync button state with charts
old-commit-hash: 9c7e3759441f0dff1200f7946e77f06c6a101c26
2022-10-30 07:31:43 -07:00
Dean Lee 881273fe19 Cabana: double click the title bar to move binview to a separate column (#26280)
* double click to move binview to seperate column

* cleanup

* double click frame

* continue

* rename signal

* add tooltip

* fix layout

* don't show last cell's  bottom line

* increase spliter handle size

* cleanup

* set resize mode to ResizeToContents

* add a split button

* cleanup layout&fix space

* cleanup

* remove hardcoded size

* cleanup
old-commit-hash: 5aa0d211f075681e18395d0fd7dd73d8cc44573c
2022-10-29 12:01:08 -07:00
Dean Lee 1f17340ef4 Cabana: set fixed height for statusbar (#26264)
old-commit-hash: 7c1bb03497f28ad7e014d7df7262f4cfcd2fc738
2022-10-27 12:57:22 -07:00
Dean Lee a02e81b710 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
old-commit-hash: 728d96924924dd8d4e899ccaba0ed6bcc4a23417
2022-10-26 12:59:37 -07:00
Dean Lee 9f47b3b517 Cabana: no popup when adding a new signal. (#26155)
* merge master

* GM: make loopback updated check more explicit

This previously checked if parser_pyx filled the defaultdict, now it checks the values in the list (same either way)

* merge master

* continue

* continue

* check for duplicate name

* check duplicate signal name in saveSignal

* check signal size

* size*8

* cleanup

* check size after push_back

* install qlog handler at end

* remove todo

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 80c565d9fe9b10a05e34ae867f7711389ae240d1
2022-10-23 13:38:38 -07:00
Dean Lee 2aaefc5744 Cabana: fix segfault on exit (#26193)
fix segfault on exit
old-commit-hash: d75cbf2338f098a9c2143c94a9db8ddce68699b4
2022-10-21 10:33:13 -07:00
Dean Lee 5603f8694c Cabana: redirect qt logs to status bar (#26187)
Redirect qt logs to status bar
old-commit-hash: ae1d15094169b5cad2921e5320bc53ce3bcb6b96
2022-10-21 08:01:55 -07:00
Dean Lee 9cf0785628 Cabana: add status bar to main window (#26159)
old-commit-hash: 02a0a1c201e2c203e79669fd927b38768ef645b7
2022-10-20 13:37:27 -07:00
Dean Lee f47ef137ea Cabana: move settings to seperate files (#26173)
old-commit-hash: 4bf86742e64bbfb826540fbd263c0e250349f49a
2022-10-20 11:22:09 -07:00
Dean Lee 2c5cfcedf5 cabana: display fingerprint and route on the top right (#26133)
old-commit-hash: 855099eb86938d683bb58868697c038b7b7ac650
2022-10-18 11:01:38 -07:00
Dean Lee 60dc4f97c0 cabana: fix background refresh issue (#26134)
old-commit-hash: a121212386c94ea5cc93de68b49971ff4e9d5674
2022-10-18 11:01:21 -07:00
Dean Lee 8113e58e24 cabana: add a splitter between message lists and detailview (#26118)
* add a splitter between message lists and detailview

* space
old-commit-hash: cd12ef4aa19a83f88532f5c1a8c3f290b87fcbf8
2022-10-17 17:18:04 -07:00
Dean Lee 775442d196 Cabana: add chart_height setting (#26066)
add chart_height setting
old-commit-hash: 93346c31d3728d27eaff56a3068690a47eac86ef
2022-10-17 10:20:27 -07:00
Dean Lee edb488ff41 cabana: increase replay's segment cache limit & add setting dialog (#26019)
* increase replay's segment cache limit

* todo

* add settings dialog

blank line

typo
old-commit-hash: b31932382d574b4db3c2b9b280d5410823adad1c
2022-10-12 19:31:26 -07:00
Dean Lee 62adf87f40 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
old-commit-hash: 0fa1588f6c0bf9c9f1bebde91e02699506389ecd
2022-10-12 13:55:17 -07:00
Dean Lee a5e61f27cf 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
old-commit-hash: 9ec262bbfd09c7cd12773cabab0bb6d933b4d13e
2022-10-06 13:57:11 -07:00
Dean Lee fb29ee311a cabana: insert new chart at the top (#25981)
* small cleanup

* new chart insert at the top
old-commit-hash: 4cd3753d98bea907929ce09d9f5c218d5fce7653
2022-10-06 11:20:49 -07:00
Dean Lee f93f4e9f9b 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
old-commit-hash: a6ba073231761e06ac6f070a01b434243d9d0693
2022-10-05 21:17:22 -07:00
Dean Lee 292d55cf8a 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
old-commit-hash: 1b8324af876e66630b5f4e50623e3136a39f6ecb
2022-10-03 15:19:42 -07:00