SheetTabs

Undocumented in source.
class SheetTabs : TabControl {}

Constructors

this
this(string ID)

create with ID parameter

Inherited Members

From TabControl

_items
TabItemList _items;
Undocumented in source.
_moreButton
ImageButton _moreButton;
Undocumented in source.
_enableCloseButton
bool _enableCloseButton;
Undocumented in source.
_autoMoreButtonMenu
bool _autoMoreButtonMenu;
Undocumented in source.
_sortedItems
TabItemWidget[] _sortedItems;
Undocumented in source.
_buttonOverlap
int _buttonOverlap;
Undocumented in source.
_tabStyle
string _tabStyle;
Undocumented in source.
_tabButtonStyle
string _tabButtonStyle;
Undocumented in source.
_tabButtonTextStyle
string _tabButtonTextStyle;
Undocumented in source.
tabChanged
Signal!TabHandler tabChanged;

signal of tab change (e.g. by clicking on tab header)

tabClose
Signal!TabCloseHandler tabClose;

signal on tab close button

moreButtonClick
Signal!OnClickHandler moreButtonClick;

on more button click (bool delegate(Widget))

moreButtonPopupMenu
Signal!PopupMenuHandler moreButtonPopupMenu;

handler for more button popup menu

_tabAlignment
Align _tabAlignment;
Undocumented in source.
tabAlignment
Align tabAlignment [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
tabAlignment
Align tabAlignment [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
setStyles
void setStyles(string tabStyle, string tabButtonStyle, string tabButtonTextStyle)
Undocumented in source. Be warned that the author may not have intended to support it.
enableCloseButton
bool enableCloseButton [@property getter]
bool enableCloseButton [@property setter]

when true, shows close buttons in tabs

enableMoreButton
bool enableMoreButton [@property getter]
bool enableMoreButton [@property setter]

when true, more button is visible

autoMoreButtonMenu
bool autoMoreButtonMenu [@property getter]
bool autoMoreButtonMenu [@property setter]

when true, automatically generate popup menu for more button - allowing to select tab from list

moreButtonIcon
string moreButtonIcon [@property getter]
string moreButtonIcon [@property setter]

more button custom icon

tabCount
int tabCount [@property getter]

returns tab count

tab
TabItem tab(int index)

returns tab item by id (null if index out of range)

tab
TabItem tab(string id)

returns tab item by id (null if not found)

tab
const(TabItem) tab(string id)

returns tab item by id (null if not found)

tabIndex
int tabIndex(string id)

get tab index by tab id (-1 if not found)

updateTabs
void updateTabs()
Undocumented in source. Be warned that the author may not have intended to support it.
accessTimeComparator
bool accessTimeComparator(TabItemWidget a, TabItemWidget b)
Undocumented in source. Be warned that the author may not have intended to support it.
sortedItems
TabItemWidget[] sortedItems()
Undocumented in source. Be warned that the author may not have intended to support it.
getNextItemIndex
int getNextItemIndex(int direction)

find next or previous tab index, based on access time

removeTab
TabControl removeTab(string id)

remove tab

renameTab
void renameTab(string ID, dstring name)

change name of tab

renameTab
void renameTab(int index, dstring name)

change name of tab

renameTab
void renameTab(int index, string id, dstring name)

change name and id of tab

onTabClose
void onTabClose(string tabId)
Undocumented in source. Be warned that the author may not have intended to support it.
addTab
TabControl addTab(TabItem item, int index, bool enableCloseButton)

add new tab

addTab
TabControl addTab(string id, dstring label, string iconId, bool enableCloseButton, dstring tooltipText)

add new tab by id and label string

addTab
TabControl addTab(string id, string labelResourceId, string iconId, bool enableCloseButton, dstring tooltipText)

add new tab by id and label string resource id

addTab
TabControl addTab(string id, UIString label, string iconId, bool enableCloseButton, dstring tooltipText)

add new tab by id and label UIString

getMoreButtonPopupMenu
MenuItem getMoreButtonPopupMenu()
Undocumented in source. Be warned that the author may not have intended to support it.
handleMorePopupMenu
bool handleMorePopupMenu()

try to invoke popup menu, return true if popup menu is shown

handleAction
bool handleAction(Action a)

override to handle specific actions

onMouse
bool onMouse(Widget source, MouseEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
measure
void measure(int parentWidth, int parentHeight)

Measure widget according to desired width and height constraints. (Step 1 of two phase layout).

layout
void layout(Rect rc)

Set widget rectangle to specified value and layout widget contents. (Step 2 of two phase layout).

onDraw
void onDraw(DrawBuf buf)

Draw widget at its position to buffer

_selectedTabId
string _selectedTabId;
Undocumented in source.
selectedTabId
string selectedTabId [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
updateAccessTs
void updateAccessTs()
Undocumented in source. Be warned that the author may not have intended to support it.
selectTab
void selectTab(int index, bool updateAccess)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta