kexi

kexieditor.h
1/* This file is part of the KDE project
2 Copyright (C) 2003 Lucijan Busch <lucijan@gmx.at>
3 Copyright (C) 2004-2005 Jaroslaw Staniek <js@iidea.pl>
4 Copyright (C) 2005 Cedric Pasteur <cedric.pasteur@free.fr>
5
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
15
16 You should have received a copy of the GNU Library General Public License
17 along with this program; see the file COPYING. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
20*/
21
22#ifndef KEXIEDITOR_H
23#define KEXIEDITOR_H
24
25#include <tqwidget.h>
26#include "kexiviewbase.h"
27
28class KTextEdit;
29class KexiEditorPrivate;
30
31namespace KTextEditor
32{
33 class Document;
34 class View;
35}
36
38
39class KEXIEXTWIDGETS_EXPORT KexiEditor : public KexiViewBase
40{
41 TQ_OBJECT
42
43
44 public:
45
56 KexiEditor(KexiMainWindow *mainWin, TQWidget *parent, const char *name = 0);
57
61 virtual ~KexiEditor();
62
67 static bool isAdvancedEditor();
68
72 TQString text();
73
82 void setHighlightMode(const TQString& highlightmodename);
83
88 void jump(int character);
89
93 void setCursorPosition(int line, int col);
94
99 void clearUndoRedo();
100
101 public slots:
104 void setText(const TQString &text);
106 void slotConfigureEditor();
107
108 protected:
110 virtual void updateActions(bool activated);
111
112 signals:
115
116 private:
118 KexiEditorPrivate *d;
119};
120
121#endif
An text editor view that uses both KTextEditor and KTextEdit.
Definition kexieditor.h:40
void textChanged()
Kexi's main window interface This interface is implemented by KexiMainWindowImpl class.
Base class for single view embeddable of in KexiDialogBase.
virtual void updateActions(bool activated)