VR-Forces 5.0.2 Developer's Guide
 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 
9 
10 #ifndef DtFieldValuePairDialog_H_
11 #define DtFieldValuePairDialog_H_
12 
13 #include <vrvCoreQt/vrvCoreQt.h>
15 
16 #include <QtWidgets/QDialog>
17 
18 class QComboBox;
19 class QPushButton;
20 
21 namespace makVrv
22 {
26  {
27 
28  Q_OBJECT;
29 
30  public:
31 
34  QWidget* parent, Qt::WindowFlags f = Qt::Tool);
35 
37  QString field();
38 
40  QString value();
41 
42  public slots:
43 
45  virtual void onOkClicked();
46 
48  virtual void onCancelClicked();
49 
51  virtual void onFieldComboChanged(int index);
52 
54  virtual void onValueComboChanged(int index);
55 
56  protected:
57 
59  void setupGui();
60 
62  QStringList fields(const DtFeatureFieldValueParser::FeatureFieldValueMap& fieldValueMap);
63 
65  QStringList values(const DtFeatureFieldValueParser::FeatureFieldValueMap& fieldValueMap,
66  QString field);
67 
68  protected:
69 
75  QString myField;
76  QString myValue;
77 
78  };
79 }
80 
81 #endif
82 
A DtFieldValuePairDialog provides a simple dialog to choose a field/ value pair.
Definition: DtFieldValuePairDialog.h:25
QString myField
Definition: DtFieldValuePairDialog.h:75
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
QPushButton * myOkButton
Definition: DtFieldValuePairDialog.h:73
QComboBox * myFieldCombo
Definition: DtFieldValuePairDialog.h:71
QComboBox * myValueCombo
Definition: DtFieldValuePairDialog.h:72
DtFeatureFieldValueParser::FeatureFieldValueMap myFeatureFieldValueMap
Definition: DtFieldValuePairDialog.h:70
QString myValue
Definition: DtFieldValuePairDialog.h:76
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:68
QPushButton * myCancelButton
Definition: DtFieldValuePairDialog.h:74

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)