forked from qt-creator/qt-creator
Editor: Allow defining custom snippet parser function
Task-number: QTCREATORBUG-22406 Change-Id: I21ae9740d348d4e0869029343d51b70f9df9cdac Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -26,10 +26,12 @@
|
||||
#pragma once
|
||||
|
||||
#include "texteditor_global.h"
|
||||
|
||||
#include "blockrange.h"
|
||||
#include "codeassist/assistenums.h"
|
||||
#include "indenter.h"
|
||||
#include "refactoroverlay.h"
|
||||
#include "snippets/snippetparser.h"
|
||||
|
||||
#include <coreplugin/editormanager/editormanager.h>
|
||||
#include <coreplugin/editormanager/ieditor.h>
|
||||
@@ -265,7 +267,9 @@ public:
|
||||
|
||||
void setReadOnly(bool b);
|
||||
|
||||
void insertCodeSnippet(const QTextCursor &cursor, const QString &snippet);
|
||||
void insertCodeSnippet(const QTextCursor &cursor,
|
||||
const QString &snippet,
|
||||
const SnippetParser &parse);
|
||||
|
||||
void setBlockSelection(bool on);
|
||||
void setBlockSelection(int positionBlock, int positionColumn, int anchhorBlock,
|
||||
|
||||
Reference in New Issue
Block a user