#include <rs_layerlist.h>
Public Member Functions | |
| RS_LayerList () | |
| Default constructor. | |
| void | clear () |
| Removes all layers in the layerlist. | |
| int | count () const |
| RS_Layer * | at (int i) |
| void | activate (const RS_String &name, bool notify=false) |
| Activates the given layer. | |
| void | activate (RS_Layer *layer, bool notify=false) |
| Activates the given layer. | |
| RS_Layer * | getActive () |
| virtual void | add (RS_Layer *layer) |
| Adds a layer to the layer list. | |
| virtual void | remove (RS_Layer *layer) |
| Removes a layer from the list. | |
| virtual void | edit (RS_Layer *layer, const RS_Layer &source) |
| Changes a layer's attributes. | |
| RS_Layer * | find (const RS_String &name) |
| int | getIndex (const RS_String &name) |
| int | getIndex (RS_Layer *layer) |
| void | toggle (const RS_String &name) |
| Switches on / off the given layer. | |
| void | toggle (RS_Layer *layer) |
| Switches on / off the given layer. | |
| void | toggleLock (RS_Layer *layer) |
| Locks or unlocks the given layer. | |
| void | freezeAll (bool freeze) |
| Freezes or defreezes all layers. | |
| void | addListener (RS_LayerListListener *listener) |
| adds a LayerListListener to the list of listeners. | |
| void | removeListener (RS_LayerListListener *listener) |
| removes a LayerListListener from the list of listeners. | |
| void | setModified (bool m) |
| Sets the layer lists modified status to 'm'. | |
| virtual bool | isModified () const |
|
||||||||||||
|
Activates the given layer.
|
|
||||||||||||
|
Activates the given layer.
|
|
|
Adds a layer to the layer list. If there is already a layer with the same name, no layer is added. In that case the layer passed to the methode will be deleted! If no layer was active so far, the new layer becomes the active one. Listeners are notified. |
|
|
adds a LayerListListener to the list of listeners.
|
|
|
|
|
|
|
|
||||||||||||
|
Changes a layer's attributes. The attributes of layer 'layer' are copied from layer 'source'. Listeners are notified. |
|
|
|
|
|
Freezes or defreezes all layers.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Removes a layer from the list. Listeners are notified after the layer was removed from the list but before it gets deleted. |
|
|
Switches on / off the given layer. Listeners are notified. |
|
|
Switches on / off the given layer. Listeners are notified. |
|
|
Locks or unlocks the given layer. Listeners are notified. |
1.4.4