All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Member Functions
SciFigs::LayerLocker Class Reference

Brief description of class still missing. More...

#include <LayerLocker.h>

List of all members.

Public Member Functions

 LayerLocker (GraphContentLayer *layer)
void unlock ()
 ~LayerLocker ()

Detailed Description

Brief description of class still missing.

Full description of class still missing


Constructor & Destructor Documentation

Lock layer calling lockDelayPainting(). layer can be null.

Once a layer has been locked this is safe to edit its properties. After unlock(), any execution of the event loop may start again the painting operations. If there is no execution of the event loop, even after a unlock() or after destructor call, this is still safe to edit the layer.

References SciFigs::GraphContentLayer::lockDelayPainting().

                                                         : _layer(layer)
{
  if(_layer) _layer->lockDelayPainting();
}

Unlock layer.

References SciFigs::GraphContentLayer::unlock().

{
  if(_layer) _layer->unlock();
}

Member Function Documentation

void SciFigs::LayerLocker::unlock ( ) [inline]

Unlock layer. Compatible with unlock from destructor.

References SciFigs::GraphContentLayer::unlock().

Referenced by FKTimeWindows::setCurrentWindow(), FKTimeWindows::setParameters(), and MonoStation::AbstractTool::start().

{
  if(_layer) {
    _layer->unlock();
    _layer=0;
  }
}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines