19 #ifndef __kate_filetype_h__
20 #define __kate_filetype_h__
22 #include <tqstringlist.h>
23 #include <tqptrlist.h>
24 #include <tqpopupmenu.h>
25 #include <tqguardedptr.h>
27 #include "katedialogs.h"
37 TQStringList wildcards;
38 TQStringList mimetypes;
43 class 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;
79 class 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;
107 class TQLineEdit *
name;
108 class TQLineEdit *section;
109 class TQLineEdit *varLine;
111 TQPtrList<KateFileType> m_types;
112 KateFileType *m_lastType;
115 class 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(){;};
130 TQGuardedPtr<KateDocument> m_doc;
131 TQStringList subMenusName;
133 TQPtrList<TQPopupMenu> subMenus;
136 void slotAboutToShow();
139 void setType (
int mode);
This interface provides access to the Kate Document class.
Kate namespace All classes in this namespace must stay BC during one major release series (e....
TQString name(StdAccel id)
const TDEShortcut & save()
const TDEShortcut & reload()