|
Krita Source Code Documentation
|
A base class for KisSynchronizedConnection. More...
#include <KisSynchronizedConnection.h>
Inheritance diagram for KisSynchronizedConnectionBase:Static Public Member Functions | |
| static int | eventType () |
| static void | forceDeliverAllSynchronizedEvents () |
| static bool | isAutoModeForUnittestsEnabled () |
| static void | registerSynchronizedEventBarrier (std::function< void()> callback) |
| static void | setAutoModeForUnittestsEnabled (bool value) |
Protected Member Functions | |
| virtual void | deliverEventToReceiver ()=0 |
| bool | event (QEvent *event) override |
| void | postEvent () |
A base class for KisSynchronizedConnection.
This class implements QEvent logic for KisSynchronizedConnection. Since KisSynchronizedConnection is templated, it should be implemented fully inline, but we don't want to expose our interactions with KisApplication. Therefore we implement this logic in a separate non-templated class that will be hidden in kritaglobal.
Definition at line 48 of file KisSynchronizedConnection.h.
|
protectedpure virtual |
|
overrideprotected |
Definition at line 94 of file KisSynchronizedConnection.cpp.
References deliverEventToReceiver(), KisSynchronizedConnectionEvent::destination, event(), and KIS_SAFE_ASSERT_RECOVER_RETURN_VALUE.
|
static |
Definition at line 60 of file KisSynchronizedConnection.cpp.
|
static |
We need to first make sure that all the events are delivered to the applications object and then make sure they are processed whatever the state of the recursion is (this call is called from python filters only)
Definition at line 81 of file KisSynchronizedConnection.cpp.
References KIS_SAFE_ASSERT_RECOVER_RETURN.
|
static |
Definition at line 76 of file KisSynchronizedConnection.cpp.
|
protected |
TODO: check if we need s_barrier at all now!
TODO: This assert triggers in unittests that don't have a fully-featured KisApplication object. Perhaps we should add a fake callback to KISTEST_MAIN KIS_SAFE_ASSERT_RECOVER_NOOP(s_barrier->callback);
Definition at line 108 of file KisSynchronizedConnection.cpp.
References deliverEventToReceiver().
|
static |
Definition at line 65 of file KisSynchronizedConnection.cpp.
References KIS_SAFE_ASSERT_RECOVER_NOOP.
|
static |
In unittests the connection should work in 'Auto' mode, because most of the actions are executed in the GUI thread, and (usually) don't have an event loop at all
Default value: false
Definition at line 71 of file KisSynchronizedConnection.cpp.
References value().