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

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

#include <listwindow.h>

Inheritance diagram for ListWindow:

Public Slots

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

Public Member Functions

 ListWindow (Tome::TypesController &typesController, QWidget *parent=0)
 Constructs a new window for adding a new list type or editing an existing one. More...
 
QString getListName () const
 Gets the name of the list type. More...
 
QString getListItemType () const
 Gets the type of the items of the list. More...
 
QString getTypeSetName () const
 Gets the name of the set the list type should belong to. More...
 
void init ()
 Fills all combo boxes of this window with current data.
 
void setListName (const QString &listName)
 Sets the name of the list type. More...
 
void setListItemType (const QString &itemType)
 Sets the type of the items of the list. More...
 
void setTypeSetName (const QString &typeSet)
 Sets the name of the set the list type 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 list type or editing an existing one.

Constructor & Destructor Documentation

◆ ListWindow()

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

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

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

Member Function Documentation

◆ getListItemType()

QString ListWindow::getListItemType ( ) const

Gets the type of the items of the list.

Returns
Type of the items of the list.

◆ getListName()

QString ListWindow::getListName ( ) const

Gets the name of the list type.

Returns
Name of the list type.

◆ getTypeSetName()

QString ListWindow::getTypeSetName ( ) const

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

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

◆ setListItemType()

void ListWindow::setListItemType ( const QString &  itemType)

Sets the type of the items of the list.

Parameters
itemTypeType of the items of the list.

◆ setListName()

void ListWindow::setListName ( const QString &  listName)

Sets the name of the list type.

Parameters
listNameName of the list type.

◆ setTypeSetName()

void ListWindow::setTypeSetName ( const QString &  typeSet)

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

Parameters
typeSetName of the set the list type should belong to.

◆ setTypeSetNames()

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