![]() |
Tome
A generic data editor for games supporting arbitrary input and output formats.
|
Allows adding, editing, and removing map items. More...
#include <mapwidget.h>
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... | |
Allows adding, editing, and removing map items.
|
explicit |
Constructs a new widget for adding, editing, and removing map items.
| facetsController | Controller for validating type facets. |
| projectController | Controller for creating, loading and saving projects. |
| recordsController | Controller for adding, updating and removing records. |
| typesController | Controller for adding, updating and removing custom types. |
| parent | Optional owner widget. |
| QString MapWidget::getKeyType | ( | ) | const |
Gets the type of the keys of the map.
| QVariantMap MapWidget::getMap | ( | ) | const |
Gets all current map items.
| QString MapWidget::getValueType | ( | ) | const |
Gets the type of the values of the map.
| void MapWidget::setKeyType | ( | const QString & | keyType | ) |
Gets the type of the keys of the map.
| keyType | Type of the keys of the map. |
| void MapWidget::setMap | ( | const QVariantMap & | map | ) |
Sets all current map items.
| map | All current map items. |
| void MapWidget::setValueType | ( | const QString & | valueType | ) |
Gets the type of the values of the map.
| valueType | Type of the values of the map. |
1.8.13