Attempt to store and recall current GUI tab index but not working...

This commit is contained in:
xenakios
2018-06-29 15:13:49 +03:00
parent 473f4aa3e1
commit 5c900ee9b6
5 changed files with 20 additions and 4 deletions

View File

@ -246,6 +246,18 @@ private:
int m_slidwidth = 400;
};
class MyTabComponent : public TabbedComponent
{
public:
MyTabComponent(int& curtab) : TabbedComponent(TabbedButtonBar::TabsAtTop), m_cur_tab(curtab) {}
void currentTabChanged(int newCurrentTabIndex, const String&) override
{
m_cur_tab = newCurrentTabIndex;
}
private:
int& m_cur_tab;
};
class PaulstretchpluginAudioProcessorEditor : public AudioProcessorEditor,
public MultiTimer, public FileDragAndDropTarget, public DragAndDropContainer
{
@ -280,7 +292,7 @@ private:
zoom_scrollbar m_zs;
RatioMixerEditor m_ratiomixeditor{ 8 };
FreeFilterComponent m_free_filter_component;
TabbedComponent m_wavefilter_tab;
MyTabComponent m_wavefilter_tab;
Component* m_wave_container=nullptr;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (PaulstretchpluginAudioProcessorEditor)
};