- port to minGw
git-svn-id: http://moon:8086/svn/software/trunk/projects/JaySynth@235 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
+14
-14
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
|
||||
//[Headers] You can add your own extra header files here...
|
||||
#include "param_scale.h"
|
||||
#include "synth/param_scale.h"
|
||||
//[/Headers]
|
||||
|
||||
#include "MidiCC_PopUp.h"
|
||||
@@ -147,12 +147,12 @@ MidiCC_PopUp::MidiCC_PopUp (JaySynthMidiCC *pMidiCC, int paramID, synth_float_t
|
||||
GetMax();
|
||||
restoreTestSlider();
|
||||
|
||||
label_MidiCC_ID->setText(String(pMidiCC->getControllerID(pMidiCC_container)), false);
|
||||
label_parameter_name->setText(name, false);
|
||||
label_MidiCC_ID->setText(String(pMidiCC->getControllerID(pMidiCC_container)), juce::NotificationType::dontSendNotification);
|
||||
label_parameter_name->setText(name, juce::NotificationType::dontSendNotification);
|
||||
|
||||
button_assign_enable->setToggleState(pMidiCC->isAssigned(pMidiCC_container), false);
|
||||
button_move_sliders_enable->setToggleState(pMidiCC->doChangeParameter(pMidiCC_container), false);
|
||||
button_apply_on_patch_init->setToggleState(pMidiCC->doApplyOnPatchInit(pMidiCC_container), false);
|
||||
button_assign_enable->setToggleState(pMidiCC->isAssigned(pMidiCC_container), juce::NotificationType::dontSendNotification);
|
||||
button_move_sliders_enable->setToggleState(pMidiCC->doChangeParameter(pMidiCC_container), juce::NotificationType::dontSendNotification);
|
||||
button_apply_on_patch_init->setToggleState(pMidiCC->doApplyOnPatchInit(pMidiCC_container), juce::NotificationType::dontSendNotification);
|
||||
|
||||
button_assign_enable->setTriggeredOnMouseDown (true);
|
||||
button_assign_enable->setClickingTogglesState(true);
|
||||
@@ -355,8 +355,8 @@ void MidiCC_PopUp::labelTextChanged (Label* labelThatHasChanged)
|
||||
{
|
||||
//[UserLabelCode_label_MidiCC_ID] -- add your label text handling code here..
|
||||
pMidiCC->setControllerID(pMidiCC_container, label_MidiCC_ID->getText().getIntValue());
|
||||
label_MidiCC_ID->setText(String(pMidiCC->getControllerID(pMidiCC_container)), false);
|
||||
button_midi_learn->setToggleState(false, false);
|
||||
label_MidiCC_ID->setText(String(pMidiCC->getControllerID(pMidiCC_container)), juce::NotificationType::dontSendNotification);
|
||||
button_midi_learn->setToggleState(false, juce::NotificationType::dontSendNotification);
|
||||
lastMidiCCvalue = pSavedMidiCCinfo[pMidiCC->getControllerID(pMidiCC_container)].value;
|
||||
if (isEnabled())
|
||||
{
|
||||
@@ -426,11 +426,11 @@ void MidiCC_PopUp::GetMin()
|
||||
{
|
||||
if (doChangeParameter())
|
||||
{
|
||||
label_control_min->setText(String(pMidiCC->getParamMin(pMidiCC_container)), false);
|
||||
label_control_min->setText(String(pMidiCC->getParamMin(pMidiCC_container)), juce::NotificationType::dontSendNotification);
|
||||
}
|
||||
else
|
||||
{
|
||||
label_control_min->setText(String(pMidiCC->getControlMin(pMidiCC_container)), false);
|
||||
label_control_min->setText(String(pMidiCC->getControlMin(pMidiCC_container)), juce::NotificationType::dontSendNotification);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -438,11 +438,11 @@ void MidiCC_PopUp::GetMax()
|
||||
{
|
||||
if (doChangeParameter())
|
||||
{
|
||||
label_control_max->setText(String(pMidiCC->getParamMax(pMidiCC_container)), false);
|
||||
label_control_max->setText(String(pMidiCC->getParamMax(pMidiCC_container)), juce::NotificationType::dontSendNotification);
|
||||
}
|
||||
else
|
||||
{
|
||||
label_control_max->setText(String(pMidiCC->getControlMax(pMidiCC_container)), false);
|
||||
label_control_max->setText(String(pMidiCC->getControlMax(pMidiCC_container)), juce::NotificationType::dontSendNotification);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -484,7 +484,7 @@ void MidiCC_PopUp::SetMin()
|
||||
break;
|
||||
}
|
||||
|
||||
label_control_min->setText(String(pInfo->pmin), false);
|
||||
label_control_min->setText(String(pInfo->pmin), juce::NotificationType::dontSendNotification);
|
||||
}
|
||||
|
||||
void MidiCC_PopUp::SetMax()
|
||||
@@ -526,7 +526,7 @@ void MidiCC_PopUp::SetMax()
|
||||
break;
|
||||
}
|
||||
|
||||
label_control_max->setText(String(pInfo->pmax), false);
|
||||
label_control_max->setText(String(pInfo->pmax), juce::NotificationType::dontSendNotification);
|
||||
}
|
||||
//[/MiscUserCode]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user