VR-Forces 4.0.4 Class Documentation
include/terrainqt/terrainSelectionModeWidget.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2004 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: terrainSelectionModeWidget.h,v $ $Revision: 1.3 $ $State: Exp $
00007 *********************************************************************/
00008 
00011 
00012 #ifndef TERRAINSELECTIONMODEWIDGET_H
00013 #define TERRAINSELECTIONMODEWIDGET_H
00014 
00015 #include <QtGui/QWidget>
00016 #include <QtGui/QAction>
00017 
00018 #include "vrfGuiCore/menuItems.h"
00019 
00020 class DtPopupMenu;
00021 class QComboBox;
00022 
00034 
00035 #include "terrainqt/terrainqtDefines.h"
00036 class DT_DLL_terrainqt DtTerrainSelectionModeWidget : public QWidget 
00037 {
00038 
00039    Q_OBJECT
00040 
00041 public:
00042 
00044    DtTerrainSelectionModeWidget(QWidget* parent = NULL, const Qt::WindowFlags& flags = 0);
00045 
00047    virtual ~DtTerrainSelectionModeWidget();
00048 
00049    virtual bool init(DtPopupMenu* sourceMenu);
00050 
00051 public:
00052 
00054    static DtTerrainSelectionModeWidget* create(QWidget* parent, const Qt::WindowFlags& flags);
00055 
00056 public slots:
00057    virtual void updateSelectionMode(bool);
00058    virtual void selectionModeChanged(int);
00059 
00060 protected:
00061    virtual bool initSelectionModes();
00062    virtual bool initConnections();
00063 
00064 private:
00066    DtTerrainSelectionModeWidget(const DtTerrainSelectionModeWidget& orig);
00067 
00069    DtTerrainSelectionModeWidget& operator=(const DtTerrainSelectionModeWidget& orig);
00070 
00071 protected:
00072    QComboBox*  myTerrainSelectionModes;
00073    QList<DtMenuItemType> myMenuItems;
00074    QList<QAction*> myActions;
00075 };
00076 
00077 #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)