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


C++ LLPanelNetwork类代码示例

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


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

示例1: onClickSetDiskCache

// static
void LLPanelNetwork::onClickSetDiskCache(void* user_data)
{
	LLPanelNetwork* self = (LLPanelNetwork*)user_data;

	std::string cur_name(gSavedSettings.getString("CacheLocation"));
	std::string proposed_name(cur_name);
	
	LLDirPicker& picker = LLDirPicker::instance();
	if (! picker.getDir(&proposed_name ) )
	{
		return; //Canceled!
	}

	std::string dir_name = picker.getDirName();
	if (!dir_name.empty() && dir_name != cur_name)
	{
		self->childSetText("disk_cache_location", dir_name);
		LLNotifications::instance().add("CacheWillBeMoved");
		gSavedSettings.setString("NewCacheLocation", dir_name);
	}
	else
	{
		std::string cache_location = gDirUtilp->getCacheDir();
		self->childSetText("disk_cache_location", cache_location);
	}
}
开发者ID:9skunks,项目名称:imprudence,代码行数:27,代码来源:llpanelnetwork.cpp

示例2: onCommitSpeedRezCheckBox

//static
void LLPanelNetwork::onCommitSpeedRezCheckBox(LLUICtrl* ctrl, void* user_data)
{
	LLPanelNetwork* self = (LLPanelNetwork*)user_data;
	if (self)
	{
		self->refresh();
	}
}
开发者ID:9skunks,项目名称:imprudence,代码行数:9,代码来源:llpanelnetwork.cpp

示例3: onCommitPort

// static
void LLPanelNetwork::onCommitPort(LLUICtrl* ctrl, void* data)
{
  LLPanelNetwork* self = (LLPanelNetwork*)data;
  LLCheckBoxCtrl* check = (LLCheckBoxCtrl*)ctrl;

  if (!self || !check) return;
  self->childSetEnabled("connection_port", check->get());
  LLNotifications::instance().add("ChangeConnectionPort");
}
开发者ID:9skunks,项目名称:imprudence,代码行数:10,代码来源:llpanelnetwork.cpp

示例4: onCommitPort

// static
void LLPanelNetwork::onCommitPort(LLUICtrl* ctrl, void* data)
{
  LLPanelNetwork* self = (LLPanelNetwork*)data;
  LLCheckBoxCtrl* check = (LLCheckBoxCtrl*)ctrl;

  if (!self || !check) return;
  self->childSetEnabled("connection_port", check->get());
  gViewerWindow->alertXml("ChangeConnectionPort");
}
开发者ID:Boy,项目名称:netbook,代码行数:10,代码来源:llpanelnetwork.cpp

示例5: onCommitWebProxyEnabled

// static
void LLPanelNetwork::onCommitWebProxyEnabled(LLUICtrl* ctrl, void* data)
{
	LLPanelNetwork* self = (LLPanelNetwork*)data;
	LLCheckBoxCtrl* check = (LLCheckBoxCtrl*)ctrl;

	if (!self || !check) return;
	self->childSetEnabled("web_proxy_editor", check->get());
	self->childSetEnabled("web_proxy_port", check->get());
	self->childSetEnabled("proxy_text_label", check->get());
}
开发者ID:9skunks,项目名称:imprudence,代码行数:11,代码来源:llpanelnetwork.cpp

示例6:

// static
void LLPanelNetwork::onCommitSocks5ProxyEnabled(LLUICtrl* ctrl, void* data)
{
	LLPanelNetwork* self  = (LLPanelNetwork*)data;
	LLCheckBoxCtrl* check = (LLCheckBoxCtrl*)ctrl;

	if (!self || !check) return;

	sSocksSettingsChanged = true;
	
	updateProxyEnabled(self, check->get(), self->childGetValue("socks5_auth"));
}
开发者ID:9skunks,项目名称:imprudence,代码行数:12,代码来源:llpanelnetwork.cpp

示例7: onClickResetDiskCache

// static
void LLPanelNetwork::onClickResetDiskCache(void* user_data)
{
 	LLPanelNetwork* self = (LLPanelNetwork*)user_data;
	if (!gSavedSettings.getString("CacheLocation").empty())
	{
		gSavedSettings.setString("NewCacheLocation", "");
		LLNotifications::instance().add("CacheWillBeMoved");
	}
	std::string cache_location = gDirUtilp->getCacheDir(true);
	self->childSetText("disk_cache_location", cache_location);
}
开发者ID:9skunks,项目名称:imprudence,代码行数:12,代码来源:llpanelnetwork.cpp

示例8: onClickResetCache

// static
void LLPanelNetwork::onClickResetCache(void* user_data)
{
 	LLPanelNetwork* self = (LLPanelNetwork*)user_data;
	if (!gSavedSettings.getString("CacheLocation").empty())
	{
		gSavedSettings.setString("NewCacheLocation", "");
		gViewerWindow->alertXml("CacheWillBeMoved");
	}
	LLString cache_location = gDirUtilp->getCacheDir(true);
	self->childSetText("cache_location", cache_location);
}
开发者ID:Boy,项目名称:netbook,代码行数:12,代码来源:llpanelnetwork.cpp

示例9: onClickSearchDefault

// static
void LLPanelNetwork::onClickSearchDefault(void* user_data)
{
	LLPanelNetwork* self = (LLPanelNetwork*)user_data;
	LLControlVariable* controlp = 
		(gHippoGridManager->getConnectedGrid()->isSecondLife()) 
		? 
		gSavedSettings.getControl("SearchURLQuery")
		:
		gSavedSettings.getControl("SearchURLQueryOpenSim");

	if (controlp)
	{
		self->childSetValue("world_search_editor",controlp->getDefault().asString()) ;
	}
	else
	{
		llwarns << "SearchURLQuery or SearchURLQueryOpenSim missing from settings.xml - thats bad!" << llendl;
	}
}
开发者ID:9skunks,项目名称:imprudence,代码行数:20,代码来源:llpanelnetwork.cpp

示例10: onClickSetSoundCache

// static
void LLPanelNetwork::onClickSetSoundCache(void* user_data)
{
	LLPanelNetwork* self = (LLPanelNetwork*)user_data;

	std::string cur_name(gSavedSettings.getString("Emeraldmm_sndcacheloc"));
	std::string proposed_name(cur_name);
	
	LLDirPicker& picker = LLDirPicker::instance();
	if (! picker.getDir(&proposed_name ) )
	{
		return; //Canceled!
	}

	std::string dir_name = picker.getDirName();
	if (!dir_name.empty() && dir_name != cur_name)
	{
		self->childSetText("sound_cache_location", dir_name);
		gSavedSettings.setString("Emeraldmm_sndcacheloc", dir_name);
	}
	else
	{
		self->childSetText("sound_cache_location",cur_name);
	}
}
开发者ID:mmorciegov,项目名称:emeraldviewer,代码行数:25,代码来源:llpanelnetwork.cpp

示例11: onClickSearchClear

// static
void LLPanelNetwork::onClickSearchClear(void* user_data)
{
	LLPanelNetwork* self = (LLPanelNetwork*)user_data;
	self->childSetValue("world_search_editor","") ;
}
开发者ID:9skunks,项目名称:imprudence,代码行数:6,代码来源:llpanelnetwork.cpp

示例12: onClickResetSoundCache

// static
void LLPanelNetwork::onClickResetSoundCache(void* user_data)
{
	LLPanelNetwork* self = (LLPanelNetwork*)user_data;
 	gSavedSettings.setString("Emeraldmm_sndcacheloc","");
	self->childSetText("sound_cache_location",std::string("None"));
}
开发者ID:mmorciegov,项目名称:emeraldviewer,代码行数:7,代码来源:llpanelnetwork.cpp


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