forked from qt-creator/qt-creator
TextEditor: Re-work comment definition handling
No need for most of the machinery. Change-Id: I9078174582d83da94c6c7f20282fd3a5f1742911 Reviewed-by: Christian Stenger <christian.stenger@digia.com> Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -39,6 +39,8 @@
|
||||
#include <coreplugin/editormanager/ieditor.h>
|
||||
#include <coreplugin/find/ifindsupport.h>
|
||||
|
||||
#include <utils/uncommentselection.h>
|
||||
|
||||
#include <QPlainTextEdit>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
@@ -53,11 +55,6 @@ QT_END_NAMESPACE
|
||||
|
||||
namespace Core { class MimeType; }
|
||||
|
||||
namespace Utils {
|
||||
class CommentDefinition;
|
||||
class LineColumnLabel;
|
||||
}
|
||||
|
||||
namespace TextEditor {
|
||||
|
||||
class TabSettings;
|
||||
@@ -183,7 +180,10 @@ public:
|
||||
/*! Selects text between current cursor position and \a toPos. */
|
||||
virtual void select(int toPos);
|
||||
|
||||
virtual const Utils::CommentDefinition *commentDefinition() const;
|
||||
/*! Full access to comment definition, */
|
||||
Utils::CommentDefinition &commentDefinition() const;
|
||||
/*! Convenience style setter. */
|
||||
void setCommentStyle(Utils::CommentDefinition::Style style);
|
||||
|
||||
virtual CompletionAssistProvider *completionAssistProvider();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user