Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
anonymous_namespace{ProjectWindow.cpp}::Adapter Struct Referencefinal
Inheritance diagram for anonymous_namespace{ProjectWindow.cpp}::Adapter:
[legend]
Collaboration diagram for anonymous_namespace{ProjectWindow.cpp}::Adapter:
[legend]

Public Member Functions

 Adapter (ProjectWindow &window)
 
 ~Adapter () override=default
 
std::pair< int, int > ViewportSize () const override
 Width and height in pixels of proper viewport area (excluding scrollbars) More...
 
unsigned MinimumTrackHeight () override
 
bool IsTrackMinimized (const Track &track) override
 
void SetMinimized (Track &track, bool minimized) override
 
int GetTrackHeight (const Track &track) override
 
void SetChannelHeights (Track &track, unsigned height) override
 
int GetTotalHeight (const TrackList &trackList) override
 
int GetHorizontalThumbPosition () const override
 
int GetHorizontalThumbSize () const override
 
int GetHorizontalRange () const override
 
void SetHorizontalThumbPosition (int viewStart) override
 
void SetHorizontalScrollbar (int position, int thumbSize, int range, int pageSize, bool refresh) override
 
void ShowHorizontalScrollbar (bool shown) override
 
int GetVerticalThumbPosition () const override
 
int GetVerticalThumbSize () const override
 
int GetVerticalRange () const override
 
void SetVerticalThumbPosition (int viewStart) override
 
void SetVerticalScrollbar (int position, int thumbSize, int range, int pageSize, bool refresh) override
 
void ShowVerticalScrollbar (bool shown) override
 
void SetToDefaultSize () override
 
- Public Member Functions inherited from ViewportCallbacks
virtual ~ViewportCallbacks ()
 
virtual std::pair< int, int > ViewportSize () const =0
 Width and height in pixels of proper viewport area (excluding scrollbars) More...
 
virtual unsigned MinimumTrackHeight ()=0
 
virtual bool IsTrackMinimized (const Track &track)=0
 
virtual void SetMinimized (Track &track, bool minimized)=0
 
virtual int GetTrackHeight (const Track &track)=0
 
virtual void SetChannelHeights (Track &track, unsigned height)=0
 
virtual int GetTotalHeight (const TrackList &trackList)=0
 
virtual int GetHorizontalThumbPosition () const =0
 
virtual int GetHorizontalThumbSize () const =0
 
virtual int GetHorizontalRange () const =0
 
virtual void SetHorizontalThumbPosition (int viewStart)=0
 
virtual void SetHorizontalScrollbar (int position, int thumbSize, int range, int pageSize, bool refresh)=0
 
virtual void ShowHorizontalScrollbar (bool shown)=0
 
virtual int GetVerticalThumbPosition () const =0
 
virtual int GetVerticalThumbSize () const =0
 
virtual int GetVerticalRange () const =0
 
virtual void SetVerticalThumbPosition (int viewStart)=0
 
virtual void SetVerticalScrollbar (int position, int thumbSize, int range, int pageSize, bool refresh)=0
 
virtual void ShowVerticalScrollbar (bool shown)=0
 
virtual void SetToDefaultSize ()=0
 

Public Attributes

wxWeakRef< ProjectWindowmwWindow
 

Detailed Description

This allows either the ProjectWindow or the AudacityProject to be destroyed first. This object is given to an attached object of the project.

Definition at line 451 of file ProjectWindow.cpp.

Constructor & Destructor Documentation

◆ Adapter()

anonymous_namespace{ProjectWindow.cpp}::Adapter::Adapter ( ProjectWindow window)
inlineexplicit

Definition at line 452 of file ProjectWindow.cpp.

452: mwWindow{ &window } {}

◆ ~Adapter()

anonymous_namespace{ProjectWindow.cpp}::Adapter::~Adapter ( )
overridedefault

Member Function Documentation

◆ GetHorizontalRange()

int anonymous_namespace{ProjectWindow.cpp}::Adapter::GetHorizontalRange ( ) const
inlineoverridevirtual

Implements ViewportCallbacks.

Definition at line 475 of file ProjectWindow.cpp.

476 { return IsWindowValid(mwWindow) ? mwWindow->GetHorizontalRange() : 0; }
bool IsWindowValid(const ProjectWindow *window)

References anonymous_namespace{ProjectWindow.cpp}::IsWindowValid().

Here is the call graph for this function:

◆ GetHorizontalThumbPosition()

int anonymous_namespace{ProjectWindow.cpp}::Adapter::GetHorizontalThumbPosition ( ) const
inlineoverridevirtual

Implements ViewportCallbacks.

Definition at line 471 of file ProjectWindow.cpp.

472 { return IsWindowValid(mwWindow) ? mwWindow->GetHorizontalThumbPosition() : 0; }

References anonymous_namespace{ProjectWindow.cpp}::IsWindowValid().

Here is the call graph for this function:

◆ GetHorizontalThumbSize()

int anonymous_namespace{ProjectWindow.cpp}::Adapter::GetHorizontalThumbSize ( ) const
inlineoverridevirtual

Implements ViewportCallbacks.

Definition at line 473 of file ProjectWindow.cpp.

474 { return IsWindowValid(mwWindow) ? mwWindow->GetHorizontalThumbSize() : 0; }

References anonymous_namespace{ProjectWindow.cpp}::IsWindowValid().

Here is the call graph for this function:

◆ GetTotalHeight()

int anonymous_namespace{ProjectWindow.cpp}::Adapter::GetTotalHeight ( const TrackList trackList)
inlineoverridevirtual

Implements ViewportCallbacks.

Definition at line 468 of file ProjectWindow.cpp.

469 { return IsWindowValid(mwWindow) ? mwWindow->GetTotalHeight(trackList) : 0; }

References anonymous_namespace{ProjectWindow.cpp}::IsWindowValid().

Here is the call graph for this function:

◆ GetTrackHeight()

int anonymous_namespace{ProjectWindow.cpp}::Adapter::GetTrackHeight ( const Track track)
inlineoverridevirtual

Implements ViewportCallbacks.

Definition at line 464 of file ProjectWindow.cpp.

465 { return IsWindowValid(mwWindow) ? mwWindow->GetTrackHeight(track) : 0; }

References anonymous_namespace{ProjectWindow.cpp}::IsWindowValid().

Here is the call graph for this function:

◆ GetVerticalRange()

int anonymous_namespace{ProjectWindow.cpp}::Adapter::GetVerticalRange ( ) const
inlineoverridevirtual

Implements ViewportCallbacks.

Definition at line 498 of file ProjectWindow.cpp.

499 { return IsWindowValid(mwWindow) ? mwWindow->GetVerticalRange() : 0; }

References anonymous_namespace{ProjectWindow.cpp}::IsWindowValid().

Here is the call graph for this function:

◆ GetVerticalThumbPosition()

int anonymous_namespace{ProjectWindow.cpp}::Adapter::GetVerticalThumbPosition ( ) const
inlineoverridevirtual

Implements ViewportCallbacks.

Definition at line 494 of file ProjectWindow.cpp.

495 { return IsWindowValid(mwWindow) ? mwWindow->GetVerticalThumbPosition() : 0; }

References anonymous_namespace{ProjectWindow.cpp}::IsWindowValid().

Here is the call graph for this function:

◆ GetVerticalThumbSize()

int anonymous_namespace{ProjectWindow.cpp}::Adapter::GetVerticalThumbSize ( ) const
inlineoverridevirtual

Implements ViewportCallbacks.

Definition at line 496 of file ProjectWindow.cpp.

497 { return IsWindowValid(mwWindow) ? mwWindow->GetVerticalThumbSize() : 0; }

References anonymous_namespace{ProjectWindow.cpp}::IsWindowValid().

Here is the call graph for this function:

◆ IsTrackMinimized()

bool anonymous_namespace{ProjectWindow.cpp}::Adapter::IsTrackMinimized ( const Track track)
inlineoverridevirtual

Implements ViewportCallbacks.

Definition at line 460 of file ProjectWindow.cpp.

461 { return IsWindowValid(mwWindow) ? mwWindow->IsTrackMinimized(track) : false; }

References anonymous_namespace{ProjectWindow.cpp}::IsWindowValid().

Here is the call graph for this function:

◆ MinimumTrackHeight()

unsigned anonymous_namespace{ProjectWindow.cpp}::Adapter::MinimumTrackHeight ( )
inlineoverridevirtual

Implements ViewportCallbacks.

Definition at line 458 of file ProjectWindow.cpp.

459 { return IsWindowValid(mwWindow) ? mwWindow->MinimumTrackHeight() : 0; }

References anonymous_namespace{ProjectWindow.cpp}::IsWindowValid().

Here is the call graph for this function:

◆ SetChannelHeights()

void anonymous_namespace{ProjectWindow.cpp}::Adapter::SetChannelHeights ( Track track,
unsigned  height 
)
inlineoverridevirtual

Implements ViewportCallbacks.

Definition at line 466 of file ProjectWindow.cpp.

467 { if (IsWindowValid(mwWindow)) mwWindow->SetChannelHeights(track, height); }

References anonymous_namespace{ProjectWindow.cpp}::IsWindowValid().

Here is the call graph for this function:

◆ SetHorizontalScrollbar()

void anonymous_namespace{ProjectWindow.cpp}::Adapter::SetHorizontalScrollbar ( int  position,
int  thumbSize,
int  range,
int  pageSize,
bool  refresh 
)
inlineoverridevirtual

Implements ViewportCallbacks.

Definition at line 481 of file ProjectWindow.cpp.

483 {
485 mwWindow->SetHorizontalScrollbar(
486 position, thumbSize, range, pageSize, refresh);
487 }

References anonymous_namespace{ProjectWindow.cpp}::IsWindowValid().

Here is the call graph for this function:

◆ SetHorizontalThumbPosition()

void anonymous_namespace{ProjectWindow.cpp}::Adapter::SetHorizontalThumbPosition ( int  viewStart)
inlineoverridevirtual

Implements ViewportCallbacks.

Definition at line 477 of file ProjectWindow.cpp.

478 {
479 if (IsWindowValid(mwWindow)) mwWindow->SetHorizontalThumbPosition(viewStart);
480 }

References anonymous_namespace{ProjectWindow.cpp}::IsWindowValid().

Here is the call graph for this function:

◆ SetMinimized()

void anonymous_namespace{ProjectWindow.cpp}::Adapter::SetMinimized ( Track track,
bool  minimized 
)
inlineoverridevirtual

Implements ViewportCallbacks.

Definition at line 462 of file ProjectWindow.cpp.

463 { if (IsWindowValid(mwWindow)) mwWindow->SetMinimized(track, minimized); }

References anonymous_namespace{ProjectWindow.cpp}::IsWindowValid().

Here is the call graph for this function:

◆ SetToDefaultSize()

void anonymous_namespace{ProjectWindow.cpp}::Adapter::SetToDefaultSize ( )
inlineoverridevirtual

Implements ViewportCallbacks.

Definition at line 516 of file ProjectWindow.cpp.

517 {
519 mwWindow->SetToDefaultSize();
520 }

References anonymous_namespace{ProjectWindow.cpp}::IsWindowValid().

Here is the call graph for this function:

◆ SetVerticalScrollbar()

void anonymous_namespace{ProjectWindow.cpp}::Adapter::SetVerticalScrollbar ( int  position,
int  thumbSize,
int  range,
int  pageSize,
bool  refresh 
)
inlineoverridevirtual

Implements ViewportCallbacks.

Definition at line 504 of file ProjectWindow.cpp.

506 {
508 mwWindow->SetVerticalScrollbar(
509 position, thumbSize, range, pageSize, refresh);
510 }

References anonymous_namespace{ProjectWindow.cpp}::IsWindowValid().

Here is the call graph for this function:

◆ SetVerticalThumbPosition()

void anonymous_namespace{ProjectWindow.cpp}::Adapter::SetVerticalThumbPosition ( int  viewStart)
inlineoverridevirtual

Implements ViewportCallbacks.

Definition at line 500 of file ProjectWindow.cpp.

501 {
502 if (IsWindowValid(mwWindow)) mwWindow->SetVerticalThumbPosition(viewStart);
503 }

References anonymous_namespace{ProjectWindow.cpp}::IsWindowValid().

Here is the call graph for this function:

◆ ShowHorizontalScrollbar()

void anonymous_namespace{ProjectWindow.cpp}::Adapter::ShowHorizontalScrollbar ( bool  shown)
inlineoverridevirtual

Implements ViewportCallbacks.

Definition at line 488 of file ProjectWindow.cpp.

489 {
491 mwWindow->ShowHorizontalScrollbar(shown);
492 }

References anonymous_namespace{ProjectWindow.cpp}::IsWindowValid().

Here is the call graph for this function:

◆ ShowVerticalScrollbar()

void anonymous_namespace{ProjectWindow.cpp}::Adapter::ShowVerticalScrollbar ( bool  shown)
inlineoverridevirtual

Implements ViewportCallbacks.

Definition at line 511 of file ProjectWindow.cpp.

512 {
514 mwWindow->ShowVerticalScrollbar(shown);
515 }

References anonymous_namespace{ProjectWindow.cpp}::IsWindowValid().

Here is the call graph for this function:

◆ ViewportSize()

std::pair< int, int > anonymous_namespace{ProjectWindow.cpp}::Adapter::ViewportSize ( ) const
inlineoverridevirtual

Width and height in pixels of proper viewport area (excluding scrollbars)

Implements ViewportCallbacks.

Definition at line 455 of file ProjectWindow.cpp.

456 { return IsWindowValid(mwWindow) ? mwWindow->ViewportSize() : std::pair{ 1, 1 }; }

References anonymous_namespace{ProjectWindow.cpp}::IsWindowValid().

Here is the call graph for this function:

Member Data Documentation

◆ mwWindow

wxWeakRef<ProjectWindow> anonymous_namespace{ProjectWindow.cpp}::Adapter::mwWindow

Definition at line 522 of file ProjectWindow.cpp.


The documentation for this struct was generated from the following file: