Commit Graph

31 Commits

Author SHA1 Message Date
Dean Lee
a1cb457f20 cabana: use QStaticText to boost rending performance (#29900)
use QStaticText to boost rending performance
old-commit-hash: 82452ec66b
2023-09-13 19:00:00 -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: 2d99521e75
2023-08-23 13:25:17 -07:00
Dean Lee
88840e9fe4 cabana: simplifying endian conversion (#28601)
old-commit-hash: 3c398b2e2f
2023-06-20 10:56:40 -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: 9632451d1d
2023-06-12 13:58:41 -07:00
Dean Lee
e7743b6acd cabana: support displaying&editing overlapping signals in the binary view (#28359)
old-commit-hash: 2373f78556
2023-06-01 10:36:40 -07:00
Dean Lee
52f0416736 cabana: fix message view performance issues after #27901 (#27908)
* fix message list issues

* override drawBranches, do nothing

* bypass QTreeView::datachanged

* remove data copy in binaryview::updateState

* rename to x_v2
old-commit-hash: f5d66fa2a9
2023-04-15 16:25:24 -07:00
Dean Lee
fa4b80a4b1 cabana: fill rows with Qt::BDiagPattern if messag size is incorrect (#27750)
old-commit-hash: dd4e07fe7b
2023-03-30 13:00:06 -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: 8903e03c88
2023-03-28 11:52:28 -07:00
Willem Melching
f0d648d8c6 cabana: refactor Msg and Signal into dbc.cc (#27552)
old-commit-hash: e4d591ecbf
2023-03-10 11:19:37 -08:00
Dean Lee
2aafd3bf01 cabana: improve UI & fix bugs (#27387)
* improve ui

* keep splitter size after msg changed

* no leading spaces allowed in msg filter and signal filter

* draw color byte AlignCenter

* always set as current index

* reduce chart flickers while resizing

* dispaly more info in tooltip for signal

* narrow combobox

* use &nbsp;

* typo

* private sigs,fix bugs

* merge  #27383

* no expanding after undo/redo

* gray color in tooltip

* clear current_msg_id before reset model

* dont call setmeesage if id is the same

* fix bugs

* cleanup

* dont fetch logs if invisible

* add new CenterWidget, make sure msg_id is always valid

* cache icons

* cleanup paint byte color

* merge #27385 implement sizeHint

* cleanup code

* fillrect if alpha>0
old-commit-hash: 4efd246bac
2023-02-20 14:16:30 -08:00
Dean Lee
972e91463c cabana: add support for load&save extra dbc info (#27203)
* support extra info

* support undo/redo

* fix undo/redo

* cleanup

* fix regexp

* refactor dbcmanager

* replace text in headerview

* fix binary::refresh

* cleanup

* use QRegularExpression

* add desc validation

* edit val description in table

* cleanup
old-commit-hash: ac0dbf74bc
2023-02-17 19:31:54 -08:00
Willem Melching
c9a2d19596 cabana: refactor message id from QString to struct (#27352)
* cabana: refactor message id from QString to struct

* fix tabbar

* fix findsimilarbits

* optimize hash function

* cleanup sorting

* use in updateLastMsgsTo
old-commit-hash: 5078c91805
2023-02-15 12:39:03 -08:00
Willem Melching
160b29d398 cabana: add keyboard shortcuts to binary view (#27338)
* cabana: add keyboard shortcuts to binary view

* typo

* whitespace

* keep signal highlighted
old-commit-hash: 286e42948e
2023-02-14 10:46:29 -08:00
Dean Lee
8de2aa50c7 cabana: draw borders around signals (#27307)
* cabana: draw borders around signals

* add padding

* merge #27294

* add comment

* typo

* fix alpha

* cleanup

* spacing =2

---------

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: e952ad2c66
2023-02-13 10:44:44 -08:00
Willem Melching
82eeb6f256 cabana: bit level change frequency highlighting (#27259)
* cabana: bit level change highlighting

* change default color
old-commit-hash: 276586fdf0
2023-02-08 15:18:56 -08:00
Dean Lee
a583bd621f cabana: refactor and improve signal view (#26997)
* refactor and improve signal view

* cleanup undostack after save

* set clean

* fix logswidget::refresh

* fix bugs in historylog

* historylog:dont reset display_type on msg changed

* inline displaySignals

* historylog:add stretch to header

* remove sizePolicy

* always show toolbar

* add icon to tabwidget

* create new chart on top

* fix 'show plot' btn state sync issue

* rename removeSeries to removeItem

* historylog::fix displayRange

* MessageListModeL: improve setFilterString

* set as current index after expanded

* disable update during setmessage

* ChartWidget: fix issue in updateState

* skip align charts if there only one chart

* fix updateLayout

* cleanup historylog

* updateState before end reset model

* add validator

* improve sigmodel

* expand new signal

* add comment

* reserve vector

* cleanup condition

* single click on row to expand signal

* improve layout for canfd(64 bytes)

* cleanup

* return false on default

* show the latest signal value next to the signal name

* update sig value after setmessage.to make the value updated in pause mode.

* better size policy

* +1 for grid size

* better palette

* set autofillbg
old-commit-hash: 7a485d4308
2023-01-29 19:19:50 -08:00
Dean Lee
a114a6bf17 cabana: improve layout (#27039)
improve layout
old-commit-hash: 81956649c8
2023-01-24 16:14:08 -08:00
Dean Lee
426d6988c7 Cabana: increase cell height of BinaryView and cleanup code (#26754)
* setDefaultSectionSize

* cleanup
old-commit-hash: 4b7b257fdc
2022-12-10 13:09:07 -08:00
Dean Lee
4a67971c61 Cabana: auto theme, detect from system. (#26563)
* auto theme

* cleanup

* get font color from ForegroundRole

* fix label color

* add padding for header

* smaller warning icon

* fix bg of binary view

* hightlight after init
old-commit-hash: 4662f1e0be
2022-11-22 14:23:49 -08:00
Dean Lee
b2e08f2ac7 Cabana: improve binary view (#26525)
* improve

* set minimum width

* click signal to open&hide form

* disable vertical header's click
old-commit-hash: 66edb15b8f
2022-11-16 15:51:05 -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: 7c922eafe9
2022-11-10 10:37:38 -08:00
Dean Lee
e48e9b30f0 Cabana: improve the BinaryView & fix known issues (#26409)
* fix flipping issue

* dragging up to create little endian signal

* transform between little & big endian

* complete selection functions

* scroll to top after msg updated

* remove empty line

* cleanup code

* remove extra semicolon

* fix indentation

* minmax

* dont select hex column

* create msg if not existed
old-commit-hash: b320ac6c23
2022-11-09 22:05:18 -08:00
Dean Lee
5d965010be Cabana: fix signal list glitch (#26357)
* fix signal list glitch

* fix glitch when open new msg

* reduce spacing

* fix binaryview glitch

* spacing 3

* create form on demand

* dont close form after save

* remove timer

* remove sizepolicy

* cleanup
old-commit-hash: 0e3edf7877
2022-11-04 11:16:15 -07:00
Dean Lee
01b10ac864 Cabana: make whole DetailWidget scrollable (#26340)
old-commit-hash: b25e56925c
2022-11-03 10:44:37 -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: 5aa0d211f0
2022-10-29 12:01:08 -07:00
Dean Lee
bd98b9b80c Cabana: display overlapping bits warning (#26219)
display overlapping bits warning
old-commit-hash: 87e0a5dd1a
2022-10-24 11:46:40 -07:00
Dean Lee
1ff74d58b7 Cabana: Added ability to highlight and resize overlapped signals (#26210)
old-commit-hash: 20dced4edc
2022-10-23 15:28:25 -07:00
Dean Lee
8e68208690 Cabana: drag to adjust signal size (#26172)
* drag to adjust signal size

* rename

* override setSelection

* use signal color as selection color while resing

* helper funtion

* hide tooltip if not in signal

* cleanup

* cabana: remove unused metatype (#26175)

remove unused metatype

* cabana: improve signal highlight on hover (#26161)

* just change font color

* merge master

* cleanup
old-commit-hash: d6a0f1c25a
2022-10-20 13:09:49 -07:00
Dean Lee
6a688db10e Cabana: highlight signal on mouse over (#26157)
old-commit-hash: bc2b247d71
2022-10-19 11:04:08 -07:00
Dean Lee
b2939b5fd2 cabana: use monospaced font for hex in BinaryView (#26153)
use fixedfont
old-commit-hash: 3fae3b3660
2022-10-19 08:03:14 -07:00
Dean Lee
d2d27243e4 Cabana: show MSB/LSB of signals in the BinaryView (#26103)
* dispaly msb and lsb in binary view

* draw at bottom

* move binaryview to seperate files

* increase the width of vertical header

* re-draw changed cells only

* correct lsb/msb position

* check bounds

* todo
old-commit-hash: 99b16151fc
2022-10-17 17:19:41 -07:00