Audacity 3.2.0
|
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...
Public Member Functions | |
ScreenshotBigDialog (wxWindow *parent, wxWindowID id, AudacityProject &project) | |
virtual | ~ScreenshotBigDialog () |
bool | ProcessEvent (wxEvent &event) override |
Public Member Functions inherited from PrefsListener | |
PrefsListener () | |
virtual | ~PrefsListener () |
virtual void | UpdatePrefs ()=0 |
Private Member Functions | |
void | Populate () |
void | PopulateOrExchange (ShuttleGui &S) |
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) |
void | OnMainWindowLarge (wxCommandEvent &event) |
void | OnToggleBackgroundBlue (wxCommandEvent &event) |
void | OnToggleBackgroundWhite (wxCommandEvent &event) |
void | DoCapture (int captureMode) |
void | OnCaptureSomething (wxCommandEvent &event) |
void | TimeZoom (double seconds) |
void | OnOneSec (wxCommandEvent &event) |
void | OnTenSec (wxCommandEvent &event) |
void | OnOneMin (wxCommandEvent &event) |
void | OnFiveMin (wxCommandEvent &event) |
void | OnOneHour (wxCommandEvent &event) |
void | SizeTracks (int h) |
void | OnShortTracks (wxCommandEvent &event) |
void | OnMedTracks (wxCommandEvent &event) |
void | OnTallTracks (wxCommandEvent &event) |
void | UpdatePrefs () override |
std::unique_ptr< ScreenshotCommand > | CreateCommand () |
Private Attributes | |
AudacityProject & | mProject |
wxCheckBox * | mDelayCheckBox |
wxTextCtrl * | mDirectoryTextBox |
wxToggleButton * | mBlue |
wxToggleButton * | mWhite |
wxStatusBar * | mStatus |
std::unique_ptr< ScreenFrameTimer > | mTimer |
std::unique_ptr< ScreenshotCommand > | mCommand |
const CommandContext | mContext |
int | mFirstUnusedId = 0 |
Additional Inherited Members | |
Static Public Member Functions inherited from PrefsListener | |
static void | Broadcast (int id=0) |
Call this static function to notify all PrefsListener objects. More... | |
Protected Member Functions inherited from PrefsListener | |
virtual void | UpdateSelectedPrefs (int id) |
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.
Definition at line 58 of file Screenshot.cpp.
ScreenshotBigDialog::ScreenshotBigDialog | ( | wxWindow * | parent, |
wxWindowID | id, | ||
AudacityProject & | project | ||
) |
Definition at line 270 of file Screenshot.cpp.
References CreateCommand(), mCommand, mDelayCheckBox, mDirectoryTextBox, mStatus, and Populate().
|
virtual |
Definition at line 309 of file Screenshot.cpp.
References mFrame.
|
private |
Definition at line 260 of file Screenshot.cpp.
Referenced by ScreenshotBigDialog().
|
private |
Definition at line 632 of file Screenshot.cpp.
References _, ScreenshotCommand::kBlue, ScreenshotCommand::kNone, ScreenshotCommand::kWhite, mainStatusBarField, mBlue, mCommand, mContext, mDirectoryTextBox, mStatus, mWhite, ExportProgressUI::Show(), and XO().
Referenced by OnCaptureSomething().
|
private |
Definition at line 663 of file Screenshot.cpp.
References DoCapture(), IdCaptureFirst, IdFirstToolbar, ScreenshotCommand::keffects, ScreenshotCommand::kfirsttrack, ScreenshotCommand::kfullscreen, ScreenshotCommand::kfullwindow, ScreenshotCommand::kpreferences, ScreenshotCommand::kruler, ScreenshotCommand::kscriptables, ScreenshotCommand::ksecondtrack, ScreenshotCommand::ktoolbars, ScreenshotCommand::ktrackpanel, ScreenshotCommand::ktracks, ScreenshotCommand::kwindow, ScreenshotCommand::kwindowplus, and ScreenshotCommand::nCaptureWhats.
|
private |
Definition at line 537 of file Screenshot.cpp.
References audacity::BasicSettings::Flush(), gPrefs, mDirectoryTextBox, audacity::BasicSettings::Write(), and wxT().
|
private |
Definition at line 527 of file Screenshot.cpp.
References audacity::BasicSettings::Flush(), gPrefs, mDirectoryTextBox, audacity::BasicSettings::Write(), and wxT().
|
private |
Definition at line 581 of file Screenshot.cpp.
References audacity::BasicSettings::Flush(), gPrefs, mCommand, mDirectoryTextBox, audacity::BasicSettings::Write(), wxT(), and XO().
|
private |
Definition at line 752 of file Screenshot.cpp.
References TimeZoom().
|
private |
Definition at line 547 of file Screenshot.cpp.
References HelpSystem::ShowHelp().
|
private |
Definition at line 627 of file Screenshot.cpp.
References SizeMainWindow().
|
private |
Definition at line 622 of file Screenshot.cpp.
References SizeMainWindow().
|
private |
Definition at line 796 of file Screenshot.cpp.
References SizeTracks().
|
private |
Definition at line 757 of file Screenshot.cpp.
References TimeZoom().
|
private |
Definition at line 747 of file Screenshot.cpp.
References TimeZoom().
|
private |
Definition at line 737 of file Screenshot.cpp.
References TimeZoom().
|
private |
Definition at line 783 of file Screenshot.cpp.
References TrackList::Get(), Viewport::Get(), ChannelView::Get(), mContext, CommandContext::project, project, and Viewport::Redraw().
|
private |
Definition at line 801 of file Screenshot.cpp.
References SizeTracks().
|
private |
Definition at line 742 of file Screenshot.cpp.
References TimeZoom().
|
private |
Definition at line 601 of file Screenshot.cpp.
References mWhite.
|
private |
Definition at line 606 of file Screenshot.cpp.
References mBlue.
|
private |
Definition at line 552 of file Screenshot.cpp.
References IdMainWindowSmall, IdToggleBackgroundBlue, IdToggleBackgroundWhite, mCommand, mDirectoryTextBox, mFirstUnusedId, and mProject.
|
private |
Definition at line 318 of file Screenshot.cpp.
References eIsCreating, PopulateOrExchange(), and S.
Referenced by ScreenshotBigDialog(), and UpdatePrefs().
|
private |
Definition at line 324 of file Screenshot.cpp.
References _, eCloseButton, eHelpButton, ToolManager::ForEach(), ToolManager::Get(), ToolBar::GetLabel(), gPrefs, id, IdCaptureEffects, IdCaptureFirstTrack, IdCaptureFullScreen, IdCaptureFullWindow, IdCapturePreferences, IdCaptureRuler, IdCaptureScriptables, IdCaptureSecondTrack, IdCaptureToolbars, IdCaptureTrackPanel, IdCaptureTracks, IdCaptureWindowContents, IdCaptureWindowPlus, IdDelayCheckBox, IdDirChoose, IdDirectory, IdFirstToolbar, IdFiveMin, IdMainWindowLarge, IdMainWindowSmall, IdMedTracks, IdOneHour, IdOneMin, IdOneSec, IdShortTracks, IdTallTracks, IdTenSec, IdToggleBackgroundBlue, IdToggleBackgroundWhite, mBlue, mDelayCheckBox, mDirectoryTextBox, mFirstUnusedId, mProject, mWhite, audacity::BasicSettings::Read(), RTL_WORKAROUND, S, safenew, TranslatableString::Translation(), wxT(), XO(), and XXO().
Referenced by Populate().
|
override |
Definition at line 498 of file Screenshot.cpp.
References IdAllDelayedEvents, mDelayCheckBox, mTimer, and wxEVT_COMMAND_BUTTON_CLICKED.
Referenced by ScreenFrameTimer::Notify().
|
private |
Definition at line 611 of file Screenshot.cpp.
References GetProjectFrame(), mContext, and CommandContext::project.
Referenced by OnMainWindowLarge(), and OnMainWindowSmall().
|
private |
Definition at line 762 of file Screenshot.cpp.
References TrackList::Get(), Viewport::Get(), ChannelView::Get(), mContext, CommandContext::project, project, Viewport::Redraw(), ChannelView::SetExpandedHeight(), and tracks.
Referenced by OnMedTracks(), and OnTallTracks().
|
private |
Definition at line 726 of file Screenshot.cpp.
References ViewInfo::Get(), Viewport::Get(), GetProjectFrame(), mContext, CommandContext::project, project, and Viewport::Redraw().
Referenced by OnFiveMin(), OnOneHour(), OnOneMin(), OnOneSec(), and OnTenSec().
|
overrideprivatevirtual |
Implements PrefsListener.
Definition at line 806 of file Screenshot.cpp.
References Populate(), and ScreenCaptureFrameTitle.
|
private |
Definition at line 111 of file Screenshot.cpp.
Referenced by DoCapture(), OnToggleBackgroundWhite(), and PopulateOrExchange().
|
private |
Definition at line 117 of file Screenshot.cpp.
Referenced by DoCapture(), OnDirChoose(), OnUIUpdate(), and ScreenshotBigDialog().
|
private |
Definition at line 118 of file Screenshot.cpp.
Referenced by DoCapture(), OnShortTracks(), SizeMainWindow(), SizeTracks(), and TimeZoom().
|
private |
Definition at line 109 of file Screenshot.cpp.
Referenced by PopulateOrExchange(), ProcessEvent(), and ScreenshotBigDialog().
|
private |
Definition at line 110 of file Screenshot.cpp.
Referenced by DoCapture(), OnClose(), OnCloseWindow(), OnDirChoose(), OnUIUpdate(), PopulateOrExchange(), and ScreenshotBigDialog().
|
private |
Definition at line 120 of file Screenshot.cpp.
Referenced by OnUIUpdate(), and PopulateOrExchange().
|
private |
Definition at line 105 of file Screenshot.cpp.
Referenced by OnUIUpdate(), and PopulateOrExchange().
|
private |
Definition at line 113 of file Screenshot.cpp.
Referenced by DoCapture(), and ScreenshotBigDialog().
|
private |
Definition at line 115 of file Screenshot.cpp.
Referenced by ProcessEvent().
|
private |
Definition at line 112 of file Screenshot.cpp.
Referenced by DoCapture(), OnToggleBackgroundBlue(), and PopulateOrExchange().