VR-Forces 4.6.1 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  float falloff = 10.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  {
86 
87  protected:
94  virtual QWidget* createEditor( QWidget* parent,
95  const QStyleOptionViewItem& option, const QModelIndex& index ) const;
96 
101  virtual void setEditorData(
102  QWidget* editor, const QModelIndex& index ) const;
103 
109  virtual void setModelData( QWidget* editor, QAbstractItemModel* model,
110  const QModelIndex& index ) const;
111 
117  virtual void updateEditorGeometry(
118  QWidget* editor,
119  const QStyleOptionViewItem& option,
120  const QModelIndex& index ) const;
121 
122  public:
124  static const QMap<int, QString> DetonationLabels;
125  };
126 
127 
128 }
129 

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)