当前位置: 首页>>代码示例>>C++>>正文


C++ CtrlrModulator::setProperty方法代码示例

本文整理汇总了C++中CtrlrModulator::setProperty方法的典型用法代码示例。如果您正苦于以下问题:C++ CtrlrModulator::setProperty方法的具体用法?C++ CtrlrModulator::setProperty怎么用?C++ CtrlrModulator::setProperty使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CtrlrModulator的用法示例。


在下文中一共展示了CtrlrModulator::setProperty方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: CtrlrComponent

//==============================================================================
CtrlrLCDLabel::CtrlrLCDLabel (CtrlrModulator &owner)
    : CtrlrComponent(owner),
      ctrlrLabel (0)
{
    addAndMakeVisible (ctrlrLabel = new Label ("ctrlrLabel",
                                               "LCD TEST"));
    ctrlrLabel->setFont (Font (16.0000f, Font::plain));
    ctrlrLabel->setJustificationType (Justification::centred);
    ctrlrLabel->setEditable (false, false, false);
    ctrlrLabel->setColour (Label::backgroundColourId, Colour (0x0));
    ctrlrLabel->setColour (Label::textColourId, Colours::black);
    ctrlrLabel->setColour (TextEditor::textColourId, Colours::black);
    ctrlrLabel->setColour (TextEditor::backgroundColourId, Colour (0x0));


    //[UserPreSize]
	setBufferedToImage (true);
	ctrlrLabel->setBufferedToImage (true);
	owner.setProperty (Ids::modulatorIsStatic, true);
	owner.setProperty (Ids::modulatorVstExported, false);

	setProperty (Ids::uiLabelBgColour, "0xff000000");
	setProperty (Ids::uiLabelTextColour, "0xff56c312");
	setProperty (Ids::uiLabelOutline, 0);
	setProperty (Ids::uiLabelOutlineColour, "0x00000000");
	setProperty (Ids::uiLabelJustification, "centred");
	setProperty (Ids::uiLabelFitFont, false);
	setProperty (Ids::uiLCDLabelFont, 5);
	setProperty (Ids::uiLCDLabelFontHeight, 18);
	setProperty (Ids::uiLabelText, "Label text");
	setProperty (Ids::uiLabelDisplaysAllValues, false);
	setProperty (Ids::uiLabelDisplayFormat, "%n(%N) = %v(%h)");
	setProperty (Ids::uiLabelInputHighlightTextColour, "0xffffffff");
	setProperty (Ids::uiLabelInputHighlightColour, "0xff0000ff");
	setProperty (Ids::uiLabelEditOnSingleClick, false);
	setProperty (Ids::uiLabelEditOnDoubleClick, false);
	setProperty (Ids::uiLabelEditFocusDiscardsChanges, true);
	setProperty (Ids::uiLabelInputAllowedChars, "");
	setProperty (Ids::uiLabelInputAllowedChars, "");
	setProperty (Ids::uiLabelInputMaxLength, 1024);
	setProperty (Ids::uiLabelChangedCbk, COMBO_NONE_ITEM);
	componentTree.addListener (this);
    //[/UserPreSize]

    setSize (96, 32);

    //[Constructor] You can add your own custom stuff here..
    //[/Constructor]
}
开发者ID:Srikrishna31,项目名称:ctrlr,代码行数:50,代码来源:CtrlrLCDLabel.cpp

示例2: CtrlrComponent

//==============================================================================
CtrlrToggleButton::CtrlrToggleButton (CtrlrModulator &owner)
    : CtrlrComponent(owner),
      ctrlrButton (0)
{
    addAndMakeVisible (ctrlrButton = new ToggleButton ("ctrlrButton"));
    ctrlrButton->setButtonText ("Button");
    ctrlrButton->addListener (this);


    //[UserPreSize]
	ctrlrButton->setBufferedToImage (true);
	setProperty (Ids::uiButtonTextColourOn, "0xff000000");
	setProperty (Ids::uiToggleButtonFocusOutline, "0x00000000");
	setProperty (Ids::uiToggleButtonText, "Button");
	setProperty (Ids::uiButtonTrueValue, 1);
	setProperty (Ids::uiButtonFalseValue, 0);
	setProperty (Ids::uiButtonColourOff, "0xff0000ff");
	owner.setProperty (Ids::modulatorMax, 1);
	owner.setProperty (Ids::modulatorMin, 0);
    //[/UserPreSize]

    setSize (88, 32);

    //[Constructor] You can add your own custom stuff here..
	//owner.getProcessor().setValueFromGUI (0, true);
    //[/Constructor]
}
开发者ID:alessandrostone,项目名称:ctrlr,代码行数:28,代码来源:CtrlrToggleButton.cpp

示例3: CtrlrComponent

//==============================================================================
CtrlrGroup::CtrlrGroup (CtrlrModulator &owner)
    : CtrlrComponent(owner), content(*this),
      label (0)
{
    addAndMakeVisible (label = new Label ("new label",
                                          "Group Text"));
    label->setFont (Font (14.0000f, Font::bold));
    label->setJustificationType (Justification::centred);
    label->setEditable (false, false, false);
    label->setColour (TextEditor::textColourId, Colours::black);
    label->setColour (TextEditor::backgroundColourId, Colour (0x0));


    //[UserPreSize]
	addAndMakeVisible(&content);
	componentTree.addListener (this);

	owner.setProperty (Ids::modulatorIsStatic, true);
	owner.setProperty (Ids::modulatorVstExported, false);

	setProperty (Ids::uiGroupText, "Group Text");
	setProperty (Ids::uiGroupTextColour, "0xff000000");
	setProperty (Ids::uiGroupOutlineColour1, "0xffa3a3a3");
	setProperty (Ids::uiGroupOutlineColour2, "0xffffffff");
	setProperty (Ids::uiGroupBackgroundColour1, "0xffa3a3a3");
	setProperty (Ids::uiGroupBackgroundColour2, "0xffffffff");
	setProperty (Ids::uiGroupOutlineGradientType, "Vertical");
	setProperty (Ids::uiGroupBackgroundGradientType, 1);
	setProperty (Ids::uiGroupBackgroundImage, "");
	setProperty (Ids::uiGroupBackgroundImageLayout, 36);
	setProperty (Ids::uiGroupBackgroundImageAlpha, 255);
	setProperty (Ids::uiGroupTextPlacement, "top");
	setProperty (Ids::uiGroupTextFont, FONT2STR (Font(14)));
	setProperty (Ids::uiGroupOutlineThickness, 2.0);
	setProperty (Ids::uiGroupOutlineRoundAngle, 8.0);
	setProperty (Ids::uiGroupTextMargin, 0);
	setProperty (Ids::componentLabelVisible, false);

	owner.getModulatorTree().addListener (this);
    //[/UserPreSize]

    setSize (128, 128);

    //[Constructor] You can add your own custom stuff here..
    //[/Constructor]
}
开发者ID:RomanKubiak,项目名称:ctrlr,代码行数:47,代码来源:CtrlrGroup.cpp

示例4: CtrlrModulator

CtrlrModulator *CtrlrPanel::createNewModulator(const Identifier &guiType)
{
	CtrlrModulator *newModulator = nullptr;

	if (CtrlrComponentTypeManager::isStatic(guiType))
	{
		newModulator = new CtrlrModulator (*this);
	}
	else
	{
		newModulator = new CtrlrModulator (*this, owner.getNextVstIndex());
	}

	newModulator->setProperty (Ids::name, getUniqueModulatorName("modulator-1"));
	addModulator (newModulator);

	return (newModulator);
}
开发者ID:noscript,项目名称:ctrlr,代码行数:18,代码来源:CtrlrPanel.cpp

示例5: CtrlrComponent

//==============================================================================
CtrlrTabsComponent::CtrlrTabsComponent (CtrlrModulator &owner)
    : CtrlrComponent(owner), lf(*this),
      ctrlrTabs (0)
{
    addAndMakeVisible (ctrlrTabs = new CtrlrTabsInternal (*this));
    ctrlrTabs->setName (L"ctrlrTabs");


    //[UserPreSize]
	ctrlrTabs->setLookAndFeel (&lf);
	owner.setProperty (Ids::modulatorVstExported, false);

	setProperty (Ids::uiTabsCurrentTabChanged, "");
	setProperty (Ids::uiTabsDepth, 24);
	setProperty (Ids::uiTabsOutlineThickness, 2);
	setProperty (Ids::uiTabsFrontTabOutline, 1.0f);
	setProperty (Ids::uiTabsTabOutline, 0.5f);
	setProperty (Ids::uiTabsIndentThickness, 0);
	setProperty (Ids::uiTabsOrientation, 0);

	setProperty (Ids::uiTabsFrontTabFont, FONT2STR(Font(16)));
	setProperty (Ids::uiTabsTabFont, FONT2STR(Font(16)));

	setProperty (Ids::uiTabsOutlineGlobalColour, "0x00000000");
	setProperty (Ids::uiTabsOutlineGlobalBackgroundColour, "0x67000000");

	setProperty (Ids::uiTabsOutlineTabColour, "0xff303030");
	setProperty (Ids::uiTabsTextTabColour, "0xff909090");
	setProperty (Ids::uiTabsFrontTabOutlineColour, "0xff000000");
	setProperty (Ids::uiTabsFrontTabTextColour, "0xff000000");

	setProperty (Ids::uiTabsAddTab, 0);
	setProperty (Ids::uiTabsRemoveTab, 0);
    //[/UserPreSize]

    setSize (256, 256);


    //[Constructor] You can add your own custom stuff here..
    //[/Constructor]
}
开发者ID:grimtraveller,项目名称:ctrlr,代码行数:42,代码来源:CtrlrTabsComponent.cpp


注:本文中的CtrlrModulator::setProperty方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。