1 #ifndef QG_LAYERWIDGET_H
2 #define QG_LAYERWIDGET_H
5 //#include "rs_layerlist.h"
6 //#include "rs_layerlistlistener.h"
7 //#include "qg_actionhandler.h"
9 class QG_ActionHandler;
14 * This is the Qt implementation of a widget which can view a
15 * layer list and provides a user interface for basic layer actions.
17 class QG_LayerWidget: public QWidget//, public RS_LayerListListener
22 QG_LayerWidget(QG_ActionHandler * ah, QWidget * parent,
23 const char * name = 0, Qt::WindowFlags f = 0);
26 void setLayerList(RS_LayerList *, bool showByBlock);
28 void highlightLayer(RS_Layer *);
29 void highlightLayer(const QString &);
31 virtual void layerActivated(RS_Layer *);
32 virtual void layerAdded(RS_Layer *);
33 virtual void layerEdited(RS_Layer *);
34 virtual void layerRemoved(RS_Layer *);
35 virtual void layerToggled(RS_Layer *);
41 void slotActivated(void);
42 // void slotMouseButtonClicked(int button, Q3ListBoxItem * item, const QPoint & pos);
43 void slotMouseButtonClicked(QListWidgetItem *);
46 void contextMenuEvent(QContextMenuEvent *);
47 virtual void keyPressEvent(QKeyEvent *);
50 RS_LayerList * layerList;
52 // Q3ListBox * listBox;
53 QListWidget * listBox;
55 QPixmap pxmLayerStatus00;
56 QPixmap pxmLayerStatus01;
57 QPixmap pxmLayerStatus10;
58 QPixmap pxmLayerStatus11;
64 QPixmap pxmDefreezeAll;
66 QG_ActionHandler * actionHandler;