• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

Kate

katemodemanager.h

Go to the documentation of this file.
00001 /*  This file is part of the KDE libraries and the Kate part.
00002  *
00003  *  Copyright (C) 2001-2010 Christoph Cullmann <cullmann@kde.org>
00004  *
00005  *  This library is free software; you can redistribute it and/or
00006  *  modify it under the terms of the GNU Library General Public
00007  *  License as published by the Free Software Foundation; either
00008  *  version 2 of the License, or (at your option) any later version.
00009  *
00010  *  This library is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  *  Library General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU Library General Public License
00016  *  along with this library; see the file COPYING.LIB.  If not, write to
00017  *  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018  *  Boston, MA 02110-1301, USA.
00019  */
00020 
00021 #ifndef KATE_MODEMANAGER_H__
00022 #define KATE_MODEMANAGER_H__
00023 
00024 #include <QtCore/QStringList>
00025 #include <QtCore/QPointer>
00026 #include <QtCore/QHash>
00027 
00028 #include "katedialogs.h"
00029 
00030 class KateDocument;
00031 
00032 class KateFileType
00033 {
00034   public:
00035     int number;
00036     QString name;
00037     QString section;
00038     QStringList wildcards;
00039     QStringList mimetypes;
00040     int priority;
00041     QString varLine;
00042     QString hl;
00043     bool hlGenerated;
00044     QString version;
00045     QString indenter;
00046 
00047     KateFileType()
00048       : number(-1), priority(0), hlGenerated(false)
00049     {}
00050 };
00051 
00052 class KateModeManager
00053 {
00054   public:
00055     KateModeManager ();
00056     ~KateModeManager ();
00057 
00061     void update ();
00062 
00063     void save (const QList<KateFileType *>& v);
00064 
00069     QString fileType (KateDocument *doc);
00070 
00074     const KateFileType& fileType (const QString &name) const;
00075 
00079     const QList<KateFileType *>& list() const { return m_types; }
00080 
00081   private:
00082     QString wildcardsFind (const QString &fileName);
00083 
00084   private:
00085     QList<KateFileType *> m_types;
00086     QHash<QString, KateFileType *> m_name2Type;
00087 
00088 };
00089 
00090 #endif
00091 
00092 // kate: space-indent on; indent-width 2; replace-tabs on;

Kate

Skip menu "Kate"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal