Audacity 3.2.0
Classes | Macros | Typedefs | Enumerations | Functions | Variables
Screenshot.cpp File Reference
#include "Screenshot.h"
#include "commands/ScreenshotCommand.h"
#include "commands/CommandTargets.h"
#include "commands/CommandContext.h"
#include <wx/app.h>
#include <wx/defs.h>
#include <wx/event.h>
#include <wx/frame.h>
#include "ShuttleGui.h"
#include <wx/button.h>
#include <wx/checkbox.h>
#include <wx/dirdlg.h>
#include <wx/image.h>
#include <wx/intl.h>
#include <wx/panel.h>
#include <wx/sizer.h>
#include <wx/statusbr.h>
#include <wx/textctrl.h>
#include <wx/timer.h>
#include <wx/tglbtn.h>
#include <wx/window.h>
#include "prefs/GUISettings.h"
#include "Project.h"
#include "ProjectStatus.h"
#include "ProjectWindow.h"
#include "ProjectWindows.h"
#include "Prefs.h"
#include "tracks/ui/TrackView.h"
#include "widgets/HelpSystem.h"
#include "ViewInfo.h"
#include "WaveTrack.h"
Include dependency graph for Screenshot.cpp:

Go to the source code of this file.

Classes

class  ScreenshotBigDialog
 ScreenshotBigDialog provides an alternative Gui for ScreenshotCommand. It adds a timer that allows a delay before taking a screenshot, provides lots of one-click buttons, options to resize the screen. It forwards the actual work of doing the commands to the ScreenshotCommand. More...
 
class  ScreenFrameTimer
 

Macros

#define ScreenCaptureFrameTitle   XO("Screen Capture Frame")
 

Typedefs

using ScreenshotBigDialogPtr = ScreenshotBigDialog *
 

Enumerations

enum  {
  IdMainWindowSmall = 19200 , IdMainWindowLarge , IdDirectory , IdDirChoose ,
  IdOneSec , IdTenSec , IdOneMin , IdFiveMin ,
  IdOneHour , IdShortTracks , IdMedTracks , IdTallTracks ,
  IdDelayCheckBox , IdCaptureFirst , IdCaptureEffects = IdCaptureFirst , IdCaptureScriptables ,
  IdCapturePreferences , IdCaptureToolbars , IdAllDelayedEvents , IdCaptureWindowContents =IdAllDelayedEvents ,
  IdCaptureFullWindow , IdCaptureWindowPlus , IdCaptureFullScreen , IdCaptureSelectionBar ,
  IdCaptureSpectralSelection , IdCaptureTimer , IdCaptureTools , IdCaptureTransport ,
  IdCaptureMixer , IdCaptureMeter , IdCapturePlayMeter , IdCaptureRecordMeter ,
  IdCaptureEdit , IdCaptureDevice , IdCaptureTranscription , IdCaptureScrub ,
  IdCaptureTrackPanel , IdCaptureRuler , IdCaptureTracks , IdCaptureFirstTrack ,
  IdCaptureSecondTrack , IdCaptureLast = IdCaptureSecondTrack , IdLastDelayedEvent , IdToggleBackgroundBlue ,
  IdToggleBackgroundWhite
}
 

Functions

void OpenScreenshotTools (AudacityProject &project)
 
void CloseScreenshotTools ()
 
 END_EVENT_TABLE ()
 

Variables

ScreenshotBigDialogPtr mFrame
 

Macro Definition Documentation

◆ ScreenCaptureFrameTitle

#define ScreenCaptureFrameTitle   XO("Screen Capture Frame")

Definition at line 58 of file Screenshot.cpp.

Typedef Documentation

◆ ScreenshotBigDialogPtr

Definition at line 130 of file Screenshot.cpp.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
IdMainWindowSmall 
IdMainWindowLarge 
IdDirectory 
IdDirChoose 
IdOneSec 
IdTenSec 
IdOneMin 
IdFiveMin 
IdOneHour 
IdShortTracks 
IdMedTracks 
IdTallTracks 
IdDelayCheckBox 
IdCaptureFirst 
IdCaptureEffects 
IdCaptureScriptables 
IdCapturePreferences 
IdCaptureToolbars 
IdAllDelayedEvents 
IdCaptureWindowContents 
IdCaptureFullWindow 
IdCaptureWindowPlus 
IdCaptureFullScreen 
IdCaptureSelectionBar 
IdCaptureSpectralSelection 
IdCaptureTimer 
IdCaptureTools 
IdCaptureTransport 
IdCaptureMixer 
IdCaptureMeter 
IdCapturePlayMeter 
IdCaptureRecordMeter 
IdCaptureEdit 
IdCaptureDevice 
IdCaptureTranscription 
IdCaptureScrub 
IdCaptureTrackPanel 
IdCaptureRuler 
IdCaptureTracks 
IdCaptureFirstTrack 
IdCaptureSecondTrack 
IdCaptureLast 
IdLastDelayedEvent 
IdToggleBackgroundBlue 
IdToggleBackgroundWhite 

Definition at line 189 of file Screenshot.cpp.

190{
191 IdMainWindowSmall = 19200,
193
196
197 IdOneSec,
198 IdTenSec,
199 IdOneMin,
200 IdFiveMin,
201 IdOneHour,
202
206
208
210 // No point delaying the capture of sets of things.
215
216 // Put all events that need delay between AllDelayed and LastDelayed.
222
236
243
245
248
249};
@ IdToggleBackgroundWhite
Definition: Screenshot.cpp:247
@ IdTallTracks
Definition: Screenshot.cpp:205
@ IdFiveMin
Definition: Screenshot.cpp:200
@ IdCaptureEffects
Definition: Screenshot.cpp:211
@ IdCaptureScrub
Definition: Screenshot.cpp:235
@ IdMainWindowLarge
Definition: Screenshot.cpp:192
@ IdCaptureSpectralSelection
Definition: Screenshot.cpp:224
@ IdCaptureTimer
Definition: Screenshot.cpp:225
@ IdCaptureMixer
Definition: Screenshot.cpp:228
@ IdCaptureToolbars
Definition: Screenshot.cpp:214
@ IdCaptureTransport
Definition: Screenshot.cpp:227
@ IdCaptureDevice
Definition: Screenshot.cpp:233
@ IdTenSec
Definition: Screenshot.cpp:198
@ IdCaptureFirstTrack
Definition: Screenshot.cpp:240
@ IdCapturePlayMeter
Definition: Screenshot.cpp:230
@ IdCaptureWindowContents
Definition: Screenshot.cpp:218
@ IdCaptureSelectionBar
Definition: Screenshot.cpp:223
@ IdCaptureMeter
Definition: Screenshot.cpp:229
@ IdMainWindowSmall
Definition: Screenshot.cpp:191
@ IdCaptureRuler
Definition: Screenshot.cpp:238
@ IdOneMin
Definition: Screenshot.cpp:199
@ IdDirectory
Definition: Screenshot.cpp:194
@ IdCaptureLast
Definition: Screenshot.cpp:242
@ IdOneHour
Definition: Screenshot.cpp:201
@ IdLastDelayedEvent
Definition: Screenshot.cpp:244
@ IdCaptureTools
Definition: Screenshot.cpp:226
@ IdDirChoose
Definition: Screenshot.cpp:195
@ IdCaptureSecondTrack
Definition: Screenshot.cpp:241
@ IdCaptureTracks
Definition: Screenshot.cpp:239
@ IdCaptureFullScreen
Definition: Screenshot.cpp:221
@ IdOneSec
Definition: Screenshot.cpp:197
@ IdCaptureWindowPlus
Definition: Screenshot.cpp:220
@ IdToggleBackgroundBlue
Definition: Screenshot.cpp:246
@ IdCaptureScriptables
Definition: Screenshot.cpp:212
@ IdAllDelayedEvents
Definition: Screenshot.cpp:217
@ IdCaptureEdit
Definition: Screenshot.cpp:232
@ IdDelayCheckBox
Definition: Screenshot.cpp:207
@ IdCaptureTrackPanel
Definition: Screenshot.cpp:237
@ IdCaptureRecordMeter
Definition: Screenshot.cpp:231
@ IdCaptureFullWindow
Definition: Screenshot.cpp:219
@ IdShortTracks
Definition: Screenshot.cpp:203
@ IdMedTracks
Definition: Screenshot.cpp:204
@ IdCaptureFirst
Definition: Screenshot.cpp:209
@ IdCapturePreferences
Definition: Screenshot.cpp:213
@ IdCaptureTranscription
Definition: Screenshot.cpp:234

Function Documentation

◆ CloseScreenshotTools()

void CloseScreenshotTools ( )

Definition at line 150 of file Screenshot.cpp.

151{
152 mFrame = nullptr;
153}
ScreenshotBigDialogPtr mFrame
Definition: Screenshot.cpp:131

References mFrame.

Referenced by QuitAudacity().

Here is the caller graph for this function:

◆ END_EVENT_TABLE()

END_EVENT_TABLE ( )

◆ OpenScreenshotTools()

void OpenScreenshotTools ( AudacityProject project)

Definition at line 135 of file Screenshot.cpp.

136{
137 if (!mFrame) {
138 auto parent = wxTheApp->GetTopWindow();
139 if (!parent) {
140 wxASSERT(false);
141 return;
142 }
144 safenew ScreenshotBigDialog(parent, -1, project) };
145 }
146 mFrame->Show();
147 mFrame->Raise();
148}
#define safenew
Definition: MemoryX.h:10
ScreenshotBigDialog provides an alternative Gui for ScreenshotCommand. It adds a timer that allows a ...
Definition: Screenshot.cpp:63

References mFrame, and safenew.

Referenced by PluginActions::Handler::OnScreenshot().

Here is the caller graph for this function:

Variable Documentation

◆ mFrame