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

Allows adding, editing, and removing map items. More...

#include <mapwidget.h>

Inheritance diagram for Tome::MapWidget:

Public Member Functions

 MapWidget (FacetsController &facetsController, ProjectController &projectController, RecordsController &recordsController, TypesController &typesController, QWidget *parent=0)
 Constructs a new widget for adding, editing, and removing map items. More...
 
QString getKeyType () const
 Gets the type of the keys of the map. More...
 
QString getValueType () const
 Gets the type of the values of the map. More...
 
QVariantMap getMap () const
 Gets all current map items. More...
 
void setKeyType (const QString &keyType)
 Gets the type of the keys of the map. More...
 
void setValueType (const QString &valueType)
 Gets the type of the values of the map. More...
 
void setMap (const QVariantMap &map)
 Sets all current map items. More...
 

Detailed Description

Allows adding, editing, and removing map items.

Constructor & Destructor Documentation

◆ MapWidget()

MapWidget::MapWidget ( FacetsController facetsController,
ProjectController projectController,
RecordsController recordsController,
TypesController typesController,
QWidget *  parent = 0 
)
explicit

Constructs a new widget for adding, editing, and removing map items.

Parameters
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.
parentOptional owner widget.

Member Function Documentation

◆ getKeyType()

QString MapWidget::getKeyType ( ) const

Gets the type of the keys of the map.

Returns
Type of the keys of the map.

◆ getMap()

QVariantMap MapWidget::getMap ( ) const

Gets all current map items.

Returns
All current map items.

◆ getValueType()

QString MapWidget::getValueType ( ) const

Gets the type of the values of the map.

Returns
Type of the values of the map.

◆ setKeyType()

void MapWidget::setKeyType ( const QString &  keyType)

Gets the type of the keys of the map.

Parameters
keyTypeType of the keys of the map.

◆ setMap()

void MapWidget::setMap ( const QVariantMap &  map)

Sets all current map items.

Parameters
mapAll current map items.

◆ setValueType()

void MapWidget::setValueType ( const QString &  valueType)

Gets the type of the values of the map.

Parameters
valueTypeType of the values of the map.

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