Logo Search packages:      
Sourcecode: ktechlab version File versions

LibraryItem Class Reference

#include <libraryitem.h>

List of all members.


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.


Public Types

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

Public Member Functions

QString activeID () const
QStringList allIDs () const
QString category () const
createItemPtr createItemFnPtr () const
QPixmap icon16 () const
QPixmap iconFull () const
 LibraryItem (QStringList idList, const QString &name, const QString &category, 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, QPixmap icon, Type type, createItemPtr createItem)
QString name () const
int type () const

Protected Member Functions

void createIcon16 ()

Private Attributes

createItemPtr createItem
QString m_category
QPixmap m_icon_16
QPixmap m_icon_full
QStringList m_idList
QString m_name
int m_type

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

Generated by  Doxygen 1.6.0   Back to index