1 #ifndef __LAYERLIST_H__
2 #define __LAYERLIST_H__
8 //class LayerListListener;
13 * @author Andrew Mustun
24 void activate(const QString & name, bool notify = false);
25 void activate(Layer * layer, bool notify = false);
27 virtual void add(Layer * layer);
28 virtual void remove(Layer * layer);
29 virtual void edit(Layer * layer, const Layer & source);
30 Layer * find(const QString & name);
31 int getIndex(const QString & name);
32 int getIndex(Layer * layer);
33 void toggle(const QString & name);
34 void toggle(Layer * layer);
35 void toggleLock(Layer * layer);
36 void freezeAll(bool freeze);
37 // void addListener(LayerListListener * listener);
38 // void removeListener(LayerListListener * listener);
39 void setModified(bool m);
40 virtual bool isModified() const;
42 friend std::ostream & operator<<(std::ostream & os, LayerList & l);
45 //! layers in the graphic
46 QList<Layer *> layers;
47 //! List of registered LayerListListeners
48 // QList<LayerListListener *> layerListListeners;
49 //! Currently active layer
51 /** Flag set if the layer list was modified and not yet saved. */