MCPcopy Create free account
hub / github.com/asb2m10/dexed / ProgramListBox

Method ProgramListBox

Source/ProgramListBox.cpp:26–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24#include "Dexed.h"
25
26ProgramListBox::ProgramListBox(const String name, int numCols) : Component(name) {
27 cols = numCols;
28 rows = 32 / numCols;
29 activePgm = -1;
30 hasContent = false;
31 readOnly = false;
32 programNames.clear();
33
34 for(int i=0;i<32;i++) {
35 labels[i].reset(new ProgramLabel(this, i));
36 addAndMakeVisible(labels[i].get());
37 }
38
39 setTitle(name);
40 setWantsKeyboardFocus(true);
41 addKeyListener(this);
42 setFocusContainerType(FocusContainerType::focusContainer);
43}
44
45void ProgramListBox::resized() {
46 cellWidth = (float) getWidth() / cols;

Callers

nothing calls this directly

Calls 2

resetMethod · 0.80
getMethod · 0.80

Tested by

no test coverage detected