aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/designmodecontext.h
diff options
context:
space:
mode:
authorLasse Holmstedt <lasse.holmstedt@nokia.com>2010-02-26 11:08:17 +0100
committerLasse Holmstedt <lasse.holmstedt@nokia.com>2010-02-26 11:17:02 +0100
commitdf7a19de9ecbb88a814bba376fc1f5f6c820eb0f (patch)
tree491850090fe1b6b9ba028a907104ede15fb3f892 /src/plugins/qmldesigner/designmodecontext.h
parent57ee6f0748b5c7471839c2e4d32e8e43cf74b25a (diff)
Design mode integration
Moved Qt Designer to open from Design Mode. Also, Design mode is now global, and created in coreplugin. Other plugins can register themselves to it.
Diffstat (limited to 'src/plugins/qmldesigner/designmodecontext.h')
-rw-r--r--src/plugins/qmldesigner/designmodecontext.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/src/plugins/qmldesigner/designmodecontext.h b/src/plugins/qmldesigner/designmodecontext.h
new file mode 100644
index 0000000000..e35f3aa1fd
--- /dev/null
+++ b/src/plugins/qmldesigner/designmodecontext.h
@@ -0,0 +1,62 @@
+/**************************************************************************
+**
+** This file is part of Qt Creator
+**
+** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+**
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** Commercial Usage
+**
+** Licensees holding valid Qt Commercial licenses may use this file in
+** accordance with the Qt Commercial License Agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Nokia.
+**
+** GNU Lesser General Public License Usage
+**
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** If you are unsure which license is appropriate for your use, please
+** contact the sales department at http://qt.nokia.com/contact.
+**
+**************************************************************************/
+
+#ifndef DESIGNMODECONTEXT_H
+#define DESIGNMODECONTEXT_H
+
+#include <coreplugin/icontext.h>
+#include <QList>
+
+QT_BEGIN_NAMESPACE
+class QWidget;
+QT_END_NAMESPACE
+
+namespace QmlDesigner {
+namespace Internal {
+
+/**
+ * Bauhaus Design mode context object
+ */
+class DesignModeContext : public Core::IContext
+{
+public:
+ DesignModeContext(QWidget *widget);
+ ~DesignModeContext();
+
+ QList<int> context() const;
+ QWidget *widget();
+private:
+ QList<int> m_context;
+ QWidget *m_widget;
+};
+
+}
+}
+
+#endif // DESIGNMODECONTEXT_H