Inviwo  0.9.10.1
Inviwo documentation
inviwo::FileTreeModel Class Reference
+ Inheritance diagram for inviwo::FileTreeModel:

Public Types

enum  ItemRoles { FileName = Qt::UserRole + 100, Path, Type, ExampleWorkspace }
 
enum  ListElemType { File = 1, Section, SubSection, None }
 

Public Member Functions

 FileTreeModel (QObject *parent=nullptr)
 
virtual QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const override
 
virtual Qt::ItemFlags flags (const QModelIndex &index) const override
 
virtual QVariant data (const QModelIndex &index, int role) const override
 
virtual QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
 
virtual QModelIndex parent (const QModelIndex &index) const override
 
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
virtual int columnCount (const QModelIndex &parent=QModelIndex()) const override
 
virtual bool insertRows (int position, int rows, const QModelIndex &parent=QModelIndex()) override
 
virtual bool removeRows (int position, int rows, const QModelIndex &parent=QModelIndex()) override
 
void updateCategory (TreeItem *item, std::vector< std::unique_ptr< TreeItem >> children)
 
void addEntry (TreeItem *root, std::unique_ptr< TreeItem > child)
 
bool removeEntry (TreeItem *node)
 
bool removeChildren (TreeItem *root)
 
QModelIndex getIndex (TreeItem *item, int column=0) const
 

Friends

bool operator== (const QVariant &, ListElemType)
 
bool operator== (ListElemType, const QVariant &)
 
bool operator!= (const QVariant &, ListElemType)
 
bool operator!= (ListElemType, const QVariant &)
 

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