Documentation des methodes non documentees

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@84 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavierqet
2007-04-09 02:56:47 +00:00
parent 79e057c186
commit 7d25e6091f
20 changed files with 743 additions and 296 deletions

View File

@@ -1,27 +1,51 @@
#ifndef ELEMENT_TEXT_ITEM_H
#define ELEMENT_TEXT_ITEM_H
#include <QGraphicsTextItem>
#include <QtXml>
class ElementTextItem : public QGraphicsTextItem {
// constructeurs
public:
ElementTextItem(QGraphicsItem * = 0, QGraphicsScene * = 0);
ElementTextItem(const QString &, QGraphicsItem * = 0, QGraphicsScene * = 0);
// attributs
private:
bool follow_parent_rotations;
// methodes
public:
enum { Type = UserType + 1003 };
virtual int type() const { return Type; }
inline bool followParentRotations() const { return(follow_parent_rotations); }
inline void setFollowParentRotations(bool frp) { follow_parent_rotations = frp; }
void fromXml(QDomElement &);
QDomElement toXml(QDomDocument &);
void setPos(const QPointF &);
void setPos(qreal, qreal);
QPointF pos() const;
};
#define ELEMENT_TEXT_ITEM_H
#include <QGraphicsTextItem>
#include <QtXml>
/**
Cette classe represente un element de texte editable.
Il est possible pour ce champ de texte de rester dans le sens de la lecture
malgre les rotations de son element parent.
*/
class ElementTextItem : public QGraphicsTextItem {
// constructeurs
public:
ElementTextItem(QGraphicsItem * = 0, QGraphicsScene * = 0);
ElementTextItem(const QString &, QGraphicsItem * = 0, QGraphicsScene * = 0);
// attributs
private:
bool follow_parent_rotations;
// methodes
public:
enum { Type = UserType + 1003 };
virtual int type() const { return Type; }
bool followParentRotations() const;
void setFollowParentRotations(bool);
void fromXml(QDomElement &);
QDomElement toXml(QDomDocument &);
void setPos(const QPointF &);
void setPos(qreal, qreal);
QPointF pos() const;
};
/**
Permet de savoir si le champ de texte suit les rotations de son parent.
@return true si le champ de texte suit les rotations de son parent, false
sinon
*/
inline bool ElementTextItem::followParentRotations() const {
return(follow_parent_rotations);
}
/**
Permet de specifier si le champ de texte suit les rotations de son parent.
@param frp true si le champ de texte doit suivre les rotations de son
parent, false pour qu'ils ne les suivent pas
*/
inline void ElementTextItem::setFollowParentRotations(bool frp) {
follow_parent_rotations = frp;
}
#endif