VR-Forces 4.0.4 Class Documentation
include/entityEditorImpl/addObjectToHierarchy.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2008 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: addObjectToHierarchy.h,v $ $Revision: 1.2 $ $State: Exp $
00007 *********************************************************************/
00008 
00011 
00012 #ifndef DTADDOBJECTTOHIERARCHY_H_
00013 #define DTADDOBJECTTOHIERARCHY_H_
00014 
00015 #include <QtGui/QDialog>
00016 #include "entityEditorImpl/entityEditorImplDefines.h"
00017 
00018 class DtModelSetEntry;
00019 class DtEntityEditorList;
00020 class DtObjectType;
00021 class QPushButton;
00022 
00023 class DT_DLL_entityeditorimpl DtAddObjectToHierarchy : public QDialog
00024 {
00025    Q_OBJECT
00026 
00027 public:
00028    DtAddObjectToHierarchy(QWidget*);
00029 
00030    virtual void init (DtModelSetEntry* useAsFilter, DtModelSetEntry* select);
00031    
00032    virtual DtModelSetEntry* selectedModel();
00033 
00036    void setAddOnce(bool);
00037 
00039    virtual DtObjectType selectedObject();
00040 
00041 protected:
00042    virtual void accept();
00043    
00044 signals:
00045    void addObjectToHierarchy(const DtObjectType&);
00046 
00047 protected slots:
00048    virtual void itemSelectionChanged();
00049 
00050 protected:
00051    DtEntityEditorList*  myEntityEditorList;
00052    QPushButton*         myOK;
00053    bool                 myAddOnce;
00054 };
00055 
00056 inline void DtAddObjectToHierarchy::setAddOnce(bool b)
00057 {
00058    myAddOnce = b;
00059 }
00060 
00061 #endif

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)