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

Constructor & Destructor Documentation

◆ MusicalInstrument()

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

Definition at line 778 of file MixerBoard.cpp.

779{
780 mBitmap = std::move(pBitmap);
781
782 int nUnderscoreIndex;
783 wxString strFilename = strXPMfilename;
784 strFilename.MakeLower(); // Make sure, so we don't have to do case insensitive comparison.
785 wxString strKeyword;
786 while ((nUnderscoreIndex = strFilename.Find(wxT('_'))) != -1)
787 {
788 strKeyword = strFilename.Left(nUnderscoreIndex);
789 mKeywords.push_back(strKeyword);
790 strFilename = strFilename.Mid(nUnderscoreIndex + 1);
791 }
792 if (!strFilename.empty()) // Skip trailing underscores.
793 mKeywords.push_back(strFilename); // Add the last one.
794}
wxT("CloseDown"))
std::unique_ptr< wxBitmap > mBitmap
Definition: MixerBoard.h:155
wxArrayString mKeywords
Definition: MixerBoard.h:156

References mBitmap, mKeywords, and wxT().

Here is the call graph for this function:

◆ ~MusicalInstrument()

MusicalInstrument::~MusicalInstrument ( )
virtual

Definition at line 796 of file MixerBoard.cpp.

797{
798 mKeywords.clear();
799}

References mKeywords.

Member Data Documentation

◆ mBitmap

std::unique_ptr<wxBitmap> MusicalInstrument::mBitmap

Definition at line 155 of file MixerBoard.h.

Referenced by MusicalInstrument().

◆ mKeywords

wxArrayString MusicalInstrument::mKeywords

Definition at line 156 of file MixerBoard.h.

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


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