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

Window for adding a new component. More...

#include <componentwindow.h>

Inheritance diagram for ComponentWindow:

Public Slots

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

Public Member Functions

 ComponentWindow (QWidget *parent=0)
 Constructs a new window for adding a new component. More...
 
QString getComponentName () const
 Gets the name of the component to add. More...
 
QString getComponentSetName () const
 Gets the name of the component set to add the new component to. More...
 
void setDisallowedComponentIds (const QStringList disallowedComponentIds)
 Sets the list of component names that are already taken and thus forbidden. More...
 
void setComponentSetName (const QString &componentSetName)
 Pre-selects a component set to add the new component to. More...
 
void setComponentSetNames (const QStringList &componentSetNames)
 Sets the list of available component set names. 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 component.

Constructor & Destructor Documentation

◆ ComponentWindow()

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

Constructs a new window for adding a new component.

Parameters
parentOptional owner widget.

Member Function Documentation

◆ getComponentName()

QString ComponentWindow::getComponentName ( ) const

Gets the name of the component to add.

Returns
Name of the component to add.

◆ getComponentSetName()

QString ComponentWindow::getComponentSetName ( ) const

Gets the name of the component set to add the new component to.

Returns
Name of the component set to add the new component to.

◆ setComponentSetName()

void ComponentWindow::setComponentSetName ( const QString &  componentSetName)

Pre-selects a component set to add the new component to.

Parameters
componentSetNameComponent set to add the new component to.

◆ setComponentSetNames()

void ComponentWindow::setComponentSetNames ( const QStringList &  componentSetNames)

Sets the list of available component set names.

Parameters
componentSetNamesList of available component set names.

◆ setDisallowedComponentIds()

void ComponentWindow::setDisallowedComponentIds ( const QStringList  disallowedComponentIds)

Sets the list of component names that are already taken and thus forbidden.

Parameters
disallowedComponentIdsList of component names that are forbidden.

◆ showEvent()

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