Commit Graph

39 Commits

Author SHA1 Message Date
Dean Lee 76bddbd23d cabana/sparkline: Fix "Painter not active" warning (#30370)
fix painter not active
old-commit-hash: a46544f7084593d028ab0c202783125fa833cc79
2023-11-03 11:16:48 -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
Shane Smiskol 78c15b7ea2 cabana: rename signal node
More clear what this is

Receiver Nodes

old-commit-hash: f62ee97cb0d05f71873f768145ccc122c1c82884
2023-10-25 15:03:27 -07:00
Dean Lee ae8cd280fb cabana: fix two ui bugs (#30327)
fix ui bugs
old-commit-hash: ae2628011818d3bb4277890e33e2a3917ba97f40
2023-10-25 14:39:52 -07:00
Dean Lee b39bf7c20b cabana: fix sparkline glitch (#30320)
fix glitch
old-commit-hash: f47723d1d16c50c28c19cd79df1af000e93e9dad
2023-10-24 11:25:50 -07:00
Dean Lee f01ab6cbbf cabana: fix QCompleter leak (#30097)
fix QCompleter leak
old-commit-hash: 21f4af4d6dbc5a29dcfbd467d7401d5438bf212d
2023-09-29 00:54:56 -07:00
Dean Lee 97aa8b0606 cabana: support ECU node names (#29897)
* support display&edit node name

* cleanup

* set validator for Node name

* modify validator to support multiple receivers

* set default to XXX in updateMsg

* add DEFAULT_NODE_NAME

* Update tools/cabana/commands.h

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: c4df40a04a57478883609748c08d1abed539b017
2023-09-15 00:27:44 -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 f8c108e8e8 cabana: cleanup MessageViewHeader & MessageBytesDelegate (#29040)
* cleanup

* remove double ;
old-commit-hash: 319ce562f270f6b4320b53e9d6d67452a3b77027
2023-07-19 18:39:55 -07:00
Dean Lee 592bcec5d6 cabana: fix segfault when editing signal while filtering (#28836)
Fix the issue that editing signal will segfault when there is a filter string.
old-commit-hash: 1301e2d640c9e14117f832bf37cbf469dbc43900
2023-07-07 15:39:03 -07:00
Dean Lee 88840e9fe4 cabana: simplifying endian conversion (#28601)
old-commit-hash: 3c398b2e2f2afdc4f81d968e4b0fb025d8190cab
2023-06-20 10:56:40 -07:00
Dean Lee 938bee9415 cabana: fix segfault when switching DBC files. (#28587)
old-commit-hash: 2ebd7ab088ade61bbf661c140483fc477d444bc2
2023-06-17 20:30:17 +01: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 4053228f67 cabana: display signal details in tooltip (#28471)
* show details in tooltip

* display tooltip in signalView

* cleanup

* setHeader before sortByColumn

* more compact tooltip

* move to util
old-commit-hash: 9632451d1d6a726d389a91bd47261c0acda1a6ae
2023-06-12 13:58:41 -07:00
Dean Lee a297badd2e cabana: fix bg color issue for inactive item (#28468)
old-commit-hash: 0e67d41eef5fd39c57c5c75f181194ebff85a252
2023-06-09 10:50:25 -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 f2ed4745c4 Cabana: Improve contrast when using dark themes (#28389)
old-commit-hash: 7cb4adfebbb3c1a5901018f177bf87add7c0799b
2023-06-06 22:22:06 -07:00
Dean Lee 90bff752c1 cabana: improve dbc parsing (#28321)
old-commit-hash: 2a6458b44ed4189ec110036de956598e39fe8151
2023-05-27 15:43:42 -07:00
Dean Lee c2e86afc8c cabana: support editing comments for messages (#28299)
old-commit-hash: 54506774f05a867ff0f6ab4ab494eeec792f838f
2023-05-25 13:38:58 -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 3a838e5342 cabana: use double for minimum value & maximum value (#28252)
old-commit-hash: 36dd49e542968bf13943dcd375424dae6c271b63
2023-05-21 12:35:45 -07:00
Dean Lee 5198e64c8f cabana: reject group separator in QDoubleValidator (#28250)
old-commit-hash: 9ac73b719fe0c7bb6f3dd23514b2c837a3bd17ae
2023-05-21 12:33:38 -07:00
Dean Lee 85d4ba325d cabana: use the same double precision as the dbc file (#28234)
old-commit-hash: ac2c87246af2d73f6c0481934d8cc4969aba4b4d
2023-05-19 12:36:11 -07:00
Dean Lee ca13898b23 cabana: show and edit all messages present in DBC files (#28108)
* show all messages present in DBC files

* set last section stretch

* user can't resize data section

* re-fetch if filtering freq|count|data

* reserve set space

* use contains

* emit signalAdded for all related sources
old-commit-hash: f7e024f2f22139153aa8ee5ce9a9713bd51d99f0
2023-05-07 16:48:47 -07:00
Dean Lee bd0d42a563 cabana: fixed segfault when search in signals (#28078)
old-commit-hash: a16730a9c44fef2775823a4acd8f4e76bbc7dde3
2023-05-02 11:29:38 -07:00
Dean Lee 4a318e17bd cabana: display current time & values in chart (#28042)
* display current time&value in chart

* cleanup

* use macro

* use BrightText

* use x-square

* tiplabel: set point size 9

* add 1 point offset

* change Light color

* lighter color

* use const iterator to avoid implict sharing detachs
old-commit-hash: 45f1f764ea32f05b51e8e8a84ab6ce7ab8eefd95
2023-04-29 13:27:37 -07:00
Willem Melching 23d52ccd2d cabana: refactor new msg/signal name generation (#27931)
old-commit-hash: 1016c3f97c9e710c75380249da29c89b0e7ca8e1
2023-04-17 15:37:41 -07:00
Willem Melching 5bb84a0568 cabana: remove msg on removing last signal (#27933)
old-commit-hash: d06936843b8759ce9b1e309620ef690ba99f2a28
2023-04-17 09:53:04 -07:00
Dean Lee 40caca7e24 cabana: paint sparkline in threads (#27925)
* multiple threading realtime sparkline

* delay visible

* remove msg_id

* cleanup
old-commit-hash: ed1f03dc41bd508543265e2b4417d7ad2a08d928
2023-04-16 10:59:24 -07:00
Willem Melching e8833c7d93 cabana: fix new chart button placement on Windows (#27895)
old-commit-hash: 48ae73fb9325ceb8cf9e71ce3e6d1ae3e15d1a7c
2023-04-13 11:40:06 -07:00
Willem Melching 36bf8e676f cabana: signalview.cc add missing <QHelpEvent> include (#27894)
old-commit-hash: 777c5c1a813984618fdb8e09fe58dd71bb59fab0
2023-04-13 11:36:44 -07:00
Dean Lee dcb8ea01b3 cabana: split chart to multiple files (#27871)
* git mv

* split file

* fix includes

* split tiplabel out
old-commit-hash: 57bf782872461a3328bbd9121c7bbd207abec2e5
2023-04-11 22:30:15 -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 ea5f2caada cabana: fix text overlapping in sparkline (#27801)
old-commit-hash: 68c4184df70219e3ea4ffda81eb7543c0ba8dfd8
2023-04-04 10:48:19 -07:00
Dean Lee e3917887a3 cabana: show min and max values in sparkline on hover (#27769)
old-commit-hash: e82d7a10d37cbcec54918a05f2233e20ee755ce2
2023-03-31 13:59:08 -07:00
Dean Lee 07f34908de cabana: fix sparkline overlapping issue (#27766)
* fix sparkline overlapping issue

* cleanup
old-commit-hash: 63f888fa3a31dcf06ff2a2f098e2930c45050ea6
2023-03-31 11:44:21 -07:00
Willem Melching 2127db9a0c cabana: fix drawing sparkline at half width on hi-dpi screen (#27746)
old-commit-hash: ecd82f04087eb58df7de9b503133aae1d8de15d5
2023-03-30 12:37:29 -07:00
Willem Melching 3484716d85 cabana: show string value for val/desc (#27747)
old-commit-hash: 469accbec105e376b88d75a387bb244f0cfd11eb
2023-03-30 12:36:54 -07:00
Dean Lee 9897bc83c4 cabana: add a slider to set sparkline time range (#27727)
* add slider to set sparkline time range

* rename signaleedit to signalview

* default is 15s

* util::formatSeconds

* update() is faster than invalidate

* draw points

* fix scatter width
old-commit-hash: d6961152b824518f584d2ffad831312447d79d5f
2023-03-29 12:43:43 -07:00