1 #ifndef __LDVIEWPARTLIST_H__ 2 #define __LDVIEWPARTLIST_H__ 3 4 #include "ModelViewerWidget.h" 5 #include "LDLib/LDHtmlInventory.h" 6 #include "ui_PartList.h" 7 8 class PartList : public QDialog , Ui::PartListPanel 9 { 10 Q_OBJECT 11 public: 12 PartList(QWidget *parent, ModelViewerWidget *modelWidget, LDHtmlInventory *htmlInventory); 13 ~PartList(void); 14 void populateColumnList(); 15 // QCheckListItem *description; 16 int exec(); 17 18 public slots: 19 void doOk(); 20 void doCancel(); 21 void doUp(); 22 void doDown(); 23 void doHighlighted(QListWidgetItem * current, QListWidgetItem * previous ); 24 void doShowModel(); 25 protected: 26 void doMoveColumn(int distance); 27 LDrawModelViewer *modelViewer; 28 ModelViewerWidget *modelWidget; 29 LDHtmlInventory *m_htmlInventory; 30 }; 31 #endif //__LDVIEWPARTLIST_H__ 32