kexi
keximacrotextview.h
00001 /* This file is part of the KDE project 00002 Copyright (C) 2006 Sebastian Sauer <mail@dipe.org> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License as published by the Free Software Foundation; either 00007 version 2 of the License, or (at your option) any later version. 00008 This library is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 Library General Public License for more details. 00012 You should have received a copy of the GNU Library General Public License 00013 along with this library; see the file COPYING.LIB. If not, write to 00014 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00015 Boston, MA 02110-1301, USA. 00016 */ 00017 00018 #ifndef KEXIMACROTEXTVIEW_H 00019 #define KEXIMACROTEXTVIEW_H 00020 00021 #include "keximacroview.h" 00022 00023 // Forward declaration. 00024 namespace KoMacro { 00025 class Macro; 00026 } 00027 00032 class KexiMacroTextView : public KexiMacroView 00033 { 00034 Q_OBJECT 00035 public: 00036 00045 KexiMacroTextView(KexiMainWindow *mainwin, QWidget *parent, ::KoMacro::Macro* const macro); 00046 00050 virtual ~KexiMacroTextView(); 00051 00055 virtual bool loadData(); 00056 00061 virtual tristate storeData(bool dontAsk = false); 00062 00063 private slots: 00064 00068 void editorChanged(); 00069 00070 private: 00072 class Private; 00074 Private* const d; 00075 }; 00076 00077 #endif