Commit f63f37b
authored
feat: Use
## Summary by Sourcery
Make component selection scrollable and update ROI handling hooks to
keep chosen components in sync with ROI changes.
New Features:
- Allow scrolling through the list of selectable components using a
scrollable container.
Enhancements:
- Ensure selected components are automatically brought into view when
toggled or changed.
- Separate initialization of component checkboxes from updating their
checked state via a dedicated setter.
- Adjust the main ROI mask layout to use a splitter between algorithm
selection and component selection panels.
- Introduce a post-ROI-set hook for subclasses to perform additional
updates after ROI changes.
- Tighten type annotations for napari layer addition utility.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Component list now scrolls vertically and auto-scrolls toggled items
into view
* Component and algorithm selectors placed in a resizable split layout
* Settings run a post-ROI sync so component choices stay in sync after
ROI changes
* **Refactor**
* Component-selection API reorganized to support typed calls and a
lighter update method that updates checks without full rebuild
* **Bug Fixes**
* Batch select/unselect updates checkboxes while emitting a single
consolidated change signal
<!-- end of auto-generated comment: release notes by coderabbit.ai -->QScrollArea for components selection (#1328)1 parent 23de3ff commit f63f37b
4 files changed
Lines changed: 87 additions & 48 deletions
File tree
- package/PartSeg
- _roi_mask
- common_backend
- common_gui
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
| 24 | + | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
| |||
393 | 397 | | |
394 | 398 | | |
395 | 399 | | |
396 | | - | |
| 400 | + | |
397 | 401 | | |
398 | 402 | | |
399 | 403 | | |
| |||
404 | 408 | | |
405 | 409 | | |
406 | 410 | | |
| 411 | + | |
407 | 412 | | |
408 | 413 | | |
409 | 414 | | |
| |||
416 | 421 | | |
417 | 422 | | |
418 | 423 | | |
419 | | - | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
420 | 428 | | |
421 | 429 | | |
422 | 430 | | |
423 | 431 | | |
| 432 | + | |
424 | 433 | | |
425 | 434 | | |
426 | | - | |
427 | | - | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
428 | 442 | | |
429 | 443 | | |
430 | | - | |
431 | | - | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
432 | 451 | | |
433 | 452 | | |
434 | 453 | | |
| |||
439 | 458 | | |
440 | 459 | | |
441 | 460 | | |
442 | | - | |
443 | | - | |
| 461 | + | |
| 462 | + | |
444 | 463 | | |
445 | | - | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
446 | 467 | | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
459 | 482 | | |
460 | 483 | | |
461 | 484 | | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
462 | 495 | | |
463 | 496 | | |
464 | 497 | | |
465 | 498 | | |
466 | 499 | | |
| 500 | + | |
467 | 501 | | |
468 | 502 | | |
469 | 503 | | |
| |||
527 | 561 | | |
528 | 562 | | |
529 | 563 | | |
| 564 | + | |
530 | 565 | | |
531 | 566 | | |
532 | 567 | | |
| |||
566 | 601 | | |
567 | 602 | | |
568 | 603 | | |
569 | | - | |
570 | | - | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
571 | 608 | | |
572 | 609 | | |
573 | 610 | | |
| |||
659 | 696 | | |
660 | 697 | | |
661 | 698 | | |
662 | | - | |
| 699 | + | |
663 | 700 | | |
664 | 701 | | |
665 | 702 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | 173 | | |
| 174 | + | |
| 175 | + | |
177 | 176 | | |
178 | 177 | | |
179 | 178 | | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | 179 | | |
| 180 | + | |
| 181 | + | |
184 | 182 | | |
185 | 183 | | |
186 | 184 | | |
| |||
304 | 302 | | |
305 | 303 | | |
306 | 304 | | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | 305 | | |
| 306 | + | |
311 | 307 | | |
312 | 308 | | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | 309 | | |
| 310 | + | |
317 | 311 | | |
318 | 312 | | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
319 | 321 | | |
320 | 322 | | |
321 | 323 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | 129 | | |
135 | 130 | | |
136 | 131 | | |
| |||
140 | 135 | | |
141 | 136 | | |
142 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
| |||
155 | 156 | | |
156 | 157 | | |
157 | 158 | | |
| 159 | + | |
158 | 160 | | |
159 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
160 | 165 | | |
161 | 166 | | |
162 | 167 | | |
| |||
524 | 529 | | |
525 | 530 | | |
526 | 531 | | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
| 532 | + | |
531 | 533 | | |
532 | 534 | | |
533 | | - | |
534 | | - | |
535 | 535 | | |
536 | 536 | | |
537 | 537 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
584 | 584 | | |
585 | 585 | | |
586 | 586 | | |
587 | | - | |
| 587 | + | |
588 | 588 | | |
589 | 589 | | |
590 | 590 | | |
| |||
0 commit comments