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 151 of file MixerBoard.h.

Constructor & Destructor Documentation

◆ MusicalInstrument()

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

Definition at line 793 of file MixerBoard.cpp.

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

References mBitmap, mKeywords, and wxT().

Here is the call graph for this function:

◆ ~MusicalInstrument()

MusicalInstrument::~MusicalInstrument ( )
virtual

Definition at line 811 of file MixerBoard.cpp.

812{
813 mKeywords.clear();
814}

References mKeywords.

Member Data Documentation

◆ mBitmap

std::unique_ptr<wxBitmap> MusicalInstrument::mBitmap

Definition at line 157 of file MixerBoard.h.

Referenced by MusicalInstrument().

◆ mKeywords

wxArrayString MusicalInstrument::mKeywords

Definition at line 158 of file MixerBoard.h.

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


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