本文整理汇总了C++中setChanged函数的典型用法代码示例。如果您正苦于以下问题:C++ setChanged函数的具体用法?C++ setChanged怎么用?C++ setChanged使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了setChanged函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: removeProperty
bool CSSMutableStyleDeclaration::setProperty(int propertyID, const String& value, bool important, bool notifyChanged, ExceptionCode& ec)
{
ec = 0;
// Setting the value to an empty string just removes the property in both IE and Gecko.
// Setting it to null seems to produce less consistent results, but we treat it just the same.
if (value.isEmpty()) {
removeProperty(propertyID, notifyChanged, false, ec);
return ec == 0;
}
// When replacing an existing property value, this moves the property to the end of the list.
// Firefox preserves the position, and MSIE moves the property to the beginning.
CSSParser parser(useStrictParsing());
bool success = parser.parseValue(this, propertyID, value, important);
if (!success) {
// CSS DOM requires raising SYNTAX_ERR here, but this is too dangerous for compatibility,
// see <http://bugs.webkit.org/show_bug.cgi?id=7296>.
} else if (notifyChanged)
setChanged();
ASSERT(!ec);
return success;
}
开发者ID:Gin-Rye,项目名称:duibrowser,代码行数:23,代码来源:CSSMutableStyleDeclaration.cpp
示例2: current
//_______________________________________________________
void ExceptionListWidget::edit( void )
{
// retrieve selection
QModelIndex current( m_ui.exceptionListView->selectionModel()->currentIndex() );
if( ! model().contains( current ) ) return;
InternalSettingsPtr exception( model().get( current ) );
// create dialog
QPointer<ExceptionDialog> dialog( new ExceptionDialog( this ) );
dialog->setWindowTitle( i18n( "Edit Exception - Menda Settings" ) );
dialog->setException( exception );
// map dialog
if( !dialog->exec() )
{
delete dialog;
return;
}
// check modifications
if( !dialog->isChanged() ) return;
// retrieve exception
dialog->save();
delete dialog;
// check new exception validity
checkException( exception );
resizeColumns();
setChanged( true );
return;
}
开发者ID:anexation,项目名称:test,代码行数:38,代码来源:mendaexceptionlistwidget.cpp
示例3: setChanged
DECLARE_EXPORT void Buffer::setMaximumCalendar(CalendarDefault *cal)
{
// Resetting the same calendar
if (max_cal == cal) return;
// Mark as changed
setChanged();
// Delete previous events.
for (flowplanlist::iterator oo=flowplans.begin(); oo!=flowplans.end(); )
if (oo->getType() == 4)
{
flowplans.erase(&(*oo));
delete &(*(oo++));
}
else ++oo;
// Null pointer passed. Change back to time independent max.
if (!cal)
{
setMaximum(max_val);
return;
}
// Create timeline structures for every bucket. A new entry is created only
// when the value changes.
max_cal = const_cast<CalendarDefault*>(cal);
double curMax = 0.0;
for (CalendarDefault::EventIterator x(max_cal); x.getDate()<Date::infiniteFuture; ++x)
if (curMax != x.getValue())
{
curMax = x.getValue();
flowplanlist::EventMaxQuantity *newBucket =
new flowplanlist::EventMaxQuantity(x.getDate(), &flowplans, curMax);
flowplans.insert(newBucket);
}
}
开发者ID:BusinessTec,项目名称:frePPLe,代码行数:37,代码来源:buffer.cpp
示例4: ExceptionDialog
//_______________________________________________________
void ExceptionListWidget::add( void )
{
QPointer<ExceptionDialog> dialog = new ExceptionDialog( this );
ConfigurationPtr exception( new Configuration() );
exception->readConfig();
dialog->setException( exception );
// run dialog and check existence
if( !dialog->exec() )
{
delete dialog;
return;
}
dialog->save();
delete dialog;
// check exceptions
if( !checkException( exception ) ) return;
// create new item
model().add( exception );
setChanged( true );
// make sure item is selected
QModelIndex index( model().index( exception ) );
if( index != ui.exceptionListView->selectionModel()->currentIndex() )
{
ui.exceptionListView->selectionModel()->select( index, QItemSelectionModel::Clear|QItemSelectionModel::Select|QItemSelectionModel::Rows );
ui.exceptionListView->selectionModel()->setCurrentIndex( index, QItemSelectionModel::Current|QItemSelectionModel::Rows );
}
resizeColumns();
return;
}
开发者ID:KDE,项目名称:oxygen-transparent,代码行数:38,代码来源:oxygenexceptionlistwidget.cpp
示例5: setChanged
DECLARE_EXPORT void Resource::setMaximumCalendar(CalendarDefault* c)
{
// Resetting the same calendar
if (size_max_cal == c) return;
// Mark as changed
setChanged();
// Remove the current max events.
for (loadplanlist::iterator oo=loadplans.begin(); oo!=loadplans.end(); )
if (oo->getType() == 4)
{
loadplans.erase(&(*oo));
delete &(*(oo++));
}
else ++oo;
// Null pointer passed. Change back to time independent maximum size.
if (!c)
{
setMaximum(size_max);
return;
}
// Create timeline structures for every bucket.
size_max_cal = c;
double curMax = 0.0;
for (CalendarDefault::EventIterator x(size_max_cal); x.getDate()<Date::infiniteFuture; ++x)
if (curMax != x.getValue())
{
curMax = x.getValue();
loadplanlist::EventMaxQuantity *newBucket =
new loadplanlist::EventMaxQuantity(x.getDate(), &loadplans, curMax);
loadplans.insert(newBucket);
}
}
开发者ID:zhoufoxcn,项目名称:frePPLe,代码行数:36,代码来源:resource.cpp
示例6: modified
//_______________________________________________
void ConfigWidget::updateChanged( void )
{
// check configuration
if( !m_internalSettings ) return;
// track modifications
bool modified( false );
if( m_ui.titleAlignment->currentIndex() != m_internalSettings->titleAlignment() ) modified = true;
else if( m_ui.buttonSize->currentIndex() != m_internalSettings->buttonSize() ) modified = true;
else if( m_ui.drawBorderOnMaximizedWindows->isChecked() != m_internalSettings->drawBorderOnMaximizedWindows() ) modified = true;
else if( m_ui.drawSizeGrip->isChecked() != m_internalSettings->drawSizeGrip() ) modified = true;
// exceptions
else if( m_ui.exceptions->isChanged() ) modified = true;
// animations
else if( m_ui.animationsEnabled->isChecked() != m_internalSettings->animationsEnabled() ) modified = true;
else if( m_ui.animationsDuration->value() != m_internalSettings->animationsDuration() ) modified = true;
setChanged( modified );
}
开发者ID:anexation,项目名称:menda-plasma-next,代码行数:25,代码来源:mendaconfigwidget.cpp
示例7: modified
//_______________________________________________
void ConfigWidget::updateChanged( void )
{
// check configuration
if( !_configuration ) return;
// track modifications
bool modified( false );
if( ui.titleAlignment->currentIndex() != _configuration->titleAlignment() ) modified = true;
else if( ui.buttonSize->currentIndex() != _configuration->buttonSize() ) modified = true;
else if( ui.frameBorder->currentIndex() != _configuration->frameBorder() ) modified = true;
else if( ui.separatorMode->currentIndex() != _configuration->separatorMode() ) modified = true;
else if( ui.drawSizeGrip->isChecked() != _configuration->drawSizeGrip() ) modified = true;
else if( ui.titleOutline->isChecked() != _configuration->drawTitleOutline() ) modified = true;
else if( ui.narrowButtonSpacing->isChecked() != _configuration->useNarrowButtonSpacing() ) modified = true;
else if( ui.closeFromMenuButton->isChecked() != _configuration->closeWindowFromMenuButton() ) modified = true;
// transparency
else if( ui.opacityFromStyle->isChecked() != _configuration->opacityFromStyle() ) modified = true;
else if( ui.backgroundOpacity->value() != _configuration->backgroundOpacity() ) modified = true;
// exceptions
else if( ui.exceptions->isChanged() ) modified = true;
// shadow configurations
else if( shadowConfigurations[0]->isChanged() ) modified = true;
else if( shadowConfigurations[1]->isChanged() ) modified = true;
// animations
else if( !_expertMode && ui.animationsEnabled->isChecked() != _configuration->animationsEnabled() ) modified = true;
else if( _expertMode && _animationConfigWidget->isChanged() ) modified = true;
setChanged( modified );
}
开发者ID:KDE,项目名称:oxygen-transparent,代码行数:37,代码来源:oxygenconfigwidget.cpp
示例8: layoutPropertyType
void LayoutPropertySheet::setChanged(int index, bool changed)
{
const LayoutPropertyType type = layoutPropertyType(propertyName(index));
switch (type) {
case LayoutPropertySpacing:
if (LayoutProperties::visibleProperties(m_layout) & LayoutProperties::HorizSpacingProperty) {
setChanged(indexOf(QLatin1String(horizontalSpacing)), changed);
setChanged(indexOf(QLatin1String(verticalSpacing)), changed);
}
break;
case LayoutPropertyMargin:
setChanged(indexOf(QLatin1String(leftMargin)), changed);
setChanged(indexOf(QLatin1String(topMargin)), changed);
setChanged(indexOf(QLatin1String(rightMargin)), changed);
setChanged(indexOf(QLatin1String(bottomMargin)), changed);
break;
default:
break;
}
QDesignerPropertySheet::setChanged(index, changed);
}
开发者ID:Fale,项目名称:qtmoko,代码行数:21,代码来源:layout_propertysheet.cpp
示例9: model
//__________________________________________________________
InternalSettingsList ExceptionListWidget::exceptions( void )
{
return model().get();
setChanged( false );
}
开发者ID:anexation,项目名称:test,代码行数:6,代码来源:mendaexceptionlistwidget.cpp
示例10: setChanged
/**
* @brief TvShowEpisode::setThumbnailImage
* @param thumbnail
*/
void TvShowEpisode::setThumbnailImage(QByteArray thumbnail)
{
m_thumbnailImage = thumbnail;
m_thumbnailImageChanged = true;
setChanged(true);
}
开发者ID:ArgelErx,项目名称:MediaElch,代码行数:10,代码来源:TvShowEpisode.cpp
示例11: removeProperty
void CSSMutableStyleDeclaration::setImageProperty(int propertyId, const String& url, bool important)
{
removeProperty(propertyId);
m_values.append(CSSProperty(propertyId, CSSImageValue::create(url), important));
setChanged();
}
开发者ID:Czerrr,项目名称:ISeeBrowser,代码行数:6,代码来源:CSSMutableStyleDeclaration.cpp
示例12: setChanged
void rice::p2p::multiring::MultiringNodeHandle::update(::java::util::Observable* o, ::java::lang::Object* obj)
{
setChanged();
notifyObservers(obj);
}
开发者ID:subhash1-0,项目名称:thirstyCrow,代码行数:5,代码来源:MultiringNodeHandle.cpp
示例13: setChanged
void InputMethod::update()
{
setChanged(false);
}
开发者ID:maximaximal,项目名称:piga,代码行数:4,代码来源:InputMethod.cpp
示例14: clear
void clear() { freeLayouts(); m_blocks.clear(); setChanged(true); }
开发者ID:akhilo,项目名称:cmplayer,代码行数:1,代码来源:richtextdocument.hpp
示例15: setChanged
void SharpnessFilter::somethingChanged(){
setChanged(true);
}
开发者ID:PriyanshuSingh,项目名称:ImGz,代码行数:3,代码来源:sharpnessfilter.cpp
示例16: dataDouble
void DPArrow::dataChanged()
{
DPLine::dataChanged();
m_headAngle = dataDouble( "HeadAngle" );
setChanged();
}
开发者ID:zoltanp,项目名称:ktechlab-0.3,代码行数:6,代码来源:dpline.cpp
示例17: switch
void WPdfImage::drawText(const WRectF& rect,
WFlags<AlignmentFlag> flags,
TextFlag textFlag,
const WString& text,
const WPointF *clipPoint)
{
// FIXME: textFlag
if (clipPoint && painter() && !painter()->clipPath().isEmpty()) {
if (!painter()->clipPathTransform().map(painter()->clipPath())
.isPointInPath(painter()->worldTransform().map(*clipPoint)))
return;
}
if (trueTypeFont_ && !trueTypeFonts_->busy())
trueTypeFonts_->drawText(painter()->font(), rect, flags, text);
else {
HPDF_REAL left, top, right, bottom;
HPDF_TextAlignment alignment = HPDF_TALIGN_LEFT;
AlignmentFlag horizontalAlign = flags & AlignHorizontalMask;
AlignmentFlag verticalAlign = flags & AlignVerticalMask;
switch (horizontalAlign) {
default:
// should never happen
case AlignmentFlag::Left:
left = rect.left();
right = left + 10000;
alignment = HPDF_TALIGN_LEFT;
break;
case AlignmentFlag::Right:
right = rect.right();
left = right - 10000;
alignment = HPDF_TALIGN_RIGHT;
break;
case AlignmentFlag::Center:
{
float center = rect.center().x();
left = center - 5000;
right = center + 5000;
alignment = HPDF_TALIGN_CENTER;
break;
}
}
switch (verticalAlign) {
default:
// fall-through ; should never happen
case AlignmentFlag::Top:
top = rect.top(); break;
case AlignmentFlag::Middle:
// FIXME: use font metrics to center middle of ascent !
top = rect.center().y() - 0.60 * fontSize_; break;
case AlignmentFlag::Bottom:
top = rect.bottom() - fontSize_; break;
}
bottom = top + fontSize_;
if (trueTypeFonts_->busy())
setChanged(PainterChangeFlag::Font);
HPDF_Page_GSave(page_);
// Undo the global inversion
HPDF_Page_Concat(page_, 1, 0, 0, -1, 0, bottom);
HPDF_Page_BeginText(page_);
// Need to fill text using pen color
const WColor& penColor = painter()->pen().color();
HPDF_Page_SetRGBFill(page_,
penColor.red() / 255.,
penColor.green() / 255.,
penColor.blue() / 255.);
std::string s = trueTypeFont_ ? text.toUTF8() : text.narrow();
HPDF_Page_TextRect(page_, left, fontSize_, right, 0, s.c_str(),
alignment, nullptr);
HPDF_Page_EndText(page_);
HPDF_Page_GRestore(page_);
}
}
开发者ID:AlexanderKotliar,项目名称:wt,代码行数:87,代码来源:WPdfImage.C
示例18: m1
BOOL LLPrimitive::setVolume(const LLVolumeParams &volume_params, const S32 detail, bool unique_volume)
{
LLMemType m1(LLMemType::MTYPE_VOLUME);
LLVolume *volumep;
if (unique_volume)
{
F32 volume_detail = LLVolumeLODGroup::getVolumeScaleFromDetail(detail);
if (mVolumep.notNull() && volume_params == mVolumep->getParams() && (volume_detail == mVolumep->getDetail()))
{
return FALSE;
}
volumep = new LLVolume(volume_params, volume_detail, FALSE, TRUE);
}
else
{
if (mVolumep.notNull())
{
F32 volume_detail = LLVolumeLODGroup::getVolumeScaleFromDetail(detail);
if (volume_params == mVolumep->getParams() && (volume_detail == mVolumep->getDetail()))
{
return FALSE;
}
}
volumep = sVolumeManager->refVolume(volume_params, detail);
if (volumep == mVolumep)
{
sVolumeManager->unrefVolume( volumep ); // LLVolumeMgr::refVolume() creates a reference, but we don't need a second one.
return TRUE;
}
}
setChanged(GEOMETRY);
if (!mVolumep)
{
mVolumep = volumep;
//mFaceMask = mVolumep->generateFaceMask();
setNumTEs(mVolumep->getNumFaces());
return TRUE;
}
#if 0
// #if 0'd out by davep
// this is a lot of cruft to set texture entry values that just stay the same for LOD switch
// or immediately get overridden by an object update message, also crashes occasionally
U32 old_face_mask = mVolumep->mFaceMask;
S32 face_bit = 0;
S32 cur_mask = 0;
// Grab copies of the old faces from the original shape, ordered by type.
// We will use these to figure out what old texture info gets mapped to new
// faces in the new shape.
std::vector<LLProfile::Face> old_faces;
for (S32 face = 0; face < mVolumep->getNumFaces(); face++)
{
old_faces.push_back(mVolumep->getProfile().mFaces[face]);
}
// Copy the old texture info off to the side, but not in the order in which
// they live in the mTextureList, rather in order of ther "face id" which
// is the corresponding value of LLVolueParams::LLProfile::mFaces::mIndex.
//
// Hence, some elements of old_tes::mEntryList will be invalid. It is
// initialized to a size of 9 (max number of possible faces on a volume?)
// and only the ones with valid types are filled in.
LLPrimTextureList old_tes;
old_tes.setSize(9);
for (face_bit = 0; face_bit < 9; face_bit++)
{
cur_mask = 0x1 << face_bit;
if (old_face_mask & cur_mask)
{
S32 te_index = face_index_from_id(cur_mask, old_faces);
old_tes.copyTexture(face_bit, *(getTE(te_index)));
//llinfos << face_bit << ":" << te_index << ":" << old_tes[face_bit].getID() << llendl;
}
}
// build the new object
sVolumeManager->unrefVolume(mVolumep);
mVolumep = volumep;
U32 new_face_mask = mVolumep->mFaceMask;
S32 i;
if (old_face_mask == new_face_mask)
{
// nothing to do
return TRUE;
}
if (mVolumep->getNumFaces() == 0 && new_face_mask != 0)
{
llwarns << "Object with 0 faces found...INCORRECT!" << llendl;
setNumTEs(mVolumep->getNumFaces());
return TRUE;
//.........这里部分代码省略.........
开发者ID:PixelTomsen,项目名称:SingularityViewer,代码行数:101,代码来源:llprimitive.cpp
示例19: setChanged
void FaceDetector::somethingChanged()
{
setChanged(true);
}
开发者ID:PriyanshuSingh,项目名称:ImGz,代码行数:4,代码来源:facedetector.cpp
示例20: RenderTarget
void TypedRenderTargetCapability::resetRenderTarget(RenderTargetType type)
{
m_renderTargets[type] = RenderTarget();
setChanged(true);
}
开发者ID:SebSchmech,项目名称:gloperate,代码行数:5,代码来源:TypedRenderTargetCapability.cpp
注:本文中的setChanged函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论