19#ifndef __kate_filetype_h__
20#define __kate_filetype_h__
22#include <tqstringlist.h>
24#include <tqpopupmenu.h>
25#include <tqguardedptr.h>
27#include "katedialogs.h"
37 TQStringList wildcards;
38 TQStringList mimetypes;
43class KateFileTypeManager
46 KateFileTypeManager ();
47 ~KateFileTypeManager ();
54 void save (TQPtrList<KateFileType> *v);
60 int fileType (KateDocument *doc);
65 const KateFileType *fileType (uint number);
70 TQPtrList<KateFileType> *list () {
return &m_types; }
73 int wildcardsFind (
const TQString &fileName);
76 TQPtrList<KateFileType> m_types;
79class KateFileTypeConfigTab :
public KateConfigPage
84 KateFileTypeConfigTab( TQWidget *parent );
96 void typeChanged (
int type);
101 class TQGroupBox *gbProps;
102 class TQPushButton *btndel;
103 class TQComboBox *typeCombo;
104 class TQLineEdit *wildcards;
105 class TQLineEdit *mimetypes;
106 class KIntNumInput *priority;
107 class TQLineEdit *name;
108 class TQLineEdit *section;
109 class TQLineEdit *varLine;
111 TQPtrList<KateFileType> m_types;
112 KateFileType *m_lastType;
115class KateViewFileTypeAction :
public Kate::ActionMenu
120 KateViewFileTypeAction(
const TQString&
text, TQObject* parent = 0,
const char* name = 0)
121 : Kate::ActionMenu(
text, parent,
name) { init(); };
123 ~KateViewFileTypeAction(){;};
125 void updateMenu (Kate::Document *doc);
130 TQGuardedPtr<KateDocument> m_doc;
131 TQStringList subMenusName;
133 TQPtrList<TQPopupMenu> subMenus;
136 void slotAboutToShow();
139 void setType (
int mode);
virtual TQString text() const
TQString name(StdAccel id)