VR-Forces 4.0.4 Class Documentation
include/entityEditorImpl/categoriesWidget.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2007 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: categoriesWidget.h,v $ $Revision: 1.1 $ $State: Exp $
00007 *********************************************************************/
00008 
00011 
00012 #ifndef DTCATEGORIESWIDGET_H_
00013 #define DTCATEGORIESWIDGET_H_
00014 
00015 #include <QtGui/QWidget>
00016 #include <vrfExtProtocol/rangedObjType.h>
00017 
00018 class QTreeWidget;
00019 class QComboBox;
00020 class QPushButton;
00021 
00022 #include "entityEditorImpl/entityEditorImplDefines.h"
00023 
00024 class DT_DLL_entityeditorimpl DtCategoriesWidget : public QWidget
00025 {
00026 
00027    Q_OBJECT
00028    
00029 public:
00030 
00032    DtCategoriesWidget(QWidget* parent = NULL, const Qt::WindowFlags& flags = 0);
00033 
00035    virtual ~DtCategoriesWidget();
00036 
00037    virtual bool init();
00038 
00039    virtual void setObjectType(const DtRangedObjectType& obj);
00040    virtual void simulationModelSetLoaded();
00041    virtual void clearContents();
00042 
00043 protected:
00044    virtual void setupCategories(const DtRangedObjectType& obj);
00045    virtual void setModelCategories();
00046    virtual QSize sizeHint() const;
00047 
00048 protected slots:
00049    virtual void itemSelected();
00050    virtual void categoryChanged(const QString&);
00051    virtual void addCategory();
00052    virtual void removeCategory();
00053 
00054 signals:
00055    void entryModified();
00056    void categoriesModified();
00057 
00058 protected:
00059    QTreeWidget*   myCategories;
00060    QComboBox*     myCategoriesCombo;
00061    QPushButton*   myAdd;
00062    QPushButton*   myRemove;
00063    DtRangedObjectType   myObjectType;
00064 };
00065 
00066 #endif
00067 

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)