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

ForLoop Class Reference

#include <forloop.h>

Inheritance diagram for ForLoop:

FlowContainer FlowPart CNItem Item CIWidgetMgr

List of all members.


Detailed Description

Author:
David Saxton

Definition at line 19 of file forloop.h.


Public Types

enum  FlowSymbol {
  ps_process, ps_call, ps_io, ps_round,
  ps_decision, ps_other
}

Public Slots

virtual void moveBy (double dx, double dy)
void removeChild (Item *child)
virtual void removeItem ()
void slotUpdateFlowPartVariables ()
void updateVarNames ()
void varNameChanged (QVariant newValue, QVariant oldValue)

Signals

void movedBy (double dx, double dy)
void orientationChanged ()
void removed (Item *item)
void resized ()
void selectionChanged ()

Public Member Functions

ButtonaddButton (const QString &id, const QRect &pos, QPixmap pixmap, bool toggle=false)
ButtonaddButton (const QString &id, const QRect &pos, const QString &display, bool toggle=false)
void addChild (Item *child)
SlideraddSlider (const QString &id, int minValue, int maxValue, int pageStep, int value, Qt::Orientation orientation, const QRect &pos)
uint allowedOrientations () const
QPointArray areaPoints () const
int baseZ () const
QRect boundingRect () const
QBrush brush () const
Buttonbutton (const QString &id) const
virtual bool canResize () const
QCanvas * canvas () const
NodechildNode (const QString &childId)
ItemList children (bool includeGrandChildren=false) const
bool collidesWith (const QCanvasItem *) const
QCanvasItemList collisions (const bool exact) const
ConnectorList connectorList ()
bool contains (Item *item, bool direct=false) const
virtual bool contentChanged () const
NodecreateNode (double _x, double _y, int orientation, const QString &name, uint type)
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
void drawWidgets (QPainter &p)
FlowPartendPart (QStringList ids, FlowPartList *previousParts=0l)
virtual void enterEvent ()
virtual void finishedCreation ()
QFont font () const
 ForLoop (ICNDocument *icnDocument, bool newItem, const char *id)
virtual void generateMicrobe (FlowCode *)
NodegetClosestNode (const QPoint &pos)
void handleIfElse (FlowCode *code, const QString &case1Statement, const QString &case2Statement, const QString &case1, const QString &case2)
bool hasProperty (const QString &id) const
int height () const
void hide ()
QString id () const
FlowPartList inputParts ()
FlowPartList inputParts (const QString &id)
bool isExpanded () const
virtual bool isMovable () const
bool isRaised () const
bool isSelected () const
bool isVisible () const
virtual ItemData itemData () const
ItemDocumentitemDocument () const
virtual void leaveEvent ()
int level () const
int mgrX () const
int mgrY () 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)
void move (double const x, double const y)
QString name () const
bool needRedraw () const
QString nodeId (const QString &internalNodeId)
NodeInfoMap nodeMap () const
int offsetX () const
int offsetY () const
uint orientation () const
void orientationPixmap (uint orientation, QPixmap &pm) const
FlowPartoutputPart (const QString &internalNodeId)
FlowPartList outputParts ()
bool parentIsCollapsed () const
ItemparentItem () const
QPen pen () const
QPointArray points () const
virtual bool preResize (QRect sizeRect)
Propertyproperty (const QString &id) const
bool removeNode (const QString &name)
void removeWidget (const QString &id)
virtual void restoreFromItemData (const ItemData &itemData)
virtual void setBrush (const QBrush &b)
void setButtonState (const QString &id, int state)
virtual void setCanvas (QCanvas *)
virtual void setCaption (const QString &caption)
void setChanged ()
void setDrawWidgets (bool draw)
void setExpanded (bool expanded)
void setFullBounds (bool full)
void setNeedRedraw (const bool needRedraw)
void setOrientation (uint orientation)
void setParentItem (Item *parentItem)
virtual void setPen (const QPen &p)
void setPoints (QPointArray)
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)
virtual void setVisible (bool yes)
void setWidgetsPos (const QPoint &pos)
void setX (double a)
void setY (double a)
void setZ (double a)
void show ()
QRect sizeRect () const
Sliderslider (const QString &id) const
virtual void sliderValueChanged (const QString &, int)
TextMap textMap () const
QString type () const
virtual void updateConnectorPoints (bool add=true)
void updateContainedVisibility ()
virtual void updateZ (int baseZ)
VariantDataMap * variantMap ()
virtual bool wheelEvent (const EventInfo &eventInfo)
WidgetwidgetWithID (const QString &id) const
int width () const
double x () const
double y () const
double z () const

Static Public Member Functions

static Itemconstruct (ItemDocument *itemDocument, bool newItem, const char *id)
static double getMultiplier (const QString &mag)
static double getMultiplier (double num)
static QString getNumberMag (double num)
static int getNumberPre (double num)
static LibraryItemlibraryItem ()

Protected Slots

virtual void propertyChangedInitial ()

Protected Member Functions

TextaddDisplayText (const QString &id, const QRect &pos, const QString &display, bool internal=true, int flags=Qt::AlignHCenter|Qt::AlignVCenter)
virtual void addToChunks ()
virtual void buttonStateChanged (const QString &id, bool state)
virtual void changeChunks ()
virtual void childAdded (Item *child)
virtual void childRemoved (Item *child)
void createAltOutput ()
void createBotContainerNode ()
void createStdInput ()
void createStdOutput ()
void createTopContainerNode ()
void dataChanged ()
void draw (QPainter &)
virtual void drawShape (QPainter &p)
virtual void filterEndPartIDs (QStringList *ids)
QString gotoCode (const QString &internalNodeId)
void initCallSymbol ()
void initDecisionSymbol ()
void initIOSymbol ()
virtual void initPainter (QPainter &p)
void initProcessSymbol ()
void initRoundedRectSymbol ()
void initSymbol (FlowPart::FlowSymbol symbol, int width=48)
void invalidate ()
bool isValid () const
virtual void itemPointsChanged ()
virtual void postResize ()
void removeDisplayText (const QString &id)
virtual void removeFromChunks ()
virtual void reparented (Item *oldParent, Item *newParent)
void setDisplayText (const QString &id, const QString &display)
void setItemPoints (const QPointArray &pa, bool setSizeFromPoints=true)
void setWinding (bool)
void update ()
virtual void updateAttachedPositioning ()
virtual void updateNodeLevels ()
void updateNodePositions ()
bool winding () const

Protected Attributes

bool b_deleted
bool b_expanded
bool b_pointsAdded
FPNodem_altOutput
int m_baseZ
bool m_bDoneCreation
bool m_bDynamicContent
bool m_bIsRaised
QColor m_brushCol
QString m_caption
ItemList m_children
FPNodem_ext_in
FPNodem_ext_out
QString m_id
FPNodem_int_in
FPNodem_int_out
QPointArray m_itemPoints
QString m_name
 Name (e.g. "Resistor").
NodeInfoMap m_nodeMap
uint m_orientation
QGuardedPtr< FlowCodeDocumentm_pFlowCodeDocument
QPoint m_pos
QTimer * m_pPropertyChangedTimer
 Single show timer for one a property changes.
RectangularOverlaym_rectangularOverlay
QColor m_selectedCol
QRect m_sizeRect
FPNodem_stdInput
FPNodem_stdOutput
TextMap m_textMap
QString m_type
VariantDataMap m_variantData
WidgetMap m_widgetMap
double myx
double myy
double myz
QCanvas * p_canvas
CNItemp_cnItem
QGuardedPtr< ICNDocumentp_icnDocument
QGuardedPtr< ItemDocumentp_itemDocument
GuardedItem p_parentItem
QPointArray poly
bool val

Friends

class ItemLibrary

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

Generated by  Doxygen 1.6.0   Back to index