42 #ifndef QDECLARATIVESTATE_H 43 #define QDECLARATIVESTATE_H 47 #include <QtCore/qobject.h> 48 #include <QtCore/qsharedpointer.h> 49 #include <private/qdeclarativeglobal_p.h> 86 void deleteFromBinding();
95 enum Reason { ActualChange, FastForward };
97 virtual void execute(
Reason reason = ActualChange);
98 virtual bool isReversable();
109 virtual bool changesBindings();
110 virtual void clearBindings();
126 virtual ActionList actions();
160 bool isNamed() const;
164 bool isWhenKnown() const;
168 QString extends() const;
169 void setExtends(const QString &);
172 int operationCount() const;
180 QDeclarativeStateGroup *stateGroup() const;
181 void setStateGroup(QDeclarativeStateGroup *);
183 bool containsPropertyInRevertList(
QObject *target, const QString &name) const;
184 bool changeValueInRevertList(
QObject *target, const QString &name, const
QVariant &revertValue);
186 bool removeEntryFromRevertList(
QObject *target, const QString &name);
188 void removeAllEntriesFromRevertList(
QObject *target);
190 QVariant valueInRevertList(
QObject *target, const QString &name) const;
193 bool isStateActive() const;
210 #endif // QDECLARATIVESTATE_H The QVariant class acts like a union for the most common Qt data types.
QDeclarativeProperty property
#define Q_CLASSINFO(name, value)
This macro associates extra information to the class, which is available using QObject::metaObject()...
#define QT_END_NAMESPACE
This macro expands to.
QList< QDeclarativeAction > ActionList
virtual bool isRewindable()
#define QML_DECLARE_TYPE(TYPE)
static C reverse(const C &l)
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
virtual void saveTargetValues()
QDeclarativeStateOperation::ActionList QDeclarativeStateActions
QDeclarativeBinding * when
virtual void saveOriginals()
#define QT_BEGIN_NAMESPACE
This macro expands to.
QWeakPointer< QDeclarativeAbstractBinding > toBinding
QDeclarativeListProperty< QDeclarativeStateOperation > changes
#define Q_DECLARATIVE_PRIVATE_EXPORT
#define Q_DECLARATIVE_EXPORT
QObject * specifiedObject
#define Q_AUTOTEST_EXPORT
The QDeclarativeContext class defines a context within a QML engine.
The QDeclarativeProperty class abstracts accessing properties on objects created from QML...
QString specifiedProperty
#define Q_DECLARE_PRIVATE(Class)
QDeclarativeActionEvent * event
QDeclarativeStateOperation(QObject *parent=0)
The QDeclarativeExpression class evaluates JavaScript in a QML context.
virtual void copyOriginals(QDeclarativeActionEvent *)
virtual void saveCurrentValues()
QDeclarativeAbstractBinding * fromBinding