Feature #2046

TabBar: Added features and fixes

Added by Iñaki Zabala 21 days ago. Updated 14 days ago.

Status:NewStart date:06/19/2020
Priority:NormalDue date:
Assignee:Miroslav Fidler% Done:

0%

Category:TabBarSpent time:2.00 hours
Target version:-

Description

Additions
- To allow user code to change style
SetStyle(const TabBar::Style& s)

- To allow close tabs without crosses, and show the ContextMenu() properly
bool IsCancelClose(int id)
bool IsCancelCloseAll(int exception, int last_closed = 0)

- To allow user code to allow drag and drup in certain tabs
Gate<int, int> CancelDragAndDrop; // Return true to cancel drag and drop from tab to tab

Fixes
- Set CancelClose() in all necessary places
- If crosses is on, but tab cannot be closed, tab size does include cross icon size
int GetExtraWidth(int n)

TabBar.h Magnifier (17 KB) Iñaki Zabala, 06/19/2020 04:34 PM

TabBar.cpp Magnifier (52.2 KB) Iñaki Zabala, 06/19/2020 04:34 PM

FileTabs.cpp Magnifier (4.6 KB) Iñaki Zabala, 06/27/2020 01:27 AM

FileTabs.h Magnifier (1.73 KB) Iñaki Zabala, 06/27/2020 01:27 AM

TabBar.cpp Magnifier (52.4 KB) Iñaki Zabala, 06/27/2020 01:27 AM

History

#1 Updated by Iñaki Zabala 14 days ago

Also available in: Atom PDF