OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
CSVWorld::PathgridCreator Class Reference

Record creator for pathgrids. More...

#include <pathgridcreator.hpp>

Inheritance diagram for CSVWorld::PathgridCreator:
Collaboration diagram for CSVWorld::PathgridCreator:

Public Member Functions

 PathgridCreator (CSMWorld::Data &data, QUndoStack &undoStack, const CSMWorld::UniversalId &id, CSMWorld::IdCompletionManager &completionManager)
 
virtual void cloneMode (const std::string &originId, const CSMWorld::UniversalId::Type type)
 Set cell ID input widget to ID of record to be cloned. More...
 
virtual std::string getErrors () const
 
virtual void focus ()
 Set focus to cell ID input widget. More...
 
virtual void reset ()
 Clear cell ID input widget. More...
 
- Public Member Functions inherited from CSVWorld::GenericCreator
 GenericCreator (CSMWorld::Data &data, QUndoStack &undoStack, const CSMWorld::UniversalId &id, bool relaxedIdRules=false)
 
virtual void setEditLock (bool locked)
 
virtual void toggleWidgets (bool active=true)
 
virtual void touch (const std::vector< CSMWorld::UniversalId > &ids)
 Touches a record, if the creator supports it. More...
 
virtual void setScope (unsigned int scope)
 Default implementation: Throw an exception if scope!=Scope_Content. More...
 
- Public Member Functions inherited from CSVWorld::Creator
virtual ~Creator ()
 

Private Slots

void cellChanged ()
 Check user input for errors. More...
 

Private Member Functions

virtual std::string getId () const
 
CSMWorld::IdTablegetPathgridsTable () const
 

Private Attributes

CSVWidget::DropLineEditmCell
 

Additional Inherited Members

- Signals inherited from CSVWorld::Creator
void done ()
 
void requestFocus (const std::string &id)
 
- Protected Member Functions inherited from CSVWorld::GenericCreator
void update ()
 
virtual void setManualEditing (bool enabled)
 Enable/disable manual ID editing (enabled by default). More...
 
void insertAtBeginning (QWidget *widget, bool stretched)
 
void insertBeforeButtons (QWidget *widget, bool stretched)
 Insert given widget before Create and Cancel buttons. More...
 
std::string getClonedId () const
 
virtual std::string getIdValidatorResult () const
 
virtual void configureCreateCommand (CSMWorld::CreateCommand &command) const
 Allow subclasses to add additional data to command. More...
 
virtual void pushCommand (std::unique_ptr< CSMWorld::CreateCommand > command, const std::string &id)
 
CSMWorld::DatagetData () const
 
QUndoStack & getUndoStack ()
 
const CSMWorld::UniversalIdgetCollectionId () const
 
std::string getNamespace () const
 
- Protected Attributes inherited from CSVWorld::GenericCreator
bool mCloneMode
 

Detailed Description

Record creator for pathgrids.

Constructor & Destructor Documentation

CSVWorld::PathgridCreator::PathgridCreator ( CSMWorld::Data data,
QUndoStack &  undoStack,
const CSMWorld::UniversalId id,
CSMWorld::IdCompletionManager completionManager 
)

Here is the call graph for this function:

Member Function Documentation

void CSVWorld::PathgridCreator::cellChanged ( )
privateslot

Check user input for errors.

Here is the caller graph for this function:

void CSVWorld::PathgridCreator::cloneMode ( const std::string &  originId,
const CSMWorld::UniversalId::Type  type 
)
virtual

Set cell ID input widget to ID of record to be cloned.

Parameters
originIdCell ID to be cloned.
typeType of record to be cloned.

Reimplemented from CSVWorld::GenericCreator.

Here is the call graph for this function:

void CSVWorld::PathgridCreator::focus ( )
virtual

Set focus to cell ID input widget.

Reimplemented from CSVWorld::GenericCreator.

std::string CSVWorld::PathgridCreator::getErrors ( ) const
virtual
Returns
Error description for current user input.

Reimplemented from CSVWorld::GenericCreator.

Here is the call graph for this function:

std::string CSVWorld::PathgridCreator::getId ( ) const
privatevirtual
Returns
Cell ID entered by user.

Reimplemented from CSVWorld::GenericCreator.

CSMWorld::IdTable & CSVWorld::PathgridCreator::getPathgridsTable ( ) const
private
Returns
reference to table containing pathgrids.

Here is the call graph for this function:

void CSVWorld::PathgridCreator::reset ( )
virtual

Clear cell ID input widget.

Reimplemented from CSVWorld::GenericCreator.

Here is the call graph for this function:

Member Data Documentation

CSVWidget::DropLineEdit* CSVWorld::PathgridCreator::mCell
private

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