VR-Forces 4.0.4 Class Documentation
include/vrvCoreQt/DtGdbSurfacesPage.h
Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Copyright (c) 2012 MAK Technologies, Inc.
00003  * All rights reserved.
00004  *****************************************************************************/
00005 
00009 
00010 #pragma once
00011 
00012 #include <vrvCoreQt/vrvCoreQt.h>
00013 #include <vrvCoreQt/DtTerrainPatchDialogPage.h>
00014 #include <vrvCoreQt/DtGdbSurfacesInterface.h>
00015 #include <vrvCoreQt/DtGdbSurfacesLogic.h>
00016 #include <vrvCore/DtTerrainPatch.h>
00017 
00018 class QListWidget;
00019 class QVBoxLayout;
00020 class QPushButton;
00021 class QGroupBox;
00022 class QListWidgetItem;
00023 
00024 namespace makVrv
00025 {
00026 
00027    class DtDe;
00028    class DtPersistenceToolbarWidget;
00029 
00032    class DT_DLL_VRVCOREQT DtGdbSurfacesPage
00033       : public DtTerrainPatchDialogPage, public DtGdbSurfacesInterface
00034    {
00035 
00036       Q_OBJECT
00037 
00038    public:
00039 
00041       DtGdbSurfacesPage( DtDe& de, QWidget* parent,
00042          Qt::WindowFlags f = Qt::Widget );
00043 
00045       virtual ~DtGdbSurfacesPage();
00046 
00048       virtual QIcon icon();
00049 
00051       virtual QString title();
00052 
00054       virtual const std::string& pageClassName() const;
00055 
00057       static const std::string& thePageClassName();
00058 
00060       virtual void setSurfaceState(DtTerrainPatch::GdbSurface surfaceId, bool state);
00061 
00063       virtual void addGdbSurface(DtTerrainPatch::GdbSurface surfaceId, bool state);
00064 
00066       virtual void onCurrentInstanceChanged(QString def);
00067 
00068    public slots:
00069 
00071       virtual void onItemChanged(QListWidgetItem *item);
00072 
00074       virtual void onTogglePushed();
00075 
00076    protected:
00077 
00080       void setupGui();
00081 
00083       virtual void activate();
00084 
00086       virtual void deactivate();
00087 
00088       void updateWidget();
00089 
00090    protected:
00091 
00094       bool addingItem;
00095       DtGdbSurfacesLogic* myLogic;
00096 
00097       typedef std::map<DtTerrainPatch::GdbSurface, QListWidgetItem*> SurfaceItemMap;
00098       SurfaceItemMap myItemMap;
00099 
00100       typedef std::map<DtTerrainPatch::GdbSurface, QString> SurfaceNameMap;
00101       SurfaceNameMap mySurfaceNames;
00102 
00103       DtPersistenceToolbarWidget* myTitle;
00104 
00105       QListWidget* myList;
00106       QPushButton* toggleButton;
00107       QVBoxLayout* myMainLayout;
00108       QVBoxLayout* myGroupLayout;
00109 
00110    };
00111 
00112 
00115    typedef DtPageCreatorTemplate<DtGdbSurfacesPage> DtGdbSurfacesPageCreator;
00116 }

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)