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


C++ LLCheckBoxCtrl::setVisible方法代码示例

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


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

示例1: postBuild

BOOL LLPreviewGesture::postBuild()
{
	LLLineEditor* edit;
	LLComboBox* combo;
	LLButton* btn;
	LLScrollListCtrl* list;
	LLTextBox* text;
	LLCheckBoxCtrl* check;

	edit = getChild<LLLineEditor>("trigger_editor");
	edit->setKeystrokeCallback(onKeystrokeCommit);
	edit->setCallbackUserData(this);
	edit->setCommitCallback(boost::bind(&LLPreviewGesture::onCommitSetDirty,this));
	edit->setCommitOnFocusLost(TRUE);
	edit->setIgnoreTab(TRUE);
	mTriggerEditor = edit;

	text = getChild<LLTextBox>("replace_text");
	text->setEnabled(FALSE);
	mReplaceText = text;

	edit = getChild<LLLineEditor>("replace_editor");
	edit->setEnabled(FALSE);
	edit->setKeystrokeCallback(onKeystrokeCommit);
	edit->setCallbackUserData(this);
	edit->setCommitCallback(boost::bind(&LLPreviewGesture::onCommitSetDirty,this));
	edit->setCommitOnFocusLost(TRUE);

	edit->setIgnoreTab(TRUE);
	mReplaceEditor = edit;

	combo = getChild<LLComboBox>( "modifier_combo");
	combo->setCommitCallback(boost::bind(&LLPreviewGesture::onCommitSetDirty,this));
	mModifierCombo = combo;

	combo = getChild<LLComboBox>( "key_combo");
	combo->setCommitCallback(boost::bind(&LLPreviewGesture::onCommitSetDirty,this));
	mKeyCombo = combo;

	list = getChild<LLScrollListCtrl>("library_list");
	list->setCommitCallback(boost::bind(&LLPreviewGesture::onCommitLibrary,this));
	list->setDoubleClickCallback(boost::bind(&LLPreviewGesture::onClickAdd,this));
	mLibraryList = list;

	btn = getChild<LLButton>( "add_btn");
	btn->setClickedCallback(boost::bind(&LLPreviewGesture::onClickAdd,this));
	btn->setEnabled(FALSE);
	mAddBtn = btn;

	btn = getChild<LLButton>( "up_btn");
	btn->setClickedCallback(boost::bind(&LLPreviewGesture::onClickUp,this));
	btn->setEnabled(FALSE);
	mUpBtn = btn;

	btn = getChild<LLButton>( "down_btn");
	btn->setClickedCallback(boost::bind(&LLPreviewGesture::onClickDown,this));
	btn->setEnabled(FALSE);
	mDownBtn = btn;

	btn = getChild<LLButton>( "delete_btn");
	btn->setClickedCallback(boost::bind(&LLPreviewGesture::onClickDelete,this));
	btn->setEnabled(FALSE);
	mDeleteBtn = btn;

	list = getChild<LLScrollListCtrl>("step_list");
	list->setCommitCallback(boost::bind(&LLPreviewGesture::onCommitStep,this));
	mStepList = list;

	// Options
	text = getChild<LLTextBox>("options_text");
	text->setBorderVisible(TRUE);
	mOptionsText = text;

	combo = getChild<LLComboBox>( "animation_list");
	combo->setVisible(FALSE);
	combo->setCommitCallback(boost::bind(&LLPreviewGesture::onCommitAnimation,this));
	mAnimationCombo = combo;

	LLRadioGroup* group;
	group = getChild<LLRadioGroup>("animation_trigger_type");
	group->setVisible(FALSE);
	group->setCommitCallback(boost::bind(&LLPreviewGesture::onCommitAnimationTrigger,this));
	mAnimationRadio = group;

	combo = getChild<LLComboBox>( "sound_list");
	combo->setVisible(FALSE);
	combo->setCommitCallback(boost::bind(&LLPreviewGesture::onCommitSound,this));
	mSoundCombo = combo;

	edit = getChild<LLLineEditor>("chat_editor");
	edit->setVisible(FALSE);
	edit->setCommitCallback(boost::bind(&LLPreviewGesture::onCommitChat,this));
	//edit->setKeystrokeCallback(onKeystrokeCommit);
	//edit->setCallbackUserData(this);
	edit->setCommitOnFocusLost(TRUE);
	
	edit->setIgnoreTab(TRUE);
	mChatEditor = edit;

	check = getChild<LLCheckBoxCtrl>( "wait_anim_check");
//.........这里部分代码省略.........
开发者ID:Nekrofage,项目名称:SingularityViewer,代码行数:101,代码来源:llpreviewgesture.cpp


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