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(BlockList * blockList);
24 BlockList * getBlockList();
26 void highlightBlock(Block * block);
28 virtual void blockAdded(Block *);
29 virtual void blockEdited(Block *);
30 virtual void blockRemoved(Block *);
31 virtual void blockToggled(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 BlockList * blockList;
49 // Q3ListBox * listBox;
50 QListWidget * listBox;
56 QPixmap pxmAttributes;
59 QPixmap pxmDefreezeAll;
61 ActionHandler * actionHandler;
64 #endif // __BLOCKWIDGET_H__