Rename the menu member
This commit is contained in:
parent
6de7d3fd14
commit
93f011be28
@ -562,28 +562,28 @@ void PaulstretchpluginAudioProcessorEditor::chooseFile()
|
|||||||
|
|
||||||
void PaulstretchpluginAudioProcessorEditor::showSettingsMenu()
|
void PaulstretchpluginAudioProcessorEditor::showSettingsMenu()
|
||||||
{
|
{
|
||||||
m_test_menu = PopupMenu();
|
m_settings_menu = PopupMenu();
|
||||||
m_test_menu.addItem(4, "Reset parameters", true, false);
|
m_settings_menu.addItem(4, "Reset parameters", true, false);
|
||||||
m_test_menu.addItem(5, "Load file with plugin state", true, processor.m_load_file_with_state);
|
m_settings_menu.addItem(5, "Load file with plugin state", true, processor.m_load_file_with_state);
|
||||||
m_test_menu.addItem(1, "Play when host transport running", true, processor.m_play_when_host_plays);
|
m_settings_menu.addItem(1, "Play when host transport running", true, processor.m_play_when_host_plays);
|
||||||
m_test_menu.addItem(2, "Capture when host transport running", true, processor.m_capture_when_host_plays);
|
m_settings_menu.addItem(2, "Capture when host transport running", true, processor.m_capture_when_host_plays);
|
||||||
m_test_menu.addItem(8, "Mute audio while capturing", true, processor.m_mute_while_capturing);
|
m_settings_menu.addItem(8, "Mute audio while capturing", true, processor.m_mute_while_capturing);
|
||||||
int capturelen = *processor.getFloatParameter(cpi_max_capture_len);
|
int capturelen = *processor.getFloatParameter(cpi_max_capture_len);
|
||||||
PopupMenu capturelenmenu;
|
PopupMenu capturelenmenu;
|
||||||
|
|
||||||
for (int i=0;i<m_capturelens.size();++i)
|
for (int i=0;i<m_capturelens.size();++i)
|
||||||
capturelenmenu.addItem(200+i, String(m_capturelens[i])+" seconds", true, capturelen == m_capturelens[i]);
|
capturelenmenu.addItem(200+i, String(m_capturelens[i])+" seconds", true, capturelen == m_capturelens[i]);
|
||||||
m_test_menu.addSubMenu("Capture buffer length", capturelenmenu);
|
m_settings_menu.addSubMenu("Capture buffer length", capturelenmenu);
|
||||||
|
|
||||||
m_test_menu.addItem(3, "About...", true, false);
|
m_settings_menu.addItem(3, "About...", true, false);
|
||||||
#ifdef JUCE_DEBUG
|
#ifdef JUCE_DEBUG
|
||||||
m_test_menu.addItem(6, "Dump preset to clipboard", true, false);
|
m_settings_menu.addItem(6, "Dump preset to clipboard", true, false);
|
||||||
#endif
|
#endif
|
||||||
m_test_menu.addItem(7, "Show technical info", true, processor.m_show_technical_info);
|
m_settings_menu.addItem(7, "Show technical info", true, processor.m_show_technical_info);
|
||||||
//int r = menu.show();
|
//int r = menu.show();
|
||||||
|
|
||||||
|
|
||||||
m_test_menu.showMenuAsync(PopupMenu::Options(), new MyPopmenuCallback(this));
|
m_settings_menu.showMenuAsync(PopupMenu::Options(), new MyPopmenuCallback(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
void PaulstretchpluginAudioProcessorEditor::showAbout()
|
void PaulstretchpluginAudioProcessorEditor::showAbout()
|
||||||
|
@ -320,7 +320,6 @@ public:
|
|||||||
void showRenderDialog();
|
void showRenderDialog();
|
||||||
void executeModalMenuAction(int menuid, int actionid);
|
void executeModalMenuAction(int menuid, int actionid);
|
||||||
private:
|
private:
|
||||||
PopupMenu m_test_menu;
|
|
||||||
PaulstretchpluginAudioProcessor& processor;
|
PaulstretchpluginAudioProcessor& processor;
|
||||||
uptrvec<ParameterComponent> m_parcomps;
|
uptrvec<ParameterComponent> m_parcomps;
|
||||||
//SpectralVisualizer m_specvis;
|
//SpectralVisualizer m_specvis;
|
||||||
@ -340,6 +339,7 @@ private:
|
|||||||
MyTabComponent m_wavefilter_tab;
|
MyTabComponent m_wavefilter_tab;
|
||||||
Component* m_wave_container=nullptr;
|
Component* m_wave_container=nullptr;
|
||||||
void showAbout();
|
void showAbout();
|
||||||
|
PopupMenu m_settings_menu;
|
||||||
std::vector<int> m_capturelens{ 2,5,10,30,60,120 };
|
std::vector<int> m_capturelens{ 2,5,10,30,60,120 };
|
||||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (PaulstretchpluginAudioProcessorEditor)
|
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (PaulstretchpluginAudioProcessorEditor)
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user