gui.h

changeset 151
15fe6c51de54
parent 146
2ab24976acaa
child 154
cc53e5cbad54
--- a/gui.h	Fri May 03 17:30:44 2013 +0300
+++ b/gui.h	Fri May 03 18:14:18 2013 +0300
@@ -23,10 +23,10 @@
 #include <QMenu>
 #include <QToolBar>
 #include <QAction>
-#include <QTreeWidget>
 #include <QToolBar>
 #include <QTextEdit>
 #include <qpushbutton.h>
+#include <qlistwidget.h>
 #include "gldraw.h"
 #include "config.h"
 
@@ -96,6 +96,18 @@
 };
 
 // =============================================================================
+// ObjectList
+// 
+// Object list class for ForgeWindow
+// =============================================================================
+class ObjectList : public QListWidget {
+	Q_OBJECT
+	
+protected:
+	void contextMenuEvent (QContextMenuEvent* ev);
+};
+
+// =============================================================================
 // ForgeWindow
 // 
 // The one main GUI class. Hosts the renderer, object list, message log. Contains
@@ -109,7 +121,7 @@
 	GLRenderer* R;
 	
 	// Object list view
-	QTreeWidget* qObjList;
+	ObjectList* objList;
 	QTextEdit* qMessageLog;
 	QMenu* qFileMenu, *qEditMenu, *qViewMenu, *qInsertMenu, *qMoveMenu,
 		*qHelpMenu, *qControlMenu;

mercurial