FEDEM Solver  R8.0
Source code of the dynamics solver
Public Member Functions | Private Types | Private Attributes | List of all members
FFaListViewItem Class Reference

Base class for list view items. More...

#include <FFaListViewItem.H>

Inheritance diagram for FFaListViewItem:
Inheritance graph
[legend]
Collaboration diagram for FFaListViewItem:
Collaboration graph
[legend]

Public Member Functions

 FFaListViewItem ()
 Default constructor. More...
 
virtual ~FFaListViewItem ()
 The destructor deletes the position and expand status mapping. More...
 
virtual const char ** getListViewPixmap () const
 Returns the pixmap of this item. More...
 
bool setPositionInListView (const char *lvName, int pos)
 Sets the position of this item in the named list view. More...
 
int getPositionInListView (const char *lvName) const
 Returns the position of this item in the named list view. More...
 
bool setExpandedInListView (const char *lvName, bool exp)
 Sets the expand status of this item in the named list view. More...
 
bool getExpandedInListView (const char *lvName) const
 Returns the expand status of this item in the named list view. More...
 
bool isSubjectToLVPositioning (const char *lvName) const
 Returns whether this item is positioned in the named list view. More...
 
- Public Member Functions inherited from FFaViewItem
 FFaViewItem ()=default
 Default constructor. More...
 
 FFaViewItem (const FFaViewItem &)=delete
 Disable default copy constructor. More...
 
virtual ~FFaViewItem ()
 Empty destructor. More...
 
FFaViewItemoperator= (const FFaViewItem &)=delete
 Disable default assignment operator. More...
 
virtual char const * getItemName () const =0
 Returns the name of this item. More...
 
virtual std::string getItemDescr () const =0
 Returns the description of this item. More...
 
virtual int getItemID () const =0
 Returns the user ID of this item. More...
 
virtual int getItemBaseID () const =0
 Returns the base ID of this item. More...
 
virtual void getItemAssemblyPath (std::vector< int > &) const
 Returns the sub-assembly ID path of this item. More...
 

Private Types

typedef std::pair< int, bool > FFaPosExpPair
 Position in list view and whether the item is expanded or not. More...
 
typedef std::map< char const *, FFaPosExpPairFFaPosExpMap
 List view name to position and whether the item is expanded mapping. More...
 

Private Attributes

FFaPosExpMapposExpInfo
 Position and expand status mapping. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from FFaViewItem
static bool compareDescr (FFaViewItem *i1, FFaViewItem *i2)
 Binary comparison of description strings (implementation of less). More...
 
static bool compareID (FFaViewItem *i1, FFaViewItem *i2)
 Binary comparison of user IDs (implementation of less). More...
 
static int compareDescr3w (FFaViewItem *i1, FFaViewItem *i2)
 Three-way lexicographical comparison of description strings. More...
 
static int compareID3w (FFaViewItem *i1, FFaViewItem *i2)
 Three-way lexicographical comparison of user IDs. More...
 

Detailed Description

Base class for list view items.

Every item that should live inside a list view must be an FFaListViewItem. The item can have an explicit list view position, but if it doesn't the list view will sort on item IDs, and if that doesn't exist either, the items will be positioned in the order of occurence.

Member Typedef Documentation

◆ FFaPosExpMap

typedef std::map<char const*,FFaPosExpPair> FFaListViewItem::FFaPosExpMap
private

List view name to position and whether the item is expanded mapping.

◆ FFaPosExpPair

typedef std::pair<int,bool> FFaListViewItem::FFaPosExpPair
private

Position in list view and whether the item is expanded or not.

Constructor & Destructor Documentation

◆ FFaListViewItem()

FFaListViewItem::FFaListViewItem ( )
inline

Default constructor.

◆ ~FFaListViewItem()

virtual FFaListViewItem::~FFaListViewItem ( )
inlinevirtual

The destructor deletes the position and expand status mapping.

Member Function Documentation

◆ getExpandedInListView()

bool FFaListViewItem::getExpandedInListView ( const char *  lvName) const

Returns the expand status of this item in the named list view.

◆ getListViewPixmap()

virtual const char** FFaListViewItem::getListViewPixmap ( ) const
inlinevirtual

Returns the pixmap of this item.

◆ getPositionInListView()

int FFaListViewItem::getPositionInListView ( const char *  lvName) const

Returns the position of this item in the named list view.

◆ isSubjectToLVPositioning()

bool FFaListViewItem::isSubjectToLVPositioning ( const char *  lvName) const
inline

Returns whether this item is positioned in the named list view.

◆ setExpandedInListView()

bool FFaListViewItem::setExpandedInListView ( const char *  lvName,
bool  exp 
)

Sets the expand status of this item in the named list view.

◆ setPositionInListView()

bool FFaListViewItem::setPositionInListView ( const char *  lvName,
int  pos 
)

Sets the position of this item in the named list view.

Member Data Documentation

◆ posExpInfo

FFaPosExpMap* FFaListViewItem::posExpInfo
private

Position and expand status mapping.


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