COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Public Member Functions | Private Attributes | List of all members
FilesListItem Class Reference

Adds a functionnality to QStandardItem class. More...

#include <FilesListItem.hpp>

Inherits QStandardItem.

Public Member Functions

 FilesListItem (const QIcon &icon, const QString &text, FilesListItemType type)
 Constructor. More...
 
FilesListItemType get_type () const
 Gives the type of this item. More...
 

Private Attributes

FilesListItemType m_type
 Indicates the type of this item. More...
 

Detailed Description

Adds a functionnality to QStandardItem class.

This class inherits from QStandardItem and add only one functionnality to its base class : the type of this item. An item can be either a file or a directory and it can be usefull to remember this, for exemple, to easily manage icons.

This class is used by NRemoteBrowser to create items for the list view.

Author
Quentin Gasper.

Definition at line 44 of file FilesListItem.hpp.

Constructor & Destructor Documentation

FilesListItem ( const QIcon &  icon,
const QString &  text,
FilesListItemType  type 
)

Constructor.

Calls the base class constructor with provided icon and text: QStandardItem(icon, text) and sets the provided type value to #type.

Parameters
iconItem icon.
textItem text.
typeItem type.
Exceptions
UnknownTypeIf the type is unknown.

Definition at line 19 of file FilesListItem.cpp.

Member Function Documentation

FilesListItemType get_type ( ) const

Gives the type of this item.

Returns
Returns DIRECTORY if this item is a directory, otherwise returns FILE.

Definition at line 31 of file FilesListItem.cpp.

Member Data Documentation

FilesListItemType m_type
private

Indicates the type of this item.

The value is either DIRECTORY or FILE.

Definition at line 71 of file FilesListItem.hpp.


The documentation for this class was generated from the following files:
Send comments to:
COOLFluiD Web Admin