77 the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
88 and re-saved.
99
10- Created with Projucer version: 6.0.1
10+ Created with Projucer version: 6.0.7
1111
1212 ------------------------------------------------------------------------------
1313
@@ -62,7 +62,7 @@ SeqABIEditor::SeqABIEditor (String abi_name)
6262 TRANS (" Audioseq / Nintendo 64 Music Macro Language\n "
6363 " ABI definition file: /foo/bar.xml" )));
6464 addAndMakeVisible (lblTitle.get ());
65- lblTitle->setFont (juce::Font (15 .00f , juce::Font::plain));
65+ lblTitle->setFont (juce::Font (15 .00f , juce::Font::plain). withTypefaceStyle ( " Regular " ) );
6666 lblTitle->setJustificationType (juce::Justification::centredLeft);
6767 lblTitle->setEditable (false , false , false );
6868 lblTitle->setColour (juce::TextEditor::textColourId, juce::Colours::black);
@@ -111,7 +111,7 @@ SeqABIEditor::SeqABIEditor (String abi_name)
111111 lblCmdNameCmm.reset (new juce::Label (" lblCmdNameCmm" ,
112112 TRANS (" Community:" )));
113113 addAndMakeVisible (lblCmdNameCmm.get ());
114- lblCmdNameCmm->setFont (juce::Font (15 .00f , juce::Font::plain));
114+ lblCmdNameCmm->setFont (juce::Font (15 .00f , juce::Font::plain). withTypefaceStyle ( " Regular " ) );
115115 lblCmdNameCmm->setJustificationType (juce::Justification::centredLeft);
116116 lblCmdNameCmm->setEditable (false , false , false );
117117 lblCmdNameCmm->setColour (juce::TextEditor::textColourId, juce::Colours::black);
@@ -128,7 +128,7 @@ SeqABIEditor::SeqABIEditor (String abi_name)
128128 lblCmdNameCanon.reset (new juce::Label (" lblCmdNameCanon" ,
129129 TRANS (" Canon:" )));
130130 addAndMakeVisible (lblCmdNameCanon.get ());
131- lblCmdNameCanon->setFont (juce::Font (15 .00f , juce::Font::plain));
131+ lblCmdNameCanon->setFont (juce::Font (15 .00f , juce::Font::plain). withTypefaceStyle ( " Regular " ) );
132132 lblCmdNameCanon->setJustificationType (juce::Justification::centredLeft);
133133 lblCmdNameCanon->setEditable (false , false , false );
134134 lblCmdNameCanon->setColour (juce::TextEditor::textColourId, juce::Colours::black);
@@ -139,7 +139,7 @@ SeqABIEditor::SeqABIEditor (String abi_name)
139139 lblCmdNameOld.reset (new juce::Label (" lblCmdNameOld" ,
140140 TRANS (" Canon (Old):" )));
141141 addAndMakeVisible (lblCmdNameOld.get ());
142- lblCmdNameOld->setFont (juce::Font (15 .00f , juce::Font::plain));
142+ lblCmdNameOld->setFont (juce::Font (15 .00f , juce::Font::plain). withTypefaceStyle ( " Regular " ) );
143143 lblCmdNameOld->setJustificationType (juce::Justification::centredLeft);
144144 lblCmdNameOld->setEditable (false , false , false );
145145 lblCmdNameOld->setColour (juce::TextEditor::textColourId, juce::Colours::black);
@@ -186,7 +186,7 @@ SeqABIEditor::SeqABIEditor (String abi_name)
186186 lblCmd.reset (new juce::Label (" lblCmd" ,
187187 TRANS (" Cmd:" )));
188188 addAndMakeVisible (lblCmd.get ());
189- lblCmd->setFont (juce::Font (15 .00f , juce::Font::plain));
189+ lblCmd->setFont (juce::Font (15 .00f , juce::Font::plain). withTypefaceStyle ( " Regular " ) );
190190 lblCmd->setJustificationType (juce::Justification::centredLeft);
191191 lblCmd->setEditable (false , false , false );
192192 lblCmd->setColour (juce::TextEditor::textColourId, juce::Colours::black);
@@ -209,7 +209,7 @@ SeqABIEditor::SeqABIEditor (String abi_name)
209209 lblTo.reset (new juce::Label (" lblTo" ,
210210 TRANS (" to" )));
211211 addAndMakeVisible (lblTo.get ());
212- lblTo->setFont (juce::Font (15 .00f , juce::Font::plain));
212+ lblTo->setFont (juce::Font (15 .00f , juce::Font::plain). withTypefaceStyle ( " Regular " ) );
213213 lblTo->setJustificationType (juce::Justification::centredLeft);
214214 lblTo->setEditable (false , false , false );
215215 lblTo->setColour (juce::TextEditor::textColourId, juce::Colours::black);
@@ -300,7 +300,7 @@ SeqABIEditor::SeqABIEditor (String abi_name)
300300 lblAction.reset (new juce::Label (" lblAction" ,
301301 TRANS (" Action:" )));
302302 addAndMakeVisible (lblAction.get ());
303- lblAction->setFont (juce::Font (15 .00f , juce::Font::plain));
303+ lblAction->setFont (juce::Font (15 .00f , juce::Font::plain). withTypefaceStyle ( " Regular " ) );
304304 lblAction->setJustificationType (juce::Justification::centredLeft);
305305 lblAction->setEditable (false , false , false );
306306 lblAction->setColour (juce::TextEditor::textColourId, juce::Colours::black);
@@ -323,7 +323,7 @@ SeqABIEditor::SeqABIEditor (String abi_name)
323323 lblComments.reset (new juce::Label (" lblComments" ,
324324 TRANS (" Comments:" )));
325325 addAndMakeVisible (lblComments.get ());
326- lblComments->setFont (juce::Font (15 .00f , juce::Font::plain));
326+ lblComments->setFont (juce::Font (15 .00f , juce::Font::plain). withTypefaceStyle ( " Regular " ) );
327327 lblComments->setJustificationType (juce::Justification::centredLeft);
328328 lblComments->setEditable (false , false , false );
329329 lblComments->setColour (juce::TextEditor::textColourId, juce::Colours::black);
@@ -334,7 +334,7 @@ SeqABIEditor::SeqABIEditor (String abi_name)
334334 lblParams.reset (new juce::Label (" lblParams" ,
335335 TRANS (" Params:" )));
336336 addAndMakeVisible (lblParams.get ());
337- lblParams->setFont (juce::Font (15 .00f , juce::Font::plain));
337+ lblParams->setFont (juce::Font (15 .00f , juce::Font::plain). withTypefaceStyle ( " Regular " ) );
338338 lblParams->setJustificationType (juce::Justification::centredLeft);
339339 lblParams->setEditable (false , false , false );
340340 lblParams->setColour (juce::TextEditor::textColourId, juce::Colours::black);
@@ -351,7 +351,7 @@ SeqABIEditor::SeqABIEditor (String abi_name)
351351 lblParamName.reset (new juce::Label (" lblParamName" ,
352352 TRANS (" Name:" )));
353353 addAndMakeVisible (lblParamName.get ());
354- lblParamName->setFont (juce::Font (15 .00f , juce::Font::plain));
354+ lblParamName->setFont (juce::Font (15 .00f , juce::Font::plain). withTypefaceStyle ( " Regular " ) );
355355 lblParamName->setJustificationType (juce::Justification::centredLeft);
356356 lblParamName->setEditable (false , false , false );
357357 lblParamName->setColour (juce::TextEditor::textColourId, juce::Colours::black);
@@ -362,7 +362,7 @@ SeqABIEditor::SeqABIEditor (String abi_name)
362362 lblParamMeaning.reset (new juce::Label (" lblParamMeaning" ,
363363 TRANS (" Meaning:" )));
364364 addAndMakeVisible (lblParamMeaning.get ());
365- lblParamMeaning->setFont (juce::Font (15 .00f , juce::Font::plain));
365+ lblParamMeaning->setFont (juce::Font (15 .00f , juce::Font::plain). withTypefaceStyle ( " Regular " ) );
366366 lblParamMeaning->setJustificationType (juce::Justification::centredLeft);
367367 lblParamMeaning->setEditable (false , false , false );
368368 lblParamMeaning->setColour (juce::TextEditor::textColourId, juce::Colours::black);
@@ -459,13 +459,13 @@ SeqABIEditor::SeqABIEditor (String abi_name)
459459 lblDataLen.reset (new juce::Label (" lblDataLen" ,
460460 TRANS (" (none)" )));
461461 addAndMakeVisible (lblDataLen.get ());
462- lblDataLen->setFont (juce::Font (15 .00f , juce::Font::plain));
462+ lblDataLen->setFont (juce::Font (15 .00f , juce::Font::plain). withTypefaceStyle ( " Regular " ) );
463463 lblDataLen->setJustificationType (juce::Justification::centredLeft);
464464 lblDataLen->setEditable (false , false , false );
465465 lblDataLen->setColour (juce::TextEditor::textColourId, juce::Colours::black);
466466 lblDataLen->setColour (juce::TextEditor::backgroundColourId, juce::Colour (0x00000000 ));
467467
468- lblDataLen->setBounds (360 , 588 , 64 , 24 );
468+ lblDataLen->setBounds (360 , 576 , 64 , 24 );
469469
470470 txtDataLen.reset (new juce::TextEditor (" txtDataLen" ));
471471 addAndMakeVisible (txtDataLen.get ());
@@ -477,7 +477,7 @@ SeqABIEditor::SeqABIEditor (String abi_name)
477477 txtDataLen->setPopupMenuEnabled (true );
478478 txtDataLen->setText (juce::String ());
479479
480- txtDataLen->setBounds (424 , 588 , 32 , 24 );
480+ txtDataLen->setBounds (424 , 576 , 32 , 24 );
481481
482482 btnSave.reset (new juce::TextButton (" btnSave" ));
483483 addAndMakeVisible (btnSave.get ());
@@ -501,7 +501,7 @@ SeqABIEditor::SeqABIEditor (String abi_name)
501501 lblCC.reset (new juce::Label (" lblCC" ,
502502 TRANS (" CC:" )));
503503 addAndMakeVisible (lblCC.get ());
504- lblCC->setFont (juce::Font (15 .00f , juce::Font::plain));
504+ lblCC->setFont (juce::Font (15 .00f , juce::Font::plain). withTypefaceStyle ( " Regular " ) );
505505 lblCC->setJustificationType (juce::Justification::centredLeft);
506506 lblCC->setEditable (false , false , false );
507507 lblCC->setColour (juce::TextEditor::textColourId, juce::Colours::black);
@@ -517,6 +517,14 @@ SeqABIEditor::SeqABIEditor (String abi_name)
517517
518518 btnCCHelp->setBounds (448 , 552 , 22 , 24 );
519519
520+ chkx2.reset (new juce::ToggleButton (" chkx2" ));
521+ addAndMakeVisible (chkx2.get ());
522+ chkx2->setTooltip (TRANS (" CC value is multiplied by 2 to get MML value, because MIDI is 0-127 whereas MML is 0-255." ));
523+ chkx2->setButtonText (TRANS (" x2" ));
524+ chkx2->addListener (this );
525+
526+ chkx2->setBounds (400 , 600 , 72 , 24 );
527+
520528
521529 // [UserPreSize]
522530
@@ -631,6 +639,7 @@ SeqABIEditor::~SeqABIEditor()
631639 txtCC = nullptr ;
632640 lblCC = nullptr ;
633641 btnCCHelp = nullptr ;
642+ chkx2 = nullptr ;
634643
635644
636645 // [Destructor]. You can add your own custom destruction code here..
@@ -932,6 +941,14 @@ void SeqABIEditor::buttonClicked (juce::Button* buttonThatWasClicked)
932941 );
933942 // [/UserButtonCode_btnCCHelp]
934943 }
944+ else if (buttonThatWasClicked == chkx2.get ())
945+ {
946+ // [UserButtonCode_chkx2] -- add your button handler code here..
947+ if (!selparam.isValid ()) return ;
948+ selparam.setProperty (" x2" , chkx2->getToggleState (), nullptr );
949+ needssaving = true ;
950+ // [/UserButtonCode_chkx2]
951+ }
935952
936953 // [UserbuttonClicked_Post]
937954 // [/UserbuttonClicked_Post]
@@ -1131,6 +1148,7 @@ void SeqABIEditor::fillParamInfo(){
11311148 lblDataLen->setText (" (none)" , dontSendNotification);
11321149 txtDataLen->setText (" " , false );
11331150 txtCC->setText (" " , false );
1151+ chkx2->setToggleState (false , dontSendNotification);
11341152 return ;
11351153 }
11361154 txtParamName->setText (selparam.getProperty (" name" , " " ), false );
@@ -1150,6 +1168,7 @@ void SeqABIEditor::fillParamInfo(){
11501168 txtDataLen->setText (datasrc == " offset" || datasrc == " variable" ? " "
11511169 : selparam.getProperty (" datalen" , " " ).toString (), false );
11521170 txtDataLen->setEnabled (datasrc == " fixed" || datasrc == " constant" );
1171+ chkx2->setToggleState ((bool )selparam.getProperty (" x2" , false ), dontSendNotification);
11531172}
11541173
11551174void SeqABIEditor::fillMeaningsBox (String action){
@@ -1390,12 +1409,12 @@ BEGIN_JUCER_METADATA
13901409 virtualName="" explicitFocusOrder="0" pos="96 608 48 24" buttonText="Dn"
13911410 connectedEdges="5" needsCallback="1" radioGroupId="0"/>
13921411 <LABEL name="lblDataLen" id="1e1a075250c48074" memberName="lblDataLen"
1393- virtualName="" explicitFocusOrder="0" pos="360 588 64 24" edTextCol="ff000000"
1412+ virtualName="" explicitFocusOrder="0" pos="360 576 64 24" edTextCol="ff000000"
13941413 edBkgCol="0" labelText="(none)" editableSingleClick="0" editableDoubleClick="0"
13951414 focusDiscardsChanges="0" fontname="Default font" fontsize="15.0"
13961415 kerning="0.0" bold="0" italic="0" justification="33"/>
13971416 <TEXTEDITOR name="txtDataLen" id="7975a2934104f024" memberName="txtDataLen"
1398- virtualName="" explicitFocusOrder="0" pos="424 588 32 24" initialText=""
1417+ virtualName="" explicitFocusOrder="0" pos="424 576 32 24" initialText=""
13991418 multiline="0" retKeyStartsLine="0" readonly="0" scrollbars="1"
14001419 caret="1" popupmenu="1"/>
14011420 <TEXTBUTTON name="btnSave" id="f1826d8815459bef" memberName="btnSave" virtualName=""
@@ -1412,6 +1431,10 @@ BEGIN_JUCER_METADATA
14121431 <TEXTBUTTON name="btnCCHelp" id="d5818054c15cd3a3" memberName="btnCCHelp"
14131432 virtualName="" explicitFocusOrder="0" pos="448 552 22 24" buttonText="?"
14141433 connectedEdges="1" needsCallback="1" radioGroupId="0"/>
1434+ <TOGGLEBUTTON name="chkx2" id="a5451667905d26f3" memberName="chkx2" virtualName=""
1435+ explicitFocusOrder="0" pos="400 600 72 24" tooltip="CC value is multiplied by 2 to get MML value, because MIDI is 0-127 whereas MML is 0-255."
1436+ buttonText="x2" connectedEdges="0" needsCallback="1" radioGroupId="0"
1437+ state="0"/>
14151438</JUCER_COMPONENT>
14161439
14171440END_JUCER_METADATA
0 commit comments