Audacity 3.2.0
Classes | Functions | Variables
anonymous_namespace{ProjectWindow.cpp} Namespace Reference

Classes

struct  Adapter
 
class  ScrollBar
 

Functions

bool IsWindowValid (const ProjectWindow *window)
 

Variables

constexpr int DEFAULT_WINDOW_WIDTH = 1120
 
constexpr int DEFAULT_WINDOW_HEIGHT = 674
 
AttachedWindows::RegisteredFactory sProjectWindowKey
 

Function Documentation

◆ IsWindowValid()

bool anonymous_namespace{ProjectWindow.cpp}::IsWindowValid ( const ProjectWindow window)

Definition at line 447 of file ProjectWindow.cpp.

447{ return window && !window->IsBeingDeleted(); }
bool IsBeingDeleted() const
Definition: ProjectWindow.h:56

References ProjectWindow::IsBeingDeleted().

Referenced by anonymous_namespace{ProjectWindow.cpp}::Adapter::GetHorizontalRange(), anonymous_namespace{ProjectWindow.cpp}::Adapter::GetHorizontalThumbPosition(), anonymous_namespace{ProjectWindow.cpp}::Adapter::GetHorizontalThumbSize(), anonymous_namespace{ProjectWindow.cpp}::Adapter::GetTotalHeight(), anonymous_namespace{ProjectWindow.cpp}::Adapter::GetTrackHeight(), anonymous_namespace{ProjectWindow.cpp}::Adapter::GetVerticalRange(), anonymous_namespace{ProjectWindow.cpp}::Adapter::GetVerticalThumbPosition(), anonymous_namespace{ProjectWindow.cpp}::Adapter::GetVerticalThumbSize(), anonymous_namespace{ProjectWindow.cpp}::Adapter::IsTrackMinimized(), anonymous_namespace{ProjectWindow.cpp}::Adapter::MinimumTrackHeight(), anonymous_namespace{ProjectWindow.cpp}::Adapter::SetChannelHeights(), anonymous_namespace{ProjectWindow.cpp}::Adapter::SetHorizontalScrollbar(), anonymous_namespace{ProjectWindow.cpp}::Adapter::SetHorizontalThumbPosition(), anonymous_namespace{ProjectWindow.cpp}::Adapter::SetMinimized(), anonymous_namespace{ProjectWindow.cpp}::Adapter::SetToDefaultSize(), anonymous_namespace{ProjectWindow.cpp}::Adapter::SetVerticalScrollbar(), anonymous_namespace{ProjectWindow.cpp}::Adapter::SetVerticalThumbPosition(), anonymous_namespace{ProjectWindow.cpp}::Adapter::ShowHorizontalScrollbar(), anonymous_namespace{ProjectWindow.cpp}::Adapter::ShowVerticalScrollbar(), and anonymous_namespace{ProjectWindow.cpp}::Adapter::ViewportSize().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ DEFAULT_WINDOW_HEIGHT

constexpr int anonymous_namespace{ProjectWindow.cpp}::DEFAULT_WINDOW_HEIGHT = 674
constexpr

Definition at line 48 of file ProjectWindow.cpp.

Referenced by GetDefaultWindowRect().

◆ DEFAULT_WINDOW_WIDTH

constexpr int anonymous_namespace{ProjectWindow.cpp}::DEFAULT_WINDOW_WIDTH = 1120
constexpr

Definition at line 46 of file ProjectWindow.cpp.

Referenced by GetDefaultWindowRect().

◆ sProjectWindowKey

AttachedWindows::RegisteredFactory anonymous_namespace{ProjectWindow.cpp}::sProjectWindowKey
Initial value:
{
[]( AudacityProject &parent ) -> wxWeakRef< wxWindow > {
wxRect wndRect;
bool bMaximized = false;
bool bIconized = false;
GetNextWindowPlacement(&wndRect, &bMaximized, &bIconized);
auto pWindow = safenew ProjectWindow(
nullptr, -1,
wxDefaultPosition,
wxSize(wndRect.width, wndRect.height),
parent
);
auto &window = *pWindow;
window.SetPosition(wndRect.GetPosition());
if(bMaximized) {
window.Maximize(true);
}
else if (bIconized) {
}
return pWindow;
}
}
#define safenew
Definition: MemoryX.h:10
void GetNextWindowPlacement(wxRect *nextRect, bool *pMaximized, bool *pIconized)
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:90
A top-level window associated with a project, and handling scrollbars and zooming.
Definition: ProjectWindow.h:36

Definition at line 375 of file ProjectWindow.cpp.

Referenced by ProjectWindow::Find(), and ProjectWindow::Get().