forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user