blob: 5d7c4ecfa76383937cfc14bde5d5a4478215357e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
#include "viewHeader.h"
#include "tokendefinitions.h"
cViewHeader::cViewHeader(skindesignerapi::cViewElement* viewElem)
{
m_pViewElem = std::shared_ptr<skindesignerapi::cViewElement>(viewElem);
m_eCurrentTab = ePlexMenuTab::pmtOnDeck;
}
cViewHeader::~cViewHeader()
{
}
void cViewHeader::Draw(cGridElement* elem)
{
m_pViewElem->Clear();
m_pViewElem->ClearTokens();
elem->AddTokens(m_pViewElem, false);
m_pViewElem->Display();
}
ePlexMenuTab cViewHeader::NextTab()
{
switch(m_eCurrentTab) {
case ePlexMenuTab::pmtOnDeck:
m_eCurrentTab = ePlexMenuTab::pmtRecentlyAdded;
break;
case ePlexMenuTab::pmtRecentlyAdded:
m_eCurrentTab = ePlexMenuTab::pmtLibrary;
break;
case ePlexMenuTab::pmtLibrary:
m_eCurrentTab = ePlexMenuTab::pmtOnDeck;
break;
}
return m_eCurrentTab;
}
ePlexMenuTab cViewHeader::PrevTab()
{
switch(m_eCurrentTab) {
case ePlexMenuTab::pmtOnDeck:
m_eCurrentTab = ePlexMenuTab::pmtLibrary;
break;
case ePlexMenuTab::pmtRecentlyAdded:
m_eCurrentTab = ePlexMenuTab::pmtOnDeck;
break;
case ePlexMenuTab::pmtLibrary:
m_eCurrentTab = ePlexMenuTab::pmtRecentlyAdded;
break;
}
return m_eCurrentTab;
}
|