1 #ifndef __LIBRARYWIDGET_H__
2 #define __LIBRARYWIDGET_H__
4 #include "ui_librarywidget.h"
10 class LibraryWidget: public QWidget
15 LibraryWidget(QWidget * parent = 0, Qt::WindowFlags flags = 0);
18 QString getItemDir(QTreeWidgetItem * item);
19 QString getItemPath(QListWidgetItem * item);
20 QPixmap getPixmap(const QString & dir, const QString & dxfFile, const QString & dxfPath);
21 QString getPathToPixmap(const QString & dir, const QString & dxfFile, const QString & dxfPath);
24 void setActionHandler(ActionHandler * ah);
25 void keyPressEvent(QKeyEvent * e);
27 void appendTree(QTreeWidgetItem * item, QString directory);
28 void updatePreview(QTreeWidgetItem * item, int /*column*/);
34 ActionHandler * actionHandler;
40 #endif // __LIBRARYWIDGET_H__