CustomTextEdit.h

00001 #ifndef QTGUI_CUSTOMTEXTEDIT_H
00002 #define QTGUI_CUSTOMTEXTEDIT_H
00003 
00004 /*
00005  * RebeccaAIML, Artificial Intelligence Markup Language 
00006  * C++ api and engine.
00007  *
00008  * Copyright (C) 2005,2006,2007 Frank Hassanabad
00009  *
00010  * This file is part of RebeccaAIML.
00011  *
00012  * RebeccaAIML is free software; you can redistribute it and/or modify
00013  * it under the terms of the GNU General Public License as published by
00014  * the Free Software Foundation; either version 3 of the License, or
00015  * (at your option) any later version.
00016  *
00017  * RebeccaAIML is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020  * GNU General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU General Public License
00023  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00024  */
00025 
00026 //qt includes
00027 #include <QTextEdit>
00028 #include <QPixmap>
00029 
00030 namespace qtgui
00031 {
00032 
00038     class CustomTextEdit : public QTextEdit
00039     {
00040         public: 
00041             
00059             void scrollContentsBy (int dx, int dy)
00060             {
00061                 QSize size = maximumViewportSize();
00062                 QTextEdit::scrollContentsBy(size.height(), size.width());
00063             }
00064         
00065         private:
00066     };
00067 }
00068 
00069 #endif

Generated on Mon Aug 27 12:26:58 2007 for RebeccaAIML by  doxygen 1.5.3