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

Classes

struct  Adapter
 
class  ScrollBar
 

Variables

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

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:9
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().