Commit Graph

107 Commits

Author SHA1 Message Date
Dean Lee 822f613139 cabana: real-time cursor and video frame sync for chart and video (#34301)
* sync cursor and thumbnail between chart and video

* Revert "replay: Update video immediately after seek when paused. (#34237)"

This reverts commit 3363881844.

* use thumbnails while scrubing

* draw alert

* no update on resume

* draw timestamp

* cleanup
2024-12-21 13:49:18 -08:00
Dean Lee e02a6e09fe cabana: fix UI highlight for inactive items and crash in saveHeaderState() on closeEvent (#34135)
* Adjust the highlight color for inactive items to enhance visibility

* Resolve the crash occurring in messages_widget->saveHeaderState()
2024-12-02 09:55:44 -08:00
Dean Lee 474607ba06 cabana: refactor video widget for simplified layout and enhanced rendering (#33909)
simplify video widget
2024-11-04 10:01:14 -08:00
Dean Lee 283574f334 cabana: fix wrong file path handling for recent files menu (#32969)
fix lambda
old-commit-hash: e3e54fb28bad2e4848d9f3a510be8a45d9bd6ffa
2024-07-12 10:38:07 -07:00
Dean Lee a18df70a3f cabana: simplify stream management and remove problematic autosave feature (#32945)
simplify code and remove problematic code
old-commit-hash: c17c34187b6e9c14b3c00135386625bbb601ed22
2024-07-10 15:10:24 -07:00
Dean Lee 43197fb8e8 cabana: fix chart value tip flickers when the mouse moves over it (#32796)
fix chart value tip flickers
old-commit-hash: 5aac2e5a8973e6ed07005c5fe822df657def58ff
2024-06-21 13:29:40 -07:00
Dean Lee 06aed0617a cabana: avoid dead locks and improve responsiveness (#32740)
avoid dead locks and improve responsive
old-commit-hash: 865b98a5c45335dcdf736ab38e89b5a1dcde2d59
2024-06-16 12:32:45 -07:00
Dean Lee aa7d828769 cabana: fix the panda serial selector disappeared after buildConfigForm() (#32342)
old-commit-hash: 5f8b53be332bb1d5027605ea3fc69036855a41e9
2024-05-04 09:40:54 -07:00
Dean Lee 2c14e8d540 cabana: gray out inactive messages (#32121)
* improve message list

remove TODO

* improve sort

* remove translate

* fix seeking issue
old-commit-hash: bf61e92518775f251a1ec4004889cdb8cd27b47e
2024-04-09 19:39:24 -07:00
Dean Lee 8056fe5aff cabana: add csv export (#30800)
export csv
old-commit-hash: 5f045176775c8c2cdd7f85e7229f78cf26f0c013
2023-12-19 11:50:16 -08:00
Dean Lee 280bef4b0c cabana: cleanp code (#30666)
old-commit-hash: aa744e84373ecacbbb45382e1a0e4cdd3d5c05fb
2023-12-09 08:12:11 -08:00
Dean Lee b01e3fe986 cabana: fix missing opendbc files (#30555)
* fix missing dbc files

* remove suffix
old-commit-hash: d87191c1c1982e5c044e5654d7a69c5cc222986c
2023-11-30 20:46:31 -08:00
Dean Lee 18f8bc79e6 cabana: remove dependence on opendbc (#30329)
* remove dependence on opendbc

* move into function
old-commit-hash: bf932c6277c25294857d68cf1a333ce9d151140c
2023-11-02 22:37:56 -07:00
Dean Lee be9d291dad cabana: support suppress highlighted bits (#30336)
* support suppress highlighted bits

d

* faster filtering and sorting

* improve livestream

* specify the context in the connections

* remove inline
old-commit-hash: 01610128bb340f83ebf08b344404330806178825
2023-10-30 09:47:23 -07:00
Dean Lee 03ba671b96 cabana: save settings to user-specific directory (#30328)
* save settings to user-specific directory

* include
old-commit-hash: b73329092c1eeb9b7472db97fcdf5544ee848156
2023-10-25 14:39:41 -07:00
Dean Lee c096776b31 cabana: remove the installed handlers on exit (#30297)
remove the installed handlers on exit
old-commit-hash: ac19ecee6f323f81607f4e70789be175c184da68
2023-10-20 23:48:48 -07:00
Dean Lee 55a55aac6b cabana: mark the undo stack as clean after save as (#29898)
Marks the undo stack as clean after save as
old-commit-hash: 587f6ce0dc4d33f050e4b922b7727b0c9b58230f
2023-09-13 01:14:12 -07:00
Dean Lee 6c389dee7e cabana: display warning if failed to write settings (#29873)
* display warning if failed to write_settings

* use Settings::filePath()
old-commit-hash: f63dc5128411c6dc39c5bda9f05144c5f0af5b30
2023-09-12 13:13:59 -07:00
Dean Lee 97e9d55588 cpplint: build/include_what_you_use (#29556)
* include_what_you_use

* remove comments

* include <memory>

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 2d99521e7500902070d0aacce69528bcfd8b9964
2023-08-23 13:25:17 -07:00
Dean Lee 841f8bfb3f cabana: improve timeline (#28801)
old-commit-hash: 059529cae2dde8331eb9a4ac876b36c2c3ec7697
2023-07-04 12:03:08 -07:00
Dean Lee a7ce39a89e cabana: Prevent dialog that load autosaved file from blocking replay->start() (#28558)
old-commit-hash: 4891a234e2ccca943998387cb3f0246e98b63667
2023-06-15 10:35:30 -07:00
Dean Lee c5543bf21d cabana: support multiplexed signals (#28309)
* support muxed signals

* write multiplexor in generateDBC

* edit multiplex_switch_value in signalView

* no overlapping warning for mux signals

* group signals by multiplexer indicator

* display freq for each multiplexed signals

* remove all multiplexed signals after switch deleted

* disable switch value

* cleanup

* historyView: use getValue

* sort by switch value

* check address

* rename variables

* rename signale type

* parse multiplexed signals in dbcmanater

* cache signal color in member variable

* cleanup num_decimals

* remove sources from dbcmanager and cleanup code

* fix sort

* check mltiplex in operator==

* fix sizehint

* convert multipledxed to normal after changing multiplxor to normal

* throw error on multiple 'M' signals

* add comment

* parse multipled signals in test case

* cleanup

* change order

* cleanup open

* display multiplexed/overlapping signals in binaryview

* sort overlapped signals by size

* refactor dbcmanager

* trimmed

* parse multiplexed signals in test case

* cleanup

* merge master

* space

* use pointer for sigs

* alldbcFiles

* cleanup

* cleanup sparkline

* use std::vector

* skip draw sparkline if isnull

* bigger capacity
old-commit-hash: e08569b0f31953e185369eba9afb7fb20de714fa
2023-06-13 13:22:03 -07:00
Dean Lee 900a08d7ce cabana: add "view" menu to the menu bar (#28467)
old-commit-hash: 376144dca3ed6875fa8b2cc2ccfea5593ae85e78
2023-06-09 10:54:52 -07:00
Dean Lee eba8100ea5 cabana: refactor dbc manager (#28445)
* rafactor signal

* cleanup

* refacto dbcmanager

* refactor dbcmanger
old-commit-hash: ff4aae85fe39b6442c03963a6a8cbfc900ba61c3
2023-06-08 13:41:55 -07:00
Angus Gratton 5f3e8a41e8 cabana: Add menu item that resets the window layout (#28390)
old-commit-hash: 92d8295096468b65e35b660a9b536d99d2ce2b9f
2023-06-03 14:51:16 -07:00
Dean Lee c0883bcabe cabana: fix multiple dialog popups (#28358)
fix multiple popups
old-commit-hash: a19799cbe968a4f0633b591ff9ed27a9a3f35b61
2023-06-01 00:04:46 -07:00
Dean Lee 6cc979a258 cabana: support editing dbc files without a stream (#28294)
* no stream mode

* disable tools menu if no stream

* disable splitter

* cleanup

* refactor matchMessage
old-commit-hash: d5d1ca11d4a5ba5ffcb067fd842540d5334e9360
2023-05-25 10:51:28 -07:00
Dean Lee c1fecfb6dd cabana: supports switching streams on the fly (#28081)
* open stream

* use std::atomic::exchange

* emit streamStarted immediately
old-commit-hash: a26e6d1633b994029e67611f7954250517f71acd
2023-05-24 20:47:37 -07:00
Dean Lee f30caf9ec5 cabana: add tool to search for possible signals through values. (#28182)
* Add tools to search for possible signals through values.

* use ,
old-commit-hash: 10bdcef0fe1186ee9bdc59dc04237bae005df22f
2023-05-13 14:05:14 -07:00
Dean Lee 13c6a92471 cabana: cleanup mainwin (#28142)
* Remove redundant calls to updateLoadSaveMenus()

* cleanup updateLoadSavemenus

* helper function closeFile

* remove redundant calls to remindSaveChanges()

* remove unnecessary call to updateRecentFiles

* cleanup
old-commit-hash: 933be2e128b363a77ca525554198822629733afc
2023-05-09 10:04:06 -07:00
Dean Lee 2b9c35ddf7 cabana: support all features except video in live stream mode. (#27994)
old-commit-hash: 91dc064ac730302ae6e6b38eddd928e702bbd0e1
2023-04-21 13:23:17 -07:00
Willem Melching e32ba8719a cabana: more advanced DBC management features (#27968)
* cabana: improve menu to manage individual DBCs

* remove from single bus

* comments

* close explicitly

* new before open

* whitespace

* remove old code

* clipboard actions

* cleanup actions

* sections instead of nested menu

* consistent bus format
old-commit-hash: 7f5cda00b5040a641c7775caf7c6a38b507c5210
2023-04-19 10:49:30 -07:00
Dean Lee 1045c7d836 cabana: startup stream chooser dialog (#27938)
* new StreamDialog

* choose dbc file

* update last_dir

* move to /streams

* cleanup

* add stretch

* catch panda exception

* cleanup

* cleanup

* small cleanup

* fix pandaStream crash caused by a failed connection

* static function to create stream widget

* cleanup
old-commit-hash: 590b1bc2062d8a7f1ec253e0d0c5ab94799524c1
2023-04-19 10:49:06 -07:00
Dean Lee 7a51caa0af cabana: make head section movable (#27971)
* set sections movable

* change setting key to v3

* add comment

* remove restorestate from MainWindow
old-commit-hash: f9568e98182c0e45226185945c66249de278cfdd
2023-04-19 10:28:09 -07:00
Willem Melching 0a690ea48d cabana: fix MacOS build (#27950)
old-commit-hash: af5f769d7cf5443ca01e753326b751894f786f99
2023-04-18 12:18:33 -07:00
Dean Lee 8d7e910631 canaba: display the opened dbc files in the window title bar. (#27939)
* show dbc file name on the window title

* Show all dbc files opened on each bus

* check d
old-commit-hash: 30ff0bface71f54cfad292952cc8d94598e37db2
2023-04-17 15:08:08 -07:00
Dean Lee b8fcd32542 cabana: update recent files in menu after save as (#27926)
old-commit-hash: 48f8c02cf14fe764875477fee2c95c746d76f200
2023-04-16 09:55:03 -07:00
Willem Melching 59dfef9d60 cabana: do not try to save empty wildcard DBC (#27898)
* cabana: do not try to save empty wildcard DBC

* use reference
old-commit-hash: d8e9c44c76961363ba633aca2692aacf2e8d006b
2023-04-13 11:09:14 -07:00
Dean Lee c635bf8723 cabana: switch theme on the fly (#27855)
* switch theme on the fly

* better chart theme

* Darcula like dark theme

* add TODO

* use theme aware toolbutton in ChartView

* add margin to text title

* lighter activity colors

* fix historylog header

* replace hardcoded color

* improve chart tooltip color

* use macro

* space

* remove function toolbutton

* fix remove all btn

* remove menu arrow

* improve chart::removeIf

* cleanup charts
old-commit-hash: fc90814199d10b4419574f0e5a01102ec55c9cdb
2023-04-10 15:53:50 -07:00
Dean Lee 07e11f1331 cabana: support toggle between light / dark theme (#27787)
add dark theme
old-commit-hash: c56872265a126a0e8feda8bb21225e885ea6e941
2023-04-02 11:34:10 -07:00
Dean Lee 640d68e3bc cabana: move dbc related files to dbc/ (#27712)
* move dbc related files to dbc/

* move generate_dbc_json.py to dbc/
old-commit-hash: 8903e03c8844df03783ae78d97e1294d0869ffea
2023-03-28 11:52:28 -07:00
Willem Melching e0ba3902df cabana: add support for multiple DBC files (#27435)
* split out dbc file logic into separate file

* emit dbc file changed

* change to list of dbc files

* handle missing DBC file

* dbcmanager emits signal

* close existing files before loading new one

* add placeholder open for bus menu

* implement open dbc for bus

* emit signals relevant for current dbc

* move logic into findDBC

* fix use after free

* show currently loaded names in load dialog

* enable/disable load save menus

* handle saving

* add save as to recents

* handle file already open

* do not assert

* fix return and throw on file open error

* fix test maybe

* remove todo

* typo

* fix new dbc

* fix loading fingerprint on macos

* handle replacing a currently open dbc

* fix reference and handle exception

* fix indendation
old-commit-hash: 4ab2131ec9e21d9784f2f423bd6b21c9914cd661
2023-03-27 10:29:44 -07:00
AlexandreSato e75c02e89c caban: fix typo (#27700)
old-commit-hash: 083f008d94a037174f27417c6e2d1698f7ee897f
2023-03-26 17:06:33 -07:00
Dean Lee 01a5616f82 cabana: improve find similar bits (#27651)
* improve find similar bits

* 2 precision
old-commit-hash: 89d767da49a32bd78024ac224236f82bf2b2fff5
2023-03-22 11:02:34 -07:00
Dean Lee 35e5b4d927 cabana: group CAN events by message id to reduce the time complex from O(N) to O(1) (#27601)
* refactor streams

* helper function xLessThan

* fix fill gaps
old-commit-hash: 74db5a4b421c822065677b12c4493c4e20aa2a9b
2023-03-17 10:16:14 -07:00
Willem Melching 918bad4847 cabana: DBCManager only expose methods/signals through MessageId (#27540)
old-commit-hash: 0afd3bab34432e0ba83818c264f17e3ef16005df
2023-03-14 11:31:04 -07:00
Willem Melching 612d7aee6b cabana: create autosave file when there are unsaved changes (#27542)
old-commit-hash: ee615a30775c56be2c13a4acb4a755072000b8d6
2023-03-10 11:21:34 -08:00
Willem Melching f0d648d8c6 cabana: refactor Msg and Signal into dbc.cc (#27552)
old-commit-hash: e4d591ecbfaaf12b267e3f93927a89e9b4f6a7b9
2023-03-10 11:19:37 -08:00
Dean Lee 138d468772 cabana: press F11 to toggle fullscreen (#27455)
old-commit-hash: 8d317ef51ce3518e6bd3bb1a97567f8686ca8c8d
2023-02-28 15:50:30 -08:00
Dean Lee b12a2a0eaf cabana: replace hardcoded margins, colors, spacing with values from style. (#27449)
replace hardcoded margins, colors, spacing

improve performance of MessageBytesDelegate
old-commit-hash: 78116029d33ab7724daa087201f1743fd34d6a19
2023-02-25 14:27:18 -08:00