VR-Forces 4.0.4 Class Documentation
include/entityEditorImpl/enumerationWidget.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2007 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: enumerationWidget.h,v $ $Revision: 1.1 $ $State: Exp $
00007 *********************************************************************/
00008 
00011 
00012 #ifndef DTENUMERATIONWIDGET_H_
00013 #define DTENUMERATIONWIDGET_H_
00014 
00015 #include <QtGui/QWidget>
00016 #include "tmqt/disDictionary.h"
00017 #include <vrfExtProtocol/rangedObjType.h>
00018 
00019 class DtRangedObjectType;
00020 class QLabel;
00021 class QPushButton;
00022 
00023 #include "entityEditorImpl/entityEditorImplDefines.h"
00024 
00025 class DT_DLL_entityeditorimpl DtEnumerationWidget : public QWidget
00026 {
00027 
00028    Q_OBJECT
00029    
00030 public:
00031 
00033    DtEnumerationWidget(QWidget* parent = NULL, const Qt::WindowFlags& flags = 0);
00034 
00036    virtual ~DtEnumerationWidget();
00037 
00038    virtual void init();
00039    virtual void setObjectType(const DtRangedObjectType&);
00040    virtual void clearContents();
00041    const DtRangedObjectType& objectType() const;
00042 
00043    static DtEnumerationWidget* create(QWidget* parent = NULL);
00044 
00045 protected slots:
00046    virtual void changeEnumeration();
00047    virtual void canSetEnumeration(const DtRangedObjectType&);
00048 
00049 signals:
00050    void typeChanged(const DtRangedObjectType&);
00051 
00052 protected:
00053    QLabel*  myEnumeration;
00054    DtDisDictionary   myDisDictionary;
00055    bool     myLoaded;
00056    DtRangedObjectType   myObjectType;
00057    QPushButton*   myOK;
00058 };
00059 
00060 inline const DtRangedObjectType& DtEnumerationWidget::objectType() const
00061 {
00062    return myObjectType;
00063 }
00064 
00065 #endif
00066 

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)