本文整理汇总了C++中PropertyPtr::getType方法的典型用法代码示例。如果您正苦于以下问题:C++ PropertyPtr::getType方法的具体用法?C++ PropertyPtr::getType怎么用?C++ PropertyPtr::getType使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PropertyPtr
的用法示例。
在下文中一共展示了PropertyPtr::getType方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: InitialiseProperty
void PropertyPanelControl::InitialiseProperty(PropertyPtr _property, int& _height)
{
std::string type = _property->getType()->getType();
PropertyControl* control = nullptr;
for (VectorPairControl::iterator child = mPropertyControls.begin(); child != mPropertyControls.end(); child ++)
{
if ((*child).first == type && !(*child).second->getRoot()->getVisible())
{
control = (*child).second;
control->getRoot()->setVisible(true);
break;
}
}
if (control == nullptr)
{
control = components::FactoryManager::GetInstance().CreateItem<PropertyControl>(_property->getType()->getType());
if (control != nullptr)
{
control->Initialise(this, mScrollView, "");
mPropertyControls.push_back(std::make_pair(_property->getType()->getType(), control));
}
}
if (control != nullptr)
{
control->setProperty(_property);
control->getRoot()->setPosition(0, _height);
_height += control->getRoot()->getHeight() + mDistance;
}
}
示例2: notifyChangeProperty
void GroupTextureController::notifyChangeProperty(PropertyPtr _sender)
{
if (!mActivated || !PropertyUtility::isDataSelected(_sender->getOwner()))
return;
if (_sender->getOwner()->getType()->getName() == "Group")
{
if (_sender->getType()->getName() == "Texture")
mControl->setTextureValue(_sender->getValue());
else if (_sender->getType()->getName() == "Size")
updateCoords(_sender->getValue());
}
}
示例3: notifyChangeProperty
void FontTextureController::notifyChangeProperty(PropertyPtr _sender)
{
if (!mActivated || !PropertyUtility::isDataSelected(_sender->getOwner()))
return;
if (_sender->getOwner()->getType()->getName() == "Font")
{
if (_sender->getType()->getName() == "FontName")
updateTexture(_sender->getValue());
}
}
示例4: updateProperty
void PropertyBoolControl::updateProperty()
{
PropertyPtr proper = getProperty();
if (proper != nullptr)
{
mComboBox->setEnabled(!proper->getType()->getReadOnly());
size_t index = getComboIndex(proper->getValue());
mComboBox->setIndexSelected(index);
}
else
{
mComboBox->setIndexSelected(MyGUI::ITEM_NONE);
mComboBox->setEnabled(false);
}
}
示例5: getProperty
void PropertyInt2ListControl::updateProperty()
{
PropertyPtr proper = getProperty();
if (proper != nullptr)
{
mList->setEnabled(!proper->getType()->getReadOnly());
std::string value = getValue();
if (value != proper->getValue())
setValue(proper->getValue());
}
else
{
mList->removeAllItems();
mList->setEnabled(false);
}
}
示例6: updateProperty
void PropertyIntControl::updateProperty()
{
PropertyPtr proper = getProperty();
if (proper != nullptr)
{
mEdit->setEnabled(!proper->getType()->getReadOnly());
if (mEdit->getOnlyText() != proper->getValue())
mEdit->setCaption(proper->getValue());
bool validate = isValidate();
setColour(validate);
}
else
{
mEdit->setCaption("");
mEdit->setEnabled(false);
}
}
示例7: updateCaption
void PropertyFontSourceControl::updateCaption()
{
PropertyPtr proper = getProperty();
if (proper != nullptr)
mName->setCaption(proper->getType()->getName());
}