Logo Search packages:      
Sourcecode: ktechlab version File versions  Download package

Item Class Reference

#include <item.h>

Inheritance diagram for Item:

CNItem DrawPart MechanicsItem Component FlowPart PicItem DPLine DPRectangle DPText ChassisCircular2 ADDAC BiDirLED BinaryCounter Buffer BusSplitter Demultiplexer DependentSource EC555 ECBCDTo7Segment ECBJT ECCapacitor ECCell ECClockInput ECCurrentSignal ECCurrentSource ECDFlipFlop ECDiode ECDPDT ECDPST ECFixedVoltage ECGround ECJKFlipFlop ECKeyPad ECLogicInput ECLogicOutput ECOpAmp ECPotentiometer ECPTBSwitch ECPTMSwitch ECResistor ECRotoSwitch ECSevenSegment ECSignalLamp ECSPDT ECSPST ECSRFlipFlop ECSubcircuit ECVoltageSignal ExternalConnection FullAdder Inductor Inverter MagnitudeComparator MatrixDisplay MatrixDisplayDriver Meter MultiInputGate Multiplexer ParallelPortComponent PICComponent Probe RAM ResistorDIP SerialPortComponent CallSub Count Delay Embed End FlowContainer InputButton Keypad Pulse ReadPort SetPin SevenSeg Start TestPin Unary VarAssignment VarComparison WritePort DPArrow DPEllipse

List of all members.


Detailed Description

Author:
David Saxton

Daniel Clarke

Definition at line 41 of file item.h.


Public Slots

virtual void moveBy (double dx, double dy)
void removeChild (Item *child)
virtual void removeItem ()

Signals

void movedBy (double dx, double dy)
void removed (Item *item)
void resized ()
void selected (Item *item, bool isSelected=true)
void unselected (Item *item, bool isSelected=false)

Public Member Functions

void addChild (Item *child)
int baseZ () const
virtual bool canFlip () const
virtual bool canResize () const
virtual bool canRotate () const
ItemList children (bool includeGrandChildren=false) const
bool contains (Item *item, bool direct=false) const
virtual VariantcreateProperty (const QString &id, Variant::Type::Value type)
bool dataBool (const QString &id) const
QColor dataColor (const QString &id) const
double dataDouble (const QString &id) const
int dataInt (const QString &id) const
QString dataString (const QString &id) const
QString description () const
virtual void enterEvent ()
virtual void finishedCreation ()
const QFont & font () const
bool hasDynamicContent () const
bool hasProperty (const QString &id) const
int height () const
QString id () const
virtual bool isMovable () const
bool isRaised () const
 Item (ItemDocument *itemDocument, bool newItem, const QString &id)
virtual ItemData itemData () const
ItemDocumentitemDocument () const
virtual void leaveEvent ()
int level () const
virtual QSize minimumSize () const
virtual bool mouseDoubleClickEvent (const EventInfo &eventInfo)
virtual bool mouseMoveEvent (const EventInfo &eventInfo)
virtual bool mousePressEvent (const EventInfo &eventInfo)
virtual bool mouseReleaseEvent (const EventInfo &eventInfo)
QString name () const
int offsetX () const
int offsetY () const
ItemparentItem () const
Variantproperty (const QString &id) const
virtual void restoreFromItemData (const ItemData &itemData)
void setChanged ()
void setParentItem (Item *parentItem)
void setRaised (bool isRaised)
virtual void setSelected (bool yes)
void setSize (int x, int y, int w, int h, bool forceItemPoints=false)
void setSize (QRect sizeRect, bool forceItemPoints=false)
QRect sizeRect () const
QString type () const
virtual void updateZ (int baseZ)
VariantDataMap * variantMap ()
virtual bool wheelEvent (const EventInfo &eventInfo)
int width () const

Static Public Member Functions

static double getMultiplier (const QString &mag)
static double getMultiplier (double num)
static QString getNumberMag (double num)
static int getNumberPre (double num)

Protected Slots

virtual void dataChanged ()

Protected Member Functions

virtual void childAdded (Item *)
virtual void childRemoved (Item *)
virtual void itemPointsChanged ()
virtual void postResize ()
virtual bool preResize (QRect sizeRect)
virtual void reparented (Item *, Item *)
void setItemPoints (const QPointArray &pa, bool setSizeFromPoints=true)

Protected Attributes

bool b_deleted
int m_baseZ
bool m_bDoneCreation
bool m_bDynamicContent
bool m_bIsRaised
ItemList m_children
QString m_desc
QFont m_font
QString m_id
QPointArray m_itemPoints
QString m_name
QRect m_sizeRect
QString m_type
VariantDataMap m_variantData
QGuardedPtr< ItemDocumentp_itemDocument
GuardedItem p_parentItem

Friends

class ItemLibrary

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

Generated by  Doxygen 1.6.0   Back to index