Implement (un)commenting selection of .pro files

Reviewed-by: Leandro Melo <leandro.melo@nokia.com>
Task-number: QTCREATORBUG-119
This commit is contained in:
Jarek Kobus
2010-05-25 16:16:04 +02:00
parent 5a6de0ad5e
commit f09d74271c
4 changed files with 47 additions and 1 deletions

View File

@@ -32,6 +32,7 @@
#include <texteditor/basetextdocument.h>
#include <texteditor/basetexteditor.h>
#include <utils/uncommentselection.h>
namespace TextEditor {
class FontSettings;
@@ -78,8 +79,12 @@ public:
ProFileEditorFactory *factory() { return m_factory; }
TextEditor::TextEditorActionHandler *actionHandler() const { return m_ah; }
void unCommentSelection();
protected:
TextEditor::BaseTextEditorEditable *createEditableInterface();
void contextMenuEvent(QContextMenuEvent *);
public slots:
virtual void setFontSettings(const TextEditor::FontSettings &);
@@ -87,6 +92,7 @@ public slots:
private:
ProFileEditorFactory *m_factory;
TextEditor::TextEditorActionHandler *m_ah;
Utils::CommentDefinition m_commentDefinition;
};
class ProFileDocument : public TextEditor::BaseTextDocument