Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Examples  

helpwindow.h

Go to the documentation of this file.
00001 
00002 //
00003 // YASA application help window browser declarations
00004 //
00005 // Project: Yasa 2
00006 // Author : Jan Blumenthal
00007 // Start  : 2002/02/28
00008 // $Header: /sources/yasa/yasagui/helpwindow.h,v 1.4 2003/01/24 15:47:41 bj Exp $
00009 //
00011 //
00012 // This program 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 2 of the License, or
00015 // (at your option) any later version.
00016 //
00017 // This program 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 (See the included file COPYING);
00024 // if not, write to the Free Software Foundation, Inc.,
00025 // 675 Mass Ave, Cambridge, MA 02139, USA.
00026 //
00030 #ifndef YASAGUI_HELPWINDOW_INCLUDE
00031 #define YASAGUI_HELPWINDOW_INCLUDE
00032 
00033 #include <qtextbrowser.h>
00034 #include "mainwindow.h"
00035 
00036 
00037 
00039 class YFrameHelpArgs : public YFrameArgs
00040 {   const QString       filename;
00041 public:                 YFrameHelpArgs(const QString &title, const QString &fname);
00042     const QString&      GetFileName() const                         { return filename; }
00043 };
00044 
00045 
00047 class YHelpFrame : public YFrame
00048 {   Q_OBJECT
00049     QTextBrowser        browser;
00050                         YHelpFrame(QWidget *parent, YFrameArgs &args) :
00051                         YFrame(args),
00052                         browser(parent)
00053                         {}
00054 public:
00055     virtual int         InitInstance();
00056     virtual QWidget*    GetMainWidget()                             { return &browser;  }
00057     static int          OpenHelpWindow();
00058     static YFrame*      CreateHelpFrame(QWidget *parent, YFrameArgs &args)
00059                         {
00060                             return new YHelpFrame(parent, args );
00061                         }
00062 };
00063 
00064 
00065 
00066 
00067 
00069 #endif                                                                  // ifndef YASAGUI_HELPWINDOW_INCLUDE

Generated on Thu Feb 13 23:43:53 2003 for Yasa by doxygen1.3-rc3