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

part.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *                                                                         *
00003  *   part.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 #ifndef PartForm_h
00018 #define PartForm_h
00019 #include "partform.h"
00020 #include "readwriteformbase.h"
00021 #include <qcstring.h>
00022 
00023 class QToolBar;
00024 class QAction;
00025 class FillLinkListBox;
00026 class MainWindow;
00027 
00028 
00029 class Part: public ReadWriteFormBase {
00030     Q_OBJECT
00031 
00032     private:
00033     Part(const Part&);
00034     Part& operator=(const Part&);
00035 
00036     protected:
00037     PartForm *partform;
00038     QToolBar *toolbar;
00039     QAction *showPartMemoAction;
00040     QAction *insertNoteAction;
00041     QAction *createNoteAction;    
00042     QAction *deleteNoteAction;
00043     QAction *insertAuthorAction;
00044     QAction *createAuthorAction;    
00045     QAction *deleteAuthorAction;
00046     QAction *showPartPublAction;
00047     QAction *importFilesAction;
00048     QAction *addToProjectAction;
00049 
00050     FillLinkListBox *filllink;
00051     FillLinkListBox *fillauthor;
00052     FillLinkListBox *fillfiles;
00053     bool setData();
00054     void writebuf(QByteArray buf, int chunkno, QString fileno);    
00055     void initToolBar();
00056     virtual void write();
00057     
00058     public:
00059     Part(LitUrl url, QObject *receiver, QString slot, MainWindow *parent, const char *name);
00060     ~Part();
00061     
00062     protected slots:
00063     virtual void setWorkingGui(bool work);
00064     virtual void setReadonlyGui(bool ro);
00065     virtual void setInvalidGui(bool inv);
00066 
00067     virtual void showPartMemo();
00068     virtual void showPartPubl();
00069     virtual void insertNote();
00070     virtual void deleteNote();
00071     virtual void createNote();
00072     virtual void insertAuthor();
00073     virtual void deleteAuthor();
00074     virtual void createAuthor();    
00075     virtual void generateBibTex();
00076     virtual void importFiles();
00077     virtual void addToProject();
00078 };
00079 #endif

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