• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ refreshUI函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: runWebSitePrep

void LLFloaterBuyLandUI::startBuyPostConfirm(const std::string& password)
{
	runWebSitePrep(password);
	
	mCanBuy = false;
	mCannotBuyReason = getString("processing");
	refreshUI();
}
开发者ID:Krazy-Bish-Margie,项目名称:Thunderstorm,代码行数:8,代码来源:llfloaterbuyland.cpp


示例2: msg

void LLPanelFriends::setContactGroup(std::string contact_grp)
{
	LLChat msg("Group set to " + contact_grp);
	LLFloaterChat::addChat(msg);
	refreshNames(LLFriendObserver::ADD);
	refreshUI();
	categorizeContacts();
}
开发者ID:IamusNavarathna,项目名称:SingularityViewer,代码行数:8,代码来源:llfloaterfriends.cpp


示例3: refreshUI

// virtual
void LLFloaterBuyLandUI::setMinimized(BOOL minimize)
{
	bool restored = (isMinimized() && !minimize);
	LLFloater::setMinimized(minimize);
	if (restored)
	{
		refreshUI();
	}
}
开发者ID:Avian-IW,项目名称:InWorldz-Viewer,代码行数:10,代码来源:llfloaterbuyland.cpp


示例4: Onglet

void MainWindow::nouvelOnglet(){
    Onglet *newonglet = new Onglet();
    QString nom = "Calc";
    nbonglet++;
    mesonglets->addTab(newonglet,nom.append(QString::number(nbonglet)));
    mesonglets->setCurrentWidget(newonglet);
    Collection_Onglet::GetInstance().ajouterOnglet(newonglet);
    Collection_Onglet::GetInstance().SetActif(mesonglets->currentIndex());
    refreshUI(mesonglets->currentIndex());
}
开发者ID:NicolasBiehler,项目名称:lo21_projet,代码行数:10,代码来源:mainwindow.cpp


示例5: msg

void LLPanelFriends::categorizeContacts()
{
	LLSD contact_groups = gSavedPerAccountSettings.getLLSD("AscentContactGroups");
	std::string group_name = "All";

	LLComboBox* combo = getChild<LLComboBox>("buddy_group_combobox");
	if (combo)
	{
		group_name = combo->getValue().asString();

		if (group_name != "All")
		{
			std::vector<LLScrollListItem*> vFriends = mFriendsList->getAllData(); // all of it.
			for (std::vector<LLScrollListItem*>::iterator itr = vFriends.begin(); itr != vFriends.end(); ++itr)
			{
				BOOL show_entry = false;//contact_groups[group_name].has((*itr)->getUUID().asString());

				S32 count = contact_groups[group_name].size();
				int i;
				for(i = 0; i < count; i++)
				{
					if (contact_groups[group_name][i].asString() == (*itr)->getUUID().asString())
					{
						show_entry = true;
						break;
					}
				}

				if (!show_entry)
				{
					LLChat msg("False: contact_groups['" + group_name + "'].has('" + (*itr)->getUUID().asString() + "');");
					LLFloaterChat::addChat(msg);
					mFriendsList->deleteItems((*itr)->getValue());
				}
				else
				{
					LLChat msg("True: contact_groups['" + group_name + "'].has('" + (*itr)->getUUID().asString() + "');");
					LLFloaterChat::addChat(msg);
				}
			}
		}
		else
		{
			LLChat msg("Group set to all.");
			LLFloaterChat::addChat(msg);
		}

		refreshUI();
	}
	else
	{
		LLChat msg("Null combo.");
		LLFloaterChat::addChat(msg);
	}
}
开发者ID:Kiera,项目名称:Crow,代码行数:55,代码来源:llfloaterfriends.cpp


示例6: refreshUI

//Signaux onglets
void MainWindow::fermerOnglet(int index){
    if(mesonglets->count()>1){
        mesonglets->removeTab(index);
        Collection_Onglet::GetInstance().supprimerOnglet(index);
        Collection_Onglet::GetInstance().SetActif(mesonglets->currentIndex());
        refreshUI(mesonglets->currentIndex());
    }

    else
        QMessageBox::critical(this,tr("Erreur"), tr("Il faut au moins un onglet!"));
}
开发者ID:NicolasBiehler,项目名称:lo21_projet,代码行数:12,代码来源:mainwindow.cpp


示例7: refreshUI

void LogviewDialog::onClearLogfile()
{
    if (remove((char*)Paths::getLogPath().c_str()) != 0)
    {
        QMessageBox::critical(this, "Error", "Unable to delete the log file.");
    }
    else
    {
        refreshUI();
    }
}
开发者ID:gfoudree,项目名称:usbninja,代码行数:11,代码来源:logviewdialogg.cpp


示例8: refreshNames

void LLPanelFriends::filterContacts(const std::string& search_string)
{
    if (search_string.empty())
    {
        refreshNames(LLFriendObserver::ADD, "");
    }
    else
    {
        refreshNames(LLFriendObserver::ADD, search_string);
    }
    refreshUI();
}
开发者ID:kow,项目名称:imprudence,代码行数:12,代码来源:llfloaterfriends.cpp


示例9: adjustFanSpeed

//===================================
// === Main timer loop  === //
void radeon_profile::timerEvent() {
    if (!refreshWhenHidden->isChecked() && this->isHidden()) {

        // even if in tray, keep the fan control active (if enabled)
        if (device.features.pwmAvailable && ui->btn_pwmProfile->isChecked()) {
            device.getTemperature();
            adjustFanSpeed();
        }
        return;
    }

    if (ui->cb_gpuData->isChecked()) {
        refreshGpuData();

        ui->combo_pProfile->setCurrentIndex(ui->combo_pProfile->findText(device.currentPowerProfile));
        if (device.features.pm == globalStuff::DPM)
            ui->combo_pLevel->setCurrentIndex(ui->combo_pLevel->findText(device.currentPowerLevel));

        if (device.features.pwmAvailable && ui->btn_pwmProfile->isChecked())
            adjustFanSpeed();


        // lets say coreClk is essential to get stats (it is disabled in ui anyway when features.clocksAvailable is false)
        if (ui->cb_stats->isChecked() && device.gpuClocksData.coreClk != -1) {
            doTheStats();

            // do the math only when user looking at stats table
            if (ui->tabs_systemInfo->currentIndex() == 3 && ui->mainTabs->currentIndex() == 0)
                updateStatsTable();
        }
        refreshUI();
    }

    if (ui->cb_graphs->isChecked())
        refreshGraphs();

    if (ui->cb_glxInfo->isChecked()) {
        ui->list_glxinfo->clear();
        ui->list_glxinfo->addItems(device.getGLXInfo(ui->combo_gpus->currentText()));
    }
    if (ui->cb_connectors->isChecked()) {
        ui->list_connectors->clear();
        ui->list_connectors->addTopLevelItems(device.getCardConnectors());
        ui->list_connectors->expandToDepth(2);
    }
    if (ui->cb_modParams->isChecked()) {
        ui->list_modInfo->clear();
        ui->list_modInfo->addTopLevelItems(device.getModuleInfo());
    }

    refreshTooltip();
}
开发者ID:Danysan1,项目名称:radeon-profile,代码行数:54,代码来源:radeon_profile.cpp


示例10: refreshUI

void WidgetBacklight::setCurrValue(int num)
{
    if (client)
    {
        QVector<int> vals;
        if (client->getAllBacklighsLevel(vals))
        {
            if (num<vals.size())
            {
                refreshUI(vals[num]);
            }
        }
    }
}
开发者ID:yurkis,项目名称:pcbsd,代码行数:14,代码来源:widgetbacklight.cpp


示例11: childSetCommitCallback

// virtual
BOOL LLPanelFriends::postBuild()
{
	mFriendsList = getChild<LLScrollListCtrl>("friend_list");
	mFriendsList->setMaxSelectable(MAX_FRIEND_SELECT);
	mFriendsList->setMaximumSelectCallback(onMaximumSelect);
	mFriendsList->setCommitOnSelectionChange(TRUE);
	childSetCommitCallback("friend_list", onSelectName, this);
	childSetCommitCallback("buddy_group_combobox", onChangeContactGroup, this);
	childSetDoubleClickCallback("friend_list", onClickIM);

	// <dogmode>
	// Contact search and group system.
	// 09/05/2010 - Charley Levenque
	LLLineEditor* contact = getChild<LLLineEditor>("buddy_search_lineedit");
	if (contact)
	{
		contact->setKeystrokeCallback(&onContactSearchKeystroke);
	}

	getChild<LLTextBox>("s_num")->setValue("0");
	getChild<LLTextBox>("f_num")->setValue(llformat("%d", mFriendsList->getItemCount()));

	U32 changed_mask = LLFriendObserver::ADD | LLFriendObserver::REMOVE | LLFriendObserver::ONLINE;
	refreshNames(changed_mask);

	childSetAction("im_btn", onClickIM, this);
	childSetAction("assign_btn", onClickAssign, this);
	childSetAction("expand_collapse_btn", onClickExpand, this);
	childSetAction("profile_btn", onClickProfile, this);
	childSetAction("offer_teleport_btn", onClickOfferTeleport, this);
	childSetAction("pay_btn", onClickPay, this);
	childSetAction("add_btn", onClickAddFriend, this);
	childSetAction("remove_btn", onClickRemove, this);
	//childSetAction("export_btn", onClickExport, this); Making Dummy View -HgB
	//childSetAction("import_btn", onClickImport, this); Making Dummy View -HgB

	setDefaultBtn("im_btn");

	updateFriends(LLFriendObserver::ADD);
	refreshUI();

	// primary sort = online status, secondary sort = name
	mFriendsList->sortByColumn(std::string("friend_name"), TRUE);
	mFriendsList->sortByColumn(std::string("icon_online_status"), FALSE);

	updateColumns(this);

	return TRUE;
}
开发者ID:Kiera,项目名称:Crow,代码行数:50,代码来源:llfloaterfriends.cpp


示例12: setIcon

// +-----------------------------------------------------------
void fsdk::VolumeButton::setVolume(int iValue)
{
	m_pLabel->setText(QString("%1%").arg(iValue));
	if(iValue == 0)
		setIcon(QIcon(":/icons/audio-muted.png"));
	else if(iValue <= 32)
		setIcon(QIcon(":/icons/audio-min.png"));
	else if(iValue <= 65)
		setIcon(QIcon(":/icons/audio-med.png"));
	else
		setIcon(QIcon(":/icons/audio-max.png"));
	m_pSlider->setValue(iValue);

	refreshUI();
}
开发者ID:luigivieira,项目名称:fun-sdk,代码行数:16,代码来源:volumebutton.cpp


示例13: refreshUI

void LLFloaterSellLandUI::callbackAvatarPick(const uuid_vec_t& ids, const std::vector<LLAvatarName> names)
{	
	LLParcel* parcel = mParcelSelection->getParcel();

	if (names.empty() || ids.empty()) return;
	
	LLUUID id = ids[0];
	parcel->setAuthorizedBuyerID(id);

	mAuthorizedBuyer = ids[0];

	getChild<LLUICtrl>("sell_to_agent")->setValue(names[0].getCompleteName());

	refreshUI();
}
开发者ID:DarkSpyro003,项目名称:DarkSpyros_Viewer,代码行数:15,代码来源:llfloatersellland.cpp


示例14: refreshUI

void LogviewDialog::onClearLogfile()
{
    std::ofstream truncStream;
    truncStream.open(Paths::getLogPath(), std::ios::trunc);

    if (!truncStream.is_open())
    {
        QMessageBox::critical(this, "Error", "Unable to clear the log file.");
    }
    else
    {
        refreshUI();
    }
    truncStream.close();
}
开发者ID:gfoudree,项目名称:usbninja,代码行数:15,代码来源:logviewdialog.cpp


示例15: refreshNames

void LLFloaterFriends::updateFriends(U32 changed_mask)
{
	if (!sInstance) return;
	LLUUID selected_id;
	LLCtrlListInterface *friends_list = sInstance->childGetListInterface("friend_list");
	if (!friends_list) return;
	LLCtrlScrollInterface *friends_scroll = sInstance->childGetScrollInterface("friend_list");
	if (!friends_scroll) return;
	
	// We kill the selection warning, otherwise we'll spam with warning popups
	// if the maximum amount of friends are selected
	mShowMaxSelectWarning = false;

	LLDynamicArray<LLUUID> selected_friends = sInstance->getSelectedIDs();
	if(changed_mask & (LLFriendObserver::ADD | LLFriendObserver::REMOVE | LLFriendObserver::ONLINE))
	{
		refreshNames();
	}
	else if(changed_mask & LLFriendObserver::POWERS)
	{
		--mNumRightsChanged;
		if(mNumRightsChanged > 0)
		{
			mPeriod = RIGHTS_CHANGE_TIMEOUT;	
			mEventTimer.start();
			mEventTimer.reset();
			mAllowRightsChange = FALSE;
		}
		else
		{
			tick();
		}
	}
	if(selected_friends.size() > 0)
	{
		// only non-null if friends was already found. This may fail,
		// but we don't really care here, because refreshUI() will
		// clean up the interface.
		friends_list->setCurrentByID(selected_id);
		for(LLDynamicArray<LLUUID>::iterator itr = selected_friends.begin(); itr != selected_friends.end(); ++itr)
		{
			friends_list->setSelectedByValue(*itr, true);
		}
	}

	refreshUI();
	mShowMaxSelectWarning = true;
}
开发者ID:Boy,项目名称:netbook,代码行数:48,代码来源:llfloaterfriends.cpp


示例16: LLFloater

LLFloaterFriends::LLFloaterFriends() :
	LLFloater(),
	LLEventTimer(1000000),
	mObserver(NULL),
	mShowMaxSelectWarning(TRUE),
	mAllowRightsChange(TRUE),
	mNumRightsChanged(0)
{
	sInstance = this;
	mEventTimer.stop();
	mObserver = new LLLocalFriendsObserver(this);
	LLAvatarTracker::instance().addObserver(mObserver);
	gSavedSettings.setBOOL("ShowFriends", TRUE);
	gUICtrlFactory->buildFloater(this, "floater_friends.xml");
	refreshUI();
}
开发者ID:Boy,项目名称:netbook,代码行数:16,代码来源:llfloaterfriends.cpp


示例17: refreshNames

// virtual
BOOL LLPanelFriends::postBuild()
{
	mFriendsList = getChild<LLScrollListCtrl>("friend_list");
	mFriendsList->setCommitOnSelectionChange(TRUE);
	mFriendsList->setCommitCallback(onSelectName, this);
	//childSetCommitCallback("buddy_group_combobox", onChangeContactGroup, this);
	mFriendsList->setDoubleClickCallback(onClickIM, this);

	// <dogmode>
	// Contact search and group system.
	// 09/05/2010 - Charley Levenque
	LLFilterEditor* contact = getChild<LLFilterEditor>("buddy_search_lineedit");
	if (contact)
	{
		contact->setCommitCallback(boost::bind(&LLPanelFriends::onContactFilterEdit, this, _2));
	}

	getChild<LLTextBox>("s_num")->setValue("0");
	getChild<LLTextBox>("f_num")->setValue(llformat("%d", mFriendsList->getItemCount()));

	U32 changed_mask = LLFriendObserver::ADD | LLFriendObserver::REMOVE | LLFriendObserver::ONLINE;
	refreshNames(changed_mask);

	childSetAction("im_btn", onClickIM, this);
	//childSetAction("assign_btn", onClickAssign, this);
	childSetAction("expand_collapse_btn", onClickExpand, this);
	childSetAction("profile_btn", onClickProfile, this);
	getChild<LLUICtrl>("offer_teleport_btn")->setCommitCallback(boost::bind(static_cast<void(*)(const uuid_vec_t&)>(LLAvatarActions::offerTeleport), boost::bind(&LLScrollListCtrl::getSelectedIDs, mFriendsList)));
	childSetAction("pay_btn", onClickPay, this);
	childSetAction("add_btn", onClickAddFriend, this);
	getChild<LLUICtrl>("remove_btn")->setCommitCallback(boost::bind(LLAvatarActions::removeFriendsDialog, boost::bind(&LLScrollListCtrl::getSelectedIDs, mFriendsList)));
	//childSetAction("export_btn", onClickExport, this); Making Dummy View -HgB
	//childSetAction("import_btn", onClickImport, this); Making Dummy View -HgB

	setDefaultBtn("im_btn");

	updateFriends(LLFriendObserver::ADD);
	refreshUI();

	// primary sort = online status, secondary sort = name
	mFriendsList->sortByColumn(std::string("friend_name"), TRUE);
	mFriendsList->sortByColumn(std::string("icon_online_status"), FALSE);

	updateColumns(this);

	return TRUE;
}
开发者ID:ArxNet,项目名称:SingularityViewer,代码行数:48,代码来源:llfloaterfriends.cpp


示例18: updateParcelInfo

bool LLFloaterSellLandUI::setParcel(LLViewerRegion* region, LLParcelSelectionHandle parcel)
{
	if (!parcel->getParcel())
	{
		return false;
	}

	mRegion = region;
	mParcelSelection = parcel;
	mChoseSellTo = false;


	updateParcelInfo();
	refreshUI();

	return true;
}
开发者ID:DarkSpyro003,项目名称:DarkSpyros_Viewer,代码行数:17,代码来源:llfloatersellland.cpp


示例19: updateParcelInfo

bool LLFloaterSellLandUI::setParcel(LLViewerRegion* region, LLParcelSelectionHandle parcel)
{
	if (!parcel->getParcel()) // || !can_agent_modify_parcel(parcel)) // can_agent_modify_parcel was deprecated by GROUPS
	{
		return false;
	}

	mRegion = region;
	mParcelSelection = parcel;
	mChoseSellTo = false;


	updateParcelInfo();
	refreshUI();

	return true;
}
开发者ID:1234-,项目名称:SingularityViewer,代码行数:17,代码来源:llfloatersellland.cpp


示例20: QDialog

LogviewDialog::LogviewDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::LogviewDialog)
{
    ui->setupUi(this);

    QStringList columnTitles;
    columnTitles << "Date" << "Level" << "Info";
    ui->treeWidget->setHeaderLabels(columnTitles);

    refreshUI();

    QMenu *contextMenu = new QMenu(ui->treeWidget);
    ui->treeWidget->setContextMenuPolicy(Qt::ActionsContextMenu);
    QAction *deleteDrive = new QAction("Clear Log", contextMenu);
    ui->treeWidget->addAction(deleteDrive);

    connect(deleteDrive, SIGNAL(triggered()), this, SLOT(onClearLogfile()));
}
开发者ID:gfoudree,项目名称:usbninja,代码行数:19,代码来源:logviewdialogg.cpp



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ refreshView函数代码示例发布时间:2022-05-30
下一篇:
C++ refreshPixmap函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap