VR-Forces 4.0.4 Class Documentation
include/vrvCoreQt/DtFieldValuePairDialog.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2008 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtFieldValuePairDialog.h,v $ $Revision: 1.5 $ $State: Exp $
00007 ******************************************************************************/
00008 
00012 
00013 #ifndef DtFieldValuePairDialog_H_
00014 #define DtFieldValuePairDialog_H_
00015 
00016 #include <vrvCoreQt/vrvCoreQt.h>
00017 #include <vrvCoreQt/DtAddPropsInterface.h>
00018 
00019 #include <QtGui/QDialog>
00020 
00021 class QComboBox;
00022 class QPushButton;
00023 
00024 namespace makVrv
00025 {
00028    class DT_DLL_VRVCOREQT DtFieldValuePairDialog : public QDialog
00029    {
00030 
00031       Q_OBJECT;
00032 
00033    public:
00034 
00036       DtFieldValuePairDialog(const DtFeatureFieldValueParser::FeatureFieldValueMap& featureFieldValueMap,
00037          QWidget* parent, Qt::WindowFlags f = Qt::Tool);
00038 
00040       QString field();
00041 
00043       QString value();
00044 
00045    public slots:
00046 
00048       virtual void onOkClicked();
00049 
00051       virtual void onCancelClicked();
00052 
00054       virtual void onFieldComboChanged(int index);
00055 
00057       virtual void onValueComboChanged(int index);
00058 
00059    protected:
00060 
00062       void setupGui();
00063 
00065       QStringList fields(const DtFeatureFieldValueParser::FeatureFieldValueMap& fieldValueMap);
00066 
00068       QStringList values(const DtFeatureFieldValueParser::FeatureFieldValueMap& fieldValueMap, 
00069          QString field);
00070 
00071    protected:
00072 
00073       DtFeatureFieldValueParser::FeatureFieldValueMap myFeatureFieldValueMap;
00074       QComboBox* myFieldCombo;
00075       QComboBox* myValueCombo;
00076       QPushButton* myOkButton;
00077       QPushButton* myCancelButton;
00078       QString myField;
00079       QString myValue;
00080 
00081    };
00082 }
00083 
00084 #endif
00085 

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)