Lines Matching defs:tab

72 	bool AttempAdd(T* tab)
74 if (fLayout->_HasTabInLayout(tab))
76 if (!fLayout->_AddedTab(tab))
78 fTab = tab;
82 if (!tabList->AddItem(tab, index))
234 // the Left tab is always at x-position 0, and the Top tab is always at
328 * Adds a new x-tab to the specification.
330 * @return the new x-tab
335 BReference<XTab> tab(new(std::nothrow) XTab(this), true);
336 if (!tab)
338 if (!Solver()->AddVariable(tab))
341 fXTabList.AddItem(tab);
342 if (!tab->AddedToLayout(this)) {
343 fXTabList.RemoveItem(tab);
347 return tab;
368 * Adds a new y-tab to the specification.
370 * @return the new y-tab
375 BReference<YTab> tab(new(std::nothrow) YTab(this), true);
376 if (tab.Get() == NULL)
378 if (!Solver()->AddVariable(tab))
381 fYTabList.AddItem(tab);
382 if (!tab->AddedToLayout(this)) {
383 fYTabList.RemoveItem(tab);
387 return tab;
458 BALMLayout::IndexOf(XTab* tab, bool ordered)
465 return fXTabList.IndexOf(tab);
470 BALMLayout::IndexOf(YTab* tab, bool ordered)
477 return fYTabList.IndexOf(tab);
1203 XTab* tab;
1205 BUnarchiver::B_DONT_ASSUME_OWNERSHIP, tab);
1206 spec->AddVariable(tab);
1208 if (adder.AttempAdd(tab))
1216 YTab* tab;
1218 BUnarchiver::B_DONT_ASSUME_OWNERSHIP, tab);
1219 spec->AddVariable(tab);
1221 if (adder.AttempAdd(tab))
1421 BALMLayout::InsetForTab(XTab* tab) const
1423 if (tab == fLeft.Get())
1425 if (tab == fRight.Get())
1432 BALMLayout::InsetForTab(YTab* tab) const
1434 if (tab == fTop.Get())
1436 if (tab == fBottom.Get())
1451 void BALMLayout::_RemoveSelfFromTab(XTab* tab) { tab->LayoutLeaving(this); }
1452 void BALMLayout::_RemoveSelfFromTab(YTab* tab) { tab->LayoutLeaving(this); }
1454 bool BALMLayout::_HasTabInLayout(XTab* tab) { return tab->IsInLayout(this); }
1455 bool BALMLayout::_HasTabInLayout(YTab* tab) { return tab->IsInLayout(this); }
1457 bool BALMLayout::_AddedTab(XTab* tab) { return tab->AddedToLayout(this); }
1458 bool BALMLayout::_AddedTab(YTab* tab) { return tab->AddedToLayout(this); }