1 #ifndef __LAYERWIDGET_H__
2 #define __LAYERWIDGET_H__
11 * This is the Qt implementation of a widget which can view a
12 * layer list and provides a user interface for basic layer actions.
14 class LayerWidget: public QWidget
19 LayerWidget(ActionHandler * ah, QWidget * parent,
20 const char * name = 0, Qt::WindowFlags f = 0);
23 void setLayerList(LayerList *, bool showByBlock);
25 void highlightLayer(Layer *);
26 void highlightLayer(const QString &);
28 void layerActivated(Layer *);
29 void layerAdded(Layer *);
30 void layerEdited(Layer *);
31 void layerRemoved(Layer *);
32 void layerToggled(Layer *);
38 void slotActivated(void);
39 // void slotMouseButtonClicked(int button, Q3ListBoxItem * item, const QPoint & pos);
40 void slotMouseButtonClicked(QListWidgetItem *);
43 void contextMenuEvent(QContextMenuEvent *);
44 virtual void keyPressEvent(QKeyEvent *);
47 LayerList * layerList;
49 // Q3ListBox * listBox;
50 QListWidget * listBox;
52 QPixmap pxmLayerStatus00;
53 QPixmap pxmLayerStatus01;
54 QPixmap pxmLayerStatus10;
55 QPixmap pxmLayerStatus11;
61 QPixmap pxmDefreezeAll;
63 ActionHandler * actionHandler;
66 #endif // __LAYERWIDGET_H__