KTextEditor
7#ifndef KATE_MODEMANAGER_H
8#define KATE_MODEMANAGER_H
10#include "ktexteditor_export.h"
16#include <KLocalizedString>
28 QStringList wildcards;
29 QStringList mimetypes;
33 bool hlGenerated =
false;
37 QString translatedName;
38 QString translatedSection;
40 QString nameTranslated()
const
42 return translatedName.
isEmpty() ? name : translatedName;
45 QString sectionTranslated()
const
47 return translatedSection.isEmpty() ? section : translatedSection;
62 KateModeManager(
const KateModeManager &) =
delete;
63 KateModeManager &operator=(
const KateModeManager &) =
delete;
70 void save(
const QList<KateFileType *> &v);
75 QString fileType(KTextEditor::Document *doc,
const QString &fileToReadFrom);
80 const KateFileType &fileType(
const QString &name)
const;
85 const QList<KateFileType *> &list()
const
91 friend class KateModeManagerTest;
92 friend class KateModeManagerBenchmark;
94 KTEXTEDITOR_EXPORT QString wildcardsFind(
const QString &fileName)
const;
95 KTEXTEDITOR_EXPORT QString mimeTypesFind(
const QString &mimeTypeName)
const;
97 QList<KateFileType *> m_types;
98 QHash<QString, KateFileType *> m_name2Type;
A KParts derived class representing a text document.
virtual bool isEmpty() const
Returns if the document is empty.
The KTextEditor namespace contains all the public API that is required to use the KTextEditor compone...
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:55:24 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.