Audacity 3.2.0
Public Member Functions | Private Member Functions | List of all members
ListNavigationPanel Class Reference

#include <ListNavigationPanel.h>

Inheritance diagram for ListNavigationPanel:
[legend]
Collaboration diagram for ListNavigationPanel:
[legend]

Public Member Functions

 ListNavigationPanel ()=default
 
 ListNavigationPanel (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, const wxString &name=wxPanelNameStr)
 
void Create (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, const wxString &name=wxPanelNameStr)
 
- Public Member Functions inherited from ListNavigationEnabled< wxWindow >
 ListNavigationEnabled ()
 
void SetInTabOrder (bool inTabOrder)
 

Private Member Functions

void OnChangeFocus (wxFocusEvent &evt)
 
void OnPaint (wxPaintEvent &evt)
 

Detailed Description

Focusable widget container. Has custom background and focus outline painting.

Definition at line 24 of file ListNavigationPanel.h.

Constructor & Destructor Documentation

◆ ListNavigationPanel() [1/2]

ListNavigationPanel::ListNavigationPanel ( )
default

◆ ListNavigationPanel() [2/2]

ListNavigationPanel::ListNavigationPanel ( wxWindow *  parent,
wxWindowID  id,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
const wxString &  name = wxPanelNameStr 
)

Definition at line 15 of file ListNavigationPanel.cpp.

20{
21 Create(parent, id, pos, size, name);
22}
wxString name
Definition: TagsEditor.cpp:166
void Create(wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, const wxString &name=wxPanelNameStr)

References Create(), name, and size.

Here is the call graph for this function:

Member Function Documentation

◆ Create()

void ListNavigationPanel::Create ( wxWindow *  parent,
wxWindowID  id,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
const wxString &  name = wxPanelNameStr 
)

Definition at line 24 of file ListNavigationPanel.cpp.

29{
30 SetBackgroundStyle(wxBG_STYLE_PAINT);
31 ListNavigationEnabled<wxWindow>::Create(parent, id, pos, size, wxNO_BORDER | wxWANTS_CHARS, name);
32 Bind(wxEVT_PAINT, &ListNavigationPanel::OnPaint, this);
33 Bind(wxEVT_SET_FOCUS, &ListNavigationPanel::OnChangeFocus, this);
34 Bind(wxEVT_KILL_FOCUS, &ListNavigationPanel::OnChangeFocus, this);
35}
Changes default arrow navigation to behave more list- or table-like. Instead of searching focusable i...
void OnPaint(wxPaintEvent &evt)
void OnChangeFocus(wxFocusEvent &evt)

References name, OnChangeFocus(), OnPaint(), and size.

Referenced by ListNavigationPanel().

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

◆ OnChangeFocus()

void ListNavigationPanel::OnChangeFocus ( wxFocusEvent &  evt)
private

Definition at line 37 of file ListNavigationPanel.cpp.

38{
39 Refresh(false);
40}

Referenced by Create().

Here is the caller graph for this function:

◆ OnPaint()

void ListNavigationPanel::OnPaint ( wxPaintEvent &  evt)
private

Definition at line 42 of file ListNavigationPanel.cpp.

43{
44 wxBufferedPaintDC dc(this);
45
46 dc.SetPen(*wxTRANSPARENT_PEN);
47 dc.SetBrush(GetBackgroundColour());
48 dc.Clear();
49
50 if(HasFocus())
51 AColor::DrawFocus(dc, GetClientRect().Deflate(3, 3));
52}
static void DrawFocus(wxDC &dc, wxRect &r)
Definition: AColor.cpp:247

References AColor::DrawFocus().

Referenced by Create().

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

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