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

Public Member Functions | |
| DtBaseSoundEditorWidget (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=Qt::Widget) | |
| CTOR Default CTOR. | |
| virtual | ~DtBaseSoundEditorWidget () |
| Virtual DTOR. | |
| 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. | |
| virtual void | removeRecord (const DtEntitySoundMapRecord &rec) |
| Remove an existing record's row from the widget. | |
| virtual void | clearMap () |
| Clear map and reset headers. | |
Public Member Functions inherited from makVrv::DtBaseSoundEditorInterface | |
| virtual | ~DtBaseSoundEditorInterface () |
| DTOR. | |
Protected Types | |
| typedef QList< QStandardItem * > | RowData |
Protected Slots | |
| 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 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 (int row, DtEntitySoundMapRecord *rec) |
| Fill out a sound map record with data from a row. | |
| virtual bool | getRecordFromRow (const QModelIndex &index, DtEntitySoundMapRecord *rec) |
| Fill out a sound map record with data from a row. | |
| virtual RowData | createRowData (const DtEntitySoundMapRecord &rec) |
| Create data for inserting a new row into the model. | |
| 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. | |
Protected Attributes | |
| 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. | |
Private Member Functions | |
| void | setupGui () |
| Create the main GUI layout. | |
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 |
A widget for editing the entity sound mappings.
|
protected |
| makVrv::DtBaseSoundEditorWidget::DtBaseSoundEditorWidget | ( | DtDe & | de, |
| QWidget * | parent = 0, |
||
| Qt::WindowFlags | f = Qt::Widget |
||
| ) |
CTOR 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 |
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. |
Implements makVrv::DtBaseSoundEditorInterface.
Reimplemented in makVrv::DtDetonationSoundEditorWidget, makVrv::DtFireSoundEditorWidget, and makVrv::DtEntitySoundEditorWidget.
|
pure 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::DtBaseSoundEditorInterface.
Implemented in makVrv::DtDetonationSoundEditorWidget, makVrv::DtFireSoundEditorWidget, and makVrv::DtEntitySoundEditorWidget.
|
virtual |
Remove an existing record's row from the widget.
| [in] | rec | is the record of data used to locate the row. |
Implements makVrv::DtBaseSoundEditorInterface.
Reimplemented in makVrv::DtDetonationSoundEditorWidget.
|
virtual |
Clear map and reset headers.
Implements makVrv::DtBaseSoundEditorInterface.
Reimplemented in makVrv::DtDetonationSoundEditorWidget, makVrv::DtFireSoundEditorWidget, and makVrv::DtEntitySoundEditorWidget.
|
protectedpure virtualslot |
Called when user clicks the "Add Entity" button.
|
protectedpure virtualslot |
Called when user clicks the "Delete Entity" button.
|
protectedpure virtualslot |
Called when the data in an item changed.
|
protectedvirtual |
Remove an old entity sound row from the model.
| [in] | row | is the index of the row to remove. |
|
protectedvirtual |
Get a row index from the model keyed from an entity type.
| [in] | key | is the entity type to search for. |
| [in] | reserved | is reserved for future use. |
Reimplemented in makVrv::DtDetonationSoundEditorWidget.
|
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 in makVrv::DtDetonationSoundEditorWidget, and makVrv::DtFireSoundEditorWidget.
|
protectedvirtual |
Fill out a sound map record with data from a row.
| [in] | index | is the index to one piece of data in the row. |
| [out] | rec | is a pointer to a record to fill out. |
| true | record was successfully filled out. |
| false | otherwise. |
|
protectedvirtual |
Create data for inserting a new row into the model.
Reimplemented in makVrv::DtDetonationSoundEditorWidget, and makVrv::DtFireSoundEditorWidget.
|
protectedvirtual |
Set the title for the mapping editor widget.
| [in] | title | is the new title for the widget. |
Set the color of the row based on an error flag.
| [in] | row | is the index of the row for the error. |
| [in] | err | is the error flag (0 means 'no-error'). |
|
protectedvirtual |
Resize the table sections and headers to fit content.
|
private |
Create the main GUI layout.
|
protected |
The display engine for this instance.
|
protected |
The model of the Entity Type to Sound File mappings for editing.
|
protected |
The view of the Entity Type to Sound File mappings for editing.