forked from getdunne/VanillaJuce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGuiTabs.cpp
33 lines (28 loc) · 948 Bytes
/
GuiTabs.cpp
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
#include "GuiTabs.h"
GuiTabs::GuiTabs (SynthSound* pSynthSound)
{
addAndMakeVisible (tabbedComponent = new TabbedComponent (TabbedButtonBar::TabsAtTop));
tabbedComponent->setTabBarDepth (32);
tabbedComponent->addTab(TRANS("Main"), Colours::lightgrey, pMainTab = new GuiMainTab(pSynthSound), true);
tabbedComponent->addTab(TRANS("Osc"), Colours::lightgrey, pOscTab = new GuiOscTab(pSynthSound), true);
tabbedComponent->addTab(TRANS("AmpEG"), Colours::lightgrey, pAmpEgTab = new GuiEgTab(pSynthSound), true);
tabbedComponent->setCurrentTabIndex(0);
}
GuiTabs::~GuiTabs()
{
}
//==============================================================================
void GuiTabs::paint (Graphics& g)
{
g.fillAll (Colour (0xff323e44));
}
void GuiTabs::resized()
{
tabbedComponent->setBounds (0, 0, getWidth(), getWidth());
}
void GuiTabs::notify()
{
pMainTab->notify();
pOscTab->notify();
pAmpEgTab->notify();
}