Added preview menu and shortcuts for qt quick (Ctrl+Alt+R)

This was needed since we cannot start stuff otherwise without a project

Task-number: BAUHAUS-450
Reviewed-by: kkoehne
This commit is contained in:
Lasse Holmstedt
2010-04-23 13:19:28 +02:00
parent 6b09a506ac
commit 21fbbc2c15
12 changed files with 156 additions and 5 deletions

View File

@@ -32,10 +32,18 @@
#include <extensionsystem/iplugin.h>
QT_FORWARD_DECLARE_CLASS(QAction)
namespace TextEditor {
class TextEditorActionHandler;
} // namespace TextEditor
namespace Core {
class Command;
class ActionContainer;
class ActionManager;
}
namespace QmlJSEditor {
class ModelManagerInterface;
@@ -46,6 +54,7 @@ namespace Internal {
class QmlJSEditorFactory;
class CodeCompletion;
class QmlJSTextEditor;
class QmlJSPreviewRunner;
class QmlJSEditorPlugin : public ExtensionSystem::IPlugin
{
@@ -67,9 +76,18 @@ public:
public Q_SLOTS:
void followSymbolUnderCursor();
private Q_SLOTS:
void openPreview();
private:
Core::Command *addToolAction(QAction *a, Core::ActionManager *am, const QList<int> &context, const QString &name,
Core::ActionContainer *c1, const QString &keySequence);
static QmlJSEditorPlugin *m_instance;
QAction *m_actionPreview;
QmlJSPreviewRunner *m_previewRunner;
ModelManagerInterface *m_modelManager;
QmlFileWizard *m_wizard;
QmlJSEditorFactory *m_editor;