@@ -29,24 +29,17 @@ enum {
29
29
ID_METRONOME_BEAT_M10,
30
30
};
31
31
32
- const struct GOElementCreator ::ButtonDefinitionEntry
33
- GOMetronome::m_element_types[]
34
- = {
35
- {wxT (" MetronomeOn" ), ID_METRONOME_ON, false , false , false },
36
- {wxT (" MetronomeMeasureP1" ), ID_METRONOME_MEASURE_P1, false , true , false },
37
- {wxT (" MetronomeMeasureM1" ), ID_METRONOME_MEASURE_M1, false , true , false },
38
- {wxT (" MetronomeBpmP1" ), ID_METRONOME_BEAT_P1, false , true , false },
39
- {wxT (" MetronomeBpmM1" ), ID_METRONOME_BEAT_M1, false , true , false },
40
- {wxT (" MetronomeBpmP10" ), ID_METRONOME_BEAT_P10, false , true , false },
41
- {wxT (" MetronomeBpmM10" ), ID_METRONOME_BEAT_M10, false , true , false },
42
- {wxT (" " ), -1 , false , false , false },
32
+ const struct GOElementCreator ::ButtonDefinitionEntry BUTTON_DEFS[] = {
33
+ {wxT (" MetronomeOn" ), ID_METRONOME_ON, false , false , false },
34
+ {wxT (" MetronomeMeasureP1" ), ID_METRONOME_MEASURE_P1, false , true , false },
35
+ {wxT (" MetronomeMeasureM1" ), ID_METRONOME_MEASURE_M1, false , true , false },
36
+ {wxT (" MetronomeBpmP1" ), ID_METRONOME_BEAT_P1, false , true , false },
37
+ {wxT (" MetronomeBpmM1" ), ID_METRONOME_BEAT_M1, false , true , false },
38
+ {wxT (" MetronomeBpmP10" ), ID_METRONOME_BEAT_P10, false , true , false },
39
+ {wxT (" MetronomeBpmM10" ), ID_METRONOME_BEAT_M10, false , true , false },
40
+ {wxT (" " ), -1 , false , false , false },
43
41
};
44
42
45
- const struct GOElementCreator ::ButtonDefinitionEntry *GOMetronome::
46
- GetButtonDefinitionList () {
47
- return m_element_types;
48
- }
49
-
50
43
GOMetronome::GOMetronome (GOOrganController *organController)
51
44
: m_OrganController(organController),
52
45
m_BPM(80 ),
@@ -57,7 +50,7 @@ GOMetronome::GOMetronome(GOOrganController *organController)
57
50
m_MeasureDisplay(*organController),
58
51
m_rank(NULL ),
59
52
m_StopID(0 ) {
60
- CreateButtons (*m_OrganController);
53
+ CreateButtons (*m_OrganController, BUTTON_DEFS );
61
54
62
55
m_buttons[ID_METRONOME_ON]->SetInitialMidiIndex (25 );
63
56
m_buttons[ID_METRONOME_MEASURE_P1]->SetInitialMidiIndex (28 );
0 commit comments