interfaces
editorchooser.h
00001 #ifndef _EDITOR_CHOOSER_H_
00002 #define _EDITOR_CHOOSER_H_
00003
00004 #include <tdetexteditor/editor.h>
00005 #include <tdetexteditor/document.h>
00006
00007 #include <tqwidget.h>
00008
00009 class TDEConfig;
00010 class TQString;
00011
00012 namespace KTextEditor
00013 {
00014
00015 class KTEXTEDITOR_EXPORT EditorChooser: public TQWidget
00016 {
00017 friend class PrivateEditorChooser;
00018
00019 Q_OBJECT
00020
00021 public:
00022 EditorChooser(TQWidget *parent=0,const char *name=0);
00023 virtual ~EditorChooser();
00024
00025
00026
00027 void readAppSetting(const TQString& postfix=TQString::null);
00028 void writeAppSetting(const TQString& postfix=TQString::null);
00029
00030 static KTextEditor::Document *createDocument(TQObject* parent=0,const char *name=0,const TQString& postfix=TQString::null, bool fallBackToKatePart=true);
00031 static KTextEditor::Editor *createEditor(TQWidget *parentWidget,TQObject *parent,const char* widgetName=0,const char* name=0,const TQString& postfix=TQString::null,bool fallBackToKatePart=true);
00032 private:
00033 class PrivateEditorChooser *d;
00034 };
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057 }
00058 #endif