本文整理汇总了C++中doUpdate函数的典型用法代码示例。如果您正苦于以下问题:C++ doUpdate函数的具体用法?C++ doUpdate怎么用?C++ doUpdate使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了doUpdate函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: doUpdate
void Axis::processInteraction( ::scene2D::data::Event::sptr _event)
{
if( _event->getType() == ::scene2D::data::Event::Resize)
{
doUpdate();
}
}
开发者ID:corentindesfarges,项目名称:fw4spl,代码行数:7,代码来源:Axis.cpp
示例2: aboutToBeChanged
void AppLinkProvider::update()
{
emit aboutToBeChanged();
QHash<QString, AppLinkItem*> newItems;
doUpdate(mXdgMenu->xml().documentElement(), newItems);
{
QMutableListIterator<CommandProviderItem*> i(*this);
while (i.hasNext()) {
AppLinkItem *item = static_cast<AppLinkItem*>(i.next());
AppLinkItem *newItem = newItems.take(item->command());
if (newItem)
{
*(item) = *newItem; // Copy by value, not pointer!
delete newItem;
}
else
{
i.remove();
delete item;
}
}
}
{
QHashIterator<QString, AppLinkItem*> i(newItems);
while (i.hasNext())
{
append(i.next().value());
}
}
emit changed();
}
开发者ID:B-Rich,项目名称:razor-qt,代码行数:33,代码来源:providers.cpp
示例3: getOverlay
void OverlayCategory::update()
{
if ( getOverlay().isVisible() )
{
OverlayRendererSPtr renderer = getOverlay().getEngine()->getOverlayCache().getRenderer();
if ( renderer )
{
if ( isPositionChanged() || renderer->isSizeChanged() )
{
doUpdatePosition();
}
if ( isSizeChanged() || renderer->isSizeChanged() )
{
doUpdateSize();
}
if ( isChanged() || isSizeChanged() || renderer->isSizeChanged() )
{
doUpdate();
doUpdateBuffer( renderer->getSize() );
}
m_positionChanged = false;
m_sizeChanged = false;
}
}
}
开发者ID:DragonJoker,项目名称:Castor3D,代码行数:29,代码来源:OverlayCategory.cpp
示例4: setError
int database::dbPrivate::baseRecord::doSave()
{
int err=saveAllRelated();
if(err!=Basic::OK)
{
setError("some related enties couldn't save its value");
return err;
}
if(_hasChanged )
{
if(_id.isNull() || _needNewId )
{
int err=selectFromUnique();
if(err==Basic::NOTINDB)
{
err=doInsert();
return err;
}
}
else
{
return doUpdate();
}
}
return Basic::OK;
}
开发者ID:tavu,项目名称:karakaxa,代码行数:28,代码来源:baseRecord.cpp
示例5: doWork
/* the test: insert some data, update it and finally delete it */
static sword doWork(char op, char *arg, OCISvcCtx *svcCtx, OCIStmt *stmthp, OCIError *errhp, test_req_t *resp) {
sword status = OCI_SUCCESS;
int empno;
btlogger_debug( "TxLog doWork op=%c arg=%s", op, arg);
empno = (*arg ? atoi(arg) : 8000);
(resp->data)[0] = 0;
if (op == '0') {
status = doInsert(svcCtx, stmthp, errhp, empno);
} else if (op == '1') {
int rcnt = 0; // no of matching records
status = doSelect(svcCtx, stmthp, errhp, empno, &rcnt);
btlogger_snprintf(resp->data, sizeof (resp->data), "%d", rcnt);
} else if (op == '2') {
status = doUpdate(svcCtx, stmthp, errhp, empno);
} else if (op == '3') {
status = doDelete(svcCtx, stmthp, errhp, empno);
}
if (status != OCI_SUCCESS)
get_error(resp, errhp, status);
return status;
}
开发者ID:ALRubinger,项目名称:jbosstm-quickstart,代码行数:26,代码来源:ora.c
示例6: doUpdate
void VibratoSpeedWidget::setUseProny(bool value)
{
useProny = value;
prevVibratoSpeed = -999;
prevVibratoWidth = -999;
doUpdate();
}
开发者ID:sundyCoder,项目名称:tartini1.3.0,代码行数:7,代码来源:vibratospeedwidget.cpp
示例7: SLOT
// == Widget UpdateRoutines
void DeviceWidget::UpdateDevice(bool ismounted){
//This is the full device update routine - usually only needs to be run on init (except for CD devices)
isMounted = ismounted; //save this for later
quickupdates = false;
QTimer::singleShot(0,this, SLOT(doUpdate())); //allow the main process to continue on
}
开发者ID:rofltech,项目名称:pcbsd,代码行数:8,代码来源:DeviceWidget.cpp
示例8: gapPhrase
/** Score due to flip. Again, left and right refer to order on the <emph>target</emph> side. */
void DiscriminativeLMBigramFeatureFunction::doFlipUpdate(const TranslationOption* leftOption,const TranslationOption* rightOption,
const TargetGap& leftGap, const TargetGap& rightGap, FVector& scores)
{
if (leftGap.segment.GetEndPos()+1 == rightGap.segment.GetStartPos()) {
//contiguous
Phrase gapPhrase(leftOption->GetTargetPhrase());
gapPhrase.Append(rightOption->GetTargetPhrase());
TargetGap gap(leftGap.leftHypo, rightGap.rightHypo,
WordsRange(leftGap.segment.GetStartPos(), rightGap.segment.GetEndPos()));
doUpdate(gapPhrase,gap,scores);
} else {
//discontiguous
doUpdate(leftOption->GetTargetPhrase(), leftGap,scores);
doUpdate(rightOption->GetTargetPhrase(), rightGap,scores);
}
}
开发者ID:bhaddow,项目名称:gibbler,代码行数:17,代码来源:DiscriminativeLMFeature.cpp
示例9: throw
void Axis::doReceive( ::fwServices::ObjectMsg::csptr _msg) throw( ::fwTools::Failed)
{
if( _msg->hasEvent( ::scene2D::data::ViewportMsg::VALUE_IS_MODIFIED) )
{
doUpdate();
}
}
开发者ID:corentindesfarges,项目名称:fw4spl,代码行数:7,代码来源:Axis.cpp
示例10: m_externalUpdateListener
LocalUpdateHandler::LocalUpdateHandler(UpdateListener *externalUpdateListener,
LogWriter *log)
: m_externalUpdateListener(externalUpdateListener),
m_fullUpdateRequested(false)
{
// FIXME: Maybe the UpdateKeeper constructor can be empty?
m_updateKeeper = new UpdateKeeper();
m_screenDriver = ScreenDriverFactory::createScreenDriver(m_updateKeeper,
this,
&m_backupFrameBuffer,
&m_fbLocMut, log);
m_updateKeeper->setBorderRect(&m_screenDriver->getScreenDimension().getRect());
m_mouseDetector = new MouseDetector(m_updateKeeper, this, log);
m_mouseShapeDetector = new MouseShapeDetector(m_updateKeeper, this,
&m_mouseGrabber,
&m_mouseGrabLocMut,
log);
m_updateFilter = new UpdateFilter(m_screenDriver,
&m_backupFrameBuffer,
&m_fbLocMut, log);
executeDetectors();
// Force first update with full screen grab
m_absoluteRect = m_screenDriver->getScreenBuffer()->getDimension().getRect();
m_updateKeeper->addChangedRect(&m_absoluteRect);
doUpdate();
}
开发者ID:sim0629,项目名称:tightvnc,代码行数:29,代码来源:LocalUpdateHandler.cpp
示例11: visibleRectChangedSlot
void TabView::visibleRectChangedSlot(TabWidget* tw)
{
if (0) qDebug("%s: %svisible !",
tw->name(), tw->hasVisibleRect() ? "":"un");
if (tw->hasVisibleRect()) doUpdate(0);
}
开发者ID:serghei,项目名称:kde-kdesdk,代码行数:7,代码来源:tabview.cpp
示例12: isValid
Json::Value PathRequest::doCreate (Ledger::ref lrLedger, RippleLineCache::ref& cache,
const Json::Value& value, bool& valid)
{
Json::Value status;
if (parseJson (value, true) != PFR_PJ_INVALID)
{
bValid = isValid (cache);
if (bValid)
status = doUpdate (cache, true);
else
status = jvStatus;
}
else
{
bValid = false;
status = jvStatus;
}
if (m_journal.debug)
{
if (bValid)
{
m_journal.debug << iIdentifier << " valid: " << raSrcAccount.humanAccountID ();
m_journal.debug << iIdentifier << " Deliver: " << saDstAmount.getFullText ();
}
else
m_journal.debug << iIdentifier << " invalid";
}
valid = bValid;
return status;
}
开发者ID:RagnarDanneskjold,项目名称:rippled,代码行数:35,代码来源:PathRequest.cpp
示例13: m_externalUpdateListener
UpdateHandlerImpl::UpdateHandlerImpl(UpdateListener *externalUpdateListener, ScreenDriverFactory *scrDriverFactory,
LogWriter *log)
: m_externalUpdateListener(externalUpdateListener),
m_fullUpdateRequested(false),
m_log(log)
{
m_screenDriver = scrDriverFactory->createScreenDriver(&m_updateKeeper,
this,
&m_backupFrameBuffer,
&m_fbLocMut, log);
// At this point the screen driver must contain valid screen properties.
m_backupFrameBuffer.assignProperties(m_screenDriver->getScreenBuffer());
m_updateKeeper.setBorderRect(&m_screenDriver->getScreenDimension().getRect());
m_updateFilter = new UpdateFilter(m_screenDriver,
&m_backupFrameBuffer,
&m_fbLocMut, log);
// At this point all common resources will be covered the mutex for changes.
m_screenDriver->executeDetection();
// Force first update with full screen grab
m_absoluteRect = m_backupFrameBuffer.getDimension().getRect();
m_updateKeeper.addChangedRect(&m_absoluteRect);
doUpdate();
}
开发者ID:heroyin,项目名称:qmlvncviewer,代码行数:25,代码来源:UpdateHandlerImpl.cpp
示例14: doUpdate
void IRCDDBApp::msgChannel (IRCMessage * m)
{
if (m->getPrefixNick().StartsWith(wxT("s-")) && (m->numParams >= 2)) // server msg
{
doUpdate(m->params[1]);
}
}
开发者ID:BackupTheBerlios,项目名称:opendv-svn,代码行数:7,代码来源:IRCDDBApp.cpp
示例15: QObject
KbMode::KbMode(Kb* parent, const KeyMap& keyMap, const KbMode& other) :
QObject(parent),
_name(other._name), _id(other._id),
_light(new KbLight(this, keyMap, *other._light)), _bind(new KbBind(this, parent, keyMap, *other._bind)), _perf(new KbPerf(this, *other._perf)),
_needsSave(true)
{
connect(_light, SIGNAL(updated()), this, SLOT(doUpdate()));
}
开发者ID:GigabyteProductions,项目名称:ckb,代码行数:8,代码来源:kbmode.cpp
示例16: doUpdate
void Entity::update(QueuedScene* qscene, Plane::Side side) {
m_cullSide = side;
doUpdate(qscene);
doCalculateLod(qscene);
if (!m_viewDistCulled && !m_queryCulled && m_world)
m_visFrameId = m_world->getVisFrameId();
}
开发者ID:CharlieCraft,项目名称:axonengine,代码行数:8,代码来源:entity.cpp
示例17: doGameLogic
void inv::GameState::update(float dt) {
doGameLogic(dt);
doUpdate(dt);
doCollisions();
doRemoval();
for(Entity* e : pushQueue) entities.push_back(e);
pushQueue.clear();
}
开发者ID:Koutyboy,项目名称:Invaders,代码行数:8,代码来源:GameState.cpp
示例18: doUpdate
void UpdateHandlerImpl::onUpdate()
{
UpdateContainer updCont;
m_updateKeeper.getUpdateContainer(&updCont);
if (!updCont.isEmpty()) {
doUpdate();
}
}
开发者ID:heroyin,项目名称:qmlvncviewer,代码行数:8,代码来源:UpdateHandlerImpl.cpp
示例19: aboutToBeChanged
void AppLinkProvider::update()
{
emit aboutToBeChanged();
QHash<QString, AppLinkItem*> newItems;
#ifdef HAVE_MENU_CACHE
// libmenu-cache is available, use it to get cached app list
GSList* apps = menu_cache_list_all_apps(mMenuCache);
for(GSList* l = apps; l; l = l->next)
{
MenuCacheApp* app = MENU_CACHE_APP(l->data);
AppLinkItem *item = new AppLinkItem(app);
AppLinkItem *prevItem = newItems[item->command()];
if(prevItem)
delete prevItem; // delete previous item;
newItems.insert(item->command(), item);
menu_cache_item_unref(MENU_CACHE_ITEM(app));
}
g_slist_free(apps);
#else
// use libqtxdg XdgMenu to get installed apps
doUpdate(mXdgMenu->xml().documentElement(), newItems);
#endif
{
QMutableListIterator<CommandProviderItem*> i(*this);
while (i.hasNext()) {
AppLinkItem *item = static_cast<AppLinkItem*>(i.next());
AppLinkItem *newItem = newItems.take(item->command());
if (newItem)
{
*(item) = *newItem; // Copy by value, not pointer!
// After the item is copied, the original "updateIcon" call queued
// on the newItem object is never called since the object iss going to
// be deleted. Hence we need to call it on the copied item manually.
// Otherwise the copied item will have no icon.
// FIXME: this is a dirty hack and it should be made cleaner later.
if(item->icon().isNull())
QMetaObject::invokeMethod(item, "updateIcon", Qt::QueuedConnection);
delete newItem;
}
else
{
i.remove();
delete item;
}
}
}
{
QHashIterator<QString, AppLinkItem*> i(newItems);
while (i.hasNext())
{
append(i.next().value());
}
}
emit changed();
}
开发者ID:ThomasVie,项目名称:lxqt-runner,代码行数:58,代码来源:providers.cpp
示例20: doUpdate
void TEditor::unlock()
{
if( lockCount > 0 )
{
lockCount--;
if( lockCount == 0 )
doUpdate();
}
}
开发者ID:WiLLStenico,项目名称:TestesEOutrasBrincadeiras,代码行数:9,代码来源:teditor2.cpp
注:本文中的doUpdate函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论