diff options
Diffstat (limited to 'src/itemdocumentdata.h')
-rw-r--r-- | src/itemdocumentdata.h | 100 |
1 files changed, 50 insertions, 50 deletions
diff --git a/src/itemdocumentdata.h b/src/itemdocumentdata.h index 40c92a6..b5e349a 100644 --- a/src/itemdocumentdata.h +++ b/src/itemdocumentdata.h @@ -14,7 +14,7 @@ #include "item.h" #include "microsettings.h" -#include <qdom.h> +#include <tqdom.h> class Connector; class ECSubcircuit; @@ -22,18 +22,18 @@ class KURL; class Node; class PinMapping; -typedef QValueList<QGuardedPtr<Connector> > ConnectorList; -typedef QValueList<QGuardedPtr<Item> > ItemList; -typedef QValueList<QGuardedPtr<Node> > NodeList; -typedef QMap< QString, PinMapping > PinMappingMap; +typedef TQValueList<TQGuardedPtr<Connector> > ConnectorList; +typedef TQValueList<TQGuardedPtr<Item> > ItemList; +typedef TQValueList<TQGuardedPtr<Node> > NodeList; +typedef TQMap< TQString, PinMapping > PinMappingMap; -typedef QValueList<QPoint> QPointList; -typedef QMap<QString, bool> BoolMap; -typedef QMap<QString, double> DoubleMap; -typedef QMap<QString, int> IntMap; -typedef QMap<QString, QColor> QColorMap; -typedef QMap<QString, QString> QStringMap; -typedef QMap<QString, QBitArray> QBitArrayMap; +typedef TQValueList<TQPoint> TQPointList; +typedef TQMap<TQString, bool> BoolMap; +typedef TQMap<TQString, double> DoubleMap; +typedef TQMap<TQString, int> IntMap; +typedef TQMap<TQString, TQColor> TQColorMap; +typedef TQMap<TQString, TQString> TQStringMap; +typedef TQMap<TQString, TQBitArray> TQBitArrayMap; class ItemData @@ -41,25 +41,25 @@ class ItemData public: ItemData(); - QString type; + TQString type; double x; double y; int z; - QRect size; + TQRect size; bool setSize; int orientation; // used for flowparts, should be set to -1 if not used. double angleDegrees; bool flipped; BoolMap buttonMap; IntMap sliderMap; - QString parentId; + TQString tqparentId; BoolMap dataBool; DoubleMap dataNumber; - QColorMap dataColor; - QStringMap dataString; - QBitArrayMap dataRaw; + TQColorMap dataColor; + TQStringMap dataString; + TQBitArrayMap dataRaw; }; -typedef QMap< QString, ItemData > ItemDataMap; +typedef TQMap< TQString, ItemData > ItemDataMap; class ConnectorData @@ -67,22 +67,22 @@ class ConnectorData public: ConnectorData(); - QPointList route; + TQPointList route; bool manualRoute; bool startNodeIsChild; bool endNodeIsChild; - QString startNodeCId; - QString endNodeCId; + TQString startNodeCId; + TQString endNodeCId; - QString startNodeParent; - QString endNodeParent; + TQString startNodeParent; + TQString endNodeParent; - QString startNodeId; - QString endNodeId; + TQString startNodeId; + TQString endNodeId; }; -typedef QMap< QString, ConnectorData > ConnectorDataMap; +typedef TQMap< TQString, ConnectorData > ConnectorDataMap; class NodeData @@ -93,7 +93,7 @@ class NodeData double x; double y; }; -typedef QMap< QString, NodeData > NodeDataMap; +typedef TQMap< TQString, NodeData > NodeDataMap; class PinData @@ -104,7 +104,7 @@ class PinData PinSettings::pin_type type; PinSettings::pin_state state; }; -typedef QMap< QString, PinData > PinDataMap; +typedef TQMap< TQString, PinData > PinDataMap; class MicroData @@ -113,9 +113,9 @@ class MicroData MicroData(); void reset(); - QString id; + TQString id; PinDataMap pinMap; - QStringMap variableMap; + TQStringMap variableMap; PinMappingMap pinMappings; }; @@ -149,12 +149,12 @@ class ItemDocumentData /** * Returns the xml used for describing the data */ - QString toXML(); + TQString toXML(); /** * Restore the document from the given xml * @return true if successful */ - bool fromXML( const QString &xml ); + bool fromXML( const TQString &xml ); /** * Saves the document to the data */ @@ -193,36 +193,36 @@ class ItemDocumentData /** * Add the given ItemData to the stored data */ - void addItemData( ItemData itemData, QString id ); + void addItemData( ItemData itemData, TQString id ); /** * Add the given ConnectorData to the stored data */ - void addConnectorData( ConnectorData connectorData, QString id ); + void addConnectorData( ConnectorData connectorData, TQString id ); /** * Add the given NodeData to the stored data */ - void addNodeData( NodeData nodeData, QString id ); + void addNodeData( NodeData nodeData, TQString id ); //END functions for adding data //BEGIN functions for returning strings for saving to xml - QString documentTypeString() const; - QString revisionString() const; + TQString documentTypeString() const; + TQString revisionString() const; //END functions for returning strings for saving to xml protected: - //BEGIN functions for generating QDomElements - QDomElement microDataToElement( QDomDocument &doc ); - QDomElement itemDataToElement( QDomDocument &doc, const ItemData &itemData ); - QDomElement nodeDataToElement( QDomDocument &doc, const NodeData &nodeData ); - QDomElement connectorDataToElement( QDomDocument &doc, const ConnectorData &connectorData ); - //END functions for generating QDomElements + //BEGIN functions for generating TQDomElements + TQDomElement microDataToElement( TQDomDocument &doc ); + TQDomElement itemDataToElement( TQDomDocument &doc, const ItemData &itemData ); + TQDomElement nodeDataToElement( TQDomDocument &doc, const NodeData &nodeData ); + TQDomElement connectorDataToElement( TQDomDocument &doc, const ConnectorData &connectorData ); + //END functions for generating TQDomElements - //BEGIN functions for reading QDomElements to stored data - void elementToMicroData( QDomElement element ); - void elementToItemData( QDomElement element ); - void elementToNodeData( QDomElement element ); - void elementToConnectorData( QDomElement element ); - //END functions for reading QDomElements to stored data + //BEGIN functions for reading TQDomElements to stored data + void elementToMicroData( TQDomElement element ); + void elementToItemData( TQDomElement element ); + void elementToNodeData( TQDomElement element ); + void elementToConnectorData( TQDomElement element ); + //END functions for reading TQDomElements to stored data ItemDataMap m_itemDataMap; ConnectorDataMap m_connectorDataMap; |