core: make context and widget IContext data members

This commit is contained in:
hjk
2011-04-13 13:00:30 +02:00
parent cbfaea1ed3
commit 70d392d235
55 changed files with 135 additions and 490 deletions

View File

@@ -59,18 +59,13 @@ using namespace Qt4ProjectManager::Internal;
//
ProFileEditor::ProFileEditor(ProFileEditorWidget *editor)
: BaseTextEditor(editor),
m_context(Qt4ProjectManager::Constants::C_PROFILEEDITOR,
TextEditor::Constants::C_TEXTEDITOR)
: BaseTextEditor(editor)
{
setContext(Core::Context(Qt4ProjectManager::Constants::C_PROFILEEDITOR,
TextEditor::Constants::C_TEXTEDITOR));
// m_contexts << uidm->uniqueIdentifier(Qt4ProjectManager::Constants::PROJECT_KIND);
}
Core::Context ProFileEditor::context() const
{
return m_context;
}
Core::IEditor *ProFileEditor::duplicate(QWidget *parent)
{
ProFileEditorWidget *ret = new ProFileEditorWidget(parent, qobject_cast<ProFileEditorWidget*>(editorWidget())->factory(),
@@ -103,10 +98,6 @@ ProFileEditorWidget::ProFileEditorWidget(QWidget *parent, ProFileEditorFactory *
m_commentDefinition.setSingleLine(QString(QLatin1Char('#')));
}
ProFileEditorWidget::~ProFileEditorWidget()
{
}
void ProFileEditorWidget::unCommentSelection()
{
Utils::unCommentSelection(this, m_commentDefinition);