VR-Forces 4.0.4 Class Documentation
include/vrvCoreQt/DtAddPropsWidget.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/DtAddPropsInterface.h>
00014 
00015 #include <makArchives/DtAddPropsRuleRecord.h>
00016 
00017 #include <QtGui/QWidget>
00018 
00019 class QTreeWidget;
00020 class QComboBox;
00021 
00022 namespace makVrv
00023 {
00024 
00025    class DtDe;
00026    class DtPropTypeComboBox;
00027    class DtModelDefinitionComboBox;
00028 
00031    class DT_DLL_VRVCOREQT DtAddPropsWidget
00032       : public QWidget, public DtAddPropsInterface
00033    {
00034 
00035       Q_OBJECT
00036 
00037    public:
00038 
00040       DtAddPropsWidget( DtDe& de, QWidget* parent = 0,
00041          Qt::WindowFlags flags = 0 );
00042 
00044       virtual ~DtAddPropsWidget();
00045 
00049 
00051       virtual void setFeatureFieldValuePairs(
00052          const DtFeatureFieldValueParser::FeatureFieldValueMap& featureFieldValueMap);
00053 
00055       virtual void addRuleToHistory(const makArchives::DtAddPropsRuleRecord& rule);
00056 
00059       virtual void fillInRotationComboBox();
00060 
00062       void clear();
00063 
00065 
00066    public slots:
00067 
00071 
00073       void on_plusButton_clicked();
00074 
00076       void on_minusButton_clicked();
00077 
00079       void onAddPropsButtonClicked();
00080 
00082 
00083    protected:
00084 
00087       void setupGui();
00088 
00090       QStringList ruleToStringList(const makArchives::DtAddPropsRuleRecord& rule);
00091 
00092    protected:
00093 
00094       static const int theFieldColumn = 0;
00095       static const int theValueColumn = 1;
00096 
00097       DtFeatureFieldValueParser::FeatureFieldValueMap myFeatureFieldValueMap;
00098       QTreeWidget* myFieldValueMapWidget;
00099       QTreeWidget* myHistory;
00100       DtPropTypeComboBox* myPropTypeCombo;
00101       DtModelDefinitionComboBox* myModelDefCombo;
00102       QComboBox* myGroundClampCombo;
00103       QComboBox* myRotationCombo;
00104       DtDe& myDe;
00105 
00106    };
00107 
00108 }

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)