kexi
kexiscripteditor.h
00001 /* This file is part of the KDE project 00002 Copyright (C) 2003 Lucijan Busch <lucijan@gmx.at> 00003 Copyright (C) 2004-2005 Jaroslaw Staniek <js@iidea.pl> 00004 Copyright (C) 2005 Cedric Pasteur <cedric.pasteur@free.fr> 00005 Copyright (C) 2005 Sebastian Sauer <mail@dipe.org> 00006 00007 This program is free software; you can redistribute it and/or 00008 modify it under the terms of the GNU Library General Public 00009 License as published by the Free Software Foundation; either 00010 version 2 of the License, or (at your option) any later version. 00011 00012 This program is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 Library General Public License for more details. 00016 00017 You should have received a copy of the GNU Library General Public License 00018 along with this program; see the file COPYING. If not, write to 00019 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00020 * Boston, MA 02110-1301, USA. 00021 */ 00022 00023 #ifndef KEXISCRIPTEDITOR_H 00024 #define KEXISCRIPTEDITOR_H 00025 00026 #include <kexieditor.h> 00027 00028 namespace Kross { namespace Api { 00029 class ScriptAction; 00030 }} 00031 00036 class KexiScriptEditor : public KexiEditor 00037 { 00038 Q_OBJECT 00039 00040 public: 00041 00045 KexiScriptEditor(KexiMainWindow *mainWin, QWidget *parent, const char *name = 0); 00046 00050 virtual ~KexiScriptEditor(); 00051 00056 bool isInitialized() const; 00057 00064 void initialize(Kross::Api::ScriptAction* scriptaction); 00065 00066 public slots: 00067 void slotTextChanged(); 00068 void setLineNo(long); 00069 00070 private: 00072 class Private; 00074 Private* const d; 00075 }; 00076 00077 #endif