Browse Source

Add rewind button

tags/1.2.1
xenakios 7 years ago
parent
commit
5b64b8c779
2 changed files with 11 additions and 1 deletions
  1. +10
    -1
      Source/PluginEditor.cpp
  2. +1
    -0
      Source/PluginEditor.h

+ 10
- 1
Source/PluginEditor.cpp View File

@@ -1,4 +1,4 @@
/*
/*
Copyright (C) 2006-2011 Nasca Octavian Paul Copyright (C) 2006-2011 Nasca Octavian Paul
Author: Nasca Octavian Paul Author: Nasca Octavian Paul


@@ -63,6 +63,13 @@ PaulstretchpluginAudioProcessorEditor::PaulstretchpluginAudioProcessorEditor(Pau
m_render_button.onClick = [this]() { showRenderDialog(); }; m_render_button.onClick = [this]() { showRenderDialog(); };
} }


addAndMakeVisible(m_rewind_button);
m_rewind_button.setButtonText("<<");
m_rewind_button.onClick = [this]()
{
processor.getStretchSource()->seekPercent(processor.getStretchSource()->getPlayRange().getStart());
};

addAndMakeVisible(&m_info_label); addAndMakeVisible(&m_info_label);
m_info_label.setJustificationType(Justification::centredRight); m_info_label.setJustificationType(Justification::centredRight);


@@ -270,6 +277,8 @@ void PaulstretchpluginAudioProcessorEditor::resized()
m_render_button.changeWidthToFitText(); m_render_button.changeWidthToFitText();
yoffs = m_render_button.getRight() + 1; yoffs = m_render_button.getRight() + 1;
} }
m_rewind_button.setBounds(yoffs, 1, 30, 24);
yoffs = m_rewind_button.getRight() + 1;
m_perfmeter.setBounds(yoffs, 1, 150, 24); m_perfmeter.setBounds(yoffs, 1, 150, 24);
m_info_label.setBounds(m_perfmeter.getRight() + 1, m_settings_button.getY(), m_info_label.setBounds(m_perfmeter.getRight() + 1, m_settings_button.getY(),
getWidth()- m_perfmeter.getRight()-1, 24); getWidth()- m_perfmeter.getRight()-1, 24);


+ 1
- 0
Source/PluginEditor.h View File

@@ -250,6 +250,7 @@ private:
TextButton m_import_button; TextButton m_import_button;
TextButton m_settings_button; TextButton m_settings_button;
TextButton m_render_button; TextButton m_render_button;
TextButton m_rewind_button;
Label m_info_label; Label m_info_label;
SpectralChainEditor m_spec_order_ed; SpectralChainEditor m_spec_order_ed;


Loading…
Cancel
Save