Feature #2046
TabBar: Added features and fixes
Status: | Approved | Start date: | 06/19/2020 | ||
---|---|---|---|---|---|
Priority: | Normal | Due date: | |||
Assignee: | Miroslav Fidler | % Done: | 80% | ||
Category: | TabBar | Spent 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)
History
#1 Updated by Iñaki Zabala over 4 years ago
- File FileTabs.cpp added
- File FileTabs.h added
- File TabBar.cpp added
#2 Updated by Miroslav Fidler about 4 years ago
- Status changed from New to Approved
#3 Updated by Iñaki Zabala about 4 years ago
- % Done changed from 0 to 100
#4 Updated by Iñaki Zabala about 4 years ago
- File TabBar.cpp added
- % Done changed from 100 to 80