Audacity 3.2.0
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions | Variables
Screenshot.cpp File Reference
#include "Screenshot.h"
#include "commands/ScreenshotCommand.h"
#include "commands/wxCommandTargets.h"
#include "CommandContext.h"
#include <wx/app.h>
#include <wx/defs.h>
#include <wx/frame.h>
#include "ShuttleGui.h"
#include <wx/checkbox.h>
#include <wx/dirdlg.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 "ProjectWindows.h"
#include "Prefs.h"
#include "toolbars/ToolManager.h"
#include "tracks/ui/ChannelView.h"
#include "HelpSystem.h"
#include "ViewInfo.h"
#include "Viewport.h"
#include "WaveTrack.h"
#include "CommonCommandFlags.h"
#include "CommandManager.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
 

Namespaces

namespace  anonymous_namespace{Screenshot.cpp}
 

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 , IdToggleBackgroundBlue , IdToggleBackgroundWhite , IdCaptureFirst ,
  IdCaptureEffects = IdCaptureFirst , IdCaptureScriptables , IdCapturePreferences , IdCaptureToolbars ,
  IdAllDelayedEvents , IdCaptureWindowContents =IdAllDelayedEvents , IdCaptureFullWindow , IdCaptureWindowPlus ,
  IdCaptureFullScreen , IdCaptureTrackPanel , IdCaptureRuler , IdCaptureTracks ,
  IdCaptureFirstTrack , IdCaptureSecondTrack , IdCaptureLast = IdCaptureSecondTrack , IdFirstToolbar
}
 

Functions

static void OpenScreenshotTools (AudacityProject &project)
 
 END_EVENT_TABLE ()
 
void anonymous_namespace{Screenshot.cpp}::OnScreenshot (const CommandContext &context)
 

Variables

ScreenshotBigDialogPtr mFrame
 
AttachedItem anonymous_namespace{Screenshot.cpp}::sAttachment
 

Macro Definition Documentation

◆ ScreenCaptureFrameTitle

#define ScreenCaptureFrameTitle   XO("Screen Capture Frame")

Definition at line 55 of file Screenshot.cpp.

Typedef Documentation

◆ ScreenshotBigDialogPtr

Definition at line 129 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 
IdToggleBackgroundBlue 
IdToggleBackgroundWhite 
IdCaptureFirst 
IdCaptureEffects 
IdCaptureScriptables 
IdCapturePreferences 
IdCaptureToolbars 
IdAllDelayedEvents 
IdCaptureWindowContents 
IdCaptureFullWindow 
IdCaptureWindowPlus 
IdCaptureFullScreen 
IdCaptureTrackPanel 
IdCaptureRuler 
IdCaptureTracks 
IdCaptureFirstTrack 
IdCaptureSecondTrack 
IdCaptureLast 
IdFirstToolbar 

Definition at line 183 of file Screenshot.cpp.

184{
185 IdMainWindowSmall = 19200,
187
190
191 IdOneSec,
192 IdTenSec,
193 IdOneMin,
194 IdFiveMin,
195 IdOneHour,
196
200
202
205
207
208 // No point delaying the capture of sets of things.
212
214
215 // Put all events that need delay between AllDelayed and LastDelayed.
221
228
229 // Reserved values for an unspecified number of toolbars
231};
@ IdToggleBackgroundWhite
Definition: Screenshot.cpp:204
@ IdTallTracks
Definition: Screenshot.cpp:199
@ IdFiveMin
Definition: Screenshot.cpp:194
@ IdCaptureEffects
Definition: Screenshot.cpp:209
@ IdMainWindowLarge
Definition: Screenshot.cpp:186
@ IdFirstToolbar
Definition: Screenshot.cpp:230
@ IdCaptureToolbars
Definition: Screenshot.cpp:213
@ IdTenSec
Definition: Screenshot.cpp:192
@ IdCaptureFirstTrack
Definition: Screenshot.cpp:225
@ IdCaptureWindowContents
Definition: Screenshot.cpp:217
@ IdMainWindowSmall
Definition: Screenshot.cpp:185
@ IdCaptureRuler
Definition: Screenshot.cpp:223
@ IdOneMin
Definition: Screenshot.cpp:193
@ IdDirectory
Definition: Screenshot.cpp:188
@ IdCaptureLast
Definition: Screenshot.cpp:227
@ IdOneHour
Definition: Screenshot.cpp:195
@ IdDirChoose
Definition: Screenshot.cpp:189
@ IdCaptureSecondTrack
Definition: Screenshot.cpp:226
@ IdCaptureTracks
Definition: Screenshot.cpp:224
@ IdCaptureFullScreen
Definition: Screenshot.cpp:220
@ IdOneSec
Definition: Screenshot.cpp:191
@ IdCaptureWindowPlus
Definition: Screenshot.cpp:219
@ IdToggleBackgroundBlue
Definition: Screenshot.cpp:203
@ IdCaptureScriptables
Definition: Screenshot.cpp:210
@ IdAllDelayedEvents
Definition: Screenshot.cpp:216
@ IdDelayCheckBox
Definition: Screenshot.cpp:201
@ IdCaptureTrackPanel
Definition: Screenshot.cpp:222
@ IdCaptureFullWindow
Definition: Screenshot.cpp:218
@ IdShortTracks
Definition: Screenshot.cpp:197
@ IdMedTracks
Definition: Screenshot.cpp:198
@ IdCaptureFirst
Definition: Screenshot.cpp:206
@ IdCapturePreferences
Definition: Screenshot.cpp:211

Function Documentation

◆ END_EVENT_TABLE()

END_EVENT_TABLE ( )

◆ OpenScreenshotTools()

static void OpenScreenshotTools ( AudacityProject project)
static

Definition at line 134 of file Screenshot.cpp.

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

References mFrame, project, and safenew.

Referenced by anonymous_namespace{Screenshot.cpp}::OnScreenshot().

Here is the caller graph for this function:

Variable Documentation

◆ mFrame