xref: /haiku/src/libs/alm/Tab.cpp (revision 541ff51a6ef4c47f8ab105ba6ff895cdbba83aca)
1 /*
2  * Copyright 2011, Clemens Zeidler <haiku@clemens-zeidler.de>
3  * Distributed under the terms of the MIT License.
4  */
5 
6 
7 #include <Tab.h>
8 
9 #include <ALMLayout.h>
10 
11 
12 XTab::XTab(BALMLayout* layout)
13 	:
14 	Variable(layout->Solver()),
15 	fALMLayout(layout)
16 {
17 }
18 
19 
20 XTab::~XTab()
21 {
22 	fALMLayout->fXTabList.RemoveItem(this);
23 }
24 
25 
26 YTab::YTab(BALMLayout* layout)
27 	:
28 	Variable(layout->Solver()),
29 	fALMLayout(layout)
30 {
31 }
32 
33 
34 YTab::~YTab()
35 {
36 	fALMLayout->fYTabList.RemoveItem(this);
37 }
38