/*
* Provides a class that can contain active TemporaryItem's on a desktop
* Code inspired by message-stack.cpp
*
* Authors:
* Johan Engelen
*
* Copyright (C) Johan Engelen 2008 <j.b.c.engelen@utwente.nl>
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "display/canvas-temporary-item.h"
#include "display/canvas-temporary-item-list.h"
namespace Inkscape {
namespace Display {
{
}
{
// delete all items in list so the timeouts are removed
delete tempitem;
}
}
/* Note that TemporaryItem or TemporaryItemList is responsible for deletion and such, so this return pointer can safely be ignored. */
{
// beware of strange things happening due to very short timeouts
return tempitem;
}
void
{
// check if the item is in the list, if so, delete it. (in other words, don't wait for the item to delete itself)
bool in_list = false;
in_list = true;
break;
}
}
if (in_list) {
delete tempitem;
}
}
void
{
// no need to delete the item, it does that itself after signal_timeout.emit() completes
}
} //namespace Display
} /* namespace Inkscape */
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :