forked from qt-creator/qt-creator
API naming.
Reviewed-by: hjk
This commit is contained in:
@@ -1189,7 +1189,7 @@ void EditorManager::ensureEditorManagerVisible()
|
||||
m_d->m_core->modeManager()->activateMode(Constants::MODE_EDIT);
|
||||
}
|
||||
|
||||
IEditor *EditorManager::newFile(const QString &editorKind,
|
||||
IEditor *EditorManager::openEditorWithContents(const QString &editorKind,
|
||||
QString *titlePattern,
|
||||
const QString &contents)
|
||||
{
|
||||
|
||||
@@ -113,6 +113,9 @@ public:
|
||||
IEditor *openEditor(const QString &fileName,
|
||||
const QString &editorKind = QString(),
|
||||
OpenEditorFlags flags = 0);
|
||||
IEditor *openEditorWithContents(const QString &editorKind,
|
||||
QString *titlePattern = 0,
|
||||
const QString &contents = QString());
|
||||
|
||||
bool openExternalEditor(const QString &fileName, const QString &editorKind);
|
||||
|
||||
@@ -120,9 +123,6 @@ public:
|
||||
QString getOpenWithEditorKind(const QString &fileName, bool *isExternalEditor = 0) const;
|
||||
|
||||
void ensureEditorManagerVisible();
|
||||
IEditor *newFile(const QString &editorKind,
|
||||
QString *titlePattern = 0,
|
||||
const QString &contents = QString());
|
||||
bool hasEditor(const QString &fileName) const;
|
||||
QList<IEditor *> editorsForFileName(const QString &filename) const;
|
||||
QList<IEditor *> editorsForFile(IFile *file) const;
|
||||
|
||||
@@ -273,7 +273,7 @@ Core::IEditor *EditorManagerPrototype::openEditor(const QString &fileName, const
|
||||
|
||||
Core::IEditor *EditorManagerPrototype::newFile(const QString &editorKind, QString titlePattern, const QString &contents)
|
||||
{
|
||||
return callee()->newFile(editorKind, &titlePattern, contents);
|
||||
return callee()->openEditorWithContents(editorKind, &titlePattern, contents);
|
||||
}
|
||||
|
||||
int EditorManagerPrototype::makeEditorWritable(Core::IEditor *editor)
|
||||
|
||||
Reference in New Issue
Block a user