Eneboo - Documentación para desarrolladores
|
00001 /*************************************************************************** 00002 FLHelpWindow.h - Modificaciones para adaptar a AbanQ 00003 Iconos incluido en código 00004 Mensajes originales en español 00005 Modifiaciones en barra de menus 00006 Historial y favoritos se almacenan en el directorio 00007 HOME del usuario 00008 ------------------- 00009 begin : Mon May 13 2002 00010 copyright : (C) 2002-2005 by InfoSiAL S.L. 00011 email : mail@infosial.com 00012 ***************************************************************************/ 00013 /*************************************************************************** 00014 * This program is free software; you can redistribute it and/or modify * 00015 * it under the terms of the GNU General Public License as published by * 00016 * the Free Software Foundation; version 2 of the License. * 00017 ***************************************************************************/ 00018 /*************************************************************************** 00019 Este programa es software libre. Puede redistribuirlo y/o modificarlo 00020 bajo los términos de la Licencia Pública General de GNU en su 00021 versión 2, publicada por la Free Software Foundation. 00022 ***************************************************************************/ 00023 /**************************************************************************** 00024 ** 00025 ** Copyright (C) 1992-2000 Trolltech AS. All rights reserved. 00026 ** 00027 ** This file is part of an example program for Qt. This example 00028 ** program may be used, distributed and modified without limitation. 00029 ** 00030 *****************************************************************************/ 00031 00032 #ifndef FLHELPWINDOW_H 00033 #define FLHELPWINDOW_H 00034 00035 #include <qmainwindow.h> 00036 #include <qtextbrowser.h> 00037 #include <qstringlist.h> 00038 #include <qmap.h> 00039 #include <qdir.h> 00040 #include <stdlib.h> 00041 00042 class QComboBox; 00043 class QPopupMenu; 00044 00045 class FLHelpWindow: public QMainWindow 00046 { 00047 Q_OBJECT 00048 00049 public: 00050 00051 FLHelpWindow(const QString &home_, const QString &path, QWidget *parent = 00052 0, const char *name = 0); 00053 ~FLHelpWindow(); 00054 00055 private slots: 00056 void setBackwardAvailable(bool); 00057 void setForwardAvailable(bool); 00058 00059 void textChanged(); 00060 void about(); 00061 void aboutQt(); 00062 void openFile(); 00063 void newWindow(); 00064 void print(); 00065 00066 void pathSelected(const QString &); 00067 void histChosen(int); 00068 void bookmChosen(int); 00069 void addBookmark(); 00070 00071 private: 00072 void readHistory(); 00073 void readBookmarks(); 00074 00075 QTextBrowser *browser; 00076 QComboBox *pathCombo; 00077 int backwardId, forwardId; 00078 QString selectedURL; 00079 QStringList history, bookmarks; 00080 QMap < int, QString > mHistory, mBookmarks; 00081 QPopupMenu *hist, *bookm; 00082 }; 00083 00084 #endif