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 /*
00030 Muestra una ventana con la ayuda. La ayuda debe de estar en formato html.
00031 Permite realizar búsquedas dentro de los ficheros de ayuda.
00032 */
00033 class Help:public BaseWidget
00034 {
00035         Q_OBJECT
00036         public:
00037         Help(QWidget * parent = 0);
00038         void setSource(const QString source);
00039         ~Help();
00040         private:
00041         QVBoxLayout *vlayout;
00042         QToolBar *toolbar;
00043         QTextBrowser *browser;
00044         QLineEdit *lineedit;
00045         QCheckBox *check_box;
00046         QString source;
00047         void create_buttons();
00048         public slots:
00049         void back();
00050         void forward();
00051         void find();
00052         void go_home();
00053 };
00054         
00055 #endif

Generated on Wed Mar 7 10:15:11 2007 for QtOctave by  doxygen 1.4.7