Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
MusicalInstrument Class Reference

#include <MixerBoard.h>

Collaboration diagram for MusicalInstrument:
[legend]

Public Member Functions

 MusicalInstrument (std::unique_ptr< wxBitmap > &&pBitmap, const wxString &strXPMfilename)
 
virtual ~MusicalInstrument ()
 

Public Attributes

std::unique_ptr< wxBitmap > mBitmap
 
wxArrayString mKeywords
 

Detailed Description

Definition at line 153 of file MixerBoard.h.

Constructor & Destructor Documentation

◆ MusicalInstrument()

MusicalInstrument::MusicalInstrument ( std::unique_ptr< wxBitmap > &&  pBitmap,
const wxString &  strXPMfilename 
)

Definition at line 789 of file MixerBoard.cpp.

790{
791 mBitmap = std::move(pBitmap);
792
793 int nUnderscoreIndex;
794 wxString strFilename = strXPMfilename;
795 strFilename.MakeLower(); // Make sure, so we don't have to do case insensitive comparison.
796 wxString strKeyword;
797 while ((nUnderscoreIndex = strFilename.Find(wxT('_'))) != -1)
798 {
799 strKeyword = strFilename.Left(nUnderscoreIndex);
800 mKeywords.push_back(strKeyword);
801 strFilename = strFilename.Mid(nUnderscoreIndex + 1);
802 }
803 if (!strFilename.empty()) // Skip trailing underscores.
804 mKeywords.push_back(strFilename); // Add the last one.
805}
wxT("CloseDown"))
std::unique_ptr< wxBitmap > mBitmap
Definition: MixerBoard.h:159
wxArrayString mKeywords
Definition: MixerBoard.h:160

References mBitmap, mKeywords, and wxT().

Here is the call graph for this function:

◆ ~MusicalInstrument()

MusicalInstrument::~MusicalInstrument ( )
virtual

Definition at line 807 of file MixerBoard.cpp.

808{
809 mKeywords.clear();
810}

References mKeywords.

Member Data Documentation

◆ mBitmap

std::unique_ptr<wxBitmap> MusicalInstrument::mBitmap

Definition at line 159 of file MixerBoard.h.

Referenced by MusicalInstrument().

◆ mKeywords

wxArrayString MusicalInstrument::mKeywords

Definition at line 160 of file MixerBoard.h.

Referenced by MusicalInstrument(), and ~MusicalInstrument().


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