VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtEntitySoundSelectionDialog.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 
16 
17 #include <QtWidgets/QStyledItemDelegate>
18 
19 class QLineEdit;
20 class QModelIndex;
21 class QString;
22 class QStyleOptionViewItem;
23 
24 namespace makVrv
25 {
26 
27  class DtBaseSoundEditorWidget;
28 
33  {
34  Q_OBJECT;
35 
36  public:
45  DtDe& de,
46  const QString& entity = QString("-1:-1:-1:-1:-1:-1:-1"),
47  const QString& filename = QString(""),
48  float decibels = 60.0,
49  QWidget* parent = NULL,
50  Qt::WindowFlags flags = Qt::Widget | Qt::Tool );
51 
54 
57  static const QString& browserCaption();
58 
61  void setEntityType( QString entity );
62 
65  QString entityType() const;
66 
69  static const QString& entityTypeTooltip();
70 
74  void setSoundFile( const QString& filename );
75 
79  QString soundFile() const;
80 
83  static const QString& soundFileTooltip();
84 
87  void setSoundDecibels( const float decibels );
88 
91  float soundDecibels() const;
92 
95  static const QString& soundDecibelsTip();
96 
97 
98  protected slots:
101  virtual void onUpdateEntityType( const QString& entity );
102 
105  void onUpdateSoundFile( QString filename );
106 
108  virtual void onFileBrowser();
109 
110  virtual void onUpdateDecibels( QString decibels ) ;
111 
112  private:
114  void setupGui();
115 
116  private:
120 
124 
127  };
128 
129 
135  {
136  public:
140  DtSoundFileWidgetDelegate( DtDe& de, QObject* parent = NULL );
141 
143  virtual ~DtSoundFileWidgetDelegate();
144  };
145 }
146 

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)