Audacity 3.2.0
Static Public Member Functions | List of all members
FrameStatisticsDialog Class Referencefinal

A dialog that displays information about time needed to paint the TrackPanel. More...

#include <FrameStatisticsDialog.h>

Static Public Member Functions

static void Show (bool show)
 Shows the dialog. More...
 
static void Destroy ()
 Destroys the dialog to prevent Audacity from hanging on exit. More...
 

Detailed Description

A dialog that displays information about time needed to paint the TrackPanel.


Audacity: A Digital Audio Editor

FrameStatisticsDialog.h

Dmitry Vedenko

Definition at line 14 of file FrameStatisticsDialog.h.

Member Function Documentation

◆ Destroy()

void FrameStatisticsDialog::Destroy ( )
static

Destroys the dialog to prevent Audacity from hanging on exit.

Definition at line 168 of file FrameStatisticsDialog.cpp.

169{
170 sDialog.reset();
171}

References anonymous_namespace{FrameStatisticsDialog.cpp}::sDialog.

Referenced by QuitAudacity().

Here is the caller graph for this function:

◆ Show()

void FrameStatisticsDialog::Show ( bool  show)
static

Shows the dialog.

Definition at line 152 of file FrameStatisticsDialog.cpp.

153{
154 if (!show)
155 {
156 if (sDialog != nullptr)
157 sDialog->Show(false);
158
159 return;
160 }
161
162 if (sDialog == nullptr)
163 sDialog.reset(safenew Dialog);
164
165 sDialog->Show(true);
166}
#define safenew
Definition: MemoryX.h:10

References safenew, and anonymous_namespace{FrameStatisticsDialog.cpp}::sDialog.

Referenced by anonymous_namespace{HelpMenus.cpp}::OnFrameStatistics().

Here is the caller graph for this function:

The documentation for this class was generated from the following files: