VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtDetonationSoundSelectionDialog.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvAudioQt/dllExport.h>
14 
15 #include <QtCore/QMap>
16 
17 #include <QtWidgets/QItemDelegate>
18 
19 class QAbstractItemModel;
20 class QComboBox;
21 class QModelIndex;
22 class QString;
23 class QStyleOptionViewItem;
24 
25 namespace makVrv
26 {
27 
28 
33  {
34  Q_OBJECT;
35 
36  public:
46  DtDe& de,
47  const QString& entity = QString("-1:-1:-1:-1:-1:-1:-1"),
48  const QString& filename = QString(""),
49  int result = -1,
50  int chan = 0,
51  QWidget* parent = NULL,
52  Qt::WindowFlags flags = Qt::Widget | Qt::Tool );
53 
56 
59  void setDetonationResult( int result );
60 
63  int detonationResult() const;
64 
67  static const QString& detonationTooltip();
68 
69  private:
71  void setupGui();
72 
73  private:
76  };
77 
78 
83  {
84  Q_OBJECT
85 
88 
89  protected:
96  virtual QWidget* createEditor( QWidget* parent,
97  const QStyleOptionViewItem& option, const QModelIndex& index ) const;
98 
103  virtual void setEditorData(
104  QWidget* editor, const QModelIndex& index ) const;
105 
111  virtual void setModelData( QWidget* editor, QAbstractItemModel* model,
112  const QModelIndex& index ) const;
113 
119  virtual void updateEditorGeometry(
120  QWidget* editor,
121  const QStyleOptionViewItem& option,
122  const QModelIndex& index ) const;
123 
124  public:
126  static const QMap<int, QString> DetonationLabels;
127  };
128 
129 
130 }
131 

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)