VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtModelDefinitionComboBox.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtModelDefinitionComboBox.h,v $ $Revision: 1.8 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 #include <vrvCoreQt/vrvCoreQt.h>
16 #include <QtWidgets/QComboBox>
17 #include <QImage>
18 #include <boost/unordered_set.hpp>
19 
20 namespace makVrv
21 {
22  class DtModelDefinition;
23 
28  {
29  public:
30 
32  DtModelDefinitionSchemaComboBox(DtDe& de, QWidget* parent);
33 
36 
37  void populate();
38 
39  protected:
42  };
43 
47  {
48 
49  Q_OBJECT
50 
51  public:
52 
54  DtModelDefinitionComboBox(DtDe& de, QWidget* parent);
55 
58 
60  void populate();
61 
63  void addSchemaFilter(const std::string& filter);
64 
66  void removeSchemaFilter(const std::string& filter);
67 
69  void addPersistentItem(const std::string& persistentItem);
70 
72  void addMissingItem(const std::string& missingItem);
73 
75  void removePersistentItem(const std::string& filter);
76 
80  void setFilteringMode(bool isPositive);
81 
83  void setShowImagesIfAvailable(bool);
84 
86  bool showImagesIfAvailable() const;
87 
88  protected:
89 
91  void slot_modelDefinitionToBeRemoved(const DtModelDefinition& modelDef);
92 
94  void showImagesForModelDefinitions();
95 
98  QImage imageForModelDefinition(const QString&) const;
99 
100  protected:
101  typedef boost::unordered_set<std::string> NameSet;
102 
109 
111  };
112 }

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)