Walls And Holes  1
TileTemplateSet Class Reference

The TileTemplateSet class Stores a list of tile templates. Also implements the item model for them. More...

#include <tiletemplateset.h>

Inheritance diagram for TileTemplateSet:
Collaboration diagram for TileTemplateSet:

Public Member Functions

 TileTemplateSet (QString name="New Tile Template Set", QObject *parent=nullptr)
 
void addTileTemplate (TileTemplate *tileTemplate, bool dontAffectSaveStatus=false)
 
void removeTileTemplate (int index)
 
TileTemplatetileTemplateAt (int i)
 
const TileTemplatecTileTemplateAt (int i) const
 
QString name () const
 
void setName (QString name)
 
int size () const
 
const QList< TileTemplate * > & cTileTemplates () const
 
QModelIndex index (int row, int, const QModelIndex &parent=QModelIndex()) const override
 
QModelIndex parent (const QModelIndex &) const override
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
int columnCount (const QModelIndex &parent=QModelIndex()) const override
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const override
 
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
 
Qt::ItemFlags flags (const QModelIndex &index) const override
 

Protected Member Functions

virtual void changed ()
 

Detailed Description

The TileTemplateSet class Stores a list of tile templates. Also implements the item model for them.

Constructor & Destructor Documentation

◆ TileTemplateSet()

TileTemplateSet::TileTemplateSet ( QString  name = "New Tile Template Set",
QObject *  parent = nullptr 
)
explicit

Member Function Documentation

◆ addTileTemplate()

void TileTemplateSet::addTileTemplate ( TileTemplate tileTemplate,
bool  dontAffectSaveStatus = false 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ changed()

virtual void TileTemplateSet::changed ( )
inlineprotectedvirtual

Reimplemented in SavableTileTemplateSet.

Here is the caller graph for this function:

◆ columnCount()

int TileTemplateSet::columnCount ( const QModelIndex &  parent = QModelIndex()) const
override
Here is the call graph for this function:

◆ cTileTemplateAt()

const TileTemplate* TileTemplateSet::cTileTemplateAt ( int  i) const
inline

◆ cTileTemplates()

const QList<TileTemplate *>& TileTemplateSet::cTileTemplates ( ) const
inline
Here is the caller graph for this function:

◆ data()

QVariant TileTemplateSet::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
override
Here is the call graph for this function:
Here is the caller graph for this function:

◆ flags()

Qt::ItemFlags TileTemplateSet::flags ( const QModelIndex &  index) const
override
Here is the call graph for this function:

◆ index()

QModelIndex TileTemplateSet::index ( int  row,
int  ,
const QModelIndex &  parent = QModelIndex() 
) const
override
Here is the call graph for this function:
Here is the caller graph for this function:

◆ name()

QString TileTemplateSet::name ( ) const
inline
Here is the caller graph for this function:

◆ parent()

QModelIndex TileTemplateSet::parent ( const QModelIndex &  ) const
override
Here is the caller graph for this function:

◆ removeTileTemplate()

void TileTemplateSet::removeTileTemplate ( int  index)
Here is the call graph for this function:

◆ rowCount()

int TileTemplateSet::rowCount ( const QModelIndex &  parent = QModelIndex()) const
override
Here is the call graph for this function:

◆ setData()

bool TileTemplateSet::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)
override
Here is the call graph for this function:

◆ setName()

void TileTemplateSet::setName ( QString  name)
inline
Here is the call graph for this function:

◆ size()

int TileTemplateSet::size ( ) const
inline
Here is the caller graph for this function:

◆ tileTemplateAt()

TileTemplate* TileTemplateSet::tileTemplateAt ( int  i)
inline

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