mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-31 07:59:27 +02:00
Bug 2122 - Screenshot tool: no way to exit using the keyboard
This commit is contained in:
parent
fb11eeaedd
commit
26a0ffc0ae
@ -44,6 +44,7 @@ It forwards the actual work of doing the commands to the ScreenshotCommand.
|
||||
#include "Prefs.h"
|
||||
#include "toolbars/ToolManager.h"
|
||||
#include "tracks/ui/TrackView.h"
|
||||
#include "widgets/HelpSystem.h"
|
||||
|
||||
#include "ViewInfo.h"
|
||||
#include "WaveTrack.h"
|
||||
@ -68,6 +69,9 @@ class ScreenFrame final : public wxFrame
|
||||
void OnCloseWindow(wxCloseEvent & event);
|
||||
void OnUIUpdate(wxUpdateUIEvent & event);
|
||||
void OnDirChoose(wxCommandEvent & event);
|
||||
void OnGetURL(wxCommandEvent & event);
|
||||
void OnClose(wxCommandEvent & event );
|
||||
|
||||
|
||||
void SizeMainWindow(int w, int h);
|
||||
void OnMainWindowSmall(wxCommandEvent & event);
|
||||
@ -222,6 +226,8 @@ enum
|
||||
|
||||
BEGIN_EVENT_TABLE(ScreenFrame, wxFrame)
|
||||
EVT_CLOSE(ScreenFrame::OnCloseWindow)
|
||||
EVT_BUTTON(wxID_HELP, ScreenFrame::OnGetURL)
|
||||
EVT_BUTTON(wxID_CANCEL, ScreenFrame::OnClose)
|
||||
|
||||
EVT_UPDATE_UI(IdCaptureFullScreen, ScreenFrame::OnUIUpdate)
|
||||
|
||||
@ -448,6 +454,7 @@ void ScreenFrame::PopulateOrExchange(ShuttleGui & S)
|
||||
S.EndHorizontalLay();
|
||||
}
|
||||
S.EndStatic();
|
||||
S.AddStandardButtons(eCloseButton |eHelpButton);
|
||||
}
|
||||
S.EndPanel();
|
||||
|
||||
@ -507,6 +514,16 @@ void ScreenFrame::OnCloseWindow(wxCloseEvent & WXUNUSED(event))
|
||||
Destroy();
|
||||
}
|
||||
|
||||
void ScreenFrame::OnClose(wxCommandEvent & WXUNUSED(event))
|
||||
{
|
||||
Destroy();
|
||||
}
|
||||
|
||||
void ScreenFrame::OnGetURL(wxCommandEvent & WXUNUSED(event))
|
||||
{
|
||||
HelpSystem::ShowHelp(this, wxT("Screenshot"));
|
||||
}
|
||||
|
||||
void ScreenFrame::OnUIUpdate(wxUpdateUIEvent & WXUNUSED(event))
|
||||
{
|
||||
#ifdef __WXMAC__
|
||||
|
Loading…
x
Reference in New Issue
Block a user