1 #ifndef __BLOCKWIDGET_H__
2 #define __BLOCKWIDGET_H__
11 * This is the Qt implementation of a widget which can view a
14 class BlockWidget: public QWidget
19 BlockWidget(ActionHandler * ah, QWidget * parent,
20 const char * name = 0, Qt::WFlags f = 0);
23 void setBlockList(RS_BlockList * blockList);
24 RS_BlockList * getBlockList();
26 void highlightBlock(RS_Block * block);
28 virtual void blockAdded(RS_Block *);
29 virtual void blockEdited(RS_Block *);
30 virtual void blockRemoved(RS_Block *);
31 virtual void blockToggled(RS_Block *);
37 //void slotToggleView(QListBoxItem* item);
38 // void slotActivated(const QString & blockName);
39 void slotActivated(void);
40 // void slotMouseButtonClicked(int button, Q3ListBoxItem * item, const QPoint & pos);
41 void slotMouseButtonClicked(QListWidgetItem * item);
44 void contextMenuEvent(QContextMenuEvent * e);
45 virtual void keyPressEvent(QKeyEvent * e);
48 RS_BlockList * blockList;
49 // Q3ListBox * listBox;
50 QListWidget * listBox;
56 QPixmap pxmAttributes;
59 QPixmap pxmDefreezeAll;
61 ActionHandler * actionHandler;
64 #endif // __BLOCKWIDGET_H__