Tome
A generic data editor for games supporting arbitrary input and output formats.
Signals | Public Member Functions | List of all members
Tome::RecordFieldsTableWidget Class Reference

Allows editing the values of all fields of a record. More...

#include <recordfieldstablewidget.h>

Inheritance diagram for Tome::RecordFieldsTableWidget:

Signals

void fileLinkActivated (const QString &filePath)
 A link to a file on disk has been activated. More...
 
void recordLinkActivated (const QString &recordId)
 A link to another Tome record has been activated. More...
 

Public Member Functions

 RecordFieldsTableWidget (FieldDefinitionsController &fieldDefinitionsController, FacetsController &facetsController, ProjectController &projectController, RecordsController &recordsController, TypesController &typesController)
 Constructs a new widget for editing the values of all fields of a record. More...
 
void setDescriptionColumnEnabled (bool enabled)
 Sets whether to show an additional column with the description of all record fields, or not. More...
 
void setRecord (const QVariant recordId)
 Sets the record to edit the field values of. More...
 
void setShowComponentNames (bool showComponentNames)
 Sets whether to show the names of the respective component in front of the field name, or not. More...
 
void updateFieldValue (int i)
 Updates the specified row of this record field table. More...
 

Detailed Description

Allows editing the values of all fields of a record.

Constructor & Destructor Documentation

◆ RecordFieldsTableWidget()

RecordFieldsTableWidget::RecordFieldsTableWidget ( FieldDefinitionsController fieldDefinitionsController,
FacetsController facetsController,
ProjectController projectController,
RecordsController recordsController,
TypesController typesController 
)

Constructs a new widget for editing the values of all fields of a record.

Parameters
fieldDefinitionsControllerController for adding, updating and removing field definitions.
facetsControllerController for validating type facets.
projectControllerController for creating, loading and saving projects.
recordsControllerController for adding, updating and removing records.
typesControllerController for adding, updating and removing custom types.

Member Function Documentation

◆ fileLinkActivated

void Tome::RecordFieldsTableWidget::fileLinkActivated ( const QString &  filePath)
signal

A link to a file on disk has been activated.

Parameters
filePathPath to the selected file on disk.

◆ recordLinkActivated

void Tome::RecordFieldsTableWidget::recordLinkActivated ( const QString &  recordId)
signal

A link to another Tome record has been activated.

Parameters
recordIdId of the selected record.

◆ setDescriptionColumnEnabled()

void RecordFieldsTableWidget::setDescriptionColumnEnabled ( bool  enabled)

Sets whether to show an additional column with the description of all record fields, or not.

Parameters
enabledWhether to show an additional column with the description of all record fields, or not.

◆ setRecord()

void RecordFieldsTableWidget::setRecord ( const QVariant  recordId)

Sets the record to edit the field values of.

Parameters
recordIdId of the record to edit the field values of.

◆ setShowComponentNames()

void RecordFieldsTableWidget::setShowComponentNames ( bool  showComponentNames)

Sets whether to show the names of the respective component in front of the field name, or not.

Parameters
showComponentNamesWhether to show the names of the respective component in front of the field name, or not.

◆ updateFieldValue()

void RecordFieldsTableWidget::updateFieldValue ( int  i)

Updates the specified row of this record field table.

Parameters
iIndex of the row to update.

The documentation for this class was generated from the following files: