kexi
kexieditor.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef KEXIEDITOR_H
00023 #define KEXIEDITOR_H
00024
00025 #include <qwidget.h>
00026 #include "kexiviewbase.h"
00027
00028 class KTextEdit;
00029 class KexiEditorPrivate;
00030
00031 namespace KTextEditor
00032 {
00033 class Document;
00034 class View;
00035 }
00036
00038
00039 class KEXIEXTWIDGETS_EXPORT KexiEditor : public KexiViewBase
00040 {
00041 Q_OBJECT
00042
00043 public:
00044
00055 KexiEditor(KexiMainWindow *mainWin, QWidget *parent, const char *name = 0);
00056
00060 virtual ~KexiEditor();
00061
00066 static bool isAdvancedEditor();
00067
00071 QString text();
00072
00081 void setHighlightMode(const QString& highlightmodename);
00082
00087 void jump(int character);
00088
00092 void setCursorPosition(int line, int col);
00093
00098 void clearUndoRedo();
00099
00100 public slots:
00102 void setText(const QString &text);
00104 void slotConfigureEditor();
00105
00106 protected:
00108 virtual void updateActions(bool activated);
00109
00110 signals:
00112 void textChanged();
00113
00114 private:
00116 KexiEditorPrivate *d;
00117 };
00118
00119 #endif
|