Drawable::Drawable()
{
    setInterceptsMouseClicks (false, false);
    setPaintingIsUnclipped (true);
}
Exemplo n.º 2
0
 UpdateListComponent()
 {
     addChildComponent (&toggle);
     toggle.setWantsKeyboardFocus (false);
     setInterceptsMouseClicks (false, true);
 }
PageStackComponent::PageStackComponent() {
  setInterceptsMouseClicks(false, true);
}
Exemplo n.º 4
0
CaretComponent::CaretComponent (Component* const keyFocusOwner)
    : owner (keyFocusOwner)
{
    setPaintingIsUnclipped (true);
    setInterceptsMouseClicks (false, false);
}
Exemplo n.º 5
0
 TargetGroupHighlight()
 {
     setAlwaysOnTop (true);
     setInterceptsMouseClicks (false, false);
 }
 BehindFrontTabComp (TabbedButtonBar& owner_)
     : owner (owner_)
 {
     setInterceptsMouseClicks (false, false);
 }
Exemplo n.º 7
0
void MLEnvelope::lookAndFeelChanged()
{
	setInterceptsMouseClicks(false, false);
}
 TabAreaBehindFrontButtonComponent (TabbedButtonBar* const owner_)
     : owner (owner_)
 {
     setInterceptsMouseClicks (false, false);
 }
Exemplo n.º 9
0
//==============================================================================
MappingEntryMidi::MappingEntryMidi (MappingsDialog *dlg, int arrayIndex, int cc, bool latch, float lowerBound, float upperBound)
    : ccComboBox (0),
      latchButton (0),
      slider (0),
      rangeLabel (0),
      paramComboBox (0)
{
    addAndMakeVisible (ccComboBox = new ComboBox (L"ccComboBox"));
    ccComboBox->setEditableText (false);
    ccComboBox->setJustificationType (Justification::centredLeft);
    ccComboBox->setTextWhenNothingSelected (String::empty);
    ccComboBox->setTextWhenNoChoicesAvailable (L"(no choices)");
    ccComboBox->addItem (L"0: Bank Select", 1);
    ccComboBox->addItem (L"1: Mod Wheel", 2);
    ccComboBox->addItem (L"2: Breath", 3);
    ccComboBox->addItem (L"3:", 4);
    ccComboBox->addItem (L"4: Foot Pedal", 5);
    ccComboBox->addItem (L"5: Portamento", 6);
    ccComboBox->addItem (L"6: Data Entry", 7);
    ccComboBox->addItem (L"7: Volume", 8);
    ccComboBox->addItem (L"8: Balance", 9);
    ccComboBox->addItem (L"9:", 10);
    ccComboBox->addItem (L"10: Pan", 11);
    ccComboBox->addItem (L"11: Expression", 12);
    ccComboBox->addItem (L"12: Effect Control 1", 13);
    ccComboBox->addItem (L"13: EffectControl 2", 14);
    ccComboBox->addItem (L"14:", 15);
    ccComboBox->addItem (L"15:", 16);
    ccComboBox->addItem (L"16: General Purpose 1", 17);
    ccComboBox->addItem (L"17: General Purpose 2", 18);
    ccComboBox->addItem (L"18: General Purpose 3", 19);
    ccComboBox->addItem (L"19: General Purpose 4", 20);
    ccComboBox->addItem (L"20:", 21);
    ccComboBox->addItem (L"21:", 22);
    ccComboBox->addItem (L"22:", 23);
    ccComboBox->addItem (L"23:", 24);
    ccComboBox->addItem (L"24:", 25);
    ccComboBox->addItem (L"25:", 26);
    ccComboBox->addItem (L"26:", 27);
    ccComboBox->addItem (L"27:", 28);
    ccComboBox->addItem (L"28:", 29);
    ccComboBox->addItem (L"29:", 30);
    ccComboBox->addItem (L"30:", 31);
    ccComboBox->addItem (L"31:", 32);
    ccComboBox->addItem (L"32: Bank Select (fine)", 33);
    ccComboBox->addItem (L"33: Mod Wheel (fine)", 34);
    ccComboBox->addItem (L"34: Breath (fine)", 35);
    ccComboBox->addItem (L"35:", 36);
    ccComboBox->addItem (L"36: Foot Pedal (fine)", 37);
    ccComboBox->addItem (L"37: Portamento (fine)", 38);
    ccComboBox->addItem (L"38: Data Entry (fine)", 39);
    ccComboBox->addItem (L"39: Volume (fine)", 40);
    ccComboBox->addItem (L"40: Balance (fine)", 41);
    ccComboBox->addItem (L"41:", 42);
    ccComboBox->addItem (L"42: Pan (fine)", 43);
    ccComboBox->addItem (L"43: Expression (fine)", 44);
    ccComboBox->addItem (L"44: Effect Control 1 (fine)", 45);
    ccComboBox->addItem (L"45: Effect Control 2 (fine)", 46);
    ccComboBox->addItem (L"46:", 47);
    ccComboBox->addItem (L"47:", 48);
    ccComboBox->addItem (L"48:", 49);
    ccComboBox->addItem (L"49:", 50);
    ccComboBox->addItem (L"50:", 51);
    ccComboBox->addItem (L"51:", 52);
    ccComboBox->addItem (L"52:", 53);
    ccComboBox->addItem (L"53:", 54);
    ccComboBox->addItem (L"54:", 55);
    ccComboBox->addItem (L"55:", 56);
    ccComboBox->addItem (L"56:", 57);
    ccComboBox->addItem (L"57:", 58);
    ccComboBox->addItem (L"58:", 59);
    ccComboBox->addItem (L"59:", 60);
    ccComboBox->addItem (L"60:", 61);
    ccComboBox->addItem (L"61:", 62);
    ccComboBox->addItem (L"62:", 63);
    ccComboBox->addItem (L"63:", 64);
    ccComboBox->addItem (L"64: Hold Pedal", 65);
    ccComboBox->addItem (L"65: Portamento (on/off)", 66);
    ccComboBox->addItem (L"66: Sustenuto Pedal", 67);
    ccComboBox->addItem (L"67: Soft Pedal", 68);
    ccComboBox->addItem (L"68: Legato Pedal", 69);
    ccComboBox->addItem (L"69: Hold 2 Pedal", 70);
    ccComboBox->addItem (L"70: Sound Variation", 71);
    ccComboBox->addItem (L"71: Sound Timbre", 72);
    ccComboBox->addItem (L"72: Sound Release Time", 73);
    ccComboBox->addItem (L"73: Sound Attack Time", 74);
    ccComboBox->addItem (L"74: Sound Brightness", 75);
    ccComboBox->addItem (L"75: Sound Control 6", 76);
    ccComboBox->addItem (L"76: Sound Control 7", 77);
    ccComboBox->addItem (L"77: Sound Control 8", 78);
    ccComboBox->addItem (L"78: Sound Control 9", 79);
    ccComboBox->addItem (L"79: Sound Control 10", 80);
    ccComboBox->addItem (L"80: General Purpose Button 1", 81);
    ccComboBox->addItem (L"81: General Purpose Button 2", 82);
    ccComboBox->addItem (L"82: General Purpose Button 3", 83);
    ccComboBox->addItem (L"83: General Purpose Button 4", 84);
    ccComboBox->addItem (L"84:", 85);
    ccComboBox->addItem (L"85:", 86);
    ccComboBox->addItem (L"86:", 87);
    ccComboBox->addItem (L"87:", 88);
    ccComboBox->addItem (L"88:", 89);
    ccComboBox->addItem (L"89:", 90);
    ccComboBox->addItem (L"90:", 91);
    ccComboBox->addItem (L"91: Effects Level", 92);
    ccComboBox->addItem (L"92: Tremolo Level", 93);
    ccComboBox->addItem (L"93: Chorus Level", 94);
    ccComboBox->addItem (L"94: Celeste Level", 95);
    ccComboBox->addItem (L"95: Phaser Level", 96);
    ccComboBox->addItem (L"96: Data Button Inc", 97);
    ccComboBox->addItem (L"97: Data Button Dec", 98);
    ccComboBox->addItem (L"98: NRPN (fine)", 99);
    ccComboBox->addItem (L"99: NRPN (coarse)", 100);
    ccComboBox->addItem (L"100: RPN (fine)", 101);
    ccComboBox->addItem (L"101: RPN (coarse)", 102);
    ccComboBox->addItem (L"102:", 103);
    ccComboBox->addItem (L"103:", 104);
    ccComboBox->addItem (L"104:", 105);
    ccComboBox->addItem (L"105:", 106);
    ccComboBox->addItem (L"106:", 107);
    ccComboBox->addItem (L"107:", 108);
    ccComboBox->addItem (L"108:", 109);
    ccComboBox->addItem (L"109:", 110);
    ccComboBox->addItem (L"110:", 111);
    ccComboBox->addItem (L"111:", 112);
    ccComboBox->addItem (L"112:", 113);
    ccComboBox->addItem (L"113:", 114);
    ccComboBox->addItem (L"114:", 115);
    ccComboBox->addItem (L"115:", 116);
    ccComboBox->addItem (L"116:", 117);
    ccComboBox->addItem (L"117:", 118);
    ccComboBox->addItem (L"118:", 119);
    ccComboBox->addItem (L"119:", 120);
    ccComboBox->addItem (L"120: All Sound Off", 121);
    ccComboBox->addItem (L"121: All Controllers Off", 122);
    ccComboBox->addItem (L"122: Local Keyboard", 123);
    ccComboBox->addItem (L"123: All Notes Off", 124);
    ccComboBox->addItem (L"124: Omni Mode Off", 125);
    ccComboBox->addItem (L"125: Omni Mode On", 126);
    ccComboBox->addItem (L"126: Mono Operation", 127);
    ccComboBox->addItem (L"127: Poly Operation", 128);
    ccComboBox->addListener (this);

    addAndMakeVisible (latchButton = new ToggleButton (L"latchButton"));
    latchButton->setButtonText (L"Latch CC Value");
    latchButton->addListener (this);

    addAndMakeVisible (slider = new MappingSlider (L"new slider"));
	slider->setMappingSliderStyle(MappingSlider::TwoValueHorizontal);
	slider->setTextBoxStyle(MappingSlider::NoTextBox, true, 0, 0);
    slider->setRange (0, 1, 0);
    slider->setColour (MappingSlider::thumbColourId, Colour (0xff9a9181));
    slider->addListener (this);

    addAndMakeVisible (rangeLabel = new Label (L"rangeLabel",
                                               L"Parameter Range:"));
    rangeLabel->setFont (Font (15.0000f, Font::plain));
    rangeLabel->setJustificationType (Justification::centredLeft);
    rangeLabel->setEditable (false, false, false);
    rangeLabel->setColour (TextEditor::textColourId, Colours::black);
    rangeLabel->setColour (TextEditor::backgroundColourId, Colour (0x0));

    addAndMakeVisible (paramComboBox = new ComboBox (L"paramComboBox"));
    paramComboBox->setEditableText (false);
    paramComboBox->setJustificationType (Justification::centredLeft);
    paramComboBox->setTextWhenNothingSelected (String::empty);
    paramComboBox->setTextWhenNoChoicesAvailable (L"(no choices)");
    paramComboBox->addListener (this);


    //[UserPreSize]

	setInterceptsMouseClicks(false, true);

	mappingsDialog = dlg;
	index = arrayIndex;

	ccComboBox->setSelectedId(cc+1, true);
	latchButton->setToggleState(latch, false);
	slider->setMaxValue(upperBound, false);
	slider->setMinValue(lowerBound, false);

	rangeLabel->setInterceptsMouseClicks(false, true);

	slider->setColour(MappingSlider::thumbColourId,
					  ColourScheme::getInstance().colours[L"Slider Colour"]);

    //[/UserPreSize]

    setSize (728, 400);

    //[Constructor] You can add your own custom stuff here..
    //[/Constructor]
}
Exemplo n.º 10
0
//=============================================================================
ComponentLayoutEditor::ComponentLayoutEditor (ValueTree valueTree)
    :   target (0), widgetData (valueTree), lookAndFeel()
{
    setInterceptsMouseClicks (false, true);
}
Exemplo n.º 11
0
GuiReverb::GuiReverb(MainComponent &ref)
    : mainComponentRef(ref)
{

    addAndMakeVisible(mixSlider = new AlphaRotarySlider((250 * (M_PI / 180)), (470 * (M_PI / 180)), 130));
    mixSlider->setRotaryParameters((250 * (M_PI / 180)), (470 * (M_PI / 180)),true);
    mixSlider->setRange(0.0, 1.0, 0.001);
    mixSlider->addListener(this);
    mixSlider->addMouseListener(this, true);

    addAndMakeVisible(roomSizeSlider = new AlphaRotarySlider((250 * (M_PI / 180)), (470 * (M_PI / 180)), 150));
    roomSizeSlider->setRotaryParameters((250 * (M_PI / 180)), (470 * (M_PI / 180)),true);
    roomSizeSlider->setRange(0, 1.0, 0.001);
    roomSizeSlider->addListener(this);
    roomSizeSlider->addMouseListener(this, true);

    addAndMakeVisible(dampingSlider = new AlphaRotarySlider((250 * (M_PI / 180)), (470 * (M_PI / 180)), 170));
    dampingSlider->setRotaryParameters((250 * (M_PI / 180)), (470 * (M_PI / 180)),true);
    dampingSlider->setRange(0.0, 1.0, 0.001);
    dampingSlider->addListener(this);
    dampingSlider->addMouseListener(this, true);

    addAndMakeVisible(widthSlider = new AlphaRotarySlider((250 * (M_PI / 180)), (470 * (M_PI / 180)), 190));
    widthSlider->setRotaryParameters((250 * (M_PI / 180)), (470 * (M_PI / 180)),true);
    widthSlider->setRange(0.0, 1.0, 0.001);
    widthSlider->addListener(this);
    widthSlider->addMouseListener(this, true);



    addAndMakeVisible(alphaTouchMenu = new ComboBox());
    alphaTouchMenu->addListener(this);
    alphaTouchMenu->addMouseListener(this, true);
    alphaTouchMenu->addItem(translate("Off"), 1);
    alphaTouchMenu->addItem(translate("Mix"), 2);
    alphaTouchMenu->addItem(translate("Room Size"), 3);
    alphaTouchMenu->addItem(translate("Damping"), 4);
    alphaTouchMenu->addItem(translate("Width"), 5);
    alphaTouchMenu->setSelectedId(1, dontSendNotification);

    Image *reverseIcon = new Image(ImageCache::getFromMemory(MainBinaryData::inverticon_png, MainBinaryData::inverticon_pngSize));
    addAndMakeVisible(reverseButton = new ModeButton(reverseIcon));
    reverseButton->setClickingTogglesState(true);
    reverseButton->addListener(this);
    reverseButton->addMouseListener(this, true);

    addAndMakeVisible(intensitySlider = new AlphaRotarySlider((250 * (M_PI / 180)), (470 * (M_PI / 180)), 210));
    intensitySlider->setRotaryParameters((250 * (M_PI / 180)), (470 * (M_PI / 180)),true);
    intensitySlider->setRange(0.0, 1.0, 0.001);
    intensitySlider->setValue(1.0, dontSendNotification);
    intensitySlider->addListener(this);
    intensitySlider->addMouseListener(this, true);

    //---------------parameter label -------------------------------------
    addAndMakeVisible(parameterHoverLabel = new Label("value label", String::empty));
    parameterHoverLabel->setJustificationType(Justification::centred);
    parameterHoverLabel->setFont(Font(11 + AlphaTheme::getInstance()->fontSizeAddition));
    parameterHoverLabel->addMouseListener(this, true);

    setInterceptsMouseClicks(false, true);
}
Exemplo n.º 12
0
 InternalSurfaceComponent (SurfaceComponent* parent_)
     : parent (parent_)
 {
     setInterceptsMouseClicks (false, true);
 }
Exemplo n.º 13
0
 ColourSpaceMarker()
 {
     setInterceptsMouseClicks (false, false);
 }
Exemplo n.º 14
0
 HueSelectorMarker()
 {
     setInterceptsMouseClicks (false, false);
 }
//==============================================================================
FileChooserDialogBox::ContentComponent::ContentComponent()
{
    setInterceptsMouseClicks (false, true);
}