![]() |
VR-Forces 4.3.1 Class Documentation
|
A widget for editing the weapon-fire sound mappings. More...

Public Member Functions | |
| DtFireSoundEditorWidget (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=Qt::Widget) | |
| Default CTOR. | |
| virtual | ~DtFireSoundEditorWidget () |
| Virtual DTOR. | |
| virtual void | clearMap () |
| Clear map and reset headers. | |
| virtual int | addRecord (const DtEntitySoundMapRecord &rec, int err=0) |
| Adds a new record to the widget at the currently selected row. | |
| virtual int | changeRecord (const DtEntitySoundMapRecord &rec, int err=0) |
| Changes an existing record's row in the widget. | |
Public Member Functions inherited from makVrv::DtBaseSoundEditorWidget | |
| DtBaseSoundEditorWidget (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=Qt::Widget) | |
| CTOR Default CTOR. | |
| virtual | ~DtBaseSoundEditorWidget () |
| Virtual DTOR. | |
| virtual void | removeRecord (const DtEntitySoundMapRecord &rec) |
| Remove an existing record's row from the widget. | |
Public Member Functions inherited from makVrv::DtBaseSoundEditorInterface | |
| virtual | ~DtBaseSoundEditorInterface () |
| DTOR. | |
Protected Slots | |
| virtual void | onAddEntityClicked () |
| Called when user clicks the "Add Entity" button. | |
| virtual void | onDeleteEntityClicked () |
| Called when user clicks the "Delete Entity" button. | |
| virtual void | onItemChanged (QStandardItem *item) |
| Data in the row of the given item changed, send an update. | |
Protected Slots inherited from makVrv::DtBaseSoundEditorWidget | |
| virtual void | onAddEntityClicked ()=0 |
| Called when user clicks the "Add Entity" button. | |
| virtual void | onDeleteEntityClicked ()=0 |
| Called when user clicks the "Delete Entity" button. | |
| virtual void | onItemChanged (QStandardItem *item)=0 |
| Called when the data in an item changed. | |
Protected Member Functions | |
| virtual bool | getRecordFromRow (int row, DtEntitySoundMapRecord *rec) |
| Fill out a sound map record with data from a row. | |
| virtual RowData | createRowData (const DtEntitySoundMapRecord &rec=DtFireSoundMapRecord()) |
| Create data for inserting a new row into the model. | |
Protected Member Functions inherited from makVrv::DtBaseSoundEditorWidget | |
| virtual void | removeRow (int row) |
| Remove an old entity sound row from the model. | |
| virtual int | rowIndex (const QString &key, int reserved=0) |
| Get a row index from the model keyed from an entity type. | |
| virtual bool | getRecordFromRow (const QModelIndex &index, DtEntitySoundMapRecord *rec) |
| Fill out a sound map record with data from a row. | |
| virtual void | setWidgetTitle (const QString &title) |
| Set the title for the mapping editor widget. | |
| virtual void | setRowError (int row, int err=0) |
| Set the color of the row based on an error flag. | |
| virtual void | resizeSections () |
| Resize the table sections and headers to fit content. | |
Private Types | |
| enum | Columns { EntityCol, WaveFileCol, ChannelCol, NumColumns } |
Additional Inherited Members | |
Public Attributes inherited from makVrv::DtBaseSoundEditorInterface | |
| boost::signal< void(const DtEntitySoundMapRecord &)> | signal_SoundMapRecordChanged |
| Signal emitted when the user changes data in the widget. | |
| boost::signal< void(const DtEntitySoundMapRecord &)> | signal_SoundMapRecordRemoved |
Protected Types inherited from makVrv::DtBaseSoundEditorWidget | |
| typedef QList< QStandardItem * > | RowData |
Protected Attributes inherited from makVrv::DtBaseSoundEditorWidget | |
| DtDe & | myDe |
| The display engine for this instance. | |
| QStandardItemModel * | myEditorModel |
| The model of the Entity Type to Sound File mappings for editing. | |
| QTreeView * | myEditorView |
| The view of the Entity Type to Sound File mappings for editing. | |
A widget for editing the weapon-fire sound mappings.
|
private |
| makVrv::DtFireSoundEditorWidget::DtFireSoundEditorWidget | ( | DtDe & | de, |
| QWidget * | parent = 0, |
||
| Qt::WindowFlags | f = Qt::Widget |
||
| ) |
Default CTOR.
| [in] | de | is the display engine for this instance. |
| [in] | parent | is the parent widget for this widget. |
| [in] | flags | is an OR'd list of Qt window flags. |
|
virtual |
Virtual DTOR.
|
virtual |
Clear map and reset headers.
Reimplemented from makVrv::DtBaseSoundEditorWidget.
|
virtual |
Adds a new record to the widget at the currently selected row.
| [in] | rec | is the record of data to populate the new row. |
| [in] | err | is a flag indicating an error with sound file or data. |
Reimplemented from makVrv::DtBaseSoundEditorWidget.
|
virtual |
Changes an existing record's row in the widget.
| [in] | rec | is the record of data to populate the row. |
| [in] | err | is a flag indicating an error with sound file or data. |
Implements makVrv::DtBaseSoundEditorWidget.
|
protectedvirtualslot |
Called when user clicks the "Add Entity" button.
|
protectedvirtualslot |
Called when user clicks the "Delete Entity" button.
|
protectedvirtualslot |
Data in the row of the given item changed, send an update.
| [in] | item | is the item of the model that changed. |
|
protectedvirtual |
Fill out a sound map record with data from a row.
| [in] | row | is the row to get the data from. |
| [out] | rec | is a pointer to a record to fill out. |
| true | record was successfully filled out. |
| false | otherwise. |
Reimplemented from makVrv::DtBaseSoundEditorWidget.
|
protectedvirtual |
Create data for inserting a new row into the model.
| [in] | rec | is the record of data used to populate a new row. |
Reimplemented from makVrv::DtBaseSoundEditorWidget.