forked from qt-creator/qt-creator
more file cosmetics
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
|
||||
**
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef METATYPEDECLARATIONS_H
|
||||
#define METATYPEDECLARATIONS_H
|
||||
|
||||
|
||||
@@ -30,9 +30,14 @@
|
||||
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
|
||||
**
|
||||
***************************************************************************/
|
||||
|
||||
#include "qworkbench_wrapper.h"
|
||||
|
||||
#include <wrap_helpers.h>
|
||||
|
||||
#include <coreplugin/messagemanager.h>
|
||||
#include <coreplugin/editormanager/editorgroup.h>
|
||||
|
||||
#include <QtCore/QDebug>
|
||||
#include <QtCore/QSettings>
|
||||
|
||||
@@ -41,9 +46,6 @@
|
||||
#include <QtGui/QToolBar>
|
||||
#include <QtScript/QScriptEngine>
|
||||
|
||||
#include <coreplugin/messagemanager.h>
|
||||
#include <coreplugin/editormanager/editorgroup.h>
|
||||
|
||||
namespace {
|
||||
enum { debugQWorkbenchWrappers = 0 };
|
||||
}
|
||||
@@ -377,5 +379,5 @@ Core::EditorGroup *EditorGroupPrototype::callee() const
|
||||
return rc;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace Internal
|
||||
} // namespace Core
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
|
||||
**
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef QWORKBENCH_WRAPPER_H
|
||||
#define QWORKBENCH_WRAPPER_H
|
||||
|
||||
@@ -45,7 +46,8 @@ namespace Internal {
|
||||
|
||||
// Script prototype for the core interface.
|
||||
|
||||
class CorePrototype : public QObject, public QScriptable {
|
||||
class CorePrototype : public QObject, public QScriptable
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
Q_PROPERTY(Core::MessageManager* messageManager READ messageManager DESIGNABLE false SCRIPTABLE true STORED false)
|
||||
@@ -97,7 +99,8 @@ public slots:
|
||||
|
||||
// Script prototype for the file manager interface.
|
||||
|
||||
class FileManagerPrototype : public QObject, public QScriptable {
|
||||
class FileManagerPrototype : public QObject, public QScriptable
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
Q_PROPERTY(QStringList recentFiles READ recentFiles DESIGNABLE false SCRIPTABLE true STORED false)
|
||||
@@ -163,7 +166,8 @@ private:
|
||||
|
||||
// Script prototype for the editor manager interface.
|
||||
|
||||
class EditorManagerPrototype : public QObject, public QScriptable {
|
||||
class EditorManagerPrototype : public QObject, public QScriptable
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(Core::IEditor* currentEditor READ currentEditor WRITE setCurrentEditor DESIGNABLE false SCRIPTABLE true STORED false)
|
||||
Q_PROPERTY(QList<Core::IEditor*> openedEditors READ openedEditors DESIGNABLE false SCRIPTABLE true STORED false)
|
||||
@@ -195,7 +199,8 @@ private:
|
||||
|
||||
// Script prototype for the editor interface.
|
||||
|
||||
class EditorPrototype : public QObject, public QScriptable {
|
||||
class EditorPrototype : public QObject, public QScriptable
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QString displayName READ displayName WRITE setDisplayName DESIGNABLE false SCRIPTABLE true STORED false)
|
||||
Q_PROPERTY(QString kind READ kind DESIGNABLE false SCRIPTABLE true STORED false)
|
||||
@@ -228,7 +233,8 @@ private:
|
||||
|
||||
// Script prototype for the editor group interface with Script-managed life cycle.
|
||||
|
||||
class EditorGroupPrototype : public QObject, public QScriptable {
|
||||
class EditorGroupPrototype : public QObject, public QScriptable
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(int editorCount READ editorCount DESIGNABLE false SCRIPTABLE true STORED false)
|
||||
Q_PROPERTY(Core::IEditor* currentEditor READ currentEditor WRITE setCurrentEditor DESIGNABLE false SCRIPTABLE true STORED false)
|
||||
@@ -259,4 +265,4 @@ private:
|
||||
} // namespace Internal
|
||||
} // namespace Core
|
||||
|
||||
#endif //QWORKBENCH_WRAPPER_H
|
||||
#endif // QWORKBENCH_WRAPPER_H
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
|
||||
**
|
||||
***************************************************************************/
|
||||
|
||||
#include "scriptmanager.h"
|
||||
#include "qworkbench_wrapper.h"
|
||||
#include "metatypedeclarations.h"
|
||||
@@ -309,5 +310,5 @@ QString ScriptManager::engineError(QScriptEngine &scriptEngine)
|
||||
return QObject::tr("Unknown error");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
} // namespace Internal
|
||||
} // namespace Core
|
||||
|
||||
@@ -30,16 +30,17 @@
|
||||
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
|
||||
**
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef SCRIPTMANAGER_H
|
||||
#define SCRIPTMANAGER_H
|
||||
|
||||
#include <coreplugin/scriptmanager/scriptmanagerinterface.h>
|
||||
#include <coreplugin/icore.h>
|
||||
|
||||
#include <QtCore/QObject>
|
||||
#include <QtCore/QList>
|
||||
#include <QtScript/QScriptEngine>
|
||||
|
||||
#include <coreplugin/scriptmanager/scriptmanagerinterface.h>
|
||||
#include <coreplugin/icore.h>
|
||||
|
||||
namespace Core {
|
||||
namespace Internal {
|
||||
|
||||
@@ -68,4 +69,4 @@ private:
|
||||
} // namespace Internal
|
||||
} // namespace Core
|
||||
|
||||
#endif //SCRIPTMANAGER_H
|
||||
#endif // SCRIPTMANAGER_H
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
** version 1.2, included in the file GPL_EXCEPTION.txt in this package.
|
||||
**
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef SCRIPTMANAGERINTERFACE_H
|
||||
#define SCRIPTMANAGERINTERFACE_H
|
||||
|
||||
|
||||
Reference in New Issue
Block a user