1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-06 11:42:17 +01:00

Capture screenshots of effects.

Only available if you define EXPERIMENTAL_DOCS_AUTOMATION.
This code is still a bit ropey and not suited for prime time, but fine for our own (careful) use in preparing the manual.

It captures most of the effects, generator and analyze built ins and nyquist dialogs.  Use it by creating a track, making a selection and then clicking the 'All Effects' button in the screenshot tools.  The dialogs will be captured to your user directory.
This commit is contained in:
James Crook
2017-06-02 23:52:53 +01:00
parent 7e691ddf38
commit acd55e95db
7 changed files with 217 additions and 12 deletions

View File

@@ -71,6 +71,7 @@ class ScreenFrame final : public wxFrame
void OnCaptureFullScreen(wxCommandEvent & event);
void OnCaptureToolbars(wxCommandEvent & event);
void OnCaptureMenus(wxCommandEvent & event);
void OnCaptureEffects(wxCommandEvent & event);
void OnCaptureSelectionBar(wxCommandEvent & event);
void OnCaptureTools(wxCommandEvent & event);
void OnCaptureTransport(wxCommandEvent & event);
@@ -180,6 +181,7 @@ enum
IdCaptureToolbars,
IdCaptureMenus,
IdCaptureEffects,
IdCaptureSelectionBar,
IdCaptureTools,
IdCaptureTransport,
@@ -225,6 +227,7 @@ BEGIN_EVENT_TABLE(ScreenFrame, wxFrame)
EVT_BUTTON(IdCaptureToolbars, ScreenFrame::OnCaptureToolbars)
EVT_BUTTON(IdCaptureMenus, ScreenFrame::OnCaptureMenus)
EVT_BUTTON(IdCaptureEffects, ScreenFrame::OnCaptureEffects)
EVT_BUTTON(IdCaptureSelectionBar, ScreenFrame::OnCaptureSelectionBar)
EVT_BUTTON(IdCaptureTools, ScreenFrame::OnCaptureTools)
EVT_BUTTON(IdCaptureTransport, ScreenFrame::OnCaptureTransport)
@@ -386,17 +389,25 @@ void ScreenFrame::PopulateOrExchange(ShuttleGui & S)
S.StartHorizontalLay();
{
S.Id(IdCaptureToolbars).AddButton(_("All Toolbars"));
#ifdef EXPERIMENTAL_DOCS_AUTOMATION
S.Id(IdCaptureMenus).AddButton(_("All Menus"));
S.Id(IdCaptureSelectionBar).AddButton(_("SelectionBar"));
S.Id(IdCaptureTools).AddButton(_("Tools"));
S.Id(IdCaptureTransport).AddButton(_("Transport"));
S.Id(IdCaptureEffects).AddButton(_("All Effects"));
#endif
}
S.EndHorizontalLay();
S.StartHorizontalLay();
{
S.Id(IdCaptureSelectionBar).AddButton(_("SelectionBar"));
S.Id(IdCaptureTools).AddButton(_("Tools"));
S.Id(IdCaptureTransport).AddButton(_("Transport"));
S.Id(IdCaptureMixer).AddButton(_("Mixer"));
S.Id(IdCaptureMeter).AddButton(_("Meter"));
}
S.EndHorizontalLay();
S.StartHorizontalLay();
{
S.Id(IdCaptureEdit).AddButton(_("Edit"));
S.Id(IdCaptureDevice).AddButton(_("Device"));
S.Id(IdCaptureTranscription).AddButton(_("Transcription"));
@@ -613,6 +624,11 @@ void ScreenFrame::OnCaptureMenus(wxCommandEvent & WXUNUSED(event))
DoCapture(wxT("menus"));
}
void ScreenFrame::OnCaptureEffects(wxCommandEvent & WXUNUSED(event))
{
DoCapture(wxT("effects"));
}
void ScreenFrame::OnCaptureSelectionBar(wxCommandEvent & WXUNUSED(event))
{
DoCapture(wxT("selectionbar"));