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

Window for duplicating an existing record, including all of its field values. More...

#include <duplicaterecordwindow.h>

Inheritance diagram for DuplicateRecordWindow:

Public Slots

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

Public Member Functions

 DuplicateRecordWindow (QWidget *parent=0)
 Constructs a new window for duplicating an existing record, including all of its field values. More...
 
QString getRecordId () const
 Gets the id of the record to add. More...
 
void setDisallowedRecordIds (const QStringList disallowedRecordIds)
 Sets the list of record ids that are prohibited (e.g. because other records with the same id exist). More...
 
void setRecordId (const QString &id)
 Sets the id of the record to add. More...
 

Protected Member Functions

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

Detailed Description

Window for duplicating an existing record, including all of its field values.

Constructor & Destructor Documentation

◆ DuplicateRecordWindow()

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

Constructs a new window for duplicating an existing record, including all of its field values.

Parameters
parentOptional owner widget.

Member Function Documentation

◆ getRecordId()

QString DuplicateRecordWindow::getRecordId ( ) const

Gets the id of the record to add.

Returns
Id of the record to add.

◆ setDisallowedRecordIds()

void DuplicateRecordWindow::setDisallowedRecordIds ( const QStringList  disallowedRecordIds)

Sets the list of record ids that are prohibited (e.g. because other records with the same id exist).

Parameters
disallowedRecordIdsList of record ids that are prohibited.

◆ setRecordId()

void DuplicateRecordWindow::setRecordId ( const QString &  id)

Sets the id of the record to add.

Parameters
idId of the record to add.

◆ showEvent()

void DuplicateRecordWindow::showEvent ( QShowEvent *  event)
protected

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: