VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtFieldValuePairDialog.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtFieldValuePairDialog.h,v $ $Revision: 1.5 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtFieldValuePairDialog_H_
14 #define DtFieldValuePairDialog_H_
15 
16 #include <vrvCoreQt/vrvCoreQt.h>
18 
19 #include <QtWidgets/QDialog>
20 
21 class QComboBox;
22 class QPushButton;
23 
24 namespace makVrv
25 {
29  {
30 
31  Q_OBJECT;
32 
33  public:
34 
37  QWidget* parent, Qt::WindowFlags f = Qt::Tool);
38 
40  QString field();
41 
43  QString value();
44 
45  public slots:
46 
48  virtual void onOkClicked();
49 
51  virtual void onCancelClicked();
52 
54  virtual void onFieldComboChanged(int index);
55 
57  virtual void onValueComboChanged(int index);
58 
59  protected:
60 
62  void setupGui();
63 
65  QStringList fields(const DtFeatureFieldValueParser::FeatureFieldValueMap& fieldValueMap);
66 
68  QStringList values(const DtFeatureFieldValueParser::FeatureFieldValueMap& fieldValueMap,
69  QString field);
70 
71  protected:
72 
78  QString myField;
79  QString myValue;
80 
81  };
82 }
83 
84 #endif
85 
A DtFieldValuePairDialog provides a simple dialog to choose a field/ value pair.
Definition: DtFieldValuePairDialog.h:28
QString myField
Definition: DtFieldValuePairDialog.h:78
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
QPushButton * myOkButton
Definition: DtFieldValuePairDialog.h:76
QComboBox * myFieldCombo
Definition: DtFieldValuePairDialog.h:74
QComboBox * myValueCombo
Definition: DtFieldValuePairDialog.h:75
DtFeatureFieldValueParser::FeatureFieldValueMap myFeatureFieldValueMap
Definition: DtFieldValuePairDialog.h:73
QString myValue
Definition: DtFieldValuePairDialog.h:79
Contains makVrv::DtAddPropsInterface class.
std::map< std::string, std::set< std::string > > FeatureFieldValueMap
Map of feature fields to a set of values.
Definition: DtFeatureFieldValueParser.h:71
QPushButton * myCancelButton
Definition: DtFieldValuePairDialog.h:77

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)