Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 89d1fe55 authored by Thomas Zander's avatar Thomas Zander

Introduce a new method for multi-threaded printing.

svn path=/trunk/koffice/; revision=689853
parent 06d48300
......@@ -587,6 +587,15 @@ public:
*/
void notifyChanged();
/**
* A shape can be in a state that its doing loading or text layout or similar in which case
* it can be shown on screen just fine (probably partially) but it should really not be printed
* until its fully done.
* Flake will call this method from a non-main thread and only start printing it when the
* method returned.
* Warning! This method can be blocking for a long time, never call it on the gui-thread!
*/
virtual void waitUntilReady() const {}
protected:
......
......@@ -27,18 +27,3 @@ In the plugins/defaultTools/ConnectorTool:
- on insert into the rTree (KoShapeManager) extend the boudingrect with shadow (note that KoShapeManager is
a friend of KoShape).
* Add a way to make sure a shape will never be printed partially due to it still doing work
for example by a kexi shape downloading data before it will show that.
Proposed Method in KoShape:
/**
* A shape can be in a state that its doing loading or text layout or similar in which case
* it can be shown on screen just fine (probably partially) but it should really not be printed
* until its fully done.
* Flake will call this method from a non-main thread and only start printing it when the
* method returned.
* Warning! This method can be blocking for a long time, never call it on the gui-thread!
* @param pi the progress indicator class that can be used to set status information and / or
* progress on which will be displayed while waiting.
*/
virtual void waitUntilReady(KoProgressIndicator *pi) const {}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment