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

sourcesview.h

Go to the documentation of this file.
00001 
00002 //
00003 // YASA sources view
00004 //
00005 // Project: Yasa 2
00006 // Author : Jan Blumenthal
00007 // Start  : 2002/02/28
00008 // $Header: /sources/yasa/yasagui/sourcesview.h,v 1.4 2003/01/24 15:47:42 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 //
00028 #ifndef YASAGUI_SOURCESVIEW_INCLUDE
00029 #define YASAGUI_SOURCESVIEW_INCLUDE
00030 
00031 
00033 #include <qtextbrowser.h>
00034 #include "yasagui/yasagui.h"
00035 #include "config.h"
00036 #include "mainwindow.h"
00037 #include "sources.h"
00038 
00039 
00043 class YFileViewFrame : public YObjectFrame
00044 {   Q_OBJECT
00045 protected:
00046     QTextBrowser        textbrowser;
00047 public:                 YFileViewFrame(QWidget *parent, YFrameArgs &args) :
00048                         YObjectFrame(args),
00049                         textbrowser(parent)
00050                         {}
00051     virtual int         InitInstance();
00052     virtual QWidget*    GetMainWidget()                             { return &textbrowser;  }
00053     virtual void        SetBackdrop()=0;
00054     virtual YFilePath*  GetFilePath() const=0;
00055 };
00056 
00060 class YSourceViewFrame : public YFileViewFrame
00061 {   public:             YSourceViewFrame(QWidget *parent, YFrameArgs &args) :
00062                         YFileViewFrame(parent, args)    {}
00063     static YFrame*      CreateSourceViewFrame(QWidget *parent, YFrameArgs &args)
00064                         {   return new YSourceViewFrame( parent, args);                     }
00065     virtual void        SetBackdrop();
00066     virtual YFilePath*  GetFilePath() const             {   return (YFilePath*)GetObject(); }
00067 };
00068 
00069 
00070 
00073 class YLogFileViewFrame : public YFileViewFrame
00074 {   public:             YLogFileViewFrame(QWidget *parent, YFrameArgs &args) :
00075                         YFileViewFrame(parent, args)    {}
00076     static YFrame*      CreateLogFileViewFrame(QWidget *parent, YFrameArgs &args)
00077                         {   return new YLogFileViewFrame( parent, args);                        }
00078     virtual int         InitInstance();
00079     virtual void        SetBackdrop();
00080     virtual YFilePath*  GetFilePath() const;
00081 };
00082 
00083 
00084 
00085 
00086 
00087 
00088 
00089 
00091 #endif                                                                          // ifndef YASAGUI_SOURCESVIEW_INCLUDE

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