OpenMW
|
#include <genericcreator.hpp>
Public Member Functions | |
GenericCreator (CSMWorld::Data &data, QUndoStack &undoStack, const CSMWorld::UniversalId &id, bool relaxedIdRules=false) | |
virtual void | setEditLock (bool locked) |
virtual void | reset () |
virtual std::string | getErrors () const |
Protected Member Functions | |
void | update () |
virtual void | setManualEditing (bool enabled) |
Enable/disable manual ID editing (enabled by default). | |
void | insertAtBeginning (QWidget *widget, bool stretched) |
void | insertBeforeButtons (QWidget *widget, bool stretched) |
virtual std::string | getId () const |
virtual void | configureCreateCommand (CSMWorld::CreateCommand &command) const |
CSMWorld::Data & | getData () const |
const CSMWorld::UniversalId & | getCollectionId () const |
Private Slots | |
void | textChanged (const QString &text) |
void | create () |
Private Attributes | |
CSMWorld::Data & | mData |
QUndoStack & | mUndoStack |
CSMWorld::UniversalId | mListId |
QPushButton * | mCreate |
QLineEdit * | mId |
std::string | mErrors |
QHBoxLayout * | mLayout |
bool | mLocked |
CSVWorld::GenericCreator::GenericCreator | ( | CSMWorld::Data & | data, |
QUndoStack & | undoStack, | ||
const CSMWorld::UniversalId & | id, | ||
bool | relaxedIdRules = false |
||
) |
void CSVWorld::GenericCreator::configureCreateCommand | ( | CSMWorld::CreateCommand & | command | ) | const [protected, virtual] |
void CSVWorld::GenericCreator::create | ( | ) | [private, slot] |
const CSMWorld::UniversalId & CSVWorld::GenericCreator::getCollectionId | ( | ) | const [protected] |
CSMWorld::Data & CSVWorld::GenericCreator::getData | ( | ) | const [protected] |
std::string CSVWorld::GenericCreator::getErrors | ( | ) | const [virtual] |
Return formatted error descriptions for the current state of the creator. if an empty string is returned, there is no error.
Reimplemented in CSVWorld::InfoCreator, and CSVWorld::ReferenceCreator.
std::string CSVWorld::GenericCreator::getId | ( | ) | const [protected, virtual] |
Reimplemented in CSVFilter::FilterCreator, CSVWorld::CellCreator, CSVWorld::InfoCreator, and CSVWorld::ReferenceCreator.
void CSVWorld::GenericCreator::insertAtBeginning | ( | QWidget * | widget, |
bool | stretched | ||
) | [protected] |
void CSVWorld::GenericCreator::insertBeforeButtons | ( | QWidget * | widget, |
bool | stretched | ||
) | [protected] |
void CSVWorld::GenericCreator::reset | ( | ) | [virtual] |
Implements CSVWorld::Creator.
Reimplemented in CSVFilter::FilterCreator, CSVWorld::CellCreator, CSVWorld::InfoCreator, CSVWorld::ReferenceCreator, and CSVWorld::ReferenceableCreator.
void CSVWorld::GenericCreator::setEditLock | ( | bool | locked | ) | [virtual] |
Implements CSVWorld::Creator.
void CSVWorld::GenericCreator::setManualEditing | ( | bool | enabled | ) | [protected, virtual] |
Enable/disable manual ID editing (enabled by default).
void CSVWorld::GenericCreator::textChanged | ( | const QString & | text | ) | [private, slot] |
void CSVWorld::GenericCreator::update | ( | ) | [protected] |
Reimplemented in CSVFilter::FilterCreator.
QPushButton* CSVWorld::GenericCreator::mCreate [private] |
CSMWorld::Data& CSVWorld::GenericCreator::mData [private] |
std::string CSVWorld::GenericCreator::mErrors [private] |
QLineEdit* CSVWorld::GenericCreator::mId [private] |
Reimplemented in CSVWorld::ReferenceCreator.
QHBoxLayout* CSVWorld::GenericCreator::mLayout [private] |
bool CSVWorld::GenericCreator::mLocked [private] |
QUndoStack& CSVWorld::GenericCreator::mUndoStack [private] |