1 #ifndef _EDITOR_CHOOSER_H_
2 #define _EDITOR_CHOOSER_H_
4 #include <ktexteditor/editor.h>
5 #include <ktexteditor/document.h>
15 class KTEXTEDITOR_EXPORT EditorChooser:
public TQWidget
17 friend class PrivateEditorChooser;
22 EditorChooser(TQWidget *parent=0,
const char *name=0);
23 virtual ~EditorChooser();
27 void readAppSetting(
const TQString& postfix=TQString::null);
28 void writeAppSetting(
const TQString& postfix=TQString::null);
30 static KTextEditor::Document *createDocument(TQObject* parent=0,
const char *name=0,
const TQString& postfix=TQString::null,
bool fallBackToKatePart=
true);
31 static KTextEditor::Editor *createEditor(TQWidget *parentWidget,TQObject *parent,
const char* widgetName=0,
const char* name=0,
const TQString& postfix=TQString::null,
bool fallBackToKatePart=
true);
33 class PrivateEditorChooser *d;