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 Frank Hassanabad
00009  *
00010  * This library is free software; you can redistribute it and/or
00011  * modify it under the terms of the GNU Lesser General Public
00012  * License as published by the Free Software Foundation; either
00013  * version 2.1 of the License, or (at your option) any later version.
00014  *
00015  * This library is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018  * Lesser General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU Lesser General Public
00021  * License along with this library; if not, write to the Free Software
00022  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00023  */
00024 
00025 //qt includes
00026 #include <QTextEdit>
00027 #include <QPixmap>
00028 
00029 namespace qtgui
00030 {
00031 
00037     class CustomTextEdit : public QTextEdit
00038     {
00039         public: 
00040             
00058             void scrollContentsBy (int dx, int dy)
00059             {
00060                 QSize size = maximumViewportSize();
00061                 QTextEdit::scrollContentsBy(size.height(), size.width());
00062             }
00063         
00064         private:
00065     };
00066 }
00067 
00068 #endif

Generated on Sat Mar 4 23:32:14 2006 for RebeccaAIML by  doxygen 1.4.5