void TWidget::Update() { if (IsVisible() == false) { return; } _update(); _updateChildren(); }
void PackageOptions::_changeCellw() { int cellWidth = SETTINGS_VALUE( cellw ); cellWidth = cellWidth == 30 ? 60 : 30; SETTINGS_SET_VALUE( cellw, cellWidth ); _update(); }
void ParameterFileModel::_updatePriority( const QModelIndex&, const QModelIndex &bottomRight) { // check if filter active and priority changed if (_minPriority > 0 && bottomRight.column() >= 2) { _update(); } }
/** * Sets full speed reverse **/ void DriveTrain::reverse() { // Set speed to -100% and direction to 0 _speed = -100; _dir = 0; // Update _update(); }
LightBird::Configuration::Configuration(LightBird::IConfiguration *configuration) : _c(*configuration) { if (!_instance) _instance = this; _update(); }
//----------------------------------------------------------------------- void Transform::requestUpdate(Transform::Ptr child, bool forceParentUpdate) { // If we're already going to update everything this doesn't matter if (needChildUpdate) { return; } childrenToUpdate.push_back(child); // Request selective update of me, if we didn't do it before if (parent && (!parentNotified || forceParentUpdate)) { //Log("Request Update: " + ThisPtr()->componentParent->GetName()); parent->requestUpdate(ThisPtr(), forceParentUpdate); parentNotified = true ; } // If there isn't a parent, and the needUpdate has hit this Transform // trigger a cascading update. if ( !parent ) { //Log("Hit Root: " + ThisPtr()->componentParent->GetName()); _update(needChildUpdate, needParentUpdate); } }
/** * Sets full speed forward **/ void DriveTrain::forward() { // Set speed to 100% and direction to 0 _speed = 100; _dir = 0; // Update _update(); }
AABB PrimitiveMesh::get_aabb() const { if (pending_request) { _update(); } return aabb; }
profileWidget::profileWidget(ProfileModel *profileModel, QWidget *parent) : profileWidgetUI(parent) { profile_model = profileModel; if (!profile_model) { qDebug() << "ProfileModel is NULL!"; return; } listView->setModel(profile_model); listView->setModelColumn(1); listView->setIconSize(QSize(22, 22)); connect(listView->selectionModel(), SIGNAL(selectionChanged(const QItemSelection&, const QItemSelection&)), this, SLOT(_update())); connect(listView, SIGNAL(doubleClicked(const QModelIndex&)), this, SLOT(mod_profile(const QModelIndex&))); connect(kpushbutton_add, SIGNAL(clicked()), this, SLOT(add_profile())); connect(kpushbutton_rem, SIGNAL(clicked()), this, SLOT(rem_profile())); connect(kpushbutton_mod, SIGNAL(clicked()), this, SLOT(mod_profile())); connect(kpushbutton_copy, SIGNAL(clicked()), this, SLOT(copy_profile())); connect(kpushbutton_load, SIGNAL(clicked()), this, SLOT(load_profiles())); connect(kpushbutton_save, SIGNAL(clicked()), this, SLOT(save_profiles())); connect(kpushbutton_init, SIGNAL(clicked()), this, SLOT(init_profiles())); kpushbutton_add->setIcon(QIcon::fromTheme("list-add")); kpushbutton_rem->setIcon(QIcon::fromTheme("list-remove")); kpushbutton_load->setIcon(QIcon::fromTheme("document-open")); kpushbutton_save->setIcon(QIcon::fromTheme("document-save")); kpushbutton_init->setIcon(QIcon::fromTheme("view-refresh")); _update(); }
/** * Adjust direction by the supplied direction. * * @param dir A direction value between MAX_LEFT (full turn left) and MAX_RIGHT * (full turn right), with 0 being going straight forward. See diagrams * in docs. **/ void DriveTrain::direction(int16_t dir) { // Ignore an invalid direction if(dir<MAX_LEFT || dir>MAX_RIGHT) return; // Set the new direction. _dir = dir; // Update _update(); }
/** * Adjust direction by TURN_STEPs to the right **/ void DriveTrain::right() { // Adjust direction _dir += TURN_STEP; // Stick to limits if (_dir > MAX_RIGHT) _dir = MAX_RIGHT; // Update _update(); }
void Portal::_disconnectAllZoneSpaces() { Parent::_disconnectAllZoneSpaces(); // Update portal state. _update(); }
void SoundStitchingObject::play(bool destroyWhenDone) { getSoundStitching()->play(destroyWhenDone); if (is3d()) { _update(); } }
Array PrimitiveMesh::surface_get_arrays(int p_surface) const { ERR_FAIL_INDEX_V(p_surface, 1, Array()); if (pending_request) { _update(); } return VisualServer::get_singleton()->mesh_surface_get_arrays(mesh, 0); }
int PrimitiveMesh::surface_get_array_index_len(int p_idx) const { ERR_FAIL_INDEX_V(p_idx, 1, -1); if (pending_request) { _update(); } return VisualServer::get_singleton()->mesh_surface_get_array_index_len(mesh, 0); }
uint32_t PrimitiveMesh::surface_get_format(int p_idx) const { ERR_FAIL_INDEX_V(p_idx, 1, 0); if (pending_request) { _update(); } return VisualServer::get_singleton()->mesh_surface_get_format(mesh, 0); }
Array PrimitiveMesh::surface_get_blend_shape_arrays(int p_surface) const { ERR_FAIL_INDEX_V(p_surface, 1, Array()); if (pending_request) { _update(); } return Array(); }
void Portal::disconnectZoneSpace( SceneZoneSpace* zoneSpace ) { Parent::disconnectZoneSpace( zoneSpace ); // Update portal state. _update(); }
typename LRUCacheH4<K, V>::Val * LRUCacheH4<K, V>::_update_or_insert(const K & key) { typename MAP_TYPE::iterator it = _map.find(key); if (it != _map.end()) return _update(it); else return _insert(key); }
void AboutLegion::_toggleAnimalsAttack() { if( _d->fort.isValid() ) { _d->fort->setAttackAnimals( !_d->fort->isAttackAnimals() ); _update(); } }
void scrollBar::setMinimum(const double &value) { if (value > _max) _min = _max; else _min = value; valueRange = _max - _min; _update(); }
void scrollBar::setMaximum(const double &value) { if (value < _min) _max = _min; else _max = value; valueRange = _max - _min; _update(); }
/** * Adjust direction by TURN_STEPs to the left **/ void DriveTrain::left() { // Adjust direction _dir -= TURN_STEP; // Stick to limits if (_dir < MAX_LEFT) _dir = MAX_LEFT; // Update _update(); }
void RippleAnimation::forceRepaint() { for (const auto &ripple : _ripples) { ripple->clearCache(); } if (_update) { _update(); } }
static void *_thread_routine(void *arg) { while(1) { sleepms(stm->sleep_time); _update(); } return NULL; }
void ParticleSystem::fastForward(Real time, Real interval) { // First make sure all transforms are up to date for (Real ftime = 0; ftime < time; ftime += interval) { _update(interval); } }
int Input::readSpeed() { ///Calculates speed from pitch and roll. _update(); double output = 0; output = sqrt(pow(_inputValue[PITCHCHANNEL],2)+pow(_inputValue[ROLLCHANNEL],2)); return _scaleOutput(int(output)); }
static void *_init(void *arg) { _t *dp = (_t *)arg; void *p = midi_buffer_init(&dp->midi); if (p != &dp->midi) return p; dp->ptt_on = 0; dp->key_on = 0; dp->modified = dp->fw.busy = 1; _update(dp); return arg; }
bool MgArc::setCenterRadius(const Point2d& center, float radius, float startAngle, float sweepAngle) { _points[0] = center; _points[1] = center.polarPoint(startAngle, radius); _points[2] = center.polarPoint(startAngle + sweepAngle, radius); _points[3] = center.polarPoint(startAngle + sweepAngle / 2, radius); _update(); return true; }
bstnode * bst_update(bstnode *root, char * key, void * val, size_t size) { bstnode * n = NULL; n = bst_search(root, key); if (n != NULL) n = _update(n, key, val, size); return n; }