diff -r bcbbdc5454e6 -r 15fe6c51de54 gui.h --- 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 #include #include -#include #include #include #include +#include #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;