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
EnumerationWindow Class Reference

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

#include <enumerationwindow.h>

Inheritance diagram for EnumerationWindow:

Public Slots

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

Public Member Functions

 EnumerationWindow (QWidget *parent=0)
 Constructs a new window for adding a new enumeration or editing an existing one. More...
 
QString getEnumerationName () const
 Gets the name of the enumeration. More...
 
QStringList getEnumerationMembers () const
 Gets the items of the enumeration. More...
 
QString getTypeSetName () const
 Gets the name of the set the enumeration should belong to. More...
 
void setEnumerationName (const QString &typeName)
 Sets the name of the enumeration. More...
 
void setEnumerationMembers (const QStringList enumeration)
 Sets the items of the enumeration. More...
 
void setTypeSetName (const QString &typeSet)
 Sets the name of the set the enumeration should belong to. More...
 
void setTypeSetNames (const QStringList &typeSets)
 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 enumeration or editing an existing one.

Constructor & Destructor Documentation

◆ EnumerationWindow()

EnumerationWindow::EnumerationWindow ( QWidget *  parent = 0)
explicit

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

Parameters
parentOptional owner widget.

Member Function Documentation

◆ getEnumerationMembers()

QStringList EnumerationWindow::getEnumerationMembers ( ) const

Gets the items of the enumeration.

Returns
Items of the enumeration.

◆ getEnumerationName()

QString EnumerationWindow::getEnumerationName ( ) const

Gets the name of the enumeration.

Returns
Name of the enumeration.

◆ getTypeSetName()

QString EnumerationWindow::getTypeSetName ( ) const

Gets the name of the set the enumeration should belong to.

Returns
Name of the set the enumeration should belong to.

◆ setEnumerationMembers()

void EnumerationWindow::setEnumerationMembers ( const QStringList  enumeration)

Sets the items of the enumeration.

Parameters
enumerationItems of the enumeration.

◆ setEnumerationName()

void EnumerationWindow::setEnumerationName ( const QString &  typeName)

Sets the name of the enumeration.

Parameters
typeNameName of the enumeration.

◆ setTypeSetName()

void EnumerationWindow::setTypeSetName ( const QString &  typeSet)

Sets the name of the set the enumeration should belong to.

Parameters
typeSetName of the set the enumeration should belong to.

◆ setTypeSetNames()

void EnumerationWindow::setTypeSetNames ( const QStringList &  typeSets)

Sets the list of names of available custom type sets.

Parameters
typeSetsList of names of available custom type sets.

◆ showEvent()

void EnumerationWindow::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: