LibraryItem Class Reference

Details of an Item. More...

#include <libraryitem.h>

List of all members.

Public Types

enum  Type {
  lit_flowpart, lit_component, lit_mechanical, lit_drawpart,
  lit_subcircuit, lit_other
}

Public Member Functions

 ~LibraryItem ()
 LibraryItem (QStringList idList, const QString &name, const QString &category, QPixmap icon, Type type, createItemPtr createItem)
 LibraryItem (QStringList idList, const QString &name, const QString &category, const QString &iconName, Type type, createItemPtr createItem)
 LibraryItem (QStringList idList, const QString &name, const QString &category, Type type, createItemPtr createItem)
QString activeID () const
QStringList allIDs () const
QString name () const
QString category () const
QPixmap iconFull () const
QPixmap icon16 () const
createItemPtr createItemFnPtr () const
int type () const

Protected Member Functions

void createIcon16 ()


Detailed Description

Details of an Item.

This holds details of an item - id, name, category it is displayed in in its respective item selector, icon, function pointers to creating the item, etc. Normally each item will only pass one id, but some items have had their IDs changed during the history of ktl, so passing a stringlist will take the first ID as the "active" id, and the rest as IDs that will also be recognized, but never displayed to the user.

Author:
David Saxton

Definition at line 28 of file libraryitem.h.


The documentation for this class was generated from the following files:
Generated on Tue May 8 17:05:47 2007 for KTechLab by  doxygen 1.5.1