Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

file.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *                                                                         *
00003  *   file.h                                                                *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   Read the file COPYING for details.                                    *
00011  *                                                                         *
00012  *   copyright: (C) 2003 by Jan Mueller                                    *
00013  *   email: janmueller7@hotmail.com                                        *
00014  *                                                                         *
00015  ***************************************************************************/
00016 
00017 #include "fileform.h"
00018 #include "readwriteformbase.h"
00019 
00020 #ifdef HAS_KDE
00021 #include <kparts/part.h>
00022 #endif
00023 
00024 class QToolBar;
00025 class FillLinkListBox;
00026 class MainWindow;
00027 class QCloseEvent;
00028 class File: public ReadWriteFormBase {
00029     Q_OBJECT
00030 
00031     private:
00032     File(const File&);
00033     File& operator=(const File&);
00034 
00035     protected:
00036     FileForm *fileform;
00037     QToolBar *toolbar;
00038     QAction *insertNoteAction;
00039     QAction *createNoteAction;    
00040     QAction *deleteNoteAction;
00041     QAction *runApplicationAction;
00042     QAction *addToProjectAction;
00043     QAction *showPartAction;
00044     QAction *nextFileAction;
00045     QAction *prevFileAction;
00046 
00047 #ifdef HAS_KDE
00048     KParts::ReadOnlyPart *part;
00049     QString kio_target;
00050     QString file;
00051 #endif
00052 
00053     FillLinkListBox *filllink;
00054     bool setData();
00055     
00056     void initToolBar();
00057     
00058     public:
00059     File(LitUrl url, QObject *receiver, QString slot, MainWindow *parent, const char *name);
00060     ~File();
00061     
00062     protected slots:    
00063     virtual void setWorkingGui(bool work);
00064     virtual void setReadonlyGui(bool ro);
00065     virtual void setInvalidGui(bool inv);
00066     virtual void insertNote();
00067     virtual void deleteNote();
00068     virtual void createNote();  
00069     virtual void addToProject();
00070     virtual void nextFile();
00071     virtual void prevFile();
00072     virtual void showPart();
00073 //    virtual void insertLink();
00074 #ifdef HAS_KDE
00075     virtual void runApp();
00076 #endif
00077 };

Generated on Sat Mar 27 19:20:38 2004 for Literature by doxygen 1.3.6-20040222