X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FEvents%2FEvents_Loop.h;h=66ed3070d58e785f994854603de2b46bdb0a0a72;hb=b2a662eec6a0258d51a67ee7e341541e7a710752;hp=669c56febbc72e3acf676608a38acb6643112ad5;hpb=f1cd93fd02a54259f72e3191d037323a496b2bef;p=modules%2Fshaper.git diff --git a/src/Events/Events_Loop.h b/src/Events/Events_Loop.h index 669c56feb..66ed3070d 100644 --- a/src/Events/Events_Loop.h +++ b/src/Events/Events_Loop.h @@ -16,7 +16,7 @@ class Events_MessageGroup; -/**\class Events_Lopp +/**\class Events_Loop * \ingroup EventsLoop * \brief Base class that manages the receiving and sending of all * not Qt-events in the application. @@ -54,6 +54,7 @@ class Events_Loop EVENTS_EXPORT static Events_ID eventByName(const char* theName); //! Allows to send an event + //! \param theMessage the enevt message to send //! \param isGroup is true for grouping messages if possible EVENTS_EXPORT void send(const std::shared_ptr& theMessage, bool isGroup = true); @@ -65,10 +66,15 @@ class Events_Loop //! Initializes sending of a group-message by the given ID EVENTS_EXPORT void flush(const Events_ID& theID); + //! Removes messages with the given ID: they are not needed anymore (UPDATE on close) + EVENTS_EXPORT void eraseMessages(const Events_ID& theID); + //! Allows to disable flushes: needed in synchronization of document mechanism //! (to synchronize all and only then flush create, update, etc in correct order) - EVENTS_EXPORT void activateFlushes(const bool theActivate); - + //! \param theActivate a state about flushe is active. If false, the flush is disabled + //! \return the previous active flush state + EVENTS_EXPORT bool activateFlushes(const bool theActivate); + //! Clears all collected messages EVENTS_EXPORT void clear(const Events_ID& theID);