A RAII class for blocking popup bubbles that are used by annotations, RDF and maybe other parts of the system. More...
#include <fv_View.h>
Public Member Functions | |
FV_View_BubbleBlocker (FV_View *pView=0) | |
~FV_View_BubbleBlocker () | |
FV_View_BubbleBlocker & | operator= (const FV_View_BubbleBlocker &r) |
Private Attributes | |
FV_View * | m_pView |
Friends | |
class | FV_View |
A RAII class for blocking popup bubbles that are used by annotations, RDF and maybe other parts of the system.
To get a real one of these use FV_View::getBubbleBlocker() when this object is destroyed the counter is decremented for you. To explicitly decrement, simply assign your FV_View_BubbleBlocker to FV_View_BubbleBlocker().
While any real FV_View_BubbleBlocker objects are held, popup bubbles are suspended and not created. This is useful for making dialog windows where you might want to avoid the popup bubbles from overlapping the dialog window.
Both AP_Dialog_Modeless and AP_Dialog_Modal obtain and release these BubbleBlocker objects for you automatically, so dialog subclasses of those do not have to worry about this at all.
FV_View_BubbleBlocker::FV_View_BubbleBlocker | ( | FV_View * | pView = 0 |
) |
References FV_View::incremenetBubbleBlockerCount(), and m_pView.
FV_View_BubbleBlocker::~FV_View_BubbleBlocker | ( | ) |
References FV_View::decremenetBubbleBlockerCount(), and m_pView.
FV_View_BubbleBlocker & FV_View_BubbleBlocker::operator= | ( | const FV_View_BubbleBlocker & | r | ) |
friend class FV_View [friend] |
FV_View* FV_View_BubbleBlocker::m_pView [private] |
Referenced by FV_View_BubbleBlocker(), operator=(), and ~FV_View_BubbleBlocker().