FEDEM Solver
R8.0
Source code of the dynamics solver
|
Base class for list view items. More...
#include <FFaListViewItem.H>
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... | |
FFaViewItem & | operator= (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 *, FFaPosExpPair > | FFaPosExpMap |
List view name to position and whether the item is expanded mapping. More... | |
Private Attributes | |
FFaPosExpMap * | posExpInfo |
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... | |
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.
|
private |
List view name to position and whether the item is expanded mapping.
|
private |
Position in list view and whether the item is expanded or not.
|
inline |
Default constructor.
|
inlinevirtual |
The destructor deletes the position and expand status mapping.
bool FFaListViewItem::getExpandedInListView | ( | const char * | lvName | ) | const |
Returns the expand status of this item in the named list view.
|
inlinevirtual |
Returns the pixmap of this item.
int FFaListViewItem::getPositionInListView | ( | const char * | lvName | ) | const |
Returns the position of this item in the named list view.
|
inline |
Returns whether this item is positioned in the named list view.
bool FFaListViewItem::setExpandedInListView | ( | const char * | lvName, |
bool | exp | ||
) |
Sets the expand status of this item in the named list view.
bool FFaListViewItem::setPositionInListView | ( | const char * | lvName, |
int | pos | ||
) |
Sets the position of this item in the named list view.
|
private |
Position and expand status mapping.