Commit Graph

25 Commits

Author SHA1 Message Date
Dean Lee
4b7b257fdc Cabana: increase cell height of BinaryView and cleanup code (#26754)
* setDefaultSectionSize

* cleanup
2022-12-10 13:09:07 -08:00
Dean Lee
6bea668e35 Cabana: fix the binaryview is not updated correctly (#26731) 2022-12-08 11:54:22 -08:00
Dean Lee
4d74e44ae1 Cabana: display dash instead of zero if no data (#26686)
display dash instead of zero if no data
2022-12-05 15:12:36 -08:00
Dean Lee
74c0ac3dec Cabana: setSectionResizeMode to QHeaderView::Fixed (#26655)
fixed header
2022-12-01 09:17:02 -08:00
Dean Lee
4662f1e0be 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
2022-11-22 14:23:49 -08:00
Dean Lee
66edb15b8f Cabana: improve binary view (#26525)
* improve

* set minimum width

* click signal to open&hide form

* disable vertical header's click
2022-11-16 15:51:05 -08:00
Dean Lee
e3c913bfa1 Cabana: sort signal by start bit and keep cursor position after save (#26529)
sort signals by start bit and keep cursor position after save
2022-11-16 15:43:49 -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
b320ac6c23 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
2022-11-09 22:05:18 -08:00
Dean Lee
0e3edf7877 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
2022-11-04 11:16:15 -07:00
Dean Lee
b25e56925c Cabana: make whole DetailWidget scrollable (#26340) 2022-11-03 10:44:37 -07:00
Dean Lee
5aa0d211f0 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
2022-10-29 12:01:08 -07:00
Dean Lee
87e0a5dd1a Cabana: display overlapping bits warning (#26219)
display overlapping bits warning
2022-10-24 11:46:40 -07:00
Dean Lee
20dced4edc Cabana: Added ability to highlight and resize overlapped signals (#26210) 2022-10-23 15:28:25 -07:00
Dean Lee
64f89beb0d Cabana: delete all selected cells when shrinking signal (#26211) 2022-10-23 13:39:06 -07:00
Dean Lee
80c565d9fe 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>
2022-10-23 13:38:38 -07:00
Adeeb Shihadeh
8a0475bd3b cabana: fix BinaryView byte indices 2022-10-22 16:15:03 -07:00
Dean Lee
d6a0f1c25a 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
2022-10-20 13:09:49 -07:00
Dean Lee
b2b27ff7ee cabana: improve signal highlight on hover (#26161)
* just change font color

* merge master
2022-10-20 07:56:28 -07:00
Dean Lee
bc2b247d71 Cabana: highlight signal on mouse over (#26157) 2022-10-19 11:04:08 -07:00
Dean Lee
3fae3b3660 cabana: use monospaced font for hex in BinaryView (#26153)
use fixedfont
2022-10-19 08:03:14 -07:00
Cameron Clough
9a8bd8c097 Revert "cabana: fix binary view for can-fd"
This reverts commit 98cac3578b.
2022-10-18 20:46:08 -07:00
Adeeb Shihadeh
98cac3578b cabana: fix binary view for can-fd 2022-10-18 18:40:47 -07:00
Dean Lee
988fede185 cabana: reduce the padding in DetailsView (#26126) 2022-10-17 21:00:07 -07:00
Dean Lee
99b16151fc 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
2022-10-17 17:19:41 -07:00