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

Window for adding a new map type or editing an existing one. More...

#include <mapwindow.h>

Inheritance diagram for MapWindow:

Public Slots

void accept () Q_DECL_OVERRIDE
 Validates all data and closes this window if successful.
 

Public Member Functions

 MapWindow (Tome::TypesController &typesController, QWidget *parent=0)
 Constructs a new window for adding a new map type or editing an existing one. More...
 
QString getMapName () const
 Gets the name of the map type. More...
 
QString getMapKeyType () const
 Gets the type of the keys of the map. More...
 
QString getMapValueType () const
 Gets the type of the values of the map. More...
 
QString getTypeSetName () const
 Gets the name of the set the map type should belong to. More...
 
void init ()
 Fills all combo boxes of this window with current data.
 
void setMapName (const QString &mapName)
 Sets the name of the map type. More...
 
void setMapKeyType (const QString &keyType)
 Sets the type of the keys of the map. More...
 
void setMapValueType (const QString &valueType)
 Sets the type of the values of the map. More...
 
void setTypeSetName (const QString &typeSetName)
 Sets the name of the set the map type should belong to. More...
 
void setTypeSetNames (const QStringList &typeSetNames)
 Sets the list of names of available custom type sets. More...
 

Protected Member Functions

virtual void showEvent (QShowEvent *event) Q_DECL_OVERRIDE
 Sets up this window, e.g. by setting the focus on the first widget. More...
 

Detailed Description

Window for adding a new map type or editing an existing one.

Constructor & Destructor Documentation

◆ MapWindow()

MapWindow::MapWindow ( Tome::TypesController typesController,
QWidget *  parent = 0 
)
explicit

Constructs a new window for adding a new map type or editing an existing one.

Parameters
typesControllerController for adding, updating and removing custom types.
parentOptional owner widget.

Member Function Documentation

◆ getMapKeyType()

QString MapWindow::getMapKeyType ( ) const

Gets the type of the keys of the map.

Returns
Type of the keys of the map.

◆ getMapName()

QString MapWindow::getMapName ( ) const

Gets the name of the map type.

Returns
Name of the map type.

◆ getMapValueType()

QString MapWindow::getMapValueType ( ) const

Gets the type of the values of the map.

Returns
Type of the values of the map.

◆ getTypeSetName()

QString MapWindow::getTypeSetName ( ) const

Gets the name of the set the map type should belong to.

Returns
Name of the set the map type should belong to.

◆ setMapKeyType()

void MapWindow::setMapKeyType ( const QString &  keyType)

Sets the type of the keys of the map.

Parameters
keyTypeType of the keys of the map.

◆ setMapName()

void MapWindow::setMapName ( const QString &  mapName)

Sets the name of the map type.

Parameters
mapNameName of the map type.

◆ setMapValueType()

void MapWindow::setMapValueType ( const QString &  valueType)

Sets the type of the values of the map.

Parameters
valueTypeType of the values of the map.

◆ setTypeSetName()

void MapWindow::setTypeSetName ( const QString &  typeSetName)

Sets the name of the set the map type should belong to.

Parameters
typeSetNameName of the set the map type should belong to.

◆ setTypeSetNames()

void MapWindow::setTypeSetNames ( const QStringList &  typeSetNames)

Sets the list of names of available custom type sets.

Parameters
typeSetNamesList of names of available custom type sets.

◆ showEvent()

void MapWindow::showEvent ( QShowEvent *  event)
protectedvirtual

Sets up this window, e.g. by setting the focus on the first widget.

Parameters
eventEvent for showing this window.

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