#ifndef SLICEVIEW_HPP #define SLICEVIEW_HPP #include #include class map_library; class map_painter; class QListView; class QStandardItemModel; class QSortFilterProxyModel; class QLineEdit; class slice_view : public QMdiSubWindow { Q_OBJECT public: slice_view(); ~slice_view(); void set_library(map_library *lib); public slots: void refresh(); protected: bool eventFilter(QObject *o, QEvent *e); private: QListView *lv; QStandardItemModel *m; QSortFilterProxyModel *mf; QLineEdit *tefilter; map_painter *p; map_library *l; QModelIndex dragidx; QPointF dragpos; }; #endif