]> Shamusworld >> Repos - architektonas/blob - src/forms/librarywidget.h
Bugfixes related to removing Snapper class.
[architektonas] / src / forms / librarywidget.h
1 #ifndef __LIBRARYWIDGET_H__
2 #define __LIBRARYWIDGET_H__
3
4 #include "ui_librarywidget.h"
5
6 class QListWidgetItem;
7 class ActionHandler;
8 class ListViewItem;
9
10 class LibraryWidget: public QWidget
11 {
12         Q_OBJECT
13
14         public:
15                 LibraryWidget(QWidget * parent = 0, Qt::WindowFlags flags = 0);
16                 ~LibraryWidget();
17
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);
22
23         public slots:
24                 void setActionHandler(ActionHandler * ah);
25                 void keyPressEvent(QKeyEvent * e);
26                 void insert();
27                 void appendTree(QTreeWidgetItem * item, QString directory);
28                 void updatePreview(QTreeWidgetItem * item, int /*column*/);
29
30         signals:
31                 void escape();
32
33         private:
34                 ActionHandler * actionHandler;
35
36         private:
37                 Ui::LibraryWidget ui;
38 };
39
40 #endif  // __LIBRARYWIDGET_H__