OpenMW
Public Member Functions | Protected Member Functions | Private Slots | Private Attributes
CSVWorld::GenericCreator Class Reference

#include <genericcreator.hpp>

List of all members.

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::DatagetData () const
const CSMWorld::UniversalIdgetCollectionId () const

Private Slots

void textChanged (const QString &text)
void create ()

Private Attributes

CSMWorld::DatamData
QUndoStack & mUndoStack
CSMWorld::UniversalId mListId
QPushButton * mCreate
QLineEdit * mId
std::string mErrors
QHBoxLayout * mLayout
bool mLocked

Constructor & Destructor Documentation

CSVWorld::GenericCreator::GenericCreator ( CSMWorld::Data data,
QUndoStack &  undoStack,
const CSMWorld::UniversalId id,
bool  relaxedIdRules = false 
)

Member Function Documentation

void CSVWorld::GenericCreator::configureCreateCommand ( CSMWorld::CreateCommand command) const [protected, virtual]
void CSVWorld::GenericCreator::create ( ) [private, slot]
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]
void CSVWorld::GenericCreator::insertAtBeginning ( QWidget *  widget,
bool  stretched 
) [protected]
void CSVWorld::GenericCreator::insertBeforeButtons ( QWidget *  widget,
bool  stretched 
) [protected]
void CSVWorld::GenericCreator::reset ( ) [virtual]
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.


Member Data Documentation

QPushButton* CSVWorld::GenericCreator::mCreate [private]
std::string CSVWorld::GenericCreator::mErrors [private]
QLineEdit* CSVWorld::GenericCreator::mId [private]

Reimplemented in CSVWorld::ReferenceCreator.

QHBoxLayout* CSVWorld::GenericCreator::mLayout [private]
QUndoStack& CSVWorld::GenericCreator::mUndoStack [private]

The documentation for this class was generated from the following files: