OSDN Git Service

debugger: use saved "resize columns to contents" settings
[qt-creator-jp/qt-creator-jp.git] / share / qtcreator / qml / qmlpuppet / instances / anchorchangesnodeinstance.h
1 /**************************************************************************
2
3 **
4
5 **  This  file  is  part  of  Qt  Creator
6
7 **
8
9 **  Copyright  (c)  2011  Nokia  Corporation  and/or  its  subsidiary(-ies).
10
11 **
12
13 **  Contact:  Nokia  Corporation  (qt-info@nokia.com)
14
15 **
16
17 **  No  Commercial  Usage
18
19 **
20
21 **  This  file  contains  pre-release  code  and  may  not  be  distributed.
22
23 **  You  may  use  this  file  in  accordance  with  the  terms  and  conditions
24
25 **  contained  in  the  Technology  Preview  License  Agreement  accompanying
26
27 **  this  package.
28
29 **
30
31 **  GNU  Lesser  General  Public  License  Usage
32
33 **
34
35 **  Alternatively,  this  file  may  be  used  under  the  terms  of  the  GNU  Lesser
36
37 **  General  Public  License  version  2.1  as  published  by  the  Free  Software
38
39 **  Foundation  and  appearing  in  the  file  LICENSE.LGPL  included  in  the
40
41 **  packaging  of  this  file.   Please  review  the  following  information  to
42
43 **  ensure  the  GNU  Lesser  General  Public  License  version  2.1  requirements
44
45 **  will  be  met:  http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
46
47 **
48
49 **  In  addition,  as  a  special  exception,  Nokia  gives  you  certain  additional
50
51 **  rights.   These  rights  are  described  in  the  Nokia  Qt  LGPL  Exception
52
53 **  version  1.1,  included  in  the  file  LGPL_EXCEPTION.txt  in  this  package.
54
55 **
56
57 **  If  you  have  questions  regarding  the  use  of  this  file,  please  contact
58
59 **  Nokia  at  info@nokia.com.
60
61 **
62
63 **************************************************************************/
64
65 #ifndef QMLDESIGNER_ANCHORCHANGESNODEINSTANCE_H
66 #define QMLDESIGNER_ANCHORCHANGESNODEINSTANCE_H
67
68 #include "objectnodeinstance.h"
69 #include <private/qdeclarativestateoperations_p.h>
70
71 #include <QPair>
72 #include <QWeakPointer>
73
74 QT_BEGIN_NAMESPACE
75 class QDeclarativeProperty;
76 QT_END_NAMESPACE
77
78 namespace QmlDesigner {
79
80 namespace Internal {
81
82 class AnchorChangesNodeInstance : public ObjectNodeInstance
83 {
84 public:
85     typedef QSharedPointer<AnchorChangesNodeInstance> Pointer;
86     typedef QWeakPointer<AnchorChangesNodeInstance> WeakPointer;
87
88     static Pointer create(QObject *objectToBeWrapped);
89
90     virtual void setPropertyVariant(const QString &name, const QVariant &value);
91     virtual void setPropertyBinding(const QString &name, const QString &expression);
92     virtual QVariant property(const QString &name) const;
93     virtual void resetProperty(const QString &name);
94
95     using ObjectNodeInstance::reparent; // keep the virtual reparent(...) method around
96     void reparent(const ServerNodeInstance &oldParentInstance, const QString &oldParentProperty, const ServerNodeInstance &newParentInstance, const QString &newParentProperty);
97
98 protected:
99     AnchorChangesNodeInstance(QDeclarativeAnchorChanges *object);
100     QDeclarativeAnchorChanges *changesObject() const;
101 };
102
103 } // namespace Internal
104 } // namespace QmlDesigner
105
106 #endif // QMLDESIGNER_ANCHORCHANGESNODEINSTANCE_H