/* * Tabs.h -- MCDE: tabs in a dtterm window (Tabs.c) * * License: CNCL 1.0 (Could Not Care Less), see LICENSE at the top of the tree. */ #ifndef _Dtterm_Tabs_h #define _Dtterm_Tabs_h #include /* the tab container of a dtterm shell, made at the first call */ extern Widget _McdeTabsContainer(Widget shell); /* the page (a tab, or the tab being split) a new view of SHELL goes into */ extern Widget _McdeTabsPageFor(Widget shell); /* the number of tabs in a container */ extern int _McdeTabsCount(Widget container); /* a new view in the container: label, keys, selected */ extern void _McdeTabsAdopt(Widget view); /* * Close the tab VIEW. True if the window keeps other tabs (the tab is * gone, the window stays); False if VIEW is the last tab or no tab at all -- * then the caller closes the window as before. */ extern Boolean _McdeTabsClose(Widget view); /* how a new tab is made next to VIEW, with PROFILE (NULL: VIEW's) */ extern void _McdeTabsSetNewProc(void (*proc)(Widget view, const char *profile)); #endif /* _Dtterm_Tabs_h */