|
|
|
@ -32,8 +32,17 @@ namespace CSMWorld
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
virtual bool isEditable() const = 0;
|
|
|
|
|
|
|
|
|
|
virtual bool isUserEditable() const;
|
|
|
|
|
///< Can this column be edited directly by the user?
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
template<typename ESXRecordT>
|
|
|
|
|
bool Column<ESXRecordT>::isUserEditable() const
|
|
|
|
|
{
|
|
|
|
|
return isEditable();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class IdCollectionBase
|
|
|
|
|
{
|
|
|
|
|
// not implemented
|
|
|
|
@ -62,6 +71,8 @@ namespace CSMWorld
|
|
|
|
|
|
|
|
|
|
virtual bool isEditable (int column) const = 0;
|
|
|
|
|
|
|
|
|
|
virtual bool isUserEditable (int column) const = 0;
|
|
|
|
|
|
|
|
|
|
virtual void merge() = 0;
|
|
|
|
|
///< Merge modified into base.
|
|
|
|
|
|
|
|
|
@ -129,6 +140,8 @@ namespace CSMWorld
|
|
|
|
|
|
|
|
|
|
virtual bool isEditable (int column) const;
|
|
|
|
|
|
|
|
|
|
virtual bool isUserEditable (int column) const;
|
|
|
|
|
|
|
|
|
|
virtual void merge();
|
|
|
|
|
///< Merge modified into base.
|
|
|
|
|
|
|
|
|
@ -250,6 +263,12 @@ namespace CSMWorld
|
|
|
|
|
return mColumns.at (column)->isEditable();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template<typename ESXRecordT>
|
|
|
|
|
bool IdCollection<ESXRecordT>::isUserEditable (int column) const
|
|
|
|
|
{
|
|
|
|
|
return mColumns.at (column)->isUserEditable();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template<typename ESXRecordT>
|
|
|
|
|
void IdCollection<ESXRecordT>::addColumn (Column<ESXRecordT> *column)
|
|
|
|
|
{
|
|
|
|
|