VR-Forces 4.0.4 Class Documentation
include/entityEditorImpl/forcesWidget.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2007 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: forcesWidget.h,v $ $Revision: 1.2 $ $State: Exp $
00007 *********************************************************************/
00008 
00011 
00012 #ifndef DTFORCESSWIDGET_H_
00013 #define DTFORCESSWIDGET_H_
00014 
00015 #include <QtGui/QWidget>
00016 #include <vrfExtProtocol/rangedObjType.h>
00017 
00018 #include <QTreeWidget>
00019 
00020 class QComboBox;
00021 class QPushButton;
00022 
00023 #include "entityEditorImpl/entityEditorImplDefines.h"
00024 class DT_DLL_entityeditorimpl DtForcesWidget : public QWidget
00025 {
00026 
00027    Q_OBJECT
00028    
00029 public:
00030 
00032    DtForcesWidget(QWidget* parent = NULL, const Qt::WindowFlags& flags = 0);
00033 
00035    virtual ~DtForcesWidget();
00036 
00037    virtual bool init();
00038 
00039    virtual QList<QTreeWidgetItem*> findItems(const QString &text, Qt::MatchFlags flags, int column=0) const;
00040    virtual void addForceItem(QTreeWidgetItem* item);
00041    virtual int count() const;
00042    virtual QTreeWidgetItem* item(int index);
00043 
00044    //virtual void setObjectType(const DtRangedObjectType& obj);
00045    virtual void simulationModelSetLoaded();
00046    virtual void clearContents();
00047    virtual void setupForces(const DtRangedObjectType& obj);
00048    virtual QSize sizeHint() const;
00049 
00050 protected slots:
00051    virtual void forceChanged(QTreeWidgetItem* item, int col);
00052 
00053 signals:
00054    void entryModified();
00055    void forcesModified();
00056 
00057 protected:
00058    QTreeWidget*   myForcesTree;
00059    QPushButton*   myAddButton;
00060    QPushButton*   myEditButton;
00061    QPushButton*   myRemoveButton;
00062 };
00063 
00064 #endif
00065 

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)