00001 /*************************************************************************** 00002 * * 00003 * author.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 "authorform.h" 00018 #include "readwriteformbase.h" 00019 00020 class QToolBar; 00021 class FillLinkListBox; 00022 class MainWindow; 00023 class QCloseEvent; 00024 class Author: public ReadWriteFormBase { 00025 Q_OBJECT 00026 00027 private: 00028 Author(const Author&); 00029 Author& operator=(const Author&); 00030 00031 protected: 00032 AuthorForm *authorform; 00033 QToolBar *toolbar; 00034 QAction *insertNoteAction; 00035 QAction *createNoteAction; 00036 QAction *deleteNoteAction; 00037 QAction *insertPublicationAction; 00038 QAction *createPublicationAction; 00039 QAction *deletePublicationAction; 00040 QAction *insertPartAction; 00041 QAction *deletePartAction; 00042 00043 FillLinkListBox *filllink; 00044 FillLinkListBox *fillpubl; 00045 FillLinkListBox *fillpart; 00046 bool setData(); 00047 00048 void initToolBar(); 00049 00050 public: 00051 Author(LitUrl url, QObject *receiver, QString slot, MainWindow *parent, const char *name); 00052 ~Author(); 00053 00054 protected slots: 00055 virtual void setWorkingGui(bool work); 00056 virtual void setReadonlyGui(bool ro); 00057 virtual void setInvalidGui(bool inv); 00058 virtual void insertNote(); 00059 virtual void deleteNote(); 00060 virtual void createNote(); 00061 virtual void insertPublication(); 00062 virtual void deletePublication(); 00063 virtual void createPublication(); 00064 virtual void insertPart(); 00065 virtual void deletePart(); 00066 };