help.h

Go to the documentation of this file.
00001 /* Copyright (C) 2006 P.L. Lucas
00002  *
00003  * This program is free software; you can redistribute it and/or modify
00004  * it under the terms of the GNU General Public License as published by
00005  * the Free Software Foundation; either version 2 of the License, or
00006  * (at your option) any later version.
00007  *
00008  * This program 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
00011  * GNU General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU General Public License
00014  * along with this program; if not, write to the Free Software
00015  * Foundation, Inc., 59 Temple Place, Suite 330, 
00016  * Boston, MA 02111-1307, USA. 
00017  */
00018 
00019 #ifndef __HELP_H__
00020 #define __HELP_H__
00021 
00022 #include "basewidget.h"
00023 #include <qtextbrowser.h>
00024 #include <qlineedit.h>
00025 #include <qcheckbox.h>
00026 #include <qtoolbar.h>
00027 #include <QVBoxLayout>
00028 
00029 /**Shows help in simple html. Users can do searches.
00030 */
00031 class Help:public BaseWidget
00032 {
00033         Q_OBJECT
00034         public:
00035         Help(QWidget * parent = 0);
00036         void setSource(const QString source);
00037         ~Help();
00038         private:
00039         QVBoxLayout *vlayout;
00040         QToolBar *toolbar;
00041         QTextBrowser *browser;
00042         QLineEdit *lineedit;
00043         QCheckBox *check_box;
00044         QString source;
00045         void create_buttons();
00046         public slots:
00047         void back();
00048         void forward();
00049         void find();
00050         void go_home();
00051 };
00052         
00053 #endif

Generated on Wed Mar 21 10:32:50 2007 for QtOctave by  doxygen 1.4.7